1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.3svn. 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-2013 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.3svn' 565PACKAGE_STRING='LLVM 3.3svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/IR/Module.cpp" 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#if HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#if HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#if STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# if HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#if HAVE_STRING_H 587# if !STDC_HEADERS && HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#if HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#if HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#if HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#if HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642LLVM_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_CXX11 688ENABLE_CLANG_ARCMT 689ENABLE_CLANG_STATIC_ANALYZER 690ENABLE_CLANG_REWRITER 691ENABLE_OPTIMIZED 692ENABLE_PROFILING 693DISABLE_ASSERTIONS 694ENABLE_WERROR 695ENABLE_EXPENSIVE_CHECKS 696EXPENSIVE_CHECKS 697DEBUG_RUNTIME 698DEBUG_SYMBOLS 699KEEP_SYMBOLS 700JIT 701TARGET_HAS_JIT 702ENABLE_DOCS 703ENABLE_DOXYGEN 704LLVM_ENABLE_THREADS 705ENABLE_PTHREADS 706ENABLE_PIC 707ENABLE_SHARED 708ENABLE_EMBED_STDCXX 709ENABLE_TIMESTAMPS 710ENABLE_BACKTRACES 711TARGETS_TO_BUILD 712LLVM_ENUM_TARGETS 713LLVM_ENUM_ASM_PRINTERS 714LLVM_ENUM_ASM_PARSERS 715LLVM_ENUM_DISASSEMBLERS 716OPTIMIZE_OPTION 717EXTRA_OPTIONS 718EXTRA_LD_OPTIONS 719CLANG_SRC_ROOT 720BINUTILS_INCDIR 721INTERNAL_PREFIX 722NM 723ifGNUmake 724LN_S 725CMP 726CP 727DATE 728FIND 729MKDIR 730MV 731RANLIB 732AR 733RM 734SED 735TAR 736BINPWD 737GRAPHVIZ 738DOT 739FDP 740NEATO 741TWOPI 742CIRCO 743GV 744DOTTY 745XDOT_PY 746INSTALL_PROGRAM 747INSTALL_SCRIPT 748INSTALL_DATA 749BZIP2 750CAT 751DOXYGEN 752GROFF 753GZIPBIN 754PDFROFF 755ZIP 756OCAMLC 757OCAMLOPT 758OCAMLDEP 759OCAMLDOC 760GAS 761HAVE_LINK_VERSION_SCRIPT 762INSTALL_LTDL_TRUE 763INSTALL_LTDL_FALSE 764CONVENIENCE_LTDL_TRUE 765CONVENIENCE_LTDL_FALSE 766LIBADD_DL 767NO_VARIADIC_MACROS 768NO_MISSING_FIELD_INITIALIZERS 769COVERED_SWITCH_DEFAULT 770NO_MAYBE_UNINITIALIZED 771NO_UNINITIALIZED 772PYTHON 773USE_UDIS86 774USE_OPROFILE 775USE_INTEL_JITEVENTS 776XML2CONFIG 777LIBXML2_LIBS 778LIBXML2_INC 779HAVE_PTHREAD 780HUGE_VAL_SANITY 781MMAP_FILE 782SHLIBEXT 783SHLIBPATH_VAR 784LLVM_PREFIX 785LLVM_BINDIR 786LLVM_LIBDIR 787LLVM_DATADIR 788LLVM_DOCSDIR 789LLVM_ETCDIR 790LLVM_INCLUDEDIR 791LLVM_INFODIR 792LLVM_MANDIR 793LLVM_CONFIGTIME 794BINDINGS_TO_BUILD 795ALL_BINDINGS 796OCAML_LIBDIR 797ENABLE_VISIBILITY_INLINES_HIDDEN 798RPATH 799RDYNAMIC 800program_prefix 801LIBOBJS 802LTLIBOBJS' 803ac_subst_files='' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810CPPFLAGS 811CXX 812CXXFLAGS 813CCC 814CPP' 815ac_subdirs_all='projects/llvm-gcc 816projects/test-suite 817projects/llvm-test 818projects/poolalloc 819projects/llvm-poolalloc 820projects/sample 821projects/privbracket 822projects/llvm-stacker 823projects/llvm-reopt 824projects/llvm-java 825projects/llvm-tv 826projects/safecode 827projects/llvm-kernel 828tools/polly' 829 830# Initialize some variables set by options. 831ac_init_help= 832ac_init_version=false 833# The variables have the same names as the options, with 834# dashes changed to underlines. 835cache_file=/dev/null 836exec_prefix=NONE 837no_create= 838no_recursion= 839prefix=NONE 840program_prefix=NONE 841program_suffix=NONE 842program_transform_name=s,x,x, 843silent= 844site= 845srcdir= 846verbose= 847x_includes=NONE 848x_libraries=NONE 849 850# Installation directory options. 851# These are left unexpanded so users can "make install exec_prefix=/foo" 852# and all the variables that are supposed to be based on exec_prefix 853# by default will actually change. 854# Use braces instead of parens because sh, perl, etc. also accept them. 855# (The list follows the same order as the GNU Coding Standards.) 856bindir='${exec_prefix}/bin' 857sbindir='${exec_prefix}/sbin' 858libexecdir='${exec_prefix}/libexec' 859datarootdir='${prefix}/share' 860datadir='${datarootdir}' 861sysconfdir='${prefix}/etc' 862sharedstatedir='${prefix}/com' 863localstatedir='${prefix}/var' 864includedir='${prefix}/include' 865oldincludedir='/usr/include' 866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 867infodir='${datarootdir}/info' 868htmldir='${docdir}' 869dvidir='${docdir}' 870pdfdir='${docdir}' 871psdir='${docdir}' 872libdir='${exec_prefix}/lib' 873localedir='${datarootdir}/locale' 874mandir='${datarootdir}/man' 875 876ac_prev= 877ac_dashdash= 878for ac_option 879do 880 # If the previous option needs an argument, assign it. 881 if test -n "$ac_prev"; then 882 eval $ac_prev=\$ac_option 883 ac_prev= 884 continue 885 fi 886 887 case $ac_option in 888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 935 { (exit 1); exit 1; }; } 936 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 937 eval enable_$ac_feature=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 954 { (exit 1); exit 1; }; } 955 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 956 eval enable_$ac_feature=\$ac_optarg ;; 957 958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 960 | --exec | --exe | --ex) 961 ac_prev=exec_prefix ;; 962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 964 | --exec=* | --exe=* | --ex=*) 965 exec_prefix=$ac_optarg ;; 966 967 -gas | --gas | --ga | --g) 968 # Obsolete; use --with-gas. 969 with_gas=yes ;; 970 971 -help | --help | --hel | --he | -h) 972 ac_init_help=long ;; 973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 974 ac_init_help=recursive ;; 975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 976 ac_init_help=short ;; 977 978 -host | --host | --hos | --ho) 979 ac_prev=host_alias ;; 980 -host=* | --host=* | --hos=* | --ho=*) 981 host_alias=$ac_optarg ;; 982 983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 984 ac_prev=htmldir ;; 985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 986 | --ht=*) 987 htmldir=$ac_optarg ;; 988 989 -includedir | --includedir | --includedi | --included | --include \ 990 | --includ | --inclu | --incl | --inc) 991 ac_prev=includedir ;; 992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 993 | --includ=* | --inclu=* | --incl=* | --inc=*) 994 includedir=$ac_optarg ;; 995 996 -infodir | --infodir | --infodi | --infod | --info | --inf) 997 ac_prev=infodir ;; 998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 999 infodir=$ac_optarg ;; 1000 1001 -libdir | --libdir | --libdi | --libd) 1002 ac_prev=libdir ;; 1003 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1004 libdir=$ac_optarg ;; 1005 1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1007 | --libexe | --libex | --libe) 1008 ac_prev=libexecdir ;; 1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1010 | --libexe=* | --libex=* | --libe=*) 1011 libexecdir=$ac_optarg ;; 1012 1013 -localedir | --localedir | --localedi | --localed | --locale) 1014 ac_prev=localedir ;; 1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1016 localedir=$ac_optarg ;; 1017 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1019 | --localstate | --localstat | --localsta | --localst | --locals) 1020 ac_prev=localstatedir ;; 1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1023 localstatedir=$ac_optarg ;; 1024 1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1026 ac_prev=mandir ;; 1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1028 mandir=$ac_optarg ;; 1029 1030 -nfp | --nfp | --nf) 1031 # Obsolete; use --without-fp. 1032 with_fp=no ;; 1033 1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1035 | --no-cr | --no-c | -n) 1036 no_create=yes ;; 1037 1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1040 no_recursion=yes ;; 1041 1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1044 | --oldin | --oldi | --old | --ol | --o) 1045 ac_prev=oldincludedir ;; 1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1049 oldincludedir=$ac_optarg ;; 1050 1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1052 ac_prev=prefix ;; 1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1054 prefix=$ac_optarg ;; 1055 1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1057 | --program-pre | --program-pr | --program-p) 1058 ac_prev=program_prefix ;; 1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1061 program_prefix=$ac_optarg ;; 1062 1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1064 | --program-suf | --program-su | --program-s) 1065 ac_prev=program_suffix ;; 1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1068 program_suffix=$ac_optarg ;; 1069 1070 -program-transform-name | --program-transform-name \ 1071 | --program-transform-nam | --program-transform-na \ 1072 | --program-transform-n | --program-transform- \ 1073 | --program-transform | --program-transfor \ 1074 | --program-transfo | --program-transf \ 1075 | --program-trans | --program-tran \ 1076 | --progr-tra | --program-tr | --program-t) 1077 ac_prev=program_transform_name ;; 1078 -program-transform-name=* | --program-transform-name=* \ 1079 | --program-transform-nam=* | --program-transform-na=* \ 1080 | --program-transform-n=* | --program-transform-=* \ 1081 | --program-transform=* | --program-transfor=* \ 1082 | --program-transfo=* | --program-transf=* \ 1083 | --program-trans=* | --program-tran=* \ 1084 | --progr-tra=* | --program-tr=* | --program-t=*) 1085 program_transform_name=$ac_optarg ;; 1086 1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1088 ac_prev=pdfdir ;; 1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1090 pdfdir=$ac_optarg ;; 1091 1092 -psdir | --psdir | --psdi | --psd | --ps) 1093 ac_prev=psdir ;; 1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1095 psdir=$ac_optarg ;; 1096 1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1098 | -silent | --silent | --silen | --sile | --sil) 1099 silent=yes ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1150 { echo "$as_me: error: invalid package name: $ac_package" >&2 1151 { (exit 1); exit 1; }; } 1152 ac_package=`echo $ac_package| sed 's/-/_/g'` 1153 eval with_$ac_package=\$ac_optarg ;; 1154 1155 -without-* | --without-*) 1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1159 { echo "$as_me: error: invalid package name: $ac_package" >&2 1160 { (exit 1); exit 1; }; } 1161 ac_package=`echo $ac_package | sed 's/-/_/g'` 1162 eval with_$ac_package=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) { echo "$as_me: error: unrecognized option: $ac_option 1183Try \`$0 --help' for more information." >&2 1184 { (exit 1); exit 1; }; } 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1192 { (exit 1); exit 1; }; } 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 { echo "$as_me: error: missing argument to $ac_option" >&2 1210 { (exit 1); exit 1; }; } 1211fi 1212 1213# Be sure to have absolute directory names. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218do 1219 eval ac_val=\$$ac_var 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1225 { (exit 1); exit 1; }; } 1226done 1227 1228# There might be people who depend on the old broken behavior: `$host' 1229# used to hold the argument of --host etc. 1230# FIXME: To remove some day. 1231build=$build_alias 1232host=$host_alias 1233target=$target_alias 1234 1235# FIXME: To remove some day. 1236if test "x$host_alias" != x; then 1237 if test "x$build_alias" = x; then 1238 cross_compiling=maybe 1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1240 If a cross compiler is detected then cross compile mode will be used." >&2 1241 elif test "x$build_alias" != "x$host_alias"; then 1242 cross_compiling=yes 1243 fi 1244fi 1245 1246ac_tool_prefix= 1247test -n "$host_alias" && ac_tool_prefix=$host_alias- 1248 1249test "$silent" = yes && exec 6>/dev/null 1250 1251 1252ac_pwd=`pwd` && test -n "$ac_pwd" && 1253ac_ls_di=`ls -di .` && 1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1255 { echo "$as_me: error: Working directory cannot be determined" >&2 1256 { (exit 1); exit 1; }; } 1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1258 { echo "$as_me: error: pwd does not report name of working directory" >&2 1259 { (exit 1); exit 1; }; } 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$0" || 1267$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$0" : 'X\(//\)[^/]' \| \ 1269 X"$0" : 'X\(//\)$' \| \ 1270 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1271echo X"$0" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1299 { (exit 1); exit 1; }; } 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1304 { (exit 1); exit 1; }; } 1305 pwd)` 1306# When building in place, set srcdir=. 1307if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309fi 1310# Remove unnecessary trailing slashes from srcdir. 1311# Double slashes in file names in object file debugging info 1312# mess up M-x gdb in Emacs. 1313case $srcdir in 1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315esac 1316for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321done 1322 1323# 1324# Report the --help message. 1325# 1326if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330\`configure' configures LLVM 3.3svn to adapt to many kinds of systems. 1331 1332Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337Defaults for the options are specified in brackets. 1338 1339Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356By default, \`make install' will install all the files in 1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359for instance \`--prefix=\$HOME'. 1360 1361For better control, use the options below. 1362 1363Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383_ACEOF 1384 1385 cat <<\_ACEOF 1386 1387System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390 --target=TARGET configure for building compilers for TARGET [HOST] 1391_ACEOF 1392fi 1393 1394if test -n "$ac_init_help"; then 1395 case $ac_init_help in 1396 short | recursive ) echo "Configuration of LLVM 3.3svn:";; 1397 esac 1398 cat <<\_ACEOF 1399 1400Optional Features: 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --enable-polly Use polly if available (default is YES) 1404 --enable-libcpp Use libc++ if available (default is NO) 1405 --enable-cxx11 Use c++11 if available (default is NO) 1406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1407 --enable-clang-static-analyzer 1408 Enable building of clang Static Analyzer (default is 1409 YES) 1410 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1411 --enable-optimized Compile with optimizations enabled (default is NO) 1412 --enable-profiling Compile with profiling enabled (default is NO) 1413 --enable-assertions Compile with assertion checks enabled (default is 1414 YES) 1415 --enable-werror Compile with -Werror enabled (default is NO) 1416 --enable-expensive-checks 1417 Compile with expensive debug checks enabled (default 1418 is NO) 1419 --enable-debug-runtime Build runtime libs with debug symbols (default is 1420 NO) 1421 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1422 optimization is on and YES if it's off) 1423 --enable-keep-symbols Do not strip installed executables) 1424 --enable-jit Enable Just In Time Compiling (default is YES) 1425 --enable-docs Build documents (default is YES) 1426 --enable-doxygen Build doxygen documentation (default is NO) 1427 --enable-threads Use threads if available (default is YES) 1428 --enable-pthreads Use pthreads if available (default is YES) 1429 --enable-pic Build LLVM with Position Independent Code (default 1430 is YES) 1431 --enable-shared Build a shared library and link tools against it 1432 (default is NO) 1433 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1434 Win32 DLL (default is NO) 1435 --enable-timestamps Enable embedding timestamp information in build 1436 (default is YES) 1437 --enable-backtraces Enable embedding backtraces on crash (default is 1438 YES) 1439 --enable-targets Build specific host targets: all or 1440 target1,target2,... Valid targets are: host, x86, 1441 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1442 xcore, msp430, nvptx, and cpp (default=all) 1443 --enable-experimental-targets 1444 Build experimental host targets: disable or 1445 target1,target2,... (default=disable) 1446 --enable-bindings Build specific language bindings: 1447 all,auto,none,{binding-name} (default=auto) 1448 --enable-libffi Check for the presence of libffi (default is NO) 1449 --enable-ltdl-install install libltdl 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-optimize-option Select the compiler options to use for optimized 1455 builds 1456 --with-extra-options Specify additional options to compile LLVM with 1457 --with-extra-ld-options Specify additional options to link LLVM with 1458 --with-ocaml-libdir Specify install location for ocaml bindings (default 1459 is stdlib) 1460 --with-clang-srcdir Directory to the out-of-tree Clang source 1461 --with-clang-resource-dir 1462 Relative directory from the Clang binary for 1463 resource files 1464 --with-c-include-dirs Colon separated list of directories clang will 1465 search for headers 1466 --with-gcc-toolchain Directory where gcc is installed. 1467 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1468 --with-binutils-include Specify path to binutils/include/ containing 1469 plugin-api.h file for gold plugin. 1470 --with-bug-report-url Specify the URL where bug reports should be 1471 submitted (default=http://llvm.org/bugs/) 1472 --with-internal-prefix Installation directory for internal files 1473 --with-python path to python 1474 --with-udis86=<path> Use udis86 external x86 disassembler library 1475 --with-oprofile=<prefix> 1476 Tell OProfile >= 0.9.4 how to symbolize JIT output 1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1478 1479 1480Some influential environment variables: 1481 CC C compiler command 1482 CFLAGS C compiler flags 1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1484 nonstandard directory <lib dir> 1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1486 you have headers in a nonstandard directory <include dir> 1487 CXX C++ compiler command 1488 CXXFLAGS C++ compiler flags 1489 CPP C preprocessor 1490 1491Use these variables to override the choices made by `configure' or to help 1492it to find libraries and programs with nonstandard names/locations. 1493 1494Report bugs to <http://llvm.org/bugs/>. 1495_ACEOF 1496ac_status=$? 1497fi 1498 1499if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || continue 1503 ac_builddir=. 1504 1505case "$ac_dir" in 1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507*) 1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1509 # A ".." for each directory in $ac_dir_suffix. 1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1511 case $ac_top_builddir_sub in 1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1514 esac ;; 1515esac 1516ac_abs_top_builddir=$ac_pwd 1517ac_abs_builddir=$ac_pwd$ac_dir_suffix 1518# for backward compatibility: 1519ac_top_builddir=$ac_top_build_prefix 1520 1521case $srcdir in 1522 .) # We are building in place. 1523 ac_srcdir=. 1524 ac_top_srcdir=$ac_top_builddir_sub 1525 ac_abs_top_srcdir=$ac_pwd ;; 1526 [\\/]* | ?:[\\/]* ) # Absolute name. 1527 ac_srcdir=$srcdir$ac_dir_suffix; 1528 ac_top_srcdir=$srcdir 1529 ac_abs_top_srcdir=$srcdir ;; 1530 *) # Relative name. 1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1532 ac_top_srcdir=$ac_top_build_prefix$srcdir 1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1534esac 1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1536 1537 cd "$ac_dir" || { ac_status=$?; continue; } 1538 # Check for guested configure. 1539 if test -f "$ac_srcdir/configure.gnu"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1542 elif test -f "$ac_srcdir/configure"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure" --help=recursive 1545 else 1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1547 fi || ac_status=$? 1548 cd "$ac_pwd" || { ac_status=$?; break; } 1549 done 1550fi 1551 1552test -n "$ac_init_help" && exit $ac_status 1553if $ac_init_version; then 1554 cat <<\_ACEOF 1555LLVM configure 3.3svn 1556generated by GNU Autoconf 2.60 1557 1558Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1560This configure script is free software; the Free Software Foundation 1561gives unlimited permission to copy, distribute and modify it. 1562 1563Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1564_ACEOF 1565 exit 1566fi 1567cat >config.log <<_ACEOF 1568This file contains any messages produced by compilers while 1569running configure, to aid debugging if configure makes a mistake. 1570 1571It was created by LLVM $as_me 3.3svn, which was 1572generated by GNU Autoconf 2.60. Invocation command line was 1573 1574 $ $0 $@ 1575 1576_ACEOF 1577exec 5>>config.log 1578{ 1579cat <<_ASUNAME 1580## --------- ## 1581## Platform. ## 1582## --------- ## 1583 1584hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1585uname -m = `(uname -m) 2>/dev/null || echo unknown` 1586uname -r = `(uname -r) 2>/dev/null || echo unknown` 1587uname -s = `(uname -s) 2>/dev/null || echo unknown` 1588uname -v = `(uname -v) 2>/dev/null || echo unknown` 1589 1590/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1591/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1592 1593/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1594/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1595/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1596/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1597/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1598/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1599/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1600 1601_ASUNAME 1602 1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1604for as_dir in $PATH 1605do 1606 IFS=$as_save_IFS 1607 test -z "$as_dir" && as_dir=. 1608 echo "PATH: $as_dir" 1609done 1610IFS=$as_save_IFS 1611 1612} >&5 1613 1614cat >&5 <<_ACEOF 1615 1616 1617## ----------- ## 1618## Core tests. ## 1619## ----------- ## 1620 1621_ACEOF 1622 1623 1624# Keep a trace of the command line. 1625# Strip out --no-create and --no-recursion so they do not pile up. 1626# Strip out --silent because we don't want to record it for future runs. 1627# Also quote any args containing shell meta-characters. 1628# Make two passes to allow for proper duplicate-argument suppression. 1629ac_configure_args= 1630ac_configure_args0= 1631ac_configure_args1= 1632ac_must_keep_next=false 1633for ac_pass in 1 2 1634do 1635 for ac_arg 1636 do 1637 case $ac_arg in 1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1640 | -silent | --silent | --silen | --sile | --sil) 1641 continue ;; 1642 *\'*) 1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1644 esac 1645 case $ac_pass in 1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1647 2) 1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1649 if test $ac_must_keep_next = true; then 1650 ac_must_keep_next=false # Got value, back to normal. 1651 else 1652 case $ac_arg in 1653 *=* | --config-cache | -C | -disable-* | --disable-* \ 1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1656 | -with-* | --with-* | -without-* | --without-* | --x) 1657 case "$ac_configure_args0 " in 1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1659 esac 1660 ;; 1661 -* ) ac_must_keep_next=true ;; 1662 esac 1663 fi 1664 ac_configure_args="$ac_configure_args '$ac_arg'" 1665 ;; 1666 esac 1667 done 1668done 1669$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1670$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1671 1672# When interrupted or exit'd, cleanup temporary files, and complete 1673# config.log. We remove comments because anyway the quotes in there 1674# would cause problems or look ugly. 1675# WARNING: Use '\'' to represent an apostrophe within the trap. 1676# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1677trap 'exit_status=$? 1678 # Save into config.log some information that might help in debugging. 1679 { 1680 echo 1681 1682 cat <<\_ASBOX 1683## ---------------- ## 1684## Cache variables. ## 1685## ---------------- ## 1686_ASBOX 1687 echo 1688 # The following way of writing the cache mishandles newlines in values, 1689( 1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1691 eval ac_val=\$$ac_var 1692 case $ac_val in #( 1693 *${as_nl}*) 1694 case $ac_var in #( 1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1696echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1697 esac 1698 case $ac_var in #( 1699 _ | IFS | as_nl) ;; #( 1700 *) $as_unset $ac_var ;; 1701 esac ;; 1702 esac 1703 done 1704 (set) 2>&1 | 1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1706 *${as_nl}ac_space=\ *) 1707 sed -n \ 1708 "s/'\''/'\''\\\\'\'''\''/g; 1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1710 ;; #( 1711 *) 1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1713 ;; 1714 esac | 1715 sort 1716) 1717 echo 1718 1719 cat <<\_ASBOX 1720## ----------------- ## 1721## Output variables. ## 1722## ----------------- ## 1723_ASBOX 1724 echo 1725 for ac_var in $ac_subst_vars 1726 do 1727 eval ac_val=\$$ac_var 1728 case $ac_val in 1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1730 esac 1731 echo "$ac_var='\''$ac_val'\''" 1732 done | sort 1733 echo 1734 1735 if test -n "$ac_subst_files"; then 1736 cat <<\_ASBOX 1737## ------------------- ## 1738## File substitutions. ## 1739## ------------------- ## 1740_ASBOX 1741 echo 1742 for ac_var in $ac_subst_files 1743 do 1744 eval ac_val=\$$ac_var 1745 case $ac_val in 1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1747 esac 1748 echo "$ac_var='\''$ac_val'\''" 1749 done | sort 1750 echo 1751 fi 1752 1753 if test -s confdefs.h; then 1754 cat <<\_ASBOX 1755## ----------- ## 1756## confdefs.h. ## 1757## ----------- ## 1758_ASBOX 1759 echo 1760 cat confdefs.h 1761 echo 1762 fi 1763 test "$ac_signal" != 0 && 1764 echo "$as_me: caught signal $ac_signal" 1765 echo "$as_me: exit $exit_status" 1766 } >&5 1767 rm -f core *.core core.conftest.* && 1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1769 exit $exit_status 1770' 0 1771for ac_signal in 1 2 13 15; do 1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1773done 1774ac_signal=0 1775 1776# confdefs.h avoids OS command line length limits that DEFS can exceed. 1777rm -f -r conftest* confdefs.h 1778 1779# Predefined preprocessor variables. 1780 1781cat >>confdefs.h <<_ACEOF 1782#define PACKAGE_NAME "$PACKAGE_NAME" 1783_ACEOF 1784 1785 1786cat >>confdefs.h <<_ACEOF 1787#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1788_ACEOF 1789 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_VERSION "$PACKAGE_VERSION" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_STRING "$PACKAGE_STRING" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1803_ACEOF 1804 1805 1806# Let the site file select an alternate cache file if it wants to. 1807# Prefer explicitly selected file to automatically selected ones. 1808if test -n "$CONFIG_SITE"; then 1809 set x "$CONFIG_SITE" 1810elif test "x$prefix" != xNONE; then 1811 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1812else 1813 set x "$ac_default_prefix/share/config.site" \ 1814 "$ac_default_prefix/etc/config.site" 1815fi 1816shift 1817for ac_site_file 1818do 1819 if test -r "$ac_site_file"; then 1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1821echo "$as_me: loading site script $ac_site_file" >&6;} 1822 sed 's/^/| /' "$ac_site_file" >&5 1823 . "$ac_site_file" 1824 fi 1825done 1826 1827if test -r "$cache_file"; then 1828 # Some versions of bash will fail to source /dev/null (special 1829 # files actually), so we avoid doing that. 1830 if test -f "$cache_file"; then 1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1832echo "$as_me: loading cache $cache_file" >&6;} 1833 case $cache_file in 1834 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1835 *) . "./$cache_file";; 1836 esac 1837 fi 1838else 1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1840echo "$as_me: creating cache $cache_file" >&6;} 1841 >$cache_file 1842fi 1843 1844# Check that the precious variables saved in the cache have kept the same 1845# value. 1846ac_cache_corrupted=false 1847for ac_var in $ac_precious_vars; do 1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1849 eval ac_new_set=\$ac_env_${ac_var}_set 1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1851 eval ac_new_val=\$ac_env_${ac_var}_value 1852 case $ac_old_set,$ac_new_set in 1853 set,) 1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1855echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1856 ac_cache_corrupted=: ;; 1857 ,set) 1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1859echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1860 ac_cache_corrupted=: ;; 1861 ,);; 1862 *) 1863 if test "x$ac_old_val" != "x$ac_new_val"; then 1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1865echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1867echo "$as_me: former value: $ac_old_val" >&2;} 1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1869echo "$as_me: current value: $ac_new_val" >&2;} 1870 ac_cache_corrupted=: 1871 fi;; 1872 esac 1873 # Pass precious variables to config.status. 1874 if test "$ac_new_set" = set; then 1875 case $ac_new_val in 1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1877 *) ac_arg=$ac_var=$ac_new_val ;; 1878 esac 1879 case " $ac_configure_args " in 1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1882 esac 1883 fi 1884done 1885if $ac_cache_corrupted; then 1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1887echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1889echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1890 { (exit 1); exit 1; }; } 1891fi 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917ac_ext=c 1918ac_cpp='$CPP $CPPFLAGS' 1919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1921ac_compiler_gnu=$ac_cv_c_compiler_gnu 1922 1923 1924 1925cat >>confdefs.h <<\_ACEOF 1926#define LLVM_VERSION_MAJOR 3 1927_ACEOF 1928 1929 1930cat >>confdefs.h <<\_ACEOF 1931#define LLVM_VERSION_MINOR 3 1932_ACEOF 1933 1934 1935LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1936 1937 1938 1939 1940 1941 1942 1943ac_aux_dir= 1944for ac_dir in autoconf "$srcdir"/autoconf; do 1945 if test -f "$ac_dir/install-sh"; then 1946 ac_aux_dir=$ac_dir 1947 ac_install_sh="$ac_aux_dir/install-sh -c" 1948 break 1949 elif test -f "$ac_dir/install.sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install.sh -c" 1952 break 1953 elif test -f "$ac_dir/shtool"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/shtool install -c" 1956 break 1957 fi 1958done 1959if test -z "$ac_aux_dir"; then 1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1961echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1962 { (exit 1); exit 1; }; } 1963fi 1964 1965# These three variables are undocumented and unsupported, 1966# and are intended to be withdrawn in a future Autoconf release. 1967# They can cause serious problems if a builder's source tree is in a directory 1968# whose full name contains unusual characters. 1969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1972 1973 1974 1975if test ${srcdir} != "." ; then 1976 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1977 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1978echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1979 { (exit 1); exit 1; }; } 1980 fi 1981fi 1982 1983${CFLAGS=} 1984${CXXFLAGS=} 1985 1986ac_ext=c 1987ac_cpp='$CPP $CPPFLAGS' 1988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1990ac_compiler_gnu=$ac_cv_c_compiler_gnu 1991if test -n "$ac_tool_prefix"; then 1992 for ac_prog in clang llvm-gcc gcc 1993 do 1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1995set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1996{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1998if test "${ac_cv_prog_CC+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 if test -n "$CC"; then 2002 ac_cv_prog_CC="$CC" # Let the user override the test. 2003else 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 break 2 2014 fi 2015done 2016done 2017IFS=$as_save_IFS 2018 2019fi 2020fi 2021CC=$ac_cv_prog_CC 2022if test -n "$CC"; then 2023 { echo "$as_me:$LINENO: result: $CC" >&5 2024echo "${ECHO_T}$CC" >&6; } 2025else 2026 { echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6; } 2028fi 2029 2030 2031 test -n "$CC" && break 2032 done 2033fi 2034if test -z "$CC"; then 2035 ac_ct_CC=$CC 2036 for ac_prog in clang llvm-gcc gcc 2037do 2038 # Extract the first word of "$ac_prog", so it can be a program name with args. 2039set dummy $ac_prog; ac_word=$2 2040{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2043 echo $ECHO_N "(cached) $ECHO_C" >&6 2044else 2045 if test -n "$ac_ct_CC"; then 2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2047else 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 for ac_exec_ext in '' $ac_executable_extensions; do 2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2055 ac_cv_prog_ac_ct_CC="$ac_prog" 2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2057 break 2 2058 fi 2059done 2060done 2061IFS=$as_save_IFS 2062 2063fi 2064fi 2065ac_ct_CC=$ac_cv_prog_ac_ct_CC 2066if test -n "$ac_ct_CC"; then 2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2068echo "${ECHO_T}$ac_ct_CC" >&6; } 2069else 2070 { echo "$as_me:$LINENO: result: no" >&5 2071echo "${ECHO_T}no" >&6; } 2072fi 2073 2074 2075 test -n "$ac_ct_CC" && break 2076done 2077 2078 if test "x$ac_ct_CC" = x; then 2079 CC="" 2080 else 2081 case $cross_compiling:$ac_tool_warned in 2082yes:) 2083{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2084whose name does not start with the host triplet. If you think this 2085configuration is useful to you, please write to autoconf@gnu.org." >&5 2086echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2087whose name does not start with the host triplet. If you think this 2088configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2089ac_tool_warned=yes ;; 2090esac 2091 CC=$ac_ct_CC 2092 fi 2093fi 2094 2095 2096test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2097See \`config.log' for more details." >&5 2098echo "$as_me: error: no acceptable C compiler found in \$PATH 2099See \`config.log' for more details." >&2;} 2100 { (exit 1); exit 1; }; } 2101 2102# Provide some information about the compiler. 2103echo "$as_me:$LINENO: checking for C compiler version" >&5 2104ac_compiler=`set X $ac_compile; echo $2` 2105{ (ac_try="$ac_compiler --version >&5" 2106case "(($ac_try" in 2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2108 *) ac_try_echo=$ac_try;; 2109esac 2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2111 (eval "$ac_compiler --version >&5") 2>&5 2112 ac_status=$? 2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2114 (exit $ac_status); } 2115{ (ac_try="$ac_compiler -v >&5" 2116case "(($ac_try" in 2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2118 *) ac_try_echo=$ac_try;; 2119esac 2120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2121 (eval "$ac_compiler -v >&5") 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); } 2125{ (ac_try="$ac_compiler -V >&5" 2126case "(($ac_try" in 2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2128 *) ac_try_echo=$ac_try;; 2129esac 2130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2131 (eval "$ac_compiler -V >&5") 2>&5 2132 ac_status=$? 2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); } 2135 2136cat >conftest.$ac_ext <<_ACEOF 2137/* confdefs.h. */ 2138_ACEOF 2139cat confdefs.h >>conftest.$ac_ext 2140cat >>conftest.$ac_ext <<_ACEOF 2141/* end confdefs.h. */ 2142 2143int 2144main () 2145{ 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151ac_clean_files_save=$ac_clean_files 2152ac_clean_files="$ac_clean_files a.out a.exe b.out" 2153# Try to create an executable without -o first, disregard a.out. 2154# It will help us diagnose broken compilers, and finding out an intuition 2155# of exeext. 2156{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2157echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2158ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2159# 2160# List of possible output files, starting from the most likely. 2161# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2162# only as a last resort. b.out is created by i960 compilers. 2163ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2164# 2165# The IRIX 6 linker writes into existing files which may not be 2166# executable, retaining their permissions. Remove them first so a 2167# subsequent execution test works. 2168ac_rmfiles= 2169for ac_file in $ac_files 2170do 2171 case $ac_file in 2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2173 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2174 esac 2175done 2176rm -f $ac_rmfiles 2177 2178if { (ac_try="$ac_link_default" 2179case "(($ac_try" in 2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2181 *) ac_try_echo=$ac_try;; 2182esac 2183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2184 (eval "$ac_link_default") 2>&5 2185 ac_status=$? 2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2187 (exit $ac_status); }; then 2188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2189# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2190# in a Makefile. We should not override ac_cv_exeext if it was cached, 2191# so that the user can short-circuit this test for compilers unknown to 2192# Autoconf. 2193for ac_file in $ac_files 2194do 2195 test -f "$ac_file" || continue 2196 case $ac_file in 2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2198 ;; 2199 [ab].out ) 2200 # We found the default executable, but exeext='' is most 2201 # certainly right. 2202 break;; 2203 *.* ) 2204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2205 then :; else 2206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2207 fi 2208 # We set ac_cv_exeext here because the later test for it is not 2209 # safe: cross compilers may not add the suffix if given an `-o' 2210 # argument, so we may need to know it at that point already. 2211 # Even if this section looks crufty: it has the advantage of 2212 # actually working. 2213 break;; 2214 * ) 2215 break;; 2216 esac 2217done 2218test "$ac_cv_exeext" = no && ac_cv_exeext= 2219 2220else 2221 echo "$as_me: failed program was:" >&5 2222sed 's/^/| /' conftest.$ac_ext >&5 2223 2224{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2225See \`config.log' for more details." >&5 2226echo "$as_me: error: C compiler cannot create executables 2227See \`config.log' for more details." >&2;} 2228 { (exit 77); exit 77; }; } 2229fi 2230 2231ac_exeext=$ac_cv_exeext 2232{ echo "$as_me:$LINENO: result: $ac_file" >&5 2233echo "${ECHO_T}$ac_file" >&6; } 2234 2235# Check that the compiler produces executables we can run. If not, either 2236# the compiler is broken, or we cross compile. 2237{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2238echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2239# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2240# If not cross compiling, check that we can run a simple program. 2241if test "$cross_compiling" != yes; then 2242 if { ac_try='./$ac_file' 2243 { (case "(($ac_try" in 2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2245 *) ac_try_echo=$ac_try;; 2246esac 2247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2248 (eval "$ac_try") 2>&5 2249 ac_status=$? 2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2251 (exit $ac_status); }; }; then 2252 cross_compiling=no 2253 else 2254 if test "$cross_compiling" = maybe; then 2255 cross_compiling=yes 2256 else 2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2258If you meant to cross compile, use \`--host'. 2259See \`config.log' for more details." >&5 2260echo "$as_me: error: cannot run C compiled programs. 2261If you meant to cross compile, use \`--host'. 2262See \`config.log' for more details." >&2;} 2263 { (exit 1); exit 1; }; } 2264 fi 2265 fi 2266fi 2267{ echo "$as_me:$LINENO: result: yes" >&5 2268echo "${ECHO_T}yes" >&6; } 2269 2270rm -f a.out a.exe conftest$ac_cv_exeext b.out 2271ac_clean_files=$ac_clean_files_save 2272# Check that the compiler produces executables we can run. If not, either 2273# the compiler is broken, or we cross compile. 2274{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2276{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2277echo "${ECHO_T}$cross_compiling" >&6; } 2278 2279{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2281if { (ac_try="$ac_link" 2282case "(($ac_try" in 2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2284 *) ac_try_echo=$ac_try;; 2285esac 2286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2287 (eval "$ac_link") 2>&5 2288 ac_status=$? 2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2290 (exit $ac_status); }; then 2291 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2292# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2293# work properly (i.e., refer to `conftest.exe'), while it won't with 2294# `rm'. 2295for ac_file in conftest.exe conftest conftest.*; do 2296 test -f "$ac_file" || continue 2297 case $ac_file in 2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2300 break;; 2301 * ) break;; 2302 esac 2303done 2304else 2305 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2306See \`config.log' for more details." >&5 2307echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2308See \`config.log' for more details." >&2;} 2309 { (exit 1); exit 1; }; } 2310fi 2311 2312rm -f conftest$ac_cv_exeext 2313{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2314echo "${ECHO_T}$ac_cv_exeext" >&6; } 2315 2316rm -f conftest.$ac_ext 2317EXEEXT=$ac_cv_exeext 2318ac_exeext=$EXEEXT 2319{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2320echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2321if test "${ac_cv_objext+set}" = set; then 2322 echo $ECHO_N "(cached) $ECHO_C" >&6 2323else 2324 cat >conftest.$ac_ext <<_ACEOF 2325/* confdefs.h. */ 2326_ACEOF 2327cat confdefs.h >>conftest.$ac_ext 2328cat >>conftest.$ac_ext <<_ACEOF 2329/* end confdefs.h. */ 2330 2331int 2332main () 2333{ 2334 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339rm -f conftest.o conftest.obj 2340if { (ac_try="$ac_compile" 2341case "(($ac_try" in 2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2343 *) ac_try_echo=$ac_try;; 2344esac 2345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2346 (eval "$ac_compile") 2>&5 2347 ac_status=$? 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); }; then 2350 for ac_file in conftest.o conftest.obj conftest.*; do 2351 test -f "$ac_file" || continue; 2352 case $ac_file in 2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2355 break;; 2356 esac 2357done 2358else 2359 echo "$as_me: failed program was:" >&5 2360sed 's/^/| /' conftest.$ac_ext >&5 2361 2362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2363See \`config.log' for more details." >&5 2364echo "$as_me: error: cannot compute suffix of object files: cannot compile 2365See \`config.log' for more details." >&2;} 2366 { (exit 1); exit 1; }; } 2367fi 2368 2369rm -f conftest.$ac_cv_objext conftest.$ac_ext 2370fi 2371{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2372echo "${ECHO_T}$ac_cv_objext" >&6; } 2373OBJEXT=$ac_cv_objext 2374ac_objext=$OBJEXT 2375{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2377if test "${ac_cv_c_compiler_gnu+set}" = set; then 2378 echo $ECHO_N "(cached) $ECHO_C" >&6 2379else 2380 cat >conftest.$ac_ext <<_ACEOF 2381/* confdefs.h. */ 2382_ACEOF 2383cat confdefs.h >>conftest.$ac_ext 2384cat >>conftest.$ac_ext <<_ACEOF 2385/* end confdefs.h. */ 2386 2387int 2388main () 2389{ 2390#ifndef __GNUC__ 2391 choke me 2392#endif 2393 2394 ; 2395 return 0; 2396} 2397_ACEOF 2398rm -f conftest.$ac_objext 2399if { (ac_try="$ac_compile" 2400case "(($ac_try" in 2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2402 *) ac_try_echo=$ac_try;; 2403esac 2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2405 (eval "$ac_compile") 2>conftest.er1 2406 ac_status=$? 2407 grep -v '^ *+' conftest.er1 >conftest.err 2408 rm -f conftest.er1 2409 cat conftest.err >&5 2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2411 (exit $ac_status); } && 2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2413 { (case "(($ac_try" in 2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2415 *) ac_try_echo=$ac_try;; 2416esac 2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2418 (eval "$ac_try") 2>&5 2419 ac_status=$? 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); }; } && 2422 { ac_try='test -s conftest.$ac_objext' 2423 { (case "(($ac_try" in 2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2425 *) ac_try_echo=$ac_try;; 2426esac 2427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2428 (eval "$ac_try") 2>&5 2429 ac_status=$? 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); }; }; then 2432 ac_compiler_gnu=yes 2433else 2434 echo "$as_me: failed program was:" >&5 2435sed 's/^/| /' conftest.$ac_ext >&5 2436 2437 ac_compiler_gnu=no 2438fi 2439 2440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2441ac_cv_c_compiler_gnu=$ac_compiler_gnu 2442 2443fi 2444{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2445echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2446GCC=`test $ac_compiler_gnu = yes && echo yes` 2447ac_test_CFLAGS=${CFLAGS+set} 2448ac_save_CFLAGS=$CFLAGS 2449{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2450echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2451if test "${ac_cv_prog_cc_g+set}" = set; then 2452 echo $ECHO_N "(cached) $ECHO_C" >&6 2453else 2454 ac_save_c_werror_flag=$ac_c_werror_flag 2455 ac_c_werror_flag=yes 2456 ac_cv_prog_cc_g=no 2457 CFLAGS="-g" 2458 cat >conftest.$ac_ext <<_ACEOF 2459/* confdefs.h. */ 2460_ACEOF 2461cat confdefs.h >>conftest.$ac_ext 2462cat >>conftest.$ac_ext <<_ACEOF 2463/* end confdefs.h. */ 2464 2465int 2466main () 2467{ 2468 2469 ; 2470 return 0; 2471} 2472_ACEOF 2473rm -f conftest.$ac_objext 2474if { (ac_try="$ac_compile" 2475case "(($ac_try" in 2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2477 *) ac_try_echo=$ac_try;; 2478esac 2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2480 (eval "$ac_compile") 2>conftest.er1 2481 ac_status=$? 2482 grep -v '^ *+' conftest.er1 >conftest.err 2483 rm -f conftest.er1 2484 cat conftest.err >&5 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); } && 2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2488 { (case "(($ac_try" in 2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2490 *) ac_try_echo=$ac_try;; 2491esac 2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2493 (eval "$ac_try") 2>&5 2494 ac_status=$? 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); }; } && 2497 { ac_try='test -s conftest.$ac_objext' 2498 { (case "(($ac_try" in 2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2500 *) ac_try_echo=$ac_try;; 2501esac 2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2503 (eval "$ac_try") 2>&5 2504 ac_status=$? 2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2506 (exit $ac_status); }; }; then 2507 ac_cv_prog_cc_g=yes 2508else 2509 echo "$as_me: failed program was:" >&5 2510sed 's/^/| /' conftest.$ac_ext >&5 2511 2512 CFLAGS="" 2513 cat >conftest.$ac_ext <<_ACEOF 2514/* confdefs.h. */ 2515_ACEOF 2516cat confdefs.h >>conftest.$ac_ext 2517cat >>conftest.$ac_ext <<_ACEOF 2518/* end confdefs.h. */ 2519 2520int 2521main () 2522{ 2523 2524 ; 2525 return 0; 2526} 2527_ACEOF 2528rm -f conftest.$ac_objext 2529if { (ac_try="$ac_compile" 2530case "(($ac_try" in 2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2532 *) ac_try_echo=$ac_try;; 2533esac 2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2535 (eval "$ac_compile") 2>conftest.er1 2536 ac_status=$? 2537 grep -v '^ *+' conftest.er1 >conftest.err 2538 rm -f conftest.er1 2539 cat conftest.err >&5 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); } && 2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2543 { (case "(($ac_try" in 2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2545 *) ac_try_echo=$ac_try;; 2546esac 2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2548 (eval "$ac_try") 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); }; } && 2552 { ac_try='test -s conftest.$ac_objext' 2553 { (case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556esac 2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2558 (eval "$ac_try") 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); }; }; then 2562 : 2563else 2564 echo "$as_me: failed program was:" >&5 2565sed 's/^/| /' conftest.$ac_ext >&5 2566 2567 ac_c_werror_flag=$ac_save_c_werror_flag 2568 CFLAGS="-g" 2569 cat >conftest.$ac_ext <<_ACEOF 2570/* confdefs.h. */ 2571_ACEOF 2572cat confdefs.h >>conftest.$ac_ext 2573cat >>conftest.$ac_ext <<_ACEOF 2574/* end confdefs.h. */ 2575 2576int 2577main () 2578{ 2579 2580 ; 2581 return 0; 2582} 2583_ACEOF 2584rm -f conftest.$ac_objext 2585if { (ac_try="$ac_compile" 2586case "(($ac_try" in 2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2588 *) ac_try_echo=$ac_try;; 2589esac 2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2591 (eval "$ac_compile") 2>conftest.er1 2592 ac_status=$? 2593 grep -v '^ *+' conftest.er1 >conftest.err 2594 rm -f conftest.er1 2595 cat conftest.err >&5 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } && 2598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2599 { (case "(($ac_try" in 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601 *) ac_try_echo=$ac_try;; 2602esac 2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2604 (eval "$ac_try") 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; } && 2608 { ac_try='test -s conftest.$ac_objext' 2609 { (case "(($ac_try" in 2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2611 *) ac_try_echo=$ac_try;; 2612esac 2613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2614 (eval "$ac_try") 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 ac_cv_prog_cc_g=yes 2619else 2620 echo "$as_me: failed program was:" >&5 2621sed 's/^/| /' conftest.$ac_ext >&5 2622 2623 2624fi 2625 2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2627fi 2628 2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2630fi 2631 2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2633 ac_c_werror_flag=$ac_save_c_werror_flag 2634fi 2635{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2636echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2637if test "$ac_test_CFLAGS" = set; then 2638 CFLAGS=$ac_save_CFLAGS 2639elif test $ac_cv_prog_cc_g = yes; then 2640 if test "$GCC" = yes; then 2641 CFLAGS="-g -O2" 2642 else 2643 CFLAGS="-g" 2644 fi 2645else 2646 if test "$GCC" = yes; then 2647 CFLAGS="-O2" 2648 else 2649 CFLAGS= 2650 fi 2651fi 2652{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2653echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2654if test "${ac_cv_prog_cc_c89+set}" = set; then 2655 echo $ECHO_N "(cached) $ECHO_C" >&6 2656else 2657 ac_cv_prog_cc_c89=no 2658ac_save_CC=$CC 2659cat >conftest.$ac_ext <<_ACEOF 2660/* confdefs.h. */ 2661_ACEOF 2662cat confdefs.h >>conftest.$ac_ext 2663cat >>conftest.$ac_ext <<_ACEOF 2664/* end confdefs.h. */ 2665#include <stdarg.h> 2666#include <stdio.h> 2667#include <sys/types.h> 2668#include <sys/stat.h> 2669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2670struct buf { int x; }; 2671FILE * (*rcsopen) (struct buf *, struct stat *, int); 2672static char *e (p, i) 2673 char **p; 2674 int i; 2675{ 2676 return p[i]; 2677} 2678static char *f (char * (*g) (char **, int), char **p, ...) 2679{ 2680 char *s; 2681 va_list v; 2682 va_start (v,p); 2683 s = g (p, va_arg (v,int)); 2684 va_end (v); 2685 return s; 2686} 2687 2688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2689 function prototypes and stuff, but not '\xHH' hex character constants. 2690 These don't provoke an error unfortunately, instead are silently treated 2691 as 'x'. The following induces an error, until -std is added to get 2692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2693 array size at least. It's necessary to write '\x00'==0 to get something 2694 that's true only with -std. */ 2695int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2696 2697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2698 inside strings and character constants. */ 2699#define FOO(x) 'x' 2700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2701 2702int test (int i, double x); 2703struct s1 {int (*f) (int a);}; 2704struct s2 {int (*f) (double a);}; 2705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2706int argc; 2707char **argv; 2708int 2709main () 2710{ 2711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2712 ; 2713 return 0; 2714} 2715_ACEOF 2716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2718do 2719 CC="$ac_save_CC $ac_arg" 2720 rm -f conftest.$ac_objext 2721if { (ac_try="$ac_compile" 2722case "(($ac_try" in 2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2724 *) ac_try_echo=$ac_try;; 2725esac 2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2727 (eval "$ac_compile") 2>conftest.er1 2728 ac_status=$? 2729 grep -v '^ *+' conftest.er1 >conftest.err 2730 rm -f conftest.er1 2731 cat conftest.err >&5 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } && 2734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2735 { (case "(($ac_try" in 2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2737 *) ac_try_echo=$ac_try;; 2738esac 2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2740 (eval "$ac_try") 2>&5 2741 ac_status=$? 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2743 (exit $ac_status); }; } && 2744 { ac_try='test -s conftest.$ac_objext' 2745 { (case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748esac 2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2750 (eval "$ac_try") 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); }; }; then 2754 ac_cv_prog_cc_c89=$ac_arg 2755else 2756 echo "$as_me: failed program was:" >&5 2757sed 's/^/| /' conftest.$ac_ext >&5 2758 2759 2760fi 2761 2762rm -f core conftest.err conftest.$ac_objext 2763 test "x$ac_cv_prog_cc_c89" != "xno" && break 2764done 2765rm -f conftest.$ac_ext 2766CC=$ac_save_CC 2767 2768fi 2769# AC_CACHE_VAL 2770case "x$ac_cv_prog_cc_c89" in 2771 x) 2772 { echo "$as_me:$LINENO: result: none needed" >&5 2773echo "${ECHO_T}none needed" >&6; } ;; 2774 xno) 2775 { echo "$as_me:$LINENO: result: unsupported" >&5 2776echo "${ECHO_T}unsupported" >&6; } ;; 2777 *) 2778 CC="$CC $ac_cv_prog_cc_c89" 2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2780echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2781esac 2782 2783 2784ac_ext=c 2785ac_cpp='$CPP $CPPFLAGS' 2786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2788ac_compiler_gnu=$ac_cv_c_compiler_gnu 2789 2790ac_ext=cpp 2791ac_cpp='$CXXCPP $CPPFLAGS' 2792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2795if test -z "$CXX"; then 2796 if test -n "$CCC"; then 2797 CXX=$CCC 2798 else 2799 if test -n "$ac_tool_prefix"; then 2800 for ac_prog in clang++ llvm-g++ g++ 2801 do 2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2804{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2806if test "${ac_cv_prog_CXX+set}" = set; then 2807 echo $ECHO_N "(cached) $ECHO_C" >&6 2808else 2809 if test -n "$CXX"; then 2810 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CXX=$ac_cv_prog_CXX 2830if test -n "$CXX"; then 2831 { echo "$as_me:$LINENO: result: $CXX" >&5 2832echo "${ECHO_T}$CXX" >&6; } 2833else 2834 { echo "$as_me:$LINENO: result: no" >&5 2835echo "${ECHO_T}no" >&6; } 2836fi 2837 2838 2839 test -n "$CXX" && break 2840 done 2841fi 2842if test -z "$CXX"; then 2843 ac_ct_CXX=$CXX 2844 for ac_prog in clang++ llvm-g++ g++ 2845do 2846 # Extract the first word of "$ac_prog", so it can be a program name with args. 2847set dummy $ac_prog; ac_word=$2 2848{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2850if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2851 echo $ECHO_N "(cached) $ECHO_C" >&6 2852else 2853 if test -n "$ac_ct_CXX"; then 2854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2863 ac_cv_prog_ac_ct_CXX="$ac_prog" 2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2874if test -n "$ac_ct_CXX"; then 2875 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2876echo "${ECHO_T}$ac_ct_CXX" >&6; } 2877else 2878 { echo "$as_me:$LINENO: result: no" >&5 2879echo "${ECHO_T}no" >&6; } 2880fi 2881 2882 2883 test -n "$ac_ct_CXX" && break 2884done 2885 2886 if test "x$ac_ct_CXX" = x; then 2887 CXX="g++" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2892whose name does not start with the host triplet. If you think this 2893configuration is useful to you, please write to autoconf@gnu.org." >&5 2894echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2895whose name does not start with the host triplet. If you think this 2896configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2897ac_tool_warned=yes ;; 2898esac 2899 CXX=$ac_ct_CXX 2900 fi 2901fi 2902 2903 fi 2904fi 2905# Provide some information about the compiler. 2906echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2907ac_compiler=`set X $ac_compile; echo $2` 2908{ (ac_try="$ac_compiler --version >&5" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compiler --version >&5") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918{ (ac_try="$ac_compiler -v >&5" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_compiler -v >&5") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); } 2928{ (ac_try="$ac_compiler -V >&5" 2929case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932esac 2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2934 (eval "$ac_compiler -V >&5") 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } 2938 2939{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2940echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2942 echo $ECHO_N "(cached) $ECHO_C" >&6 2943else 2944 cat >conftest.$ac_ext <<_ACEOF 2945/* confdefs.h. */ 2946_ACEOF 2947cat confdefs.h >>conftest.$ac_ext 2948cat >>conftest.$ac_ext <<_ACEOF 2949/* end confdefs.h. */ 2950 2951int 2952main () 2953{ 2954#ifndef __GNUC__ 2955 choke me 2956#endif 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962rm -f conftest.$ac_objext 2963if { (ac_try="$ac_compile" 2964case "(($ac_try" in 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2966 *) ac_try_echo=$ac_try;; 2967esac 2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2969 (eval "$ac_compile") 2>conftest.er1 2970 ac_status=$? 2971 grep -v '^ *+' conftest.er1 >conftest.err 2972 rm -f conftest.er1 2973 cat conftest.err >&5 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); } && 2976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2977 { (case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; } && 2986 { ac_try='test -s conftest.$ac_objext' 2987 { (case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990esac 2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2992 (eval "$ac_try") 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); }; }; then 2996 ac_compiler_gnu=yes 2997else 2998 echo "$as_me: failed program was:" >&5 2999sed 's/^/| /' conftest.$ac_ext >&5 3000 3001 ac_compiler_gnu=no 3002fi 3003 3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3005ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3006 3007fi 3008{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3009echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3010GXX=`test $ac_compiler_gnu = yes && echo yes` 3011ac_test_CXXFLAGS=${CXXFLAGS+set} 3012ac_save_CXXFLAGS=$CXXFLAGS 3013{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3014echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3015if test "${ac_cv_prog_cxx_g+set}" = set; then 3016 echo $ECHO_N "(cached) $ECHO_C" >&6 3017else 3018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3019 ac_cxx_werror_flag=yes 3020 ac_cv_prog_cxx_g=no 3021 CXXFLAGS="-g" 3022 cat >conftest.$ac_ext <<_ACEOF 3023/* confdefs.h. */ 3024_ACEOF 3025cat confdefs.h >>conftest.$ac_ext 3026cat >>conftest.$ac_ext <<_ACEOF 3027/* end confdefs.h. */ 3028 3029int 3030main () 3031{ 3032 3033 ; 3034 return 0; 3035} 3036_ACEOF 3037rm -f conftest.$ac_objext 3038if { (ac_try="$ac_compile" 3039case "(($ac_try" in 3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041 *) ac_try_echo=$ac_try;; 3042esac 3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3044 (eval "$ac_compile") 2>conftest.er1 3045 ac_status=$? 3046 grep -v '^ *+' conftest.er1 >conftest.err 3047 rm -f conftest.er1 3048 cat conftest.err >&5 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } && 3051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3052 { (case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055esac 3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3057 (eval "$ac_try") 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); }; } && 3061 { ac_try='test -s conftest.$ac_objext' 3062 { (case "(($ac_try" in 3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 *) ac_try_echo=$ac_try;; 3065esac 3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3067 (eval "$ac_try") 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; }; then 3071 ac_cv_prog_cxx_g=yes 3072else 3073 echo "$as_me: failed program was:" >&5 3074sed 's/^/| /' conftest.$ac_ext >&5 3075 3076 CXXFLAGS="" 3077 cat >conftest.$ac_ext <<_ACEOF 3078/* confdefs.h. */ 3079_ACEOF 3080cat confdefs.h >>conftest.$ac_ext 3081cat >>conftest.$ac_ext <<_ACEOF 3082/* end confdefs.h. */ 3083 3084int 3085main () 3086{ 3087 3088 ; 3089 return 0; 3090} 3091_ACEOF 3092rm -f conftest.$ac_objext 3093if { (ac_try="$ac_compile" 3094case "(($ac_try" in 3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3096 *) ac_try_echo=$ac_try;; 3097esac 3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3099 (eval "$ac_compile") 2>conftest.er1 3100 ac_status=$? 3101 grep -v '^ *+' conftest.er1 >conftest.err 3102 rm -f conftest.er1 3103 cat conftest.err >&5 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); } && 3106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3107 { (case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3112 (eval "$ac_try") 2>&5 3113 ac_status=$? 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); }; } && 3116 { ac_try='test -s conftest.$ac_objext' 3117 { (case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120esac 3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3122 (eval "$ac_try") 2>&5 3123 ac_status=$? 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); }; }; then 3126 : 3127else 3128 echo "$as_me: failed program was:" >&5 3129sed 's/^/| /' conftest.$ac_ext >&5 3130 3131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3132 CXXFLAGS="-g" 3133 cat >conftest.$ac_ext <<_ACEOF 3134/* confdefs.h. */ 3135_ACEOF 3136cat confdefs.h >>conftest.$ac_ext 3137cat >>conftest.$ac_ext <<_ACEOF 3138/* end confdefs.h. */ 3139 3140int 3141main () 3142{ 3143 3144 ; 3145 return 0; 3146} 3147_ACEOF 3148rm -f conftest.$ac_objext 3149if { (ac_try="$ac_compile" 3150case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153esac 3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3155 (eval "$ac_compile") 2>conftest.er1 3156 ac_status=$? 3157 grep -v '^ *+' conftest.er1 >conftest.err 3158 rm -f conftest.er1 3159 cat conftest.err >&5 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); } && 3162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3163 { (case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_try") 2>&5 3169 ac_status=$? 3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); }; } && 3172 { ac_try='test -s conftest.$ac_objext' 3173 { (case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_try") 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); }; }; then 3182 ac_cv_prog_cxx_g=yes 3183else 3184 echo "$as_me: failed program was:" >&5 3185sed 's/^/| /' conftest.$ac_ext >&5 3186 3187 3188fi 3189 3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3191fi 3192 3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3194fi 3195 3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3198fi 3199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3200echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3201if test "$ac_test_CXXFLAGS" = set; then 3202 CXXFLAGS=$ac_save_CXXFLAGS 3203elif test $ac_cv_prog_cxx_g = yes; then 3204 if test "$GXX" = yes; then 3205 CXXFLAGS="-g -O2" 3206 else 3207 CXXFLAGS="-g" 3208 fi 3209else 3210 if test "$GXX" = yes; then 3211 CXXFLAGS="-O2" 3212 else 3213 CXXFLAGS= 3214 fi 3215fi 3216ac_ext=c 3217ac_cpp='$CPP $CPPFLAGS' 3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3220ac_compiler_gnu=$ac_cv_c_compiler_gnu 3221 3222ac_ext=c 3223ac_cpp='$CPP $CPPFLAGS' 3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3226ac_compiler_gnu=$ac_cv_c_compiler_gnu 3227{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3228echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3229# On Suns, sometimes $CPP names a directory. 3230if test -n "$CPP" && test -d "$CPP"; then 3231 CPP= 3232fi 3233if test -z "$CPP"; then 3234 if test "${ac_cv_prog_CPP+set}" = set; then 3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3236else 3237 # Double quotes because CPP needs to be expanded 3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3239 do 3240 ac_preproc_ok=false 3241for ac_c_preproc_warn_flag in '' yes 3242do 3243 # Use a header file that comes with gcc, so configuring glibc 3244 # with a fresh cross-compiler works. 3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3246 # <limits.h> exists even on freestanding compilers. 3247 # On the NeXT, cc -E runs the code through the compiler's parser, 3248 # not just through cpp. "Syntax error" is here to catch this case. 3249 cat >conftest.$ac_ext <<_ACEOF 3250/* confdefs.h. */ 3251_ACEOF 3252cat confdefs.h >>conftest.$ac_ext 3253cat >>conftest.$ac_ext <<_ACEOF 3254/* end confdefs.h. */ 3255#ifdef __STDC__ 3256# include <limits.h> 3257#else 3258# include <assert.h> 3259#endif 3260 Syntax error 3261_ACEOF 3262if { (ac_try="$ac_cpp conftest.$ac_ext" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3269 ac_status=$? 3270 grep -v '^ *+' conftest.er1 >conftest.err 3271 rm -f conftest.er1 3272 cat conftest.err >&5 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); } >/dev/null; then 3275 if test -s conftest.err; then 3276 ac_cpp_err=$ac_c_preproc_warn_flag 3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3278 else 3279 ac_cpp_err= 3280 fi 3281else 3282 ac_cpp_err=yes 3283fi 3284if test -z "$ac_cpp_err"; then 3285 : 3286else 3287 echo "$as_me: failed program was:" >&5 3288sed 's/^/| /' conftest.$ac_ext >&5 3289 3290 # Broken: fails on valid input. 3291continue 3292fi 3293 3294rm -f conftest.err conftest.$ac_ext 3295 3296 # OK, works on sane cases. Now check whether nonexistent headers 3297 # can be detected and how. 3298 cat >conftest.$ac_ext <<_ACEOF 3299/* confdefs.h. */ 3300_ACEOF 3301cat confdefs.h >>conftest.$ac_ext 3302cat >>conftest.$ac_ext <<_ACEOF 3303/* end confdefs.h. */ 3304#include <ac_nonexistent.h> 3305_ACEOF 3306if { (ac_try="$ac_cpp conftest.$ac_ext" 3307case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3313 ac_status=$? 3314 grep -v '^ *+' conftest.er1 >conftest.err 3315 rm -f conftest.er1 3316 cat conftest.err >&5 3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3318 (exit $ac_status); } >/dev/null; then 3319 if test -s conftest.err; then 3320 ac_cpp_err=$ac_c_preproc_warn_flag 3321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3322 else 3323 ac_cpp_err= 3324 fi 3325else 3326 ac_cpp_err=yes 3327fi 3328if test -z "$ac_cpp_err"; then 3329 # Broken: success on invalid input. 3330continue 3331else 3332 echo "$as_me: failed program was:" >&5 3333sed 's/^/| /' conftest.$ac_ext >&5 3334 3335 # Passes both tests. 3336ac_preproc_ok=: 3337break 3338fi 3339 3340rm -f conftest.err conftest.$ac_ext 3341 3342done 3343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3344rm -f conftest.err conftest.$ac_ext 3345if $ac_preproc_ok; then 3346 break 3347fi 3348 3349 done 3350 ac_cv_prog_CPP=$CPP 3351 3352fi 3353 CPP=$ac_cv_prog_CPP 3354else 3355 ac_cv_prog_CPP=$CPP 3356fi 3357{ echo "$as_me:$LINENO: result: $CPP" >&5 3358echo "${ECHO_T}$CPP" >&6; } 3359ac_preproc_ok=false 3360for ac_c_preproc_warn_flag in '' yes 3361do 3362 # Use a header file that comes with gcc, so configuring glibc 3363 # with a fresh cross-compiler works. 3364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3365 # <limits.h> exists even on freestanding compilers. 3366 # On the NeXT, cc -E runs the code through the compiler's parser, 3367 # not just through cpp. "Syntax error" is here to catch this case. 3368 cat >conftest.$ac_ext <<_ACEOF 3369/* confdefs.h. */ 3370_ACEOF 3371cat confdefs.h >>conftest.$ac_ext 3372cat >>conftest.$ac_ext <<_ACEOF 3373/* end confdefs.h. */ 3374#ifdef __STDC__ 3375# include <limits.h> 3376#else 3377# include <assert.h> 3378#endif 3379 Syntax error 3380_ACEOF 3381if { (ac_try="$ac_cpp conftest.$ac_ext" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } >/dev/null; then 3394 if test -s conftest.err; then 3395 ac_cpp_err=$ac_c_preproc_warn_flag 3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3397 else 3398 ac_cpp_err= 3399 fi 3400else 3401 ac_cpp_err=yes 3402fi 3403if test -z "$ac_cpp_err"; then 3404 : 3405else 3406 echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 # Broken: fails on valid input. 3410continue 3411fi 3412 3413rm -f conftest.err conftest.$ac_ext 3414 3415 # OK, works on sane cases. Now check whether nonexistent headers 3416 # can be detected and how. 3417 cat >conftest.$ac_ext <<_ACEOF 3418/* confdefs.h. */ 3419_ACEOF 3420cat confdefs.h >>conftest.$ac_ext 3421cat >>conftest.$ac_ext <<_ACEOF 3422/* end confdefs.h. */ 3423#include <ac_nonexistent.h> 3424_ACEOF 3425if { (ac_try="$ac_cpp conftest.$ac_ext" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3432 ac_status=$? 3433 grep -v '^ *+' conftest.er1 >conftest.err 3434 rm -f conftest.er1 3435 cat conftest.err >&5 3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3437 (exit $ac_status); } >/dev/null; then 3438 if test -s conftest.err; then 3439 ac_cpp_err=$ac_c_preproc_warn_flag 3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3441 else 3442 ac_cpp_err= 3443 fi 3444else 3445 ac_cpp_err=yes 3446fi 3447if test -z "$ac_cpp_err"; then 3448 # Broken: success on invalid input. 3449continue 3450else 3451 echo "$as_me: failed program was:" >&5 3452sed 's/^/| /' conftest.$ac_ext >&5 3453 3454 # Passes both tests. 3455ac_preproc_ok=: 3456break 3457fi 3458 3459rm -f conftest.err conftest.$ac_ext 3460 3461done 3462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3463rm -f conftest.err conftest.$ac_ext 3464if $ac_preproc_ok; then 3465 : 3466else 3467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3468See \`config.log' for more details." >&5 3469echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3470See \`config.log' for more details." >&2;} 3471 { (exit 1); exit 1; }; } 3472fi 3473 3474ac_ext=c 3475ac_cpp='$CPP $CPPFLAGS' 3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479 3480 3481if test "$CXX" = "clang++" ; then 3482 { echo "$as_me:$LINENO: checking whether clang works" >&5 3483echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3484 ac_ext=cpp 3485ac_cpp='$CXXCPP $CPPFLAGS' 3486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3489 3490 3491cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497#include <limits> 3498#if __has_include (<cxxabi.h>) 3499#include <cxxabi.h> 3500#endif 3501#if __has_include (<unwind.h>) 3502#include <unwind.h> 3503#endif 3504 3505int 3506main () 3507{ 3508 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513rm -f conftest.$ac_objext 3514if { (ac_try="$ac_compile" 3515case "(($ac_try" in 3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3517 *) ac_try_echo=$ac_try;; 3518esac 3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3520 (eval "$ac_compile") 2>conftest.er1 3521 ac_status=$? 3522 grep -v '^ *+' conftest.er1 >conftest.err 3523 rm -f conftest.er1 3524 cat conftest.err >&5 3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3526 (exit $ac_status); } && 3527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3528 { (case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3533 (eval "$ac_try") 2>&5 3534 ac_status=$? 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); }; } && 3537 { ac_try='test -s conftest.$ac_objext' 3538 { (case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3543 (eval "$ac_try") 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); }; }; then 3547 3548 { echo "$as_me:$LINENO: result: yes" >&5 3549echo "${ECHO_T}yes" >&6; } 3550 3551else 3552 echo "$as_me: failed program was:" >&5 3553sed 's/^/| /' conftest.$ac_ext >&5 3554 3555 3556 { echo "$as_me:$LINENO: result: no" >&5 3557echo "${ECHO_T}no" >&6; } 3558 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 3559echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3560 { (exit 1); exit 1; }; } 3561 3562fi 3563 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565 ac_ext=c 3566ac_cpp='$CPP $CPPFLAGS' 3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570 3571fi 3572 3573 3574 3575if test -d ${srcdir}/projects/llvm-gcc ; then 3576 subdirs="$subdirs projects/llvm-gcc" 3577 3578fi 3579 3580if test -d ${srcdir}/projects/test-suite ; then 3581 subdirs="$subdirs projects/test-suite" 3582 3583fi 3584 3585if test -d ${srcdir}/projects/llvm-test ; then 3586 subdirs="$subdirs projects/llvm-test" 3587 3588fi 3589 3590if test -d ${srcdir}/projects/poolalloc ; then 3591 subdirs="$subdirs projects/poolalloc" 3592 3593fi 3594 3595if test -d ${srcdir}/projects/llvm-poolalloc ; then 3596 subdirs="$subdirs projects/llvm-poolalloc" 3597 3598fi 3599 3600for i in `ls ${srcdir}/projects` 3601do 3602 if test -d ${srcdir}/projects/${i} ; then 3603 case ${i} in 3604 sample) subdirs="$subdirs projects/sample" 3605 ;; 3606 privbracket) subdirs="$subdirs projects/privbracket" 3607 ;; 3608 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3609 ;; 3610 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3611;; 3612 llvm-java) subdirs="$subdirs projects/llvm-java" 3613 ;; 3614 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3615 ;; 3616 safecode) subdirs="$subdirs projects/safecode" 3617 ;; 3618 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3619 ;; 3620 compiler-rt) ;; 3621 llvm-gcc) ;; 3622 test-suite) ;; 3623 llvm-test) ;; 3624 poolalloc) ;; 3625 llvm-poolalloc) ;; 3626 *) 3627 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3628echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3629 ;; 3630 esac 3631 fi 3632done 3633 3634# Check whether --enable-polly was given. 3635if test "${enable_polly+set}" = set; then 3636 enableval=$enable_polly; 3637else 3638 enableval=default 3639fi 3640 3641case "$enableval" in 3642 yes) ENABLE_POLLY=1 3643 ;; 3644 no) ENABLE_POLLY=0 3645 ;; 3646 default) ENABLE_POLLY=1 3647 ;; 3648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3649echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3650 { (exit 1); exit 1; }; } ;; 3651esac 3652 3653 3654if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3655 LLVM_HAS_POLLY=1 3656 3657 subdirs="$subdirs tools/polly" 3658 3659fi 3660 3661 3662# Make sure we can run config.sub. 3663$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3664 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3665echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3666 { (exit 1); exit 1; }; } 3667 3668{ echo "$as_me:$LINENO: checking build system type" >&5 3669echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3670if test "${ac_cv_build+set}" = set; then 3671 echo $ECHO_N "(cached) $ECHO_C" >&6 3672else 3673 ac_build_alias=$build_alias 3674test "x$ac_build_alias" = x && 3675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3676test "x$ac_build_alias" = x && 3677 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3678echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3679 { (exit 1); exit 1; }; } 3680ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3681 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3682echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3683 { (exit 1); exit 1; }; } 3684 3685fi 3686{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3687echo "${ECHO_T}$ac_cv_build" >&6; } 3688case $ac_cv_build in 3689*-*-*) ;; 3690*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3691echo "$as_me: error: invalid value of canonical build" >&2;} 3692 { (exit 1); exit 1; }; };; 3693esac 3694build=$ac_cv_build 3695ac_save_IFS=$IFS; IFS='-' 3696set x $ac_cv_build 3697shift 3698build_cpu=$1 3699build_vendor=$2 3700shift; shift 3701# Remember, the first character of IFS is used to create $*, 3702# except with old shells: 3703build_os=$* 3704IFS=$ac_save_IFS 3705case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3706 3707 3708{ echo "$as_me:$LINENO: checking host system type" >&5 3709echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3710if test "${ac_cv_host+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712else 3713 if test "x$host_alias" = x; then 3714 ac_cv_host=$ac_cv_build 3715else 3716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3717 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3718echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3719 { (exit 1); exit 1; }; } 3720fi 3721 3722fi 3723{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3724echo "${ECHO_T}$ac_cv_host" >&6; } 3725case $ac_cv_host in 3726*-*-*) ;; 3727*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3728echo "$as_me: error: invalid value of canonical host" >&2;} 3729 { (exit 1); exit 1; }; };; 3730esac 3731host=$ac_cv_host 3732ac_save_IFS=$IFS; IFS='-' 3733set x $ac_cv_host 3734shift 3735host_cpu=$1 3736host_vendor=$2 3737shift; shift 3738# Remember, the first character of IFS is used to create $*, 3739# except with old shells: 3740host_os=$* 3741IFS=$ac_save_IFS 3742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3743 3744 3745{ echo "$as_me:$LINENO: checking target system type" >&5 3746echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3747if test "${ac_cv_target+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 if test "x$target_alias" = x; then 3751 ac_cv_target=$ac_cv_host 3752else 3753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3755echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3756 { (exit 1); exit 1; }; } 3757fi 3758 3759fi 3760{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3761echo "${ECHO_T}$ac_cv_target" >&6; } 3762case $ac_cv_target in 3763*-*-*) ;; 3764*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3765echo "$as_me: error: invalid value of canonical target" >&2;} 3766 { (exit 1); exit 1; }; };; 3767esac 3768target=$ac_cv_target 3769ac_save_IFS=$IFS; IFS='-' 3770set x $ac_cv_target 3771shift 3772target_cpu=$1 3773target_vendor=$2 3774shift; shift 3775# Remember, the first character of IFS is used to create $*, 3776# except with old shells: 3777target_os=$* 3778IFS=$ac_save_IFS 3779case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3780 3781 3782# The aliases save the names the user supplied, while $host etc. 3783# will get canonicalized. 3784test -n "$target_alias" && 3785 test "$program_prefix$program_suffix$program_transform_name" = \ 3786 NONENONEs,x,x, && 3787 program_prefix=${target_alias}- 3788 3789{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3790echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3791if test "${llvm_cv_os_type+set}" = set; then 3792 echo $ECHO_N "(cached) $ECHO_C" >&6 3793else 3794 case $host in 3795 *-*-aix*) 3796 llvm_cv_link_all_option="-Wl,--whole-archive" 3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3798 llvm_cv_os_type="AIX" 3799 llvm_cv_platform_type="Unix" ;; 3800 *-*-irix*) 3801 llvm_cv_link_all_option="-Wl,--whole-archive" 3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3803 llvm_cv_os_type="IRIX" 3804 llvm_cv_platform_type="Unix" ;; 3805 *-*-cygwin*) 3806 llvm_cv_link_all_option="-Wl,--whole-archive" 3807 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3808 llvm_cv_os_type="Cygwin" 3809 llvm_cv_platform_type="Unix" ;; 3810 *-*-darwin*) 3811 llvm_cv_link_all_option="-Wl,-all_load" 3812 llvm_cv_no_link_all_option="-Wl,-noall_load" 3813 llvm_cv_os_type="Darwin" 3814 llvm_cv_platform_type="Unix" ;; 3815 *-*-minix*) 3816 llvm_cv_link_all_option="-Wl,-all_load" 3817 llvm_cv_no_link_all_option="-Wl,-noall_load" 3818 llvm_cv_os_type="Minix" 3819 llvm_cv_platform_type="Unix" ;; 3820 *-*-freebsd* | *-*-kfreebsd-gnu) 3821 llvm_cv_link_all_option="-Wl,--whole-archive" 3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3823 llvm_cv_os_type="FreeBSD" 3824 llvm_cv_platform_type="Unix" ;; 3825 *-*-openbsd*) 3826 llvm_cv_link_all_option="-Wl,--whole-archive" 3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3828 llvm_cv_os_type="OpenBSD" 3829 llvm_cv_platform_type="Unix" ;; 3830 *-*-netbsd*) 3831 llvm_cv_link_all_option="-Wl,--whole-archive" 3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3833 llvm_cv_os_type="NetBSD" 3834 llvm_cv_platform_type="Unix" ;; 3835 *-*-dragonfly*) 3836 llvm_cv_link_all_option="-Wl,--whole-archive" 3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3838 llvm_cv_os_type="DragonFly" 3839 llvm_cv_platform_type="Unix" ;; 3840 *-*-hpux*) 3841 llvm_cv_link_all_option="-Wl,--whole-archive" 3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3843 llvm_cv_os_type="HP-UX" 3844 llvm_cv_platform_type="Unix" ;; 3845 *-*-interix*) 3846 llvm_cv_link_all_option="-Wl,--whole-archive" 3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3848 llvm_cv_os_type="Interix" 3849 llvm_cv_platform_type="Unix" ;; 3850 *-*-linux*) 3851 llvm_cv_link_all_option="-Wl,--whole-archive" 3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3853 llvm_cv_os_type="Linux" 3854 llvm_cv_platform_type="Unix" ;; 3855 *-*-gnu*) 3856 llvm_cv_link_all_option="-Wl,--whole-archive" 3857 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3858 llvm_cv_os_type="GNU" 3859 llvm_cv_platform_type="Unix" ;; 3860 *-*-solaris*) 3861 llvm_cv_link_all_option="-Wl,-z,allextract" 3862 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3863 llvm_cv_os_type="SunOS" 3864 llvm_cv_platform_type="Unix" ;; 3865 *-*-auroraux*) 3866 llvm_cv_link_all_option="-Wl,-z,allextract" 3867 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3868 llvm_cv_os_type="AuroraUX" 3869 llvm_cv_platform_type="Unix" ;; 3870 *-*-win32*) 3871 llvm_cv_link_all_option="-Wl,--whole-archive" 3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3873 llvm_cv_os_type="Win32" 3874 llvm_cv_platform_type="Win32" ;; 3875 *-*-mingw*) 3876 llvm_cv_link_all_option="-Wl,--whole-archive" 3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3878 llvm_cv_os_type="MingW" 3879 llvm_cv_platform_type="Win32" ;; 3880 *-*-haiku*) 3881 llvm_cv_link_all_option="-Wl,--whole-archive" 3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3883 llvm_cv_os_type="Haiku" 3884 llvm_cv_platform_type="Unix" ;; 3885 *-unknown-eabi*) 3886 llvm_cv_link_all_option="-Wl,--whole-archive" 3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3888 llvm_cv_os_type="Freestanding" 3889 llvm_cv_platform_type="Unix" ;; 3890 *-unknown-elf*) 3891 llvm_cv_link_all_option="-Wl,--whole-archive" 3892 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3893 llvm_cv_os_type="Freestanding" 3894 llvm_cv_platform_type="Unix" ;; 3895 *) 3896 llvm_cv_link_all_option="" 3897 llvm_cv_no_link_all_option="" 3898 llvm_cv_os_type="Unknown" 3899 llvm_cv_platform_type="Unknown" ;; 3900esac 3901fi 3902{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3903echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3904 3905{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3906echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3907if test "${llvm_cv_target_os_type+set}" = set; then 3908 echo $ECHO_N "(cached) $ECHO_C" >&6 3909else 3910 case $target in 3911 *-*-aix*) 3912 llvm_cv_target_os_type="AIX" ;; 3913 *-*-irix*) 3914 llvm_cv_target_os_type="IRIX" ;; 3915 *-*-cygwin*) 3916 llvm_cv_target_os_type="Cygwin" ;; 3917 *-*-darwin*) 3918 llvm_cv_target_os_type="Darwin" ;; 3919 *-*-minix*) 3920 llvm_cv_target_os_type="Minix" ;; 3921 *-*-freebsd* | *-*-kfreebsd-gnu) 3922 llvm_cv_target_os_type="FreeBSD" ;; 3923 *-*-openbsd*) 3924 llvm_cv_target_os_type="OpenBSD" ;; 3925 *-*-netbsd*) 3926 llvm_cv_target_os_type="NetBSD" ;; 3927 *-*-dragonfly*) 3928 llvm_cv_target_os_type="DragonFly" ;; 3929 *-*-hpux*) 3930 llvm_cv_target_os_type="HP-UX" ;; 3931 *-*-interix*) 3932 llvm_cv_target_os_type="Interix" ;; 3933 *-*-linux*) 3934 llvm_cv_target_os_type="Linux" ;; 3935 *-*-gnu*) 3936 llvm_cv_target_os_type="GNU" ;; 3937 *-*-solaris*) 3938 llvm_cv_target_os_type="SunOS" ;; 3939 *-*-auroraux*) 3940 llvm_cv_target_os_type="AuroraUX" ;; 3941 *-*-win32*) 3942 llvm_cv_target_os_type="Win32" ;; 3943 *-*-mingw*) 3944 llvm_cv_target_os_type="MingW" ;; 3945 *-*-haiku*) 3946 llvm_cv_target_os_type="Haiku" ;; 3947 *-*-rtems*) 3948 llvm_cv_target_os_type="RTEMS" ;; 3949 *-*-nacl*) 3950 llvm_cv_target_os_type="NativeClient" ;; 3951 *-unknown-eabi*) 3952 llvm_cv_target_os_type="Freestanding" ;; 3953 *) 3954 llvm_cv_target_os_type="Unknown" ;; 3955esac 3956fi 3957{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3958echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3959 3960if test "$llvm_cv_os_type" = "Unknown" ; then 3961 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3962echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3963 { (exit 1); exit 1; }; } 3964fi 3965 3966OS=$llvm_cv_os_type 3967 3968HOST_OS=$llvm_cv_os_type 3969 3970TARGET_OS=$llvm_cv_target_os_type 3971 3972 3973LINKALL=$llvm_cv_link_all_option 3974 3975NOLINKALL=$llvm_cv_no_link_all_option 3976 3977 3978case $llvm_cv_platform_type in 3979 Unix) 3980 3981cat >>confdefs.h <<\_ACEOF 3982#define LLVM_ON_UNIX 1 3983_ACEOF 3984 3985 LLVM_ON_UNIX=1 3986 3987 LLVM_ON_WIN32=0 3988 3989 ;; 3990 Win32) 3991 3992cat >>confdefs.h <<\_ACEOF 3993#define LLVM_ON_WIN32 1 3994_ACEOF 3995 3996 LLVM_ON_UNIX=0 3997 3998 LLVM_ON_WIN32=1 3999 4000 ;; 4001esac 4002 4003{ echo "$as_me:$LINENO: checking target architecture" >&5 4004echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4005if test "${llvm_cv_target_arch+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007else 4008 case $target in 4009 i?86-*) llvm_cv_target_arch="x86" ;; 4010 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4011 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4012 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4013 arm*-*) llvm_cv_target_arch="ARM" ;; 4014 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4015 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4016 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4017 xcore-*) llvm_cv_target_arch="XCore" ;; 4018 msp430-*) llvm_cv_target_arch="MSP430" ;; 4019 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4020 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 4021 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4022 *) llvm_cv_target_arch="Unknown" ;; 4023esac 4024fi 4025{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4026echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4027 4028if test "$llvm_cv_target_arch" = "Unknown" ; then 4029 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4030echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4031fi 4032 4033case "$llvm_cv_target_arch" in 4034 x86) LLVM_NATIVE_ARCH="X86" ;; 4035 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4036 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4037esac 4038 4039ARCH=$llvm_cv_target_arch 4040 4041 4042case $host in 4043 i?86-*) host_arch="x86" ;; 4044 amd64-* | x86_64-*) host_arch="x86_64" ;; 4045 sparc*-*) host_arch="Sparc" ;; 4046 powerpc*-*) host_arch="PowerPC" ;; 4047 arm*-*) host_arch="ARM" ;; 4048 aarch64*-*) host_arch="AArch64" ;; 4049 mips-* | mips64-*) host_arch="Mips" ;; 4050 mipsel-* | mips64el-*) host_arch="Mips" ;; 4051 xcore-*) host_arch="XCore" ;; 4052 msp430-*) host_arch="MSP430" ;; 4053 hexagon-*) host_arch="Hexagon" ;; 4054 mblaze-*) host_arch="MBlaze" ;; 4055 *) host_arch="Unknown" ;; 4056esac 4057 4058if test "$host_arch" = "Unknown" ; then 4059 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4060echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4061fi 4062 4063HOST_ARCH=$host_arch 4064 4065 4066 4067 4068{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4069echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4070if test "${ac_cv_path_GREP+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 # Extract the first word of "grep ggrep" to use in msg output 4074if test -z "$GREP"; then 4075set dummy grep ggrep; ac_prog_name=$2 4076if test "${ac_cv_path_GREP+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 ac_path_GREP_found=false 4080# Loop through the user's path and test for each of PROGNAME-LIST 4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_prog in grep ggrep; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4089 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4090 # Check for GNU ac_path_GREP and select it if it is found. 4091 # Check for GNU $ac_path_GREP 4092case `"$ac_path_GREP" --version 2>&1` in 4093*GNU*) 4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4095*) 4096 ac_count=0 4097 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4098 while : 4099 do 4100 cat "conftest.in" "conftest.in" >"conftest.tmp" 4101 mv "conftest.tmp" "conftest.in" 4102 cp "conftest.in" "conftest.nl" 4103 echo 'GREP' >> "conftest.nl" 4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4106 ac_count=`expr $ac_count + 1` 4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4108 # Best one so far, save it but keep looking for a better one 4109 ac_cv_path_GREP="$ac_path_GREP" 4110 ac_path_GREP_max=$ac_count 4111 fi 4112 # 10*(2^10) chars as input seems more than enough 4113 test $ac_count -gt 10 && break 4114 done 4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4116esac 4117 4118 4119 $ac_path_GREP_found && break 3 4120 done 4121done 4122 4123done 4124IFS=$as_save_IFS 4125 4126 4127fi 4128 4129GREP="$ac_cv_path_GREP" 4130if test -z "$GREP"; then 4131 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4132echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4133 { (exit 1); exit 1; }; } 4134fi 4135 4136else 4137 ac_cv_path_GREP=$GREP 4138fi 4139 4140 4141fi 4142{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4143echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4144 GREP="$ac_cv_path_GREP" 4145 4146 4147{ echo "$as_me:$LINENO: checking for egrep" >&5 4148echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4149if test "${ac_cv_path_EGREP+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151else 4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4153 then ac_cv_path_EGREP="$GREP -E" 4154 else 4155 # Extract the first word of "egrep" to use in msg output 4156if test -z "$EGREP"; then 4157set dummy egrep; ac_prog_name=$2 4158if test "${ac_cv_path_EGREP+set}" = set; then 4159 echo $ECHO_N "(cached) $ECHO_C" >&6 4160else 4161 ac_path_EGREP_found=false 4162# Loop through the user's path and test for each of PROGNAME-LIST 4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in egrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4172 # Check for GNU ac_path_EGREP and select it if it is found. 4173 # Check for GNU $ac_path_EGREP 4174case `"$ac_path_EGREP" --version 2>&1` in 4175*GNU*) 4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4177*) 4178 ac_count=0 4179 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 echo 'EGREP' >> "conftest.nl" 4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 ac_count=`expr $ac_count + 1` 4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_EGREP="$ac_path_EGREP" 4192 ac_path_EGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198esac 4199 4200 4201 $ac_path_EGREP_found && break 3 4202 done 4203done 4204 4205done 4206IFS=$as_save_IFS 4207 4208 4209fi 4210 4211EGREP="$ac_cv_path_EGREP" 4212if test -z "$EGREP"; then 4213 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4214echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4215 { (exit 1); exit 1; }; } 4216fi 4217 4218else 4219 ac_cv_path_EGREP=$EGREP 4220fi 4221 4222 4223 fi 4224fi 4225{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4226echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4227 EGREP="$ac_cv_path_EGREP" 4228 4229 4230{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4231echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4232if test "${ac_cv_header_stdc+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 cat >conftest.$ac_ext <<_ACEOF 4236/* confdefs.h. */ 4237_ACEOF 4238cat confdefs.h >>conftest.$ac_ext 4239cat >>conftest.$ac_ext <<_ACEOF 4240/* end confdefs.h. */ 4241#include <stdlib.h> 4242#include <stdarg.h> 4243#include <string.h> 4244#include <float.h> 4245 4246int 4247main () 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254rm -f conftest.$ac_objext 4255if { (ac_try="$ac_compile" 4256case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259esac 4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4261 (eval "$ac_compile") 2>conftest.er1 4262 ac_status=$? 4263 grep -v '^ *+' conftest.er1 >conftest.err 4264 rm -f conftest.er1 4265 cat conftest.err >&5 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); } && 4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4269 { (case "(($ac_try" in 4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4271 *) ac_try_echo=$ac_try;; 4272esac 4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4274 (eval "$ac_try") 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); }; } && 4278 { ac_try='test -s conftest.$ac_objext' 4279 { (case "(($ac_try" in 4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4281 *) ac_try_echo=$ac_try;; 4282esac 4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4284 (eval "$ac_try") 2>&5 4285 ac_status=$? 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); }; }; then 4288 ac_cv_header_stdc=yes 4289else 4290 echo "$as_me: failed program was:" >&5 4291sed 's/^/| /' conftest.$ac_ext >&5 4292 4293 ac_cv_header_stdc=no 4294fi 4295 4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4297 4298if test $ac_cv_header_stdc = yes; then 4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4300 cat >conftest.$ac_ext <<_ACEOF 4301/* confdefs.h. */ 4302_ACEOF 4303cat confdefs.h >>conftest.$ac_ext 4304cat >>conftest.$ac_ext <<_ACEOF 4305/* end confdefs.h. */ 4306#include <string.h> 4307 4308_ACEOF 4309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4310 $EGREP "memchr" >/dev/null 2>&1; then 4311 : 4312else 4313 ac_cv_header_stdc=no 4314fi 4315rm -f conftest* 4316 4317fi 4318 4319if test $ac_cv_header_stdc = yes; then 4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4321 cat >conftest.$ac_ext <<_ACEOF 4322/* confdefs.h. */ 4323_ACEOF 4324cat confdefs.h >>conftest.$ac_ext 4325cat >>conftest.$ac_ext <<_ACEOF 4326/* end confdefs.h. */ 4327#include <stdlib.h> 4328 4329_ACEOF 4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4331 $EGREP "free" >/dev/null 2>&1; then 4332 : 4333else 4334 ac_cv_header_stdc=no 4335fi 4336rm -f conftest* 4337 4338fi 4339 4340if test $ac_cv_header_stdc = yes; then 4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4342 if test "$cross_compiling" = yes; then 4343 : 4344else 4345 cat >conftest.$ac_ext <<_ACEOF 4346/* confdefs.h. */ 4347_ACEOF 4348cat confdefs.h >>conftest.$ac_ext 4349cat >>conftest.$ac_ext <<_ACEOF 4350/* end confdefs.h. */ 4351#include <ctype.h> 4352#include <stdlib.h> 4353#if ((' ' & 0x0FF) == 0x020) 4354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4356#else 4357# define ISLOWER(c) \ 4358 (('a' <= (c) && (c) <= 'i') \ 4359 || ('j' <= (c) && (c) <= 'r') \ 4360 || ('s' <= (c) && (c) <= 'z')) 4361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4362#endif 4363 4364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4365int 4366main () 4367{ 4368 int i; 4369 for (i = 0; i < 256; i++) 4370 if (XOR (islower (i), ISLOWER (i)) 4371 || toupper (i) != TOUPPER (i)) 4372 return 2; 4373 return 0; 4374} 4375_ACEOF 4376rm -f conftest$ac_exeext 4377if { (ac_try="$ac_link" 4378case "(($ac_try" in 4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4380 *) ac_try_echo=$ac_try;; 4381esac 4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4383 (eval "$ac_link") 2>&5 4384 ac_status=$? 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4387 { (case "(($ac_try" in 4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4389 *) ac_try_echo=$ac_try;; 4390esac 4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4392 (eval "$ac_try") 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); }; }; then 4396 : 4397else 4398 echo "$as_me: program exited with status $ac_status" >&5 4399echo "$as_me: failed program was:" >&5 4400sed 's/^/| /' conftest.$ac_ext >&5 4401 4402( exit $ac_status ) 4403ac_cv_header_stdc=no 4404fi 4405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4406fi 4407 4408 4409fi 4410fi 4411{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4412echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4413if test $ac_cv_header_stdc = yes; then 4414 4415cat >>confdefs.h <<\_ACEOF 4416#define STDC_HEADERS 1 4417_ACEOF 4418 4419fi 4420 4421# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4432 inttypes.h stdint.h unistd.h 4433do 4434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4435{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4438 echo $ECHO_N "(cached) $ECHO_C" >&6 4439else 4440 cat >conftest.$ac_ext <<_ACEOF 4441/* confdefs.h. */ 4442_ACEOF 4443cat confdefs.h >>conftest.$ac_ext 4444cat >>conftest.$ac_ext <<_ACEOF 4445/* end confdefs.h. */ 4446$ac_includes_default 4447 4448#include <$ac_header> 4449_ACEOF 4450rm -f conftest.$ac_objext 4451if { (ac_try="$ac_compile" 4452case "(($ac_try" in 4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4454 *) ac_try_echo=$ac_try;; 4455esac 4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4457 (eval "$ac_compile") 2>conftest.er1 4458 ac_status=$? 4459 grep -v '^ *+' conftest.er1 >conftest.err 4460 rm -f conftest.er1 4461 cat conftest.err >&5 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); } && 4464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4465 { (case "(($ac_try" in 4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4467 *) ac_try_echo=$ac_try;; 4468esac 4469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4470 (eval "$ac_try") 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); }; } && 4474 { ac_try='test -s conftest.$ac_objext' 4475 { (case "(($ac_try" in 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4477 *) ac_try_echo=$ac_try;; 4478esac 4479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4480 (eval "$ac_try") 2>&5 4481 ac_status=$? 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; }; then 4484 eval "$as_ac_Header=yes" 4485else 4486 echo "$as_me: failed program was:" >&5 4487sed 's/^/| /' conftest.$ac_ext >&5 4488 4489 eval "$as_ac_Header=no" 4490fi 4491 4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493fi 4494ac_res=`eval echo '${'$as_ac_Header'}'` 4495 { echo "$as_me:$LINENO: result: $ac_res" >&5 4496echo "${ECHO_T}$ac_res" >&6; } 4497if test `eval echo '${'$as_ac_Header'}'` = yes; then 4498 cat >>confdefs.h <<_ACEOF 4499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4500_ACEOF 4501 4502fi 4503 4504done 4505 4506 4507{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4508echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4509if test "${ac_cv_c_bigendian+set}" = set; then 4510 echo $ECHO_N "(cached) $ECHO_C" >&6 4511else 4512 # See if sys/param.h defines the BYTE_ORDER macro. 4513cat >conftest.$ac_ext <<_ACEOF 4514/* confdefs.h. */ 4515_ACEOF 4516cat confdefs.h >>conftest.$ac_ext 4517cat >>conftest.$ac_ext <<_ACEOF 4518/* end confdefs.h. */ 4519#include <sys/types.h> 4520#include <sys/param.h> 4521 4522int 4523main () 4524{ 4525#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4526 bogus endian macros 4527#endif 4528 4529 ; 4530 return 0; 4531} 4532_ACEOF 4533rm -f conftest.$ac_objext 4534if { (ac_try="$ac_compile" 4535case "(($ac_try" in 4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4537 *) ac_try_echo=$ac_try;; 4538esac 4539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4540 (eval "$ac_compile") 2>conftest.er1 4541 ac_status=$? 4542 grep -v '^ *+' conftest.er1 >conftest.err 4543 rm -f conftest.er1 4544 cat conftest.err >&5 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4546 (exit $ac_status); } && 4547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4548 { (case "(($ac_try" in 4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4550 *) ac_try_echo=$ac_try;; 4551esac 4552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4553 (eval "$ac_try") 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); }; } && 4557 { ac_try='test -s conftest.$ac_objext' 4558 { (case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561esac 4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4563 (eval "$ac_try") 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); }; }; then 4567 # It does; now see whether it defined to BIG_ENDIAN or not. 4568cat >conftest.$ac_ext <<_ACEOF 4569/* confdefs.h. */ 4570_ACEOF 4571cat confdefs.h >>conftest.$ac_ext 4572cat >>conftest.$ac_ext <<_ACEOF 4573/* end confdefs.h. */ 4574#include <sys/types.h> 4575#include <sys/param.h> 4576 4577int 4578main () 4579{ 4580#if BYTE_ORDER != BIG_ENDIAN 4581 not big endian 4582#endif 4583 4584 ; 4585 return 0; 4586} 4587_ACEOF 4588rm -f conftest.$ac_objext 4589if { (ac_try="$ac_compile" 4590case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593esac 4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4595 (eval "$ac_compile") 2>conftest.er1 4596 ac_status=$? 4597 grep -v '^ *+' conftest.er1 >conftest.err 4598 rm -f conftest.er1 4599 cat conftest.err >&5 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); } && 4602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4603 { (case "(($ac_try" in 4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4605 *) ac_try_echo=$ac_try;; 4606esac 4607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4608 (eval "$ac_try") 2>&5 4609 ac_status=$? 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); }; } && 4612 { ac_try='test -s conftest.$ac_objext' 4613 { (case "(($ac_try" in 4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4615 *) ac_try_echo=$ac_try;; 4616esac 4617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4618 (eval "$ac_try") 2>&5 4619 ac_status=$? 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); }; }; then 4622 ac_cv_c_bigendian=yes 4623else 4624 echo "$as_me: failed program was:" >&5 4625sed 's/^/| /' conftest.$ac_ext >&5 4626 4627 ac_cv_c_bigendian=no 4628fi 4629 4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4631else 4632 echo "$as_me: failed program was:" >&5 4633sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 # It does not; compile a test program. 4636if test "$cross_compiling" = yes; then 4637 # try to guess the endianness by grepping values into an object file 4638 ac_cv_c_bigendian=unknown 4639 cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4646short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4647void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4648short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4649short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4650void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4651int 4652main () 4653{ 4654 _ascii (); _ebcdic (); 4655 ; 4656 return 0; 4657} 4658_ACEOF 4659rm -f conftest.$ac_objext 4660if { (ac_try="$ac_compile" 4661case "(($ac_try" in 4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4663 *) ac_try_echo=$ac_try;; 4664esac 4665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4666 (eval "$ac_compile") 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } && 4673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4674 { (case "(($ac_try" in 4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4676 *) ac_try_echo=$ac_try;; 4677esac 4678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4679 (eval "$ac_try") 2>&5 4680 ac_status=$? 4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4682 (exit $ac_status); }; } && 4683 { ac_try='test -s conftest.$ac_objext' 4684 { (case "(($ac_try" in 4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4686 *) ac_try_echo=$ac_try;; 4687esac 4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4689 (eval "$ac_try") 2>&5 4690 ac_status=$? 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; }; then 4693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4694 ac_cv_c_bigendian=yes 4695fi 4696if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4697 if test "$ac_cv_c_bigendian" = unknown; then 4698 ac_cv_c_bigendian=no 4699 else 4700 # finding both strings is unlikely to happen, but who knows? 4701 ac_cv_c_bigendian=unknown 4702 fi 4703fi 4704else 4705 echo "$as_me: failed program was:" >&5 4706sed 's/^/| /' conftest.$ac_ext >&5 4707 4708 4709fi 4710 4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4712else 4713 cat >conftest.$ac_ext <<_ACEOF 4714/* confdefs.h. */ 4715_ACEOF 4716cat confdefs.h >>conftest.$ac_ext 4717cat >>conftest.$ac_ext <<_ACEOF 4718/* end confdefs.h. */ 4719$ac_includes_default 4720int 4721main () 4722{ 4723 4724 /* Are we little or big endian? From Harbison&Steele. */ 4725 union 4726 { 4727 long int l; 4728 char c[sizeof (long int)]; 4729 } u; 4730 u.l = 1; 4731 return u.c[sizeof (long int) - 1] == 1; 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737rm -f conftest$ac_exeext 4738if { (ac_try="$ac_link" 4739case "(($ac_try" in 4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4741 *) ac_try_echo=$ac_try;; 4742esac 4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4744 (eval "$ac_link") 2>&5 4745 ac_status=$? 4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4748 { (case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_try") 2>&5 4754 ac_status=$? 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); }; }; then 4757 ac_cv_c_bigendian=no 4758else 4759 echo "$as_me: program exited with status $ac_status" >&5 4760echo "$as_me: failed program was:" >&5 4761sed 's/^/| /' conftest.$ac_ext >&5 4762 4763( exit $ac_status ) 4764ac_cv_c_bigendian=yes 4765fi 4766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4767fi 4768 4769 4770fi 4771 4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4773fi 4774{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4775echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4776case $ac_cv_c_bigendian in 4777 yes) 4778 ENDIAN=big 4779 ;; 4780 no) 4781 ENDIAN=little 4782 ;; 4783 *) 4784 { { echo "$as_me:$LINENO: error: unknown endianness 4785presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4786echo "$as_me: error: unknown endianness 4787presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4788 { (exit 1); exit 1; }; } ;; 4789esac 4790 4791 4792if test "$cross_compiling" = yes; then 4793 LLVM_CROSS_COMPILING=1 4794 4795 4796{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4797echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4798if test "${ac_cv_build_exeext+set}" = set; then 4799 echo $ECHO_N "(cached) $ECHO_C" >&6 4800else 4801 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4802 ac_cv_build_exeext=.exe 4803else 4804 ac_build_prefix=${build_alias}- 4805 4806 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4807set dummy ${ac_build_prefix}gcc; ac_word=$2 4808{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4810if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4811 echo $ECHO_N "(cached) $ECHO_C" >&6 4812else 4813 if test -n "$BUILD_CC"; then 4814 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4815else 4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4817for as_dir in $PATH 4818do 4819 IFS=$as_save_IFS 4820 test -z "$as_dir" && as_dir=. 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4823 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4825 break 2 4826 fi 4827done 4828done 4829IFS=$as_save_IFS 4830 4831fi 4832fi 4833BUILD_CC=$ac_cv_prog_BUILD_CC 4834if test -n "$BUILD_CC"; then 4835 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4836echo "${ECHO_T}$BUILD_CC" >&6; } 4837else 4838 { echo "$as_me:$LINENO: result: no" >&5 4839echo "${ECHO_T}no" >&6; } 4840fi 4841 4842 4843 if test -z "$BUILD_CC"; then 4844 # Extract the first word of "gcc", so it can be a program name with args. 4845set dummy gcc; ac_word=$2 4846{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4848if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4849 echo $ECHO_N "(cached) $ECHO_C" >&6 4850else 4851 if test -n "$BUILD_CC"; then 4852 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4853else 4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4861 ac_cv_prog_BUILD_CC="gcc" 4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4863 break 2 4864 fi 4865done 4866done 4867IFS=$as_save_IFS 4868 4869fi 4870fi 4871BUILD_CC=$ac_cv_prog_BUILD_CC 4872if test -n "$BUILD_CC"; then 4873 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4874echo "${ECHO_T}$BUILD_CC" >&6; } 4875else 4876 { echo "$as_me:$LINENO: result: no" >&5 4877echo "${ECHO_T}no" >&6; } 4878fi 4879 4880 4881 if test -z "$BUILD_CC"; then 4882 # Extract the first word of "cc", so it can be a program name with args. 4883set dummy cc; ac_word=$2 4884{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4886if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4887 echo $ECHO_N "(cached) $ECHO_C" >&6 4888else 4889 if test -n "$BUILD_CC"; then 4890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4891else 4892 ac_prog_rejected=no 4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894for as_dir in $PATH 4895do 4896 IFS=$as_save_IFS 4897 test -z "$as_dir" && as_dir=. 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4901 ac_prog_rejected=yes 4902 continue 4903 fi 4904 ac_cv_prog_BUILD_CC="cc" 4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908done 4909done 4910IFS=$as_save_IFS 4911 4912if test $ac_prog_rejected = yes; then 4913 # We found a bogon in the path, so make sure we never use it. 4914 set dummy $ac_cv_prog_BUILD_CC 4915 shift 4916 if test $# != 0; then 4917 # We chose a different compiler from the bogus one. 4918 # However, it has the same basename, so the bogon will be chosen 4919 # first if we set BUILD_CC to just the basename; use the full file name. 4920 shift 4921 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4922 fi 4923fi 4924fi 4925fi 4926BUILD_CC=$ac_cv_prog_BUILD_CC 4927if test -n "$BUILD_CC"; then 4928 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4929echo "${ECHO_T}$BUILD_CC" >&6; } 4930else 4931 { echo "$as_me:$LINENO: result: no" >&5 4932echo "${ECHO_T}no" >&6; } 4933fi 4934 4935 4936 fi 4937 fi 4938 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4939echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4940 { (exit 1); exit 1; }; } 4941 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4942 rm -f conftest* 4943 echo 'int main () { return 0; }' > conftest.$ac_ext 4944 ac_cv_build_exeext= 4945 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4946 (eval $ac_build_link) 2>&5 4947 ac_status=$? 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; then 4950 for file in conftest.*; do 4951 case $file in 4952 *.c | *.o | *.obj | *.dSYM) ;; 4953 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4954 esac 4955 done 4956 else 4957 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4958echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4959 { (exit 1); exit 1; }; } 4960 fi 4961 rm -f conftest* 4962 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4963fi 4964fi 4965 4966BUILD_EXEEXT="" 4967test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4968{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4969echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4970ac_build_exeext=$BUILD_EXEEXT 4971 4972 ac_build_prefix=${build_alias}- 4973 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4974set dummy ${ac_build_prefix}g++; ac_word=$2 4975{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4977if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4978 echo $ECHO_N "(cached) $ECHO_C" >&6 4979else 4980 if test -n "$BUILD_CXX"; then 4981 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4982else 4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4984for as_dir in $PATH 4985do 4986 IFS=$as_save_IFS 4987 test -z "$as_dir" && as_dir=. 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4990 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4992 break 2 4993 fi 4994done 4995done 4996IFS=$as_save_IFS 4997 4998fi 4999fi 5000BUILD_CXX=$ac_cv_prog_BUILD_CXX 5001if test -n "$BUILD_CXX"; then 5002 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5003echo "${ECHO_T}$BUILD_CXX" >&6; } 5004else 5005 { echo "$as_me:$LINENO: result: no" >&5 5006echo "${ECHO_T}no" >&6; } 5007fi 5008 5009 5010 if test -z "$BUILD_CXX"; then 5011 # Extract the first word of "g++", so it can be a program name with args. 5012set dummy g++; ac_word=$2 5013{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5015if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5016 echo $ECHO_N "(cached) $ECHO_C" >&6 5017else 5018 if test -n "$BUILD_CXX"; then 5019 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5020else 5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5028 ac_cv_prog_BUILD_CXX="g++" 5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033done 5034IFS=$as_save_IFS 5035 5036fi 5037fi 5038BUILD_CXX=$ac_cv_prog_BUILD_CXX 5039if test -n "$BUILD_CXX"; then 5040 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5041echo "${ECHO_T}$BUILD_CXX" >&6; } 5042else 5043 { echo "$as_me:$LINENO: result: no" >&5 5044echo "${ECHO_T}no" >&6; } 5045fi 5046 5047 5048 if test -z "$BUILD_CXX"; then 5049 # Extract the first word of "c++", so it can be a program name with args. 5050set dummy c++; ac_word=$2 5051{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5053if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055else 5056 if test -n "$BUILD_CXX"; then 5057 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5058else 5059 ac_prog_rejected=no 5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5061for as_dir in $PATH 5062do 5063 IFS=$as_save_IFS 5064 test -z "$as_dir" && as_dir=. 5065 for ac_exec_ext in '' $ac_executable_extensions; do 5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5068 ac_prog_rejected=yes 5069 continue 5070 fi 5071 ac_cv_prog_BUILD_CXX="c++" 5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5073 break 2 5074 fi 5075done 5076done 5077IFS=$as_save_IFS 5078 5079if test $ac_prog_rejected = yes; then 5080 # We found a bogon in the path, so make sure we never use it. 5081 set dummy $ac_cv_prog_BUILD_CXX 5082 shift 5083 if test $# != 0; then 5084 # We chose a different compiler from the bogus one. 5085 # However, it has the same basename, so the bogon will be chosen 5086 # first if we set BUILD_CXX to just the basename; use the full file name. 5087 shift 5088 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5089 fi 5090fi 5091fi 5092fi 5093BUILD_CXX=$ac_cv_prog_BUILD_CXX 5094if test -n "$BUILD_CXX"; then 5095 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5096echo "${ECHO_T}$BUILD_CXX" >&6; } 5097else 5098 { echo "$as_me:$LINENO: result: no" >&5 5099echo "${ECHO_T}no" >&6; } 5100fi 5101 5102 5103 fi 5104 fi 5105else 5106 LLVM_CROSS_COMPILING=0 5107 5108fi 5109 5110if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5111 cvsbuild="yes" 5112 optimize="no" 5113 CVSBUILD=CVSBUILD=1 5114 5115else 5116 cvsbuild="no" 5117 optimize="yes" 5118fi 5119 5120 5121# Check whether --enable-libcpp was given. 5122if test "${enable_libcpp+set}" = set; then 5123 enableval=$enable_libcpp; 5124else 5125 enableval=default 5126fi 5127 5128case "$enableval" in 5129 yes) ENABLE_LIBCPP=1 5130 ;; 5131 no) ENABLE_LIBCPP=0 5132 ;; 5133 default) ENABLE_LIBCPP=0 5134;; 5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5136echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5137 { (exit 1); exit 1; }; } ;; 5138esac 5139 5140# Check whether --enable-cxx11 was given. 5141if test "${enable_cxx11+set}" = set; then 5142 enableval=$enable_cxx11; 5143else 5144 enableval=default 5145fi 5146 5147case "$enableval" in 5148 yes) ENABLE_CXX11=1 5149 ;; 5150 no) ENABLE_CXX11=0 5151 ;; 5152 default) ENABLE_CXX11=0 5153;; 5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5155echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5156 { (exit 1); exit 1; }; } ;; 5157esac 5158 5159clang_arcmt="yes" 5160# Check whether --enable-clang-arcmt was given. 5161if test "${enable_clang_arcmt+set}" = set; then 5162 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5163else 5164 enableval="yes" 5165fi 5166 5167case "$enableval" in 5168 yes) ENABLE_CLANG_ARCMT=1 5169 ;; 5170 no) ENABLE_CLANG_ARCMT=0 5171 ;; 5172 default) ENABLE_CLANG_ARCMT=1 5173;; 5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5175echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5176 { (exit 1); exit 1; }; } ;; 5177esac 5178 5179clang_static_analyzer="yes" 5180# Check whether --enable-clang-static-analyzer was given. 5181if test "${enable_clang_static_analyzer+set}" = set; then 5182 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5183else 5184 enableval="yes" 5185fi 5186 5187case "$enableval" in 5188 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5189 ;; 5190 no) ENABLE_CLANG_STATIC_ANALYZER=0 5191 ;; 5192 default) ENABLE_CLANG_STATIC_ANALYZER=1 5193;; 5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5195echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5196 { (exit 1); exit 1; }; } ;; 5197esac 5198 5199# Check whether --enable-clang-rewriter was given. 5200if test "${enable_clang_rewriter+set}" = set; then 5201 enableval=$enable_clang_rewriter; 5202else 5203 enableval="yes" 5204fi 5205 5206case "$enableval" in 5207 yes) ENABLE_CLANG_REWRITER=1 5208 ;; 5209 no) 5210 if test ${clang_arcmt} != "no" ; then 5211 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5212echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5213 { (exit 1); exit 1; }; } 5214 fi 5215 if test ${clang_static_analyzer} != "no" ; then 5216 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5217echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5218 { (exit 1); exit 1; }; } 5219 fi 5220 ENABLE_CLANG_REWRITER=0 5221 5222 ;; 5223 default) ENABLE_CLANG_REWRITER=1 5224;; 5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5226echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5227 { (exit 1); exit 1; }; } ;; 5228esac 5229 5230# Check whether --enable-optimized was given. 5231if test "${enable_optimized+set}" = set; then 5232 enableval=$enable_optimized; 5233else 5234 enableval=$optimize 5235fi 5236 5237if test ${enableval} = "no" ; then 5238 ENABLE_OPTIMIZED= 5239 5240else 5241 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5242 5243fi 5244 5245# Check whether --enable-profiling was given. 5246if test "${enable_profiling+set}" = set; then 5247 enableval=$enable_profiling; 5248else 5249 enableval="no" 5250fi 5251 5252if test ${enableval} = "no" ; then 5253 ENABLE_PROFILING= 5254 5255else 5256 ENABLE_PROFILING=ENABLE_PROFILING=1 5257 5258fi 5259 5260# Check whether --enable-assertions was given. 5261if test "${enable_assertions+set}" = set; then 5262 enableval=$enable_assertions; 5263else 5264 enableval="yes" 5265fi 5266 5267if test ${enableval} = "yes" ; then 5268 DISABLE_ASSERTIONS= 5269 5270else 5271 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5272 5273fi 5274 5275# Check whether --enable-werror was given. 5276if test "${enable_werror+set}" = set; then 5277 enableval=$enable_werror; 5278else 5279 enableval="no" 5280fi 5281 5282case "$enableval" in 5283 yes) ENABLE_WERROR=1 5284 ;; 5285 no) ENABLE_WERROR=0 5286 ;; 5287 default) ENABLE_WERROR=0 5288;; 5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5290echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5291 { (exit 1); exit 1; }; } ;; 5292esac 5293 5294# Check whether --enable-expensive-checks was given. 5295if test "${enable_expensive_checks+set}" = set; then 5296 enableval=$enable_expensive_checks; 5297else 5298 enableval="no" 5299fi 5300 5301if test ${enableval} = "yes" ; then 5302 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5303 5304 EXPENSIVE_CHECKS=yes 5305 5306else 5307 ENABLE_EXPENSIVE_CHECKS= 5308 5309 EXPENSIVE_CHECKS=no 5310 5311fi 5312 5313# Check whether --enable-debug-runtime was given. 5314if test "${enable_debug_runtime+set}" = set; then 5315 enableval=$enable_debug_runtime; 5316else 5317 enableval=no 5318fi 5319 5320if test ${enableval} = "no" ; then 5321 DEBUG_RUNTIME= 5322 5323else 5324 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5325 5326fi 5327 5328# Check whether --enable-debug-symbols was given. 5329if test "${enable_debug_symbols+set}" = set; then 5330 enableval=$enable_debug_symbols; 5331else 5332 enableval=no 5333fi 5334 5335if test ${enableval} = "no" ; then 5336 DEBUG_SYMBOLS= 5337 5338else 5339 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5340 5341fi 5342 5343# Check whether --enable-keep-symbols was given. 5344if test "${enable_keep_symbols+set}" = set; then 5345 enableval=$enable_keep_symbols; 5346else 5347 enableval=no 5348fi 5349 5350if test ${enableval} = "no" ; then 5351 KEEP_SYMBOLS= 5352 5353else 5354 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5355 5356fi 5357 5358# Check whether --enable-jit was given. 5359if test "${enable_jit+set}" = set; then 5360 enableval=$enable_jit; 5361else 5362 enableval=default 5363fi 5364 5365if test ${enableval} = "no" 5366then 5367 JIT= 5368 5369else 5370 case "$llvm_cv_target_arch" in 5371 x86) TARGET_HAS_JIT=1 5372 ;; 5373 Sparc) TARGET_HAS_JIT=0 5374 ;; 5375 PowerPC) TARGET_HAS_JIT=1 5376 ;; 5377 x86_64) TARGET_HAS_JIT=1 5378 ;; 5379 ARM) TARGET_HAS_JIT=1 5380 ;; 5381 AArch64) TARGET_HAS_JIT=0 5382 ;; 5383 Mips) TARGET_HAS_JIT=1 5384 ;; 5385 XCore) TARGET_HAS_JIT=0 5386 ;; 5387 MSP430) TARGET_HAS_JIT=0 5388 ;; 5389 Hexagon) TARGET_HAS_JIT=0 5390 ;; 5391 MBlaze) TARGET_HAS_JIT=0 5392 ;; 5393 NVPTX) TARGET_HAS_JIT=0 5394 ;; 5395 *) TARGET_HAS_JIT=0 5396 ;; 5397 esac 5398fi 5399 5400# Check whether --enable-docs was given. 5401if test "${enable_docs+set}" = set; then 5402 enableval=$enable_docs; 5403else 5404 enableval=default 5405fi 5406 5407case "$enableval" in 5408 yes) ENABLE_DOCS=1 5409 ;; 5410 no) ENABLE_DOCS=0 5411 ;; 5412 default) ENABLE_DOCS=1 5413 ;; 5414 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5415echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5416 { (exit 1); exit 1; }; } ;; 5417esac 5418 5419# Check whether --enable-doxygen was given. 5420if test "${enable_doxygen+set}" = set; then 5421 enableval=$enable_doxygen; 5422else 5423 enableval=default 5424fi 5425 5426case "$enableval" in 5427 yes) ENABLE_DOXYGEN=1 5428 ;; 5429 no) ENABLE_DOXYGEN=0 5430 ;; 5431 default) ENABLE_DOXYGEN=0 5432 ;; 5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5434echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5435 { (exit 1); exit 1; }; } ;; 5436esac 5437 5438# Check whether --enable-threads was given. 5439if test "${enable_threads+set}" = set; then 5440 enableval=$enable_threads; 5441else 5442 enableval=default 5443fi 5444 5445case "$enableval" in 5446 yes) LLVM_ENABLE_THREADS=1 5447 ;; 5448 no) LLVM_ENABLE_THREADS=0 5449 ;; 5450 default) LLVM_ENABLE_THREADS=1 5451 ;; 5452 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5453echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5454 { (exit 1); exit 1; }; } ;; 5455esac 5456 5457cat >>confdefs.h <<_ACEOF 5458#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5459_ACEOF 5460 5461 5462# Check whether --enable-pthreads was given. 5463if test "${enable_pthreads+set}" = set; then 5464 enableval=$enable_pthreads; 5465else 5466 enableval=default 5467fi 5468 5469case "$enableval" in 5470 yes) ENABLE_PTHREADS=1 5471 ;; 5472 no) ENABLE_PTHREADS=0 5473 ;; 5474 default) ENABLE_PTHREADS=1 5475 ;; 5476 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5477echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5478 { (exit 1); exit 1; }; } ;; 5479esac 5480 5481# Check whether --enable-pic was given. 5482if test "${enable_pic+set}" = set; then 5483 enableval=$enable_pic; 5484else 5485 enableval=default 5486fi 5487 5488case "$enableval" in 5489 yes) ENABLE_PIC=1 5490 ;; 5491 no) ENABLE_PIC=0 5492 ;; 5493 default) ENABLE_PIC=1 5494 ;; 5495 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5496echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5497 { (exit 1); exit 1; }; } ;; 5498esac 5499 5500cat >>confdefs.h <<_ACEOF 5501#define ENABLE_PIC $ENABLE_PIC 5502_ACEOF 5503 5504 5505# Check whether --enable-shared was given. 5506if test "${enable_shared+set}" = set; then 5507 enableval=$enable_shared; 5508else 5509 enableval=default 5510fi 5511 5512case "$enableval" in 5513 yes) ENABLE_SHARED=1 5514 ;; 5515 no) ENABLE_SHARED=0 5516 ;; 5517 default) ENABLE_SHARED=0 5518 ;; 5519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5520echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5521 { (exit 1); exit 1; }; } ;; 5522esac 5523 5524# Check whether --enable-embed-stdcxx was given. 5525if test "${enable_embed_stdcxx+set}" = set; then 5526 enableval=$enable_embed_stdcxx; 5527else 5528 enableval=default 5529fi 5530 5531case "$enableval" in 5532 yes) ENABLE_EMBED_STDCXX=1 5533 ;; 5534 no) ENABLE_EMBED_STDCXX=0 5535 ;; 5536 default) ENABLE_EMBED_STDCXX=0 5537 ;; 5538 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5539echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5540 { (exit 1); exit 1; }; } ;; 5541esac 5542 5543# Check whether --enable-timestamps was given. 5544if test "${enable_timestamps+set}" = set; then 5545 enableval=$enable_timestamps; 5546else 5547 enableval=default 5548fi 5549 5550case "$enableval" in 5551 yes) ENABLE_TIMESTAMPS=1 5552 ;; 5553 no) ENABLE_TIMESTAMPS=0 5554 ;; 5555 default) ENABLE_TIMESTAMPS=1 5556 ;; 5557 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5558echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5559 { (exit 1); exit 1; }; } ;; 5560esac 5561 5562cat >>confdefs.h <<_ACEOF 5563#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5564_ACEOF 5565 5566 5567 5568# Check whether --enable-backtraces was given. 5569if test "${enable_backtraces+set}" = set; then 5570 enableval=$enable_backtraces; 5571else 5572 enableval=default 5573fi 5574 5575case "$enableval" in 5576 yes) ENABLE_BACKTRACES=1 5577 ;; 5578 no) ENABLE_BACKTRACES=0 5579 ;; 5580 default) ENABLE_BACKTRACES=1 5581 ;; 5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5583echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5584 { (exit 1); exit 1; }; } ;; 5585esac 5586 5587cat >>confdefs.h <<_ACEOF 5588#define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5589_ACEOF 5590 5591 5592TARGETS_TO_BUILD="" 5593# Check whether --enable-targets was given. 5594if test "${enable_targets+set}" = set; then 5595 enableval=$enable_targets; 5596else 5597 enableval=all 5598fi 5599 5600if test "$enableval" = host-only ; then 5601 enableval=host 5602fi 5603case "$enableval" in 5604 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; 5605 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5606 case "$a_target" in 5607 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5608 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5609 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5610 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5611 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5612 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5613 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5614 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5615 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5616 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5617 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5618 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5619 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5620 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5621 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5622 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5623 host) case "$llvm_cv_target_arch" in 5624 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5625 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5626 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5627 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5628 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5629 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5630 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5631 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5632 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5633 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5634 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5635 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5636echo "$as_me: error: Can not set target to build" >&2;} 5637 { (exit 1); exit 1; }; } ;; 5638 esac ;; 5639 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5640echo "$as_me: error: Unrecognized target $a_target" >&2;} 5641 { (exit 1); exit 1; }; } ;; 5642 esac 5643 done 5644 ;; 5645esac 5646 5647# Check whether --enable-experimental-targets was given. 5648if test "${enable_experimental_targets+set}" = set; then 5649 enableval=$enable_experimental_targets; 5650else 5651 enableval=disable 5652fi 5653 5654 5655if test ${enableval} != "disable" 5656then 5657 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5658fi 5659 5660TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5661 5662 5663for a_target in $TARGETS_TO_BUILD; do 5664 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5665 5666cat >>confdefs.h <<_ACEOF 5667#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5668_ACEOF 5669 5670 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5671 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5672 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5673 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5674 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5675 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5676 fi 5677 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5678 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5679 fi 5680 5681cat >>confdefs.h <<_ACEOF 5682#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5683_ACEOF 5684 5685 5686cat >>confdefs.h <<_ACEOF 5687#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5688_ACEOF 5689 5690 5691cat >>confdefs.h <<_ACEOF 5692#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5693_ACEOF 5694 5695 5696cat >>confdefs.h <<_ACEOF 5697#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5698_ACEOF 5699 5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5701 5702cat >>confdefs.h <<_ACEOF 5703#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5704_ACEOF 5705 5706 fi 5707 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5708 5709cat >>confdefs.h <<_ACEOF 5710#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5711_ACEOF 5712 5713 fi 5714 fi 5715done 5716 5717LLVM_ENUM_TARGETS="" 5718LLVM_ENUM_ASM_PRINTERS="" 5719LLVM_ENUM_ASM_PARSERS="" 5720LLVM_ENUM_DISASSEMBLERS="" 5721for target_to_build in $TARGETS_TO_BUILD; do 5722 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5723 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5724 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5725 fi 5726 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5727 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5728 fi 5729 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5730 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5731 fi 5732done 5733 5734 5735 5736 5737 5738 5739# Check whether --with-optimize-option was given. 5740if test "${with_optimize_option+set}" = set; then 5741 withval=$with_optimize_option; 5742else 5743 withval=default 5744fi 5745 5746{ echo "$as_me:$LINENO: checking optimization flags" >&5 5747echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5748case "$withval" in 5749 default) 5750 case "$llvm_cv_os_type" in 5751 FreeBSD) optimize_option=-O2 ;; 5752 MingW) optimize_option=-O2 ;; 5753 *) optimize_option=-O3 ;; 5754 esac ;; 5755 *) optimize_option="$withval" ;; 5756esac 5757OPTIMIZE_OPTION=$optimize_option 5758 5759{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5760echo "${ECHO_T}$optimize_option" >&6; } 5761 5762 5763# Check whether --with-extra-options was given. 5764if test "${with_extra_options+set}" = set; then 5765 withval=$with_extra_options; 5766else 5767 withval=default 5768fi 5769 5770case "$withval" in 5771 default) EXTRA_OPTIONS= ;; 5772 *) EXTRA_OPTIONS=$withval ;; 5773esac 5774EXTRA_OPTIONS=$EXTRA_OPTIONS 5775 5776 5777 5778# Check whether --with-extra-ld-options was given. 5779if test "${with_extra_ld_options+set}" = set; then 5780 withval=$with_extra_ld_options; 5781else 5782 withval=default 5783fi 5784 5785case "$withval" in 5786 default) EXTRA_LD_OPTIONS= ;; 5787 *) EXTRA_LD_OPTIONS=$withval ;; 5788esac 5789EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5790 5791 5792# Check whether --enable-bindings was given. 5793if test "${enable_bindings+set}" = set; then 5794 enableval=$enable_bindings; 5795else 5796 enableval=default 5797fi 5798 5799BINDINGS_TO_BUILD="" 5800case "$enableval" in 5801 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5802 all ) BINDINGS_TO_BUILD="ocaml" ;; 5803 none | no) BINDINGS_TO_BUILD="" ;; 5804 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5805 case "$a_binding" in 5806 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5807 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5808echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5809 { (exit 1); exit 1; }; } ;; 5810 esac 5811 done 5812 ;; 5813esac 5814 5815 5816# Check whether --with-ocaml-libdir was given. 5817if test "${with_ocaml_libdir+set}" = set; then 5818 withval=$with_ocaml_libdir; 5819else 5820 withval=auto 5821fi 5822 5823case "$withval" in 5824 auto) with_ocaml_libdir="$withval" ;; 5825 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5826 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5827echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5828 { (exit 1); exit 1; }; } ;; 5829esac 5830 5831 5832# Check whether --with-clang-srcdir was given. 5833if test "${with_clang_srcdir+set}" = set; then 5834 withval=$with_clang_srcdir; 5835else 5836 withval="-" 5837fi 5838 5839case "$withval" in 5840 -) clang_src_root="" ;; 5841 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5842 *) clang_src_root="$ac_pwd/$withval" ;; 5843esac 5844CLANG_SRC_ROOT=$clang_src_root 5845 5846 5847 5848# Check whether --with-clang-resource-dir was given. 5849if test "${with_clang_resource_dir+set}" = set; then 5850 withval=$with_clang_resource_dir; 5851else 5852 withval="" 5853fi 5854 5855 5856cat >>confdefs.h <<_ACEOF 5857#define CLANG_RESOURCE_DIR "$withval" 5858_ACEOF 5859 5860 5861 5862# Check whether --with-c-include-dirs was given. 5863if test "${with_c_include_dirs+set}" = set; then 5864 withval=$with_c_include_dirs; 5865else 5866 withval="" 5867fi 5868 5869 5870cat >>confdefs.h <<_ACEOF 5871#define C_INCLUDE_DIRS "$withval" 5872_ACEOF 5873 5874 5875# Clang normally uses the system c++ headers and libraries. With this option, 5876# clang will use the ones provided by a gcc installation instead. This option should 5877# be passed the same value that was used with --prefix when configuring gcc. 5878 5879# Check whether --with-gcc-toolchain was given. 5880if test "${with_gcc_toolchain+set}" = set; then 5881 withval=$with_gcc_toolchain; 5882else 5883 withval="" 5884fi 5885 5886 5887cat >>confdefs.h <<_ACEOF 5888#define GCC_INSTALL_PREFIX "$withval" 5889_ACEOF 5890 5891 5892 5893# Check whether --with-default-sysroot was given. 5894if test "${with_default_sysroot+set}" = set; then 5895 withval=$with_default_sysroot; 5896else 5897 withval="" 5898fi 5899 5900 5901cat >>confdefs.h <<_ACEOF 5902#define DEFAULT_SYSROOT "$withval" 5903_ACEOF 5904 5905 5906 5907# Check whether --with-binutils-include was given. 5908if test "${with_binutils_include+set}" = set; then 5909 withval=$with_binutils_include; 5910else 5911 withval=default 5912fi 5913 5914case "$withval" in 5915 default) WITH_BINUTILS_INCDIR=default ;; 5916 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5917 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5918echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5919 { (exit 1); exit 1; }; } ;; 5920esac 5921if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5922 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5923 5924 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5925 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5926 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5927echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5928 { (exit 1); exit 1; }; }; 5929 fi 5930fi 5931 5932 5933# Check whether --with-bug-report-url was given. 5934if test "${with_bug_report_url+set}" = set; then 5935 withval=$with_bug_report_url; 5936else 5937 withval="http://llvm.org/bugs/" 5938fi 5939 5940 5941cat >>confdefs.h <<_ACEOF 5942#define BUG_REPORT_URL "$withval" 5943_ACEOF 5944 5945 5946# Check whether --enable-libffi was given. 5947if test "${enable_libffi+set}" = set; then 5948 enableval=$enable_libffi; case "$enableval" in 5949 yes) llvm_cv_enable_libffi="yes" ;; 5950 no) llvm_cv_enable_libffi="no" ;; 5951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5952echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5953 { (exit 1); exit 1; }; } ;; 5954 esac 5955else 5956 llvm_cv_enable_libffi=no 5957fi 5958 5959 5960 5961# Check whether --with-internal-prefix was given. 5962if test "${with_internal_prefix+set}" = set; then 5963 withval=$with_internal_prefix; 5964else 5965 withval="" 5966fi 5967 5968INTERNAL_PREFIX=$withval 5969 5970 5971 5972{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5973echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5974if test "${lt_cv_path_NM+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 if test -n "$NM"; then 5978 # Let the user override the test. 5979 lt_cv_path_NM="$NM" 5980else 5981 lt_nm_to_check="${ac_tool_prefix}nm" 5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5983 lt_nm_to_check="$lt_nm_to_check nm" 5984 fi 5985 for lt_tmp_nm in $lt_nm_to_check; do 5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5988 IFS="$lt_save_ifs" 5989 test -z "$ac_dir" && ac_dir=. 5990 tmp_nm="$ac_dir/$lt_tmp_nm" 5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5992 # Check to see if the nm accepts a BSD-compat flag. 5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5994 # nm: unknown option "B" ignored 5995 # Tru64's nm complains that /dev/null is an invalid object file 5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5997 */dev/null* | *'Invalid file or object type'*) 5998 lt_cv_path_NM="$tmp_nm -B" 5999 break 6000 ;; 6001 *) 6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6003 */dev/null*) 6004 lt_cv_path_NM="$tmp_nm -p" 6005 break 6006 ;; 6007 *) 6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6009 continue # so that we can try to find one that supports BSD flags 6010 ;; 6011 esac 6012 ;; 6013 esac 6014 fi 6015 done 6016 IFS="$lt_save_ifs" 6017 done 6018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6019fi 6020fi 6021{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6022echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6023NM="$lt_cv_path_NM" 6024 6025 6026 6027{ echo "$as_me:$LINENO: checking for GNU make" >&5 6028echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6029if test "${llvm_cv_gnu_make_command+set}" = set; then 6030 echo $ECHO_N "(cached) $ECHO_C" >&6 6031else 6032 llvm_cv_gnu_make_command='' 6033 for a in "$MAKE" make gmake gnumake ; do 6034 if test -z "$a" ; then continue ; fi ; 6035 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6036 then 6037 llvm_cv_gnu_make_command=$a ; 6038 break; 6039 fi 6040 done 6041fi 6042{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6043echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6044 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6045 ifGNUmake='' ; 6046 else 6047 ifGNUmake='#' ; 6048 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6049echo "${ECHO_T}\"Not found\"" >&6; }; 6050 fi 6051 6052 6053{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6054echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6055LN_S=$as_ln_s 6056if test "$LN_S" = "ln -s"; then 6057 { echo "$as_me:$LINENO: result: yes" >&5 6058echo "${ECHO_T}yes" >&6; } 6059else 6060 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6061echo "${ECHO_T}no, using $LN_S" >&6; } 6062fi 6063 6064# Extract the first word of "cmp", so it can be a program name with args. 6065set dummy cmp; ac_word=$2 6066{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6068if test "${ac_cv_path_CMP+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070else 6071 case $CMP in 6072 [\\/]* | ?:[\\/]*) 6073 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6074 ;; 6075 *) 6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6077for as_dir in $PATH 6078do 6079 IFS=$as_save_IFS 6080 test -z "$as_dir" && as_dir=. 6081 for ac_exec_ext in '' $ac_executable_extensions; do 6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6083 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6085 break 2 6086 fi 6087done 6088done 6089IFS=$as_save_IFS 6090 6091 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6092 ;; 6093esac 6094fi 6095CMP=$ac_cv_path_CMP 6096if test -n "$CMP"; then 6097 { echo "$as_me:$LINENO: result: $CMP" >&5 6098echo "${ECHO_T}$CMP" >&6; } 6099else 6100 { echo "$as_me:$LINENO: result: no" >&5 6101echo "${ECHO_T}no" >&6; } 6102fi 6103 6104 6105# Extract the first word of "cp", so it can be a program name with args. 6106set dummy cp; 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_path_CP+set}" = set; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111else 6112 case $CP in 6113 [\\/]* | ?:[\\/]*) 6114 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6115 ;; 6116 *) 6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6118for as_dir in $PATH 6119do 6120 IFS=$as_save_IFS 6121 test -z "$as_dir" && as_dir=. 6122 for ac_exec_ext in '' $ac_executable_extensions; do 6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6124 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6126 break 2 6127 fi 6128done 6129done 6130IFS=$as_save_IFS 6131 6132 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6133 ;; 6134esac 6135fi 6136CP=$ac_cv_path_CP 6137if test -n "$CP"; then 6138 { echo "$as_me:$LINENO: result: $CP" >&5 6139echo "${ECHO_T}$CP" >&6; } 6140else 6141 { echo "$as_me:$LINENO: result: no" >&5 6142echo "${ECHO_T}no" >&6; } 6143fi 6144 6145 6146# Extract the first word of "date", so it can be a program name with args. 6147set dummy date; ac_word=$2 6148{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6150if test "${ac_cv_path_DATE+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152else 6153 case $DATE in 6154 [\\/]* | ?:[\\/]*) 6155 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6156 ;; 6157 *) 6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159for as_dir in $PATH 6160do 6161 IFS=$as_save_IFS 6162 test -z "$as_dir" && as_dir=. 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6165 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169done 6170done 6171IFS=$as_save_IFS 6172 6173 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6174 ;; 6175esac 6176fi 6177DATE=$ac_cv_path_DATE 6178if test -n "$DATE"; then 6179 { echo "$as_me:$LINENO: result: $DATE" >&5 6180echo "${ECHO_T}$DATE" >&6; } 6181else 6182 { echo "$as_me:$LINENO: result: no" >&5 6183echo "${ECHO_T}no" >&6; } 6184fi 6185 6186 6187# Extract the first word of "find", so it can be a program name with args. 6188set dummy find; ac_word=$2 6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6191if test "${ac_cv_path_FIND+set}" = set; then 6192 echo $ECHO_N "(cached) $ECHO_C" >&6 6193else 6194 case $FIND in 6195 [\\/]* | ?:[\\/]*) 6196 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6197 ;; 6198 *) 6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200for as_dir in $PATH 6201do 6202 IFS=$as_save_IFS 6203 test -z "$as_dir" && as_dir=. 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6206 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210done 6211done 6212IFS=$as_save_IFS 6213 6214 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6215 ;; 6216esac 6217fi 6218FIND=$ac_cv_path_FIND 6219if test -n "$FIND"; then 6220 { echo "$as_me:$LINENO: result: $FIND" >&5 6221echo "${ECHO_T}$FIND" >&6; } 6222else 6223 { echo "$as_me:$LINENO: result: no" >&5 6224echo "${ECHO_T}no" >&6; } 6225fi 6226 6227 6228# Extract the first word of "grep", so it can be a program name with args. 6229set dummy grep; ac_word=$2 6230{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6232if test "${ac_cv_path_GREP+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 case $GREP in 6236 [\\/]* | ?:[\\/]*) 6237 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6238 ;; 6239 *) 6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6247 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252done 6253IFS=$as_save_IFS 6254 6255 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6256 ;; 6257esac 6258fi 6259GREP=$ac_cv_path_GREP 6260if test -n "$GREP"; then 6261 { echo "$as_me:$LINENO: result: $GREP" >&5 6262echo "${ECHO_T}$GREP" >&6; } 6263else 6264 { echo "$as_me:$LINENO: result: no" >&5 6265echo "${ECHO_T}no" >&6; } 6266fi 6267 6268 6269# Extract the first word of "mkdir", so it can be a program name with args. 6270set dummy mkdir; ac_word=$2 6271{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6273if test "${ac_cv_path_MKDIR+set}" = set; then 6274 echo $ECHO_N "(cached) $ECHO_C" >&6 6275else 6276 case $MKDIR in 6277 [\\/]* | ?:[\\/]*) 6278 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6279 ;; 6280 *) 6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282for as_dir in $PATH 6283do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6288 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292done 6293done 6294IFS=$as_save_IFS 6295 6296 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6297 ;; 6298esac 6299fi 6300MKDIR=$ac_cv_path_MKDIR 6301if test -n "$MKDIR"; then 6302 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6303echo "${ECHO_T}$MKDIR" >&6; } 6304else 6305 { echo "$as_me:$LINENO: result: no" >&5 6306echo "${ECHO_T}no" >&6; } 6307fi 6308 6309 6310# Extract the first word of "mv", so it can be a program name with args. 6311set dummy mv; ac_word=$2 6312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6314if test "${ac_cv_path_MV+set}" = set; then 6315 echo $ECHO_N "(cached) $ECHO_C" >&6 6316else 6317 case $MV in 6318 [\\/]* | ?:[\\/]*) 6319 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6320 ;; 6321 *) 6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6329 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333done 6334done 6335IFS=$as_save_IFS 6336 6337 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6338 ;; 6339esac 6340fi 6341MV=$ac_cv_path_MV 6342if test -n "$MV"; then 6343 { echo "$as_me:$LINENO: result: $MV" >&5 6344echo "${ECHO_T}$MV" >&6; } 6345else 6346 { echo "$as_me:$LINENO: result: no" >&5 6347echo "${ECHO_T}no" >&6; } 6348fi 6349 6350 6351if test -n "$ac_tool_prefix"; then 6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6353set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6354{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6356if test "${ac_cv_prog_RANLIB+set}" = set; then 6357 echo $ECHO_N "(cached) $ECHO_C" >&6 6358else 6359 if test -n "$RANLIB"; then 6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6361else 6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363for as_dir in $PATH 6364do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373done 6374done 6375IFS=$as_save_IFS 6376 6377fi 6378fi 6379RANLIB=$ac_cv_prog_RANLIB 6380if test -n "$RANLIB"; then 6381 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6382echo "${ECHO_T}$RANLIB" >&6; } 6383else 6384 { echo "$as_me:$LINENO: result: no" >&5 6385echo "${ECHO_T}no" >&6; } 6386fi 6387 6388 6389fi 6390if test -z "$ac_cv_prog_RANLIB"; then 6391 ac_ct_RANLIB=$RANLIB 6392 # Extract the first word of "ranlib", so it can be a program name with args. 6393set dummy ranlib; ac_word=$2 6394{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6396if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398else 6399 if test -n "$ac_ct_RANLIB"; then 6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6401else 6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_prog_ac_ct_RANLIB="ranlib" 6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414done 6415IFS=$as_save_IFS 6416 6417fi 6418fi 6419ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6420if test -n "$ac_ct_RANLIB"; then 6421 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6422echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6423else 6424 { echo "$as_me:$LINENO: result: no" >&5 6425echo "${ECHO_T}no" >&6; } 6426fi 6427 6428 if test "x$ac_ct_RANLIB" = x; then 6429 RANLIB=":" 6430 else 6431 case $cross_compiling:$ac_tool_warned in 6432yes:) 6433{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6434whose name does not start with the host triplet. If you think this 6435configuration is useful to you, please write to autoconf@gnu.org." >&5 6436echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6437whose name does not start with the host triplet. If you think this 6438configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6439ac_tool_warned=yes ;; 6440esac 6441 RANLIB=$ac_ct_RANLIB 6442 fi 6443else 6444 RANLIB="$ac_cv_prog_RANLIB" 6445fi 6446 6447if test -n "$ac_tool_prefix"; then 6448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6449set dummy ${ac_tool_prefix}ar; ac_word=$2 6450{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6452if test "${ac_cv_prog_AR+set}" = set; then 6453 echo $ECHO_N "(cached) $ECHO_C" >&6 6454else 6455 if test -n "$AR"; then 6456 ac_cv_prog_AR="$AR" # Let the user override the test. 6457else 6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459for as_dir in $PATH 6460do 6461 IFS=$as_save_IFS 6462 test -z "$as_dir" && as_dir=. 6463 for ac_exec_ext in '' $ac_executable_extensions; do 6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6465 ac_cv_prog_AR="${ac_tool_prefix}ar" 6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6467 break 2 6468 fi 6469done 6470done 6471IFS=$as_save_IFS 6472 6473fi 6474fi 6475AR=$ac_cv_prog_AR 6476if test -n "$AR"; then 6477 { echo "$as_me:$LINENO: result: $AR" >&5 6478echo "${ECHO_T}$AR" >&6; } 6479else 6480 { echo "$as_me:$LINENO: result: no" >&5 6481echo "${ECHO_T}no" >&6; } 6482fi 6483 6484 6485fi 6486if test -z "$ac_cv_prog_AR"; then 6487 ac_ct_AR=$AR 6488 # Extract the first word of "ar", so it can be a program name with args. 6489set dummy ar; ac_word=$2 6490{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6492if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6493 echo $ECHO_N "(cached) $ECHO_C" >&6 6494else 6495 if test -n "$ac_ct_AR"; then 6496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6497else 6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499for as_dir in $PATH 6500do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6505 ac_cv_prog_ac_ct_AR="ar" 6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509done 6510done 6511IFS=$as_save_IFS 6512 6513fi 6514fi 6515ac_ct_AR=$ac_cv_prog_ac_ct_AR 6516if test -n "$ac_ct_AR"; then 6517 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6518echo "${ECHO_T}$ac_ct_AR" >&6; } 6519else 6520 { echo "$as_me:$LINENO: result: no" >&5 6521echo "${ECHO_T}no" >&6; } 6522fi 6523 6524 if test "x$ac_ct_AR" = x; then 6525 AR="false" 6526 else 6527 case $cross_compiling:$ac_tool_warned in 6528yes:) 6529{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6530whose name does not start with the host triplet. If you think this 6531configuration is useful to you, please write to autoconf@gnu.org." >&5 6532echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6533whose name does not start with the host triplet. If you think this 6534configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6535ac_tool_warned=yes ;; 6536esac 6537 AR=$ac_ct_AR 6538 fi 6539else 6540 AR="$ac_cv_prog_AR" 6541fi 6542 6543# Extract the first word of "rm", so it can be a program name with args. 6544set dummy rm; ac_word=$2 6545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6547if test "${ac_cv_path_RM+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549else 6550 case $RM in 6551 [\\/]* | ?:[\\/]*) 6552 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6553 ;; 6554 *) 6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556for as_dir in $PATH 6557do 6558 IFS=$as_save_IFS 6559 test -z "$as_dir" && as_dir=. 6560 for ac_exec_ext in '' $ac_executable_extensions; do 6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6562 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6564 break 2 6565 fi 6566done 6567done 6568IFS=$as_save_IFS 6569 6570 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6571 ;; 6572esac 6573fi 6574RM=$ac_cv_path_RM 6575if test -n "$RM"; then 6576 { echo "$as_me:$LINENO: result: $RM" >&5 6577echo "${ECHO_T}$RM" >&6; } 6578else 6579 { echo "$as_me:$LINENO: result: no" >&5 6580echo "${ECHO_T}no" >&6; } 6581fi 6582 6583 6584# Extract the first word of "sed", so it can be a program name with args. 6585set dummy sed; ac_word=$2 6586{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6588if test "${ac_cv_path_SED+set}" = set; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590else 6591 case $SED in 6592 [\\/]* | ?:[\\/]*) 6593 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6594 ;; 6595 *) 6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597for as_dir in $PATH 6598do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6603 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607done 6608done 6609IFS=$as_save_IFS 6610 6611 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6612 ;; 6613esac 6614fi 6615SED=$ac_cv_path_SED 6616if test -n "$SED"; then 6617 { echo "$as_me:$LINENO: result: $SED" >&5 6618echo "${ECHO_T}$SED" >&6; } 6619else 6620 { echo "$as_me:$LINENO: result: no" >&5 6621echo "${ECHO_T}no" >&6; } 6622fi 6623 6624 6625# Extract the first word of "tar", so it can be a program name with args. 6626set dummy tar; ac_word=$2 6627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6629if test "${ac_cv_path_TAR+set}" = set; then 6630 echo $ECHO_N "(cached) $ECHO_C" >&6 6631else 6632 case $TAR in 6633 [\\/]* | ?:[\\/]*) 6634 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6635 ;; 6636 *) 6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638for as_dir in $PATH 6639do 6640 IFS=$as_save_IFS 6641 test -z "$as_dir" && as_dir=. 6642 for ac_exec_ext in '' $ac_executable_extensions; do 6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6644 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6646 break 2 6647 fi 6648done 6649done 6650IFS=$as_save_IFS 6651 6652 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6653 ;; 6654esac 6655fi 6656TAR=$ac_cv_path_TAR 6657if test -n "$TAR"; then 6658 { echo "$as_me:$LINENO: result: $TAR" >&5 6659echo "${ECHO_T}$TAR" >&6; } 6660else 6661 { echo "$as_me:$LINENO: result: no" >&5 6662echo "${ECHO_T}no" >&6; } 6663fi 6664 6665 6666# Extract the first word of "pwd", so it can be a program name with args. 6667set dummy pwd; ac_word=$2 6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6670if test "${ac_cv_path_BINPWD+set}" = set; then 6671 echo $ECHO_N "(cached) $ECHO_C" >&6 6672else 6673 case $BINPWD in 6674 [\\/]* | ?:[\\/]*) 6675 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6676 ;; 6677 *) 6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690done 6691IFS=$as_save_IFS 6692 6693 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6694 ;; 6695esac 6696fi 6697BINPWD=$ac_cv_path_BINPWD 6698if test -n "$BINPWD"; then 6699 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6700echo "${ECHO_T}$BINPWD" >&6; } 6701else 6702 { echo "$as_me:$LINENO: result: no" >&5 6703echo "${ECHO_T}no" >&6; } 6704fi 6705 6706 6707 6708# Extract the first word of "Graphviz", so it can be a program name with args. 6709set dummy Graphviz; ac_word=$2 6710{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6712if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6713 echo $ECHO_N "(cached) $ECHO_C" >&6 6714else 6715 case $GRAPHVIZ in 6716 [\\/]* | ?:[\\/]*) 6717 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6718 ;; 6719 *) 6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6727 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732done 6733IFS=$as_save_IFS 6734 6735 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6736 ;; 6737esac 6738fi 6739GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6740if test -n "$GRAPHVIZ"; then 6741 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6742echo "${ECHO_T}$GRAPHVIZ" >&6; } 6743else 6744 { echo "$as_me:$LINENO: result: no" >&5 6745echo "${ECHO_T}no" >&6; } 6746fi 6747 6748 6749if test "$GRAPHVIZ" != "echo Graphviz" ; then 6750 6751cat >>confdefs.h <<\_ACEOF 6752#define HAVE_GRAPHVIZ 1 6753_ACEOF 6754 6755 if test "$llvm_cv_os_type" = "MingW" ; then 6756 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6757 fi 6758 6759cat >>confdefs.h <<_ACEOF 6760#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6761_ACEOF 6762 6763fi 6764# Extract the first word of "dot", so it can be a program name with args. 6765set dummy dot; ac_word=$2 6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6768if test "${ac_cv_path_DOT+set}" = set; then 6769 echo $ECHO_N "(cached) $ECHO_C" >&6 6770else 6771 case $DOT in 6772 [\\/]* | ?:[\\/]*) 6773 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6774 ;; 6775 *) 6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788done 6789IFS=$as_save_IFS 6790 6791 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6792 ;; 6793esac 6794fi 6795DOT=$ac_cv_path_DOT 6796if test -n "$DOT"; then 6797 { echo "$as_me:$LINENO: result: $DOT" >&5 6798echo "${ECHO_T}$DOT" >&6; } 6799else 6800 { echo "$as_me:$LINENO: result: no" >&5 6801echo "${ECHO_T}no" >&6; } 6802fi 6803 6804 6805if test "$DOT" != "echo dot" ; then 6806 6807cat >>confdefs.h <<\_ACEOF 6808#define HAVE_DOT 1 6809_ACEOF 6810 6811 if test "$llvm_cv_os_type" = "MingW" ; then 6812 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6813 fi 6814 6815cat >>confdefs.h <<_ACEOF 6816#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6817_ACEOF 6818 6819fi 6820# Extract the first word of "fdp", so it can be a program name with args. 6821set dummy fdp; ac_word=$2 6822{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6824if test "${ac_cv_path_FDP+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826else 6827 case $FDP in 6828 [\\/]* | ?:[\\/]*) 6829 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6830 ;; 6831 *) 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844done 6845IFS=$as_save_IFS 6846 6847 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6848 ;; 6849esac 6850fi 6851FDP=$ac_cv_path_FDP 6852if test -n "$FDP"; then 6853 { echo "$as_me:$LINENO: result: $FDP" >&5 6854echo "${ECHO_T}$FDP" >&6; } 6855else 6856 { echo "$as_me:$LINENO: result: no" >&5 6857echo "${ECHO_T}no" >&6; } 6858fi 6859 6860 6861if test "$FDP" != "echo fdp" ; then 6862 6863cat >>confdefs.h <<\_ACEOF 6864#define HAVE_FDP 1 6865_ACEOF 6866 6867 if test "$llvm_cv_os_type" = "MingW" ; then 6868 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6869 fi 6870 6871cat >>confdefs.h <<_ACEOF 6872#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6873_ACEOF 6874 6875fi 6876# Extract the first word of "neato", so it can be a program name with args. 6877set dummy neato; ac_word=$2 6878{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6880if test "${ac_cv_path_NEATO+set}" = set; then 6881 echo $ECHO_N "(cached) $ECHO_C" >&6 6882else 6883 case $NEATO in 6884 [\\/]* | ?:[\\/]*) 6885 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6886 ;; 6887 *) 6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889for as_dir in $PATH 6890do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6895 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899done 6900done 6901IFS=$as_save_IFS 6902 6903 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6904 ;; 6905esac 6906fi 6907NEATO=$ac_cv_path_NEATO 6908if test -n "$NEATO"; then 6909 { echo "$as_me:$LINENO: result: $NEATO" >&5 6910echo "${ECHO_T}$NEATO" >&6; } 6911else 6912 { echo "$as_me:$LINENO: result: no" >&5 6913echo "${ECHO_T}no" >&6; } 6914fi 6915 6916 6917if test "$NEATO" != "echo neato" ; then 6918 6919cat >>confdefs.h <<\_ACEOF 6920#define HAVE_NEATO 1 6921_ACEOF 6922 6923 if test "$llvm_cv_os_type" = "MingW" ; then 6924 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6925 fi 6926 6927cat >>confdefs.h <<_ACEOF 6928#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6929_ACEOF 6930 6931fi 6932# Extract the first word of "twopi", so it can be a program name with args. 6933set dummy twopi; ac_word=$2 6934{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6936if test "${ac_cv_path_TWOPI+set}" = set; then 6937 echo $ECHO_N "(cached) $ECHO_C" >&6 6938else 6939 case $TWOPI in 6940 [\\/]* | ?:[\\/]*) 6941 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6942 ;; 6943 *) 6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956done 6957IFS=$as_save_IFS 6958 6959 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6960 ;; 6961esac 6962fi 6963TWOPI=$ac_cv_path_TWOPI 6964if test -n "$TWOPI"; then 6965 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6966echo "${ECHO_T}$TWOPI" >&6; } 6967else 6968 { echo "$as_me:$LINENO: result: no" >&5 6969echo "${ECHO_T}no" >&6; } 6970fi 6971 6972 6973if test "$TWOPI" != "echo twopi" ; then 6974 6975cat >>confdefs.h <<\_ACEOF 6976#define HAVE_TWOPI 1 6977_ACEOF 6978 6979 if test "$llvm_cv_os_type" = "MingW" ; then 6980 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6981 fi 6982 6983cat >>confdefs.h <<_ACEOF 6984#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6985_ACEOF 6986 6987fi 6988# Extract the first word of "circo", so it can be a program name with args. 6989set dummy circo; ac_word=$2 6990{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6992if test "${ac_cv_path_CIRCO+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 case $CIRCO in 6996 [\\/]* | ?:[\\/]*) 6997 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6998 ;; 6999 *) 7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7007 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011done 7012done 7013IFS=$as_save_IFS 7014 7015 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7016 ;; 7017esac 7018fi 7019CIRCO=$ac_cv_path_CIRCO 7020if test -n "$CIRCO"; then 7021 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7022echo "${ECHO_T}$CIRCO" >&6; } 7023else 7024 { echo "$as_me:$LINENO: result: no" >&5 7025echo "${ECHO_T}no" >&6; } 7026fi 7027 7028 7029if test "$CIRCO" != "echo circo" ; then 7030 7031cat >>confdefs.h <<\_ACEOF 7032#define HAVE_CIRCO 1 7033_ACEOF 7034 7035 if test "$llvm_cv_os_type" = "MingW" ; then 7036 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7037 fi 7038 7039cat >>confdefs.h <<_ACEOF 7040#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7041_ACEOF 7042 7043fi 7044for ac_prog in gv gsview32 7045do 7046 # Extract the first word of "$ac_prog", so it can be a program name with args. 7047set dummy $ac_prog; ac_word=$2 7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7050if test "${ac_cv_path_GV+set}" = set; then 7051 echo $ECHO_N "(cached) $ECHO_C" >&6 7052else 7053 case $GV in 7054 [\\/]* | ?:[\\/]*) 7055 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7056 ;; 7057 *) 7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7065 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070done 7071IFS=$as_save_IFS 7072 7073 ;; 7074esac 7075fi 7076GV=$ac_cv_path_GV 7077if test -n "$GV"; then 7078 { echo "$as_me:$LINENO: result: $GV" >&5 7079echo "${ECHO_T}$GV" >&6; } 7080else 7081 { echo "$as_me:$LINENO: result: no" >&5 7082echo "${ECHO_T}no" >&6; } 7083fi 7084 7085 7086 test -n "$GV" && break 7087done 7088test -n "$GV" || GV="echo gv" 7089 7090if test "$GV" != "echo gv" ; then 7091 7092cat >>confdefs.h <<\_ACEOF 7093#define HAVE_GV 1 7094_ACEOF 7095 7096 if test "$llvm_cv_os_type" = "MingW" ; then 7097 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7098 fi 7099 7100cat >>confdefs.h <<_ACEOF 7101#define LLVM_PATH_GV "$GV${EXEEXT}" 7102_ACEOF 7103 7104fi 7105# Extract the first word of "dotty", so it can be a program name with args. 7106set dummy dotty; ac_word=$2 7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7109if test "${ac_cv_path_DOTTY+set}" = set; then 7110 echo $ECHO_N "(cached) $ECHO_C" >&6 7111else 7112 case $DOTTY in 7113 [\\/]* | ?:[\\/]*) 7114 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7115 ;; 7116 *) 7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH 7119do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7124 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129done 7130IFS=$as_save_IFS 7131 7132 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7133 ;; 7134esac 7135fi 7136DOTTY=$ac_cv_path_DOTTY 7137if test -n "$DOTTY"; then 7138 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7139echo "${ECHO_T}$DOTTY" >&6; } 7140else 7141 { echo "$as_me:$LINENO: result: no" >&5 7142echo "${ECHO_T}no" >&6; } 7143fi 7144 7145 7146if test "$DOTTY" != "echo dotty" ; then 7147 7148cat >>confdefs.h <<\_ACEOF 7149#define HAVE_DOTTY 1 7150_ACEOF 7151 7152 if test "$llvm_cv_os_type" = "MingW" ; then 7153 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7154 fi 7155 7156cat >>confdefs.h <<_ACEOF 7157#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7158_ACEOF 7159 7160fi 7161# Extract the first word of "xdot.py", so it can be a program name with args. 7162set dummy xdot.py; ac_word=$2 7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7165if test "${ac_cv_path_XDOT_PY+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167else 7168 case $XDOT_PY in 7169 [\\/]* | ?:[\\/]*) 7170 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7171 ;; 7172 *) 7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7180 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184done 7185done 7186IFS=$as_save_IFS 7187 7188 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 7189 ;; 7190esac 7191fi 7192XDOT_PY=$ac_cv_path_XDOT_PY 7193if test -n "$XDOT_PY"; then 7194 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 7195echo "${ECHO_T}$XDOT_PY" >&6; } 7196else 7197 { echo "$as_me:$LINENO: result: no" >&5 7198echo "${ECHO_T}no" >&6; } 7199fi 7200 7201 7202if test "$XDOT_PY" != "echo xdot.py" ; then 7203 7204cat >>confdefs.h <<\_ACEOF 7205#define HAVE_XDOT_PY 1 7206_ACEOF 7207 7208 if test "$llvm_cv_os_type" = "MingW" ; then 7209 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7210 fi 7211 7212cat >>confdefs.h <<_ACEOF 7213#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7214_ACEOF 7215 7216fi 7217 7218# Find a good install program. We prefer a C program (faster), 7219# so one script is as good as another. But avoid the broken or 7220# incompatible versions: 7221# SysV /etc/install, /usr/sbin/install 7222# SunOS /usr/etc/install 7223# IRIX /sbin/install 7224# AIX /bin/install 7225# AmigaOS /C/install, which installs bootblocks on floppy discs 7226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7227# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7229# OS/2's system install, which has a completely different semantic 7230# ./install, which can be erroneously created by make from ./install.sh. 7231{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7232echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7233if test -z "$INSTALL"; then 7234if test "${ac_cv_path_install+set}" = set; then 7235 echo $ECHO_N "(cached) $ECHO_C" >&6 7236else 7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7238for as_dir in $PATH 7239do 7240 IFS=$as_save_IFS 7241 test -z "$as_dir" && as_dir=. 7242 # Account for people who put trailing slashes in PATH elements. 7243case $as_dir/ in 7244 ./ | .// | /cC/* | \ 7245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7247 /usr/ucb/* ) ;; 7248 *) 7249 # OSF1 and SCO ODT 3.0 have their own names for install. 7250 # Don't use installbsd from OSF since it installs stuff as root 7251 # by default. 7252 for ac_prog in ginstall scoinst install; do 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7255 if test $ac_prog = install && 7256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7257 # AIX install. It has an incompatible calling convention. 7258 : 7259 elif test $ac_prog = install && 7260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7261 # program-specific install script used by HP pwplus--don't use. 7262 : 7263 else 7264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7265 break 3 7266 fi 7267 fi 7268 done 7269 done 7270 ;; 7271esac 7272done 7273IFS=$as_save_IFS 7274 7275 7276fi 7277 if test "${ac_cv_path_install+set}" = set; then 7278 INSTALL=$ac_cv_path_install 7279 else 7280 # As a last resort, use the slow shell script. Don't cache a 7281 # value for INSTALL within a source directory, because that will 7282 # break other packages using the cache if that directory is 7283 # removed, or if the value is a relative name. 7284 INSTALL=$ac_install_sh 7285 fi 7286fi 7287{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7288echo "${ECHO_T}$INSTALL" >&6; } 7289 7290# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7291# It thinks the first close brace ends the variable substitution. 7292test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7293 7294test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7295 7296test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7297 7298case "$INSTALL" in 7299 [\\/$]* | ?:[\\/]* ) ;; 7300 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7301esac 7302 7303# Extract the first word of "bzip2", so it can be a program name with args. 7304set dummy bzip2; ac_word=$2 7305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7307if test "${ac_cv_path_BZIP2+set}" = set; then 7308 echo $ECHO_N "(cached) $ECHO_C" >&6 7309else 7310 case $BZIP2 in 7311 [\\/]* | ?:[\\/]*) 7312 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7313 ;; 7314 *) 7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7316for as_dir in $PATH 7317do 7318 IFS=$as_save_IFS 7319 test -z "$as_dir" && as_dir=. 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7322 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7324 break 2 7325 fi 7326done 7327done 7328IFS=$as_save_IFS 7329 7330 ;; 7331esac 7332fi 7333BZIP2=$ac_cv_path_BZIP2 7334if test -n "$BZIP2"; then 7335 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7336echo "${ECHO_T}$BZIP2" >&6; } 7337else 7338 { echo "$as_me:$LINENO: result: no" >&5 7339echo "${ECHO_T}no" >&6; } 7340fi 7341 7342 7343# Extract the first word of "cat", so it can be a program name with args. 7344set dummy cat; 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_CAT+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349else 7350 case $CAT in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_CAT="$CAT" # 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_CAT="$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 7373CAT=$ac_cv_path_CAT 7374if test -n "$CAT"; then 7375 { echo "$as_me:$LINENO: result: $CAT" >&5 7376echo "${ECHO_T}$CAT" >&6; } 7377else 7378 { echo "$as_me:$LINENO: result: no" >&5 7379echo "${ECHO_T}no" >&6; } 7380fi 7381 7382 7383# Extract the first word of "doxygen", so it can be a program name with args. 7384set dummy doxygen; ac_word=$2 7385{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7387if test "${ac_cv_path_DOXYGEN+set}" = set; then 7388 echo $ECHO_N "(cached) $ECHO_C" >&6 7389else 7390 case $DOXYGEN in 7391 [\\/]* | ?:[\\/]*) 7392 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7393 ;; 7394 *) 7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7402 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407done 7408IFS=$as_save_IFS 7409 7410 ;; 7411esac 7412fi 7413DOXYGEN=$ac_cv_path_DOXYGEN 7414if test -n "$DOXYGEN"; then 7415 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7416echo "${ECHO_T}$DOXYGEN" >&6; } 7417else 7418 { echo "$as_me:$LINENO: result: no" >&5 7419echo "${ECHO_T}no" >&6; } 7420fi 7421 7422 7423# Extract the first word of "groff", so it can be a program name with args. 7424set dummy groff; ac_word=$2 7425{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7427if test "${ac_cv_path_GROFF+set}" = set; then 7428 echo $ECHO_N "(cached) $ECHO_C" >&6 7429else 7430 case $GROFF in 7431 [\\/]* | ?:[\\/]*) 7432 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7433 ;; 7434 *) 7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7442 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446done 7447done 7448IFS=$as_save_IFS 7449 7450 ;; 7451esac 7452fi 7453GROFF=$ac_cv_path_GROFF 7454if test -n "$GROFF"; then 7455 { echo "$as_me:$LINENO: result: $GROFF" >&5 7456echo "${ECHO_T}$GROFF" >&6; } 7457else 7458 { echo "$as_me:$LINENO: result: no" >&5 7459echo "${ECHO_T}no" >&6; } 7460fi 7461 7462 7463# Extract the first word of "gzip", so it can be a program name with args. 7464set dummy gzip; ac_word=$2 7465{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7467if test "${ac_cv_path_GZIPBIN+set}" = set; then 7468 echo $ECHO_N "(cached) $ECHO_C" >&6 7469else 7470 case $GZIPBIN in 7471 [\\/]* | ?:[\\/]*) 7472 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7473 ;; 7474 *) 7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7476for as_dir in $PATH 7477do 7478 IFS=$as_save_IFS 7479 test -z "$as_dir" && as_dir=. 7480 for ac_exec_ext in '' $ac_executable_extensions; do 7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7482 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7484 break 2 7485 fi 7486done 7487done 7488IFS=$as_save_IFS 7489 7490 ;; 7491esac 7492fi 7493GZIPBIN=$ac_cv_path_GZIPBIN 7494if test -n "$GZIPBIN"; then 7495 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7496echo "${ECHO_T}$GZIPBIN" >&6; } 7497else 7498 { echo "$as_me:$LINENO: result: no" >&5 7499echo "${ECHO_T}no" >&6; } 7500fi 7501 7502 7503# Extract the first word of "pdfroff", so it can be a program name with args. 7504set dummy pdfroff; ac_word=$2 7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7507if test "${ac_cv_path_PDFROFF+set}" = set; then 7508 echo $ECHO_N "(cached) $ECHO_C" >&6 7509else 7510 case $PDFROFF in 7511 [\\/]* | ?:[\\/]*) 7512 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7513 ;; 7514 *) 7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7522 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527done 7528IFS=$as_save_IFS 7529 7530 ;; 7531esac 7532fi 7533PDFROFF=$ac_cv_path_PDFROFF 7534if test -n "$PDFROFF"; then 7535 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7536echo "${ECHO_T}$PDFROFF" >&6; } 7537else 7538 { echo "$as_me:$LINENO: result: no" >&5 7539echo "${ECHO_T}no" >&6; } 7540fi 7541 7542 7543# Extract the first word of "zip", so it can be a program name with args. 7544set dummy zip; ac_word=$2 7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7547if test "${ac_cv_path_ZIP+set}" = set; then 7548 echo $ECHO_N "(cached) $ECHO_C" >&6 7549else 7550 case $ZIP in 7551 [\\/]* | ?:[\\/]*) 7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7553 ;; 7554 *) 7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567done 7568IFS=$as_save_IFS 7569 7570 ;; 7571esac 7572fi 7573ZIP=$ac_cv_path_ZIP 7574if test -n "$ZIP"; then 7575 { echo "$as_me:$LINENO: result: $ZIP" >&5 7576echo "${ECHO_T}$ZIP" >&6; } 7577else 7578 { echo "$as_me:$LINENO: result: no" >&5 7579echo "${ECHO_T}no" >&6; } 7580fi 7581 7582 7583for ac_prog in ocamlc 7584do 7585 # Extract the first word of "$ac_prog", so it can be a program name with args. 7586set dummy $ac_prog; ac_word=$2 7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7589if test "${ac_cv_path_OCAMLC+set}" = set; then 7590 echo $ECHO_N "(cached) $ECHO_C" >&6 7591else 7592 case $OCAMLC in 7593 [\\/]* | ?:[\\/]*) 7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7595 ;; 7596 *) 7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609done 7610IFS=$as_save_IFS 7611 7612 ;; 7613esac 7614fi 7615OCAMLC=$ac_cv_path_OCAMLC 7616if test -n "$OCAMLC"; then 7617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7618echo "${ECHO_T}$OCAMLC" >&6; } 7619else 7620 { echo "$as_me:$LINENO: result: no" >&5 7621echo "${ECHO_T}no" >&6; } 7622fi 7623 7624 7625 test -n "$OCAMLC" && break 7626done 7627 7628for ac_prog in ocamlopt 7629do 7630 # Extract the first word of "$ac_prog", so it can be a program name with args. 7631set dummy $ac_prog; ac_word=$2 7632{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7634if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7635 echo $ECHO_N "(cached) $ECHO_C" >&6 7636else 7637 case $OCAMLOPT in 7638 [\\/]* | ?:[\\/]*) 7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7640 ;; 7641 *) 7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654done 7655IFS=$as_save_IFS 7656 7657 ;; 7658esac 7659fi 7660OCAMLOPT=$ac_cv_path_OCAMLOPT 7661if test -n "$OCAMLOPT"; then 7662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7663echo "${ECHO_T}$OCAMLOPT" >&6; } 7664else 7665 { echo "$as_me:$LINENO: result: no" >&5 7666echo "${ECHO_T}no" >&6; } 7667fi 7668 7669 7670 test -n "$OCAMLOPT" && break 7671done 7672 7673for ac_prog in ocamldep 7674do 7675 # Extract the first word of "$ac_prog", so it can be a program name with args. 7676set dummy $ac_prog; ac_word=$2 7677{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7679if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7680 echo $ECHO_N "(cached) $ECHO_C" >&6 7681else 7682 case $OCAMLDEP in 7683 [\\/]* | ?:[\\/]*) 7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7685 ;; 7686 *) 7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688for as_dir in $PATH 7689do 7690 IFS=$as_save_IFS 7691 test -z "$as_dir" && as_dir=. 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7696 break 2 7697 fi 7698done 7699done 7700IFS=$as_save_IFS 7701 7702 ;; 7703esac 7704fi 7705OCAMLDEP=$ac_cv_path_OCAMLDEP 7706if test -n "$OCAMLDEP"; then 7707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7708echo "${ECHO_T}$OCAMLDEP" >&6; } 7709else 7710 { echo "$as_me:$LINENO: result: no" >&5 7711echo "${ECHO_T}no" >&6; } 7712fi 7713 7714 7715 test -n "$OCAMLDEP" && break 7716done 7717 7718for ac_prog in ocamldoc 7719do 7720 # Extract the first word of "$ac_prog", so it can be a program name with args. 7721set dummy $ac_prog; ac_word=$2 7722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7724if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7725 echo $ECHO_N "(cached) $ECHO_C" >&6 7726else 7727 case $OCAMLDOC in 7728 [\\/]* | ?:[\\/]*) 7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7730 ;; 7731 *) 7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733for as_dir in $PATH 7734do 7735 IFS=$as_save_IFS 7736 test -z "$as_dir" && as_dir=. 7737 for ac_exec_ext in '' $ac_executable_extensions; do 7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7741 break 2 7742 fi 7743done 7744done 7745IFS=$as_save_IFS 7746 7747 ;; 7748esac 7749fi 7750OCAMLDOC=$ac_cv_path_OCAMLDOC 7751if test -n "$OCAMLDOC"; then 7752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7753echo "${ECHO_T}$OCAMLDOC" >&6; } 7754else 7755 { echo "$as_me:$LINENO: result: no" >&5 7756echo "${ECHO_T}no" >&6; } 7757fi 7758 7759 7760 test -n "$OCAMLDOC" && break 7761done 7762 7763for ac_prog in gas as 7764do 7765 # Extract the first word of "$ac_prog", so it can be a program name with args. 7766set dummy $ac_prog; ac_word=$2 7767{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7769if test "${ac_cv_path_GAS+set}" = set; then 7770 echo $ECHO_N "(cached) $ECHO_C" >&6 7771else 7772 case $GAS in 7773 [\\/]* | ?:[\\/]*) 7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7775 ;; 7776 *) 7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778for as_dir in $PATH 7779do 7780 IFS=$as_save_IFS 7781 test -z "$as_dir" && as_dir=. 7782 for ac_exec_ext in '' $ac_executable_extensions; do 7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7786 break 2 7787 fi 7788done 7789done 7790IFS=$as_save_IFS 7791 7792 ;; 7793esac 7794fi 7795GAS=$ac_cv_path_GAS 7796if test -n "$GAS"; then 7797 { echo "$as_me:$LINENO: result: $GAS" >&5 7798echo "${ECHO_T}$GAS" >&6; } 7799else 7800 { echo "$as_me:$LINENO: result: no" >&5 7801echo "${ECHO_T}no" >&6; } 7802fi 7803 7804 7805 test -n "$GAS" && break 7806done 7807 7808 7809{ echo "$as_me:$LINENO: checking for linker version" >&5 7810echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7811if test "${llvm_cv_link_version+set}" = set; then 7812 echo $ECHO_N "(cached) $ECHO_C" >&6 7813else 7814 7815 version_string="$(ld -v 2>&1 | head -1)" 7816 7817 # Check for ld64. 7818 if (echo "$version_string" | grep -q "ld64"); then 7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7820 else 7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7822 fi 7823 7824fi 7825{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7826echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7827 7828cat >>confdefs.h <<_ACEOF 7829#define HOST_LINK_VERSION "$llvm_cv_link_version" 7830_ACEOF 7831 7832 7833 7834{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7835echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7836if test "${llvm_cv_link_use_r+set}" = set; then 7837 echo $ECHO_N "(cached) $ECHO_C" >&6 7838else 7839 ac_ext=c 7840ac_cpp='$CPP $CPPFLAGS' 7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7843ac_compiler_gnu=$ac_cv_c_compiler_gnu 7844 7845 oldcflags="$CFLAGS" 7846 CFLAGS="$CFLAGS -Wl,-R." 7847 cat >conftest.$ac_ext <<_ACEOF 7848/* confdefs.h. */ 7849_ACEOF 7850cat confdefs.h >>conftest.$ac_ext 7851cat >>conftest.$ac_ext <<_ACEOF 7852/* end confdefs.h. */ 7853 7854int 7855main () 7856{ 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862rm -f conftest.$ac_objext conftest$ac_exeext 7863if { (ac_try="$ac_link" 7864case "(($ac_try" in 7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7866 *) ac_try_echo=$ac_try;; 7867esac 7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7869 (eval "$ac_link") 2>conftest.er1 7870 ac_status=$? 7871 grep -v '^ *+' conftest.er1 >conftest.err 7872 rm -f conftest.er1 7873 cat conftest.err >&5 7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7875 (exit $ac_status); } && 7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7877 { (case "(($ac_try" in 7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7879 *) ac_try_echo=$ac_try;; 7880esac 7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7882 (eval "$ac_try") 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); }; } && 7886 { ac_try='test -s conftest$ac_exeext' 7887 { (case "(($ac_try" in 7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *) ac_try_echo=$ac_try;; 7890esac 7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7892 (eval "$ac_try") 2>&5 7893 ac_status=$? 7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7895 (exit $ac_status); }; }; then 7896 llvm_cv_link_use_r=yes 7897else 7898 echo "$as_me: failed program was:" >&5 7899sed 's/^/| /' conftest.$ac_ext >&5 7900 7901 llvm_cv_link_use_r=no 7902fi 7903 7904rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906 CFLAGS="$oldcflags" 7907 ac_ext=c 7908ac_cpp='$CPP $CPPFLAGS' 7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7911ac_compiler_gnu=$ac_cv_c_compiler_gnu 7912 7913 7914fi 7915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7916echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7917if test "$llvm_cv_link_use_r" = yes ; then 7918 7919cat >>confdefs.h <<\_ACEOF 7920#define HAVE_LINK_R 1 7921_ACEOF 7922 7923 fi 7924 7925 7926{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7927echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7928if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7929 echo $ECHO_N "(cached) $ECHO_C" >&6 7930else 7931 ac_ext=c 7932ac_cpp='$CPP $CPPFLAGS' 7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7935ac_compiler_gnu=$ac_cv_c_compiler_gnu 7936 7937 oldcflags="$CFLAGS" 7938 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7939 cat >conftest.$ac_ext <<_ACEOF 7940/* confdefs.h. */ 7941_ACEOF 7942cat confdefs.h >>conftest.$ac_ext 7943cat >>conftest.$ac_ext <<_ACEOF 7944/* end confdefs.h. */ 7945 7946int 7947main () 7948{ 7949 7950 ; 7951 return 0; 7952} 7953_ACEOF 7954rm -f conftest.$ac_objext conftest$ac_exeext 7955if { (ac_try="$ac_link" 7956case "(($ac_try" in 7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7958 *) ac_try_echo=$ac_try;; 7959esac 7960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7961 (eval "$ac_link") 2>conftest.er1 7962 ac_status=$? 7963 grep -v '^ *+' conftest.er1 >conftest.err 7964 rm -f conftest.er1 7965 cat conftest.err >&5 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); } && 7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7969 { (case "(($ac_try" in 7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7971 *) ac_try_echo=$ac_try;; 7972esac 7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7974 (eval "$ac_try") 2>&5 7975 ac_status=$? 7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 (exit $ac_status); }; } && 7978 { ac_try='test -s conftest$ac_exeext' 7979 { (case "(($ac_try" in 7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7981 *) ac_try_echo=$ac_try;; 7982esac 7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7984 (eval "$ac_try") 2>&5 7985 ac_status=$? 7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7987 (exit $ac_status); }; }; then 7988 llvm_cv_link_use_export_dynamic=yes 7989else 7990 echo "$as_me: failed program was:" >&5 7991sed 's/^/| /' conftest.$ac_ext >&5 7992 7993 llvm_cv_link_use_export_dynamic=no 7994fi 7995 7996rm -f core conftest.err conftest.$ac_objext \ 7997 conftest$ac_exeext conftest.$ac_ext 7998 CFLAGS="$oldcflags" 7999 ac_ext=c 8000ac_cpp='$CPP $CPPFLAGS' 8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8003ac_compiler_gnu=$ac_cv_c_compiler_gnu 8004 8005 8006fi 8007{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8008echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8009if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8010 8011cat >>confdefs.h <<\_ACEOF 8012#define HAVE_LINK_EXPORT_DYNAMIC 1 8013_ACEOF 8014 8015 fi 8016 8017 8018{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8019echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8020if test "${llvm_cv_link_use_version_script+set}" = set; then 8021 echo $ECHO_N "(cached) $ECHO_C" >&6 8022else 8023 ac_ext=c 8024ac_cpp='$CPP $CPPFLAGS' 8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8027ac_compiler_gnu=$ac_cv_c_compiler_gnu 8028 8029 oldcflags="$CFLAGS" 8030 8031 # The following code is from the autoconf manual, 8032 # "11.13: Limitations of Usual Tools". 8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8034 # Use mktemp if possible; otherwise fall back on mkdir, 8035 # with $RANDOM to make collisions less likely. 8036 : ${TMPDIR=/tmp} 8037 { 8038 tmp=` 8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8040 ` && 8041 test -n "$tmp" && test -d "$tmp" 8042 } || { 8043 tmp=$TMPDIR/foo$$-$RANDOM 8044 (umask 077 && mkdir "$tmp") 8045 } || exit $? 8046 8047 echo "{" > "$tmp/export.map" 8048 echo " global: main;" >> "$tmp/export.map" 8049 echo " local: *;" >> "$tmp/export.map" 8050 echo "};" >> "$tmp/export.map" 8051 8052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8053 cat >conftest.$ac_ext <<_ACEOF 8054/* confdefs.h. */ 8055_ACEOF 8056cat confdefs.h >>conftest.$ac_ext 8057cat >>conftest.$ac_ext <<_ACEOF 8058/* end confdefs.h. */ 8059 8060int 8061main () 8062{ 8063 8064 ; 8065 return 0; 8066} 8067_ACEOF 8068rm -f conftest.$ac_objext conftest$ac_exeext 8069if { (ac_try="$ac_link" 8070case "(($ac_try" in 8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8072 *) ac_try_echo=$ac_try;; 8073esac 8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8075 (eval "$ac_link") 2>conftest.er1 8076 ac_status=$? 8077 grep -v '^ *+' conftest.er1 >conftest.err 8078 rm -f conftest.er1 8079 cat conftest.err >&5 8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 (exit $ac_status); } && 8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8083 { (case "(($ac_try" in 8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8085 *) ac_try_echo=$ac_try;; 8086esac 8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8088 (eval "$ac_try") 2>&5 8089 ac_status=$? 8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8091 (exit $ac_status); }; } && 8092 { ac_try='test -s conftest$ac_exeext' 8093 { (case "(($ac_try" in 8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8095 *) ac_try_echo=$ac_try;; 8096esac 8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8098 (eval "$ac_try") 2>&5 8099 ac_status=$? 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); }; }; then 8102 llvm_cv_link_use_version_script=yes 8103else 8104 echo "$as_me: failed program was:" >&5 8105sed 's/^/| /' conftest.$ac_ext >&5 8106 8107 llvm_cv_link_use_version_script=no 8108fi 8109 8110rm -f core conftest.err conftest.$ac_objext \ 8111 conftest$ac_exeext conftest.$ac_ext 8112 rm "$tmp/export.map" 8113 rmdir "$tmp" 8114 CFLAGS="$oldcflags" 8115 ac_ext=c 8116ac_cpp='$CPP $CPPFLAGS' 8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8119ac_compiler_gnu=$ac_cv_c_compiler_gnu 8120 8121 8122fi 8123{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8124echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8125if test "$llvm_cv_link_use_version_script" = yes ; then 8126 HAVE_LINK_VERSION_SCRIPT=1 8127 8128 fi 8129 8130 8131 8132 8133{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8134echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8135if test "${ac_cv_c_const+set}" = set; then 8136 echo $ECHO_N "(cached) $ECHO_C" >&6 8137else 8138 cat >conftest.$ac_ext <<_ACEOF 8139/* confdefs.h. */ 8140_ACEOF 8141cat confdefs.h >>conftest.$ac_ext 8142cat >>conftest.$ac_ext <<_ACEOF 8143/* end confdefs.h. */ 8144 8145int 8146main () 8147{ 8148/* FIXME: Include the comments suggested by Paul. */ 8149#ifndef __cplusplus 8150 /* Ultrix mips cc rejects this. */ 8151 typedef int charset[2]; 8152 const charset x; 8153 /* SunOS 4.1.1 cc rejects this. */ 8154 char const *const *ccp; 8155 char **p; 8156 /* NEC SVR4.0.2 mips cc rejects this. */ 8157 struct point {int x, y;}; 8158 static struct point const zero = {0,0}; 8159 /* AIX XL C 1.02.0.0 rejects this. 8160 It does not let you subtract one const X* pointer from another in 8161 an arm of an if-expression whose if-part is not a constant 8162 expression */ 8163 const char *g = "string"; 8164 ccp = &g + (g ? g-g : 0); 8165 /* HPUX 7.0 cc rejects these. */ 8166 ++ccp; 8167 p = (char**) ccp; 8168 ccp = (char const *const *) p; 8169 { /* SCO 3.2v4 cc rejects this. */ 8170 char *t; 8171 char const *s = 0 ? (char *) 0 : (char const *) 0; 8172 8173 *t++ = 0; 8174 if (s) return 0; 8175 } 8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8177 int x[] = {25, 17}; 8178 const int *foo = &x[0]; 8179 ++foo; 8180 } 8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8182 typedef const int *iptr; 8183 iptr p = 0; 8184 ++p; 8185 } 8186 { /* AIX XL C 1.02.0.0 rejects this saying 8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8188 struct s { int j; const int *ap[3]; }; 8189 struct s *b; b->j = 5; 8190 } 8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8192 const int foo = 10; 8193 if (!foo) return 0; 8194 } 8195 return !x[0] && !zero.x; 8196#endif 8197 8198 ; 8199 return 0; 8200} 8201_ACEOF 8202rm -f conftest.$ac_objext 8203if { (ac_try="$ac_compile" 8204case "(($ac_try" in 8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8206 *) ac_try_echo=$ac_try;; 8207esac 8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8209 (eval "$ac_compile") 2>conftest.er1 8210 ac_status=$? 8211 grep -v '^ *+' conftest.er1 >conftest.err 8212 rm -f conftest.er1 8213 cat conftest.err >&5 8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8215 (exit $ac_status); } && 8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8217 { (case "(($ac_try" in 8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8219 *) ac_try_echo=$ac_try;; 8220esac 8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8222 (eval "$ac_try") 2>&5 8223 ac_status=$? 8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 (exit $ac_status); }; } && 8226 { ac_try='test -s conftest.$ac_objext' 8227 { (case "(($ac_try" in 8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8229 *) ac_try_echo=$ac_try;; 8230esac 8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8232 (eval "$ac_try") 2>&5 8233 ac_status=$? 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 (exit $ac_status); }; }; then 8236 ac_cv_c_const=yes 8237else 8238 echo "$as_me: failed program was:" >&5 8239sed 's/^/| /' conftest.$ac_ext >&5 8240 8241 ac_cv_c_const=no 8242fi 8243 8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8245fi 8246{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8247echo "${ECHO_T}$ac_cv_c_const" >&6; } 8248if test $ac_cv_c_const = no; then 8249 8250cat >>confdefs.h <<\_ACEOF 8251#define const 8252_ACEOF 8253 8254fi 8255 8256 8257 8258 8259 8260 8261ac_header_dirent=no 8262for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8264{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8265echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8267 echo $ECHO_N "(cached) $ECHO_C" >&6 8268else 8269 cat >conftest.$ac_ext <<_ACEOF 8270/* confdefs.h. */ 8271_ACEOF 8272cat confdefs.h >>conftest.$ac_ext 8273cat >>conftest.$ac_ext <<_ACEOF 8274/* end confdefs.h. */ 8275#include <sys/types.h> 8276#include <$ac_hdr> 8277 8278int 8279main () 8280{ 8281if ((DIR *) 0) 8282return 0; 8283 ; 8284 return 0; 8285} 8286_ACEOF 8287rm -f conftest.$ac_objext 8288if { (ac_try="$ac_compile" 8289case "(($ac_try" in 8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8291 *) ac_try_echo=$ac_try;; 8292esac 8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8294 (eval "$ac_compile") 2>conftest.er1 8295 ac_status=$? 8296 grep -v '^ *+' conftest.er1 >conftest.err 8297 rm -f conftest.er1 8298 cat conftest.err >&5 8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8300 (exit $ac_status); } && 8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8302 { (case "(($ac_try" in 8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8304 *) ac_try_echo=$ac_try;; 8305esac 8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8307 (eval "$ac_try") 2>&5 8308 ac_status=$? 8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8310 (exit $ac_status); }; } && 8311 { ac_try='test -s conftest.$ac_objext' 8312 { (case "(($ac_try" in 8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8314 *) ac_try_echo=$ac_try;; 8315esac 8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8317 (eval "$ac_try") 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; }; then 8321 eval "$as_ac_Header=yes" 8322else 8323 echo "$as_me: failed program was:" >&5 8324sed 's/^/| /' conftest.$ac_ext >&5 8325 8326 eval "$as_ac_Header=no" 8327fi 8328 8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330fi 8331ac_res=`eval echo '${'$as_ac_Header'}'` 8332 { echo "$as_me:$LINENO: result: $ac_res" >&5 8333echo "${ECHO_T}$ac_res" >&6; } 8334if test `eval echo '${'$as_ac_Header'}'` = yes; then 8335 cat >>confdefs.h <<_ACEOF 8336#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8337_ACEOF 8338 8339ac_header_dirent=$ac_hdr; break 8340fi 8341 8342done 8343# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8344if test $ac_header_dirent = dirent.h; then 8345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8346echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8347if test "${ac_cv_search_opendir+set}" = set; then 8348 echo $ECHO_N "(cached) $ECHO_C" >&6 8349else 8350 ac_func_search_save_LIBS=$LIBS 8351cat >conftest.$ac_ext <<_ACEOF 8352/* confdefs.h. */ 8353_ACEOF 8354cat confdefs.h >>conftest.$ac_ext 8355cat >>conftest.$ac_ext <<_ACEOF 8356/* end confdefs.h. */ 8357 8358/* Override any GCC internal prototype to avoid an error. 8359 Use char because int might match the return type of a GCC 8360 builtin and then its argument prototype would still apply. */ 8361#ifdef __cplusplus 8362extern "C" 8363#endif 8364char opendir (); 8365int 8366main () 8367{ 8368return opendir (); 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373for ac_lib in '' dir; do 8374 if test -z "$ac_lib"; then 8375 ac_res="none required" 8376 else 8377 ac_res=-l$ac_lib 8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8379 fi 8380 rm -f conftest.$ac_objext conftest$ac_exeext 8381if { (ac_try="$ac_link" 8382case "(($ac_try" in 8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8384 *) ac_try_echo=$ac_try;; 8385esac 8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8387 (eval "$ac_link") 2>conftest.er1 8388 ac_status=$? 8389 grep -v '^ *+' conftest.er1 >conftest.err 8390 rm -f conftest.er1 8391 cat conftest.err >&5 8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8393 (exit $ac_status); } && 8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8395 { (case "(($ac_try" in 8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8397 *) ac_try_echo=$ac_try;; 8398esac 8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8400 (eval "$ac_try") 2>&5 8401 ac_status=$? 8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8403 (exit $ac_status); }; } && 8404 { ac_try='test -s conftest$ac_exeext' 8405 { (case "(($ac_try" in 8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8407 *) ac_try_echo=$ac_try;; 8408esac 8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8410 (eval "$ac_try") 2>&5 8411 ac_status=$? 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); }; }; then 8414 ac_cv_search_opendir=$ac_res 8415else 8416 echo "$as_me: failed program was:" >&5 8417sed 's/^/| /' conftest.$ac_ext >&5 8418 8419 8420fi 8421 8422rm -f core conftest.err conftest.$ac_objext \ 8423 conftest$ac_exeext 8424 if test "${ac_cv_search_opendir+set}" = set; then 8425 break 8426fi 8427done 8428if test "${ac_cv_search_opendir+set}" = set; then 8429 : 8430else 8431 ac_cv_search_opendir=no 8432fi 8433rm conftest.$ac_ext 8434LIBS=$ac_func_search_save_LIBS 8435fi 8436{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8437echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8438ac_res=$ac_cv_search_opendir 8439if test "$ac_res" != no; then 8440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8441 8442fi 8443 8444else 8445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8446echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8447if test "${ac_cv_search_opendir+set}" = set; then 8448 echo $ECHO_N "(cached) $ECHO_C" >&6 8449else 8450 ac_func_search_save_LIBS=$LIBS 8451cat >conftest.$ac_ext <<_ACEOF 8452/* confdefs.h. */ 8453_ACEOF 8454cat confdefs.h >>conftest.$ac_ext 8455cat >>conftest.$ac_ext <<_ACEOF 8456/* end confdefs.h. */ 8457 8458/* Override any GCC internal prototype to avoid an error. 8459 Use char because int might match the return type of a GCC 8460 builtin and then its argument prototype would still apply. */ 8461#ifdef __cplusplus 8462extern "C" 8463#endif 8464char opendir (); 8465int 8466main () 8467{ 8468return opendir (); 8469 ; 8470 return 0; 8471} 8472_ACEOF 8473for ac_lib in '' x; do 8474 if test -z "$ac_lib"; then 8475 ac_res="none required" 8476 else 8477 ac_res=-l$ac_lib 8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8479 fi 8480 rm -f conftest.$ac_objext conftest$ac_exeext 8481if { (ac_try="$ac_link" 8482case "(($ac_try" in 8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8484 *) ac_try_echo=$ac_try;; 8485esac 8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8487 (eval "$ac_link") 2>conftest.er1 8488 ac_status=$? 8489 grep -v '^ *+' conftest.er1 >conftest.err 8490 rm -f conftest.er1 8491 cat conftest.err >&5 8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8493 (exit $ac_status); } && 8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8495 { (case "(($ac_try" in 8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8497 *) ac_try_echo=$ac_try;; 8498esac 8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8500 (eval "$ac_try") 2>&5 8501 ac_status=$? 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); }; } && 8504 { ac_try='test -s conftest$ac_exeext' 8505 { (case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508esac 8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_try") 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 ac_cv_search_opendir=$ac_res 8515else 8516 echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519 8520fi 8521 8522rm -f core conftest.err conftest.$ac_objext \ 8523 conftest$ac_exeext 8524 if test "${ac_cv_search_opendir+set}" = set; then 8525 break 8526fi 8527done 8528if test "${ac_cv_search_opendir+set}" = set; then 8529 : 8530else 8531 ac_cv_search_opendir=no 8532fi 8533rm conftest.$ac_ext 8534LIBS=$ac_func_search_save_LIBS 8535fi 8536{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8537echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8538ac_res=$ac_cv_search_opendir 8539if test "$ac_res" != no; then 8540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8541 8542fi 8543 8544fi 8545 8546 8547for ac_header in dlfcn.h 8548do 8549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8554 echo $ECHO_N "(cached) $ECHO_C" >&6 8555fi 8556ac_res=`eval echo '${'$as_ac_Header'}'` 8557 { echo "$as_me:$LINENO: result: $ac_res" >&5 8558echo "${ECHO_T}$ac_res" >&6; } 8559else 8560 # Is the header compilable? 8561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8563cat >conftest.$ac_ext <<_ACEOF 8564/* confdefs.h. */ 8565_ACEOF 8566cat confdefs.h >>conftest.$ac_ext 8567cat >>conftest.$ac_ext <<_ACEOF 8568/* end confdefs.h. */ 8569$ac_includes_default 8570#include <$ac_header> 8571_ACEOF 8572rm -f conftest.$ac_objext 8573if { (ac_try="$ac_compile" 8574case "(($ac_try" in 8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8576 *) ac_try_echo=$ac_try;; 8577esac 8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8579 (eval "$ac_compile") 2>conftest.er1 8580 ac_status=$? 8581 grep -v '^ *+' conftest.er1 >conftest.err 8582 rm -f conftest.er1 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && 8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8587 { (case "(($ac_try" in 8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8589 *) ac_try_echo=$ac_try;; 8590esac 8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8592 (eval "$ac_try") 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); }; } && 8596 { ac_try='test -s conftest.$ac_objext' 8597 { (case "(($ac_try" in 8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8599 *) ac_try_echo=$ac_try;; 8600esac 8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8602 (eval "$ac_try") 2>&5 8603 ac_status=$? 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8605 (exit $ac_status); }; }; then 8606 ac_header_compiler=yes 8607else 8608 echo "$as_me: failed program was:" >&5 8609sed 's/^/| /' conftest.$ac_ext >&5 8610 8611 ac_header_compiler=no 8612fi 8613 8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8616echo "${ECHO_T}$ac_header_compiler" >&6; } 8617 8618# Is the header present? 8619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8621cat >conftest.$ac_ext <<_ACEOF 8622/* confdefs.h. */ 8623_ACEOF 8624cat confdefs.h >>conftest.$ac_ext 8625cat >>conftest.$ac_ext <<_ACEOF 8626/* end confdefs.h. */ 8627#include <$ac_header> 8628_ACEOF 8629if { (ac_try="$ac_cpp conftest.$ac_ext" 8630case "(($ac_try" in 8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8632 *) ac_try_echo=$ac_try;; 8633esac 8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } >/dev/null; then 8642 if test -s conftest.err; then 8643 ac_cpp_err=$ac_c_preproc_warn_flag 8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8645 else 8646 ac_cpp_err= 8647 fi 8648else 8649 ac_cpp_err=yes 8650fi 8651if test -z "$ac_cpp_err"; then 8652 ac_header_preproc=yes 8653else 8654 echo "$as_me: failed program was:" >&5 8655sed 's/^/| /' conftest.$ac_ext >&5 8656 8657 ac_header_preproc=no 8658fi 8659 8660rm -f conftest.err conftest.$ac_ext 8661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8662echo "${ECHO_T}$ac_header_preproc" >&6; } 8663 8664# So? What about this header? 8665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8666 yes:no: ) 8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8671 ac_header_preproc=yes 8672 ;; 8673 no:yes:* ) 8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8686 ( cat <<\_ASBOX 8687## ------------------------------------ ## 8688## Report this to http://llvm.org/bugs/ ## 8689## ------------------------------------ ## 8690_ASBOX 8691 ) | sed "s/^/$as_me: WARNING: /" >&2 8692 ;; 8693esac 8694{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8697 echo $ECHO_N "(cached) $ECHO_C" >&6 8698else 8699 eval "$as_ac_Header=\$ac_header_preproc" 8700fi 8701ac_res=`eval echo '${'$as_ac_Header'}'` 8702 { echo "$as_me:$LINENO: result: $ac_res" >&5 8703echo "${ECHO_T}$ac_res" >&6; } 8704 8705fi 8706if test `eval echo '${'$as_ac_Header'}'` = yes; then 8707 cat >>confdefs.h <<_ACEOF 8708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8709_ACEOF 8710 8711fi 8712 8713done 8714 8715# Check whether --enable-ltdl-install was given. 8716if test "${enable_ltdl_install+set}" = set; then 8717 enableval=$enable_ltdl_install; 8718fi 8719 8720 8721 8722 8723if test x"${enable_ltdl_install-no}" != xno; then 8724 INSTALL_LTDL_TRUE= 8725 INSTALL_LTDL_FALSE='#' 8726else 8727 INSTALL_LTDL_TRUE='#' 8728 INSTALL_LTDL_FALSE= 8729fi 8730 8731 8732 8733if test x"${enable_ltdl_convenience-no}" != xno; then 8734 CONVENIENCE_LTDL_TRUE= 8735 CONVENIENCE_LTDL_FALSE='#' 8736else 8737 CONVENIENCE_LTDL_TRUE='#' 8738 CONVENIENCE_LTDL_FALSE= 8739fi 8740 8741 8742{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8743echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8744library_names_spec= 8745libname_spec='lib$name' 8746soname_spec= 8747shrext_cmds=".so" 8748postinstall_cmds= 8749postuninstall_cmds= 8750finish_cmds= 8751finish_eval= 8752shlibpath_var= 8753shlibpath_overrides_runpath=unknown 8754version_type=none 8755dynamic_linker="$host_os ld.so" 8756sys_lib_dlsearch_path_spec="/lib /usr/lib" 8757if test "$GCC" = yes; then 8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8760 # if the path contains ";" then we assume it to be the separator 8761 # otherwise default to the standard path separator (i.e. ":") - it is 8762 # assumed that no part of a normal pathname contains ";" but that should 8763 # okay in the real world where ";" in dirpaths is itself problematic. 8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8765 else 8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8767 fi 8768else 8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8770fi 8771need_lib_prefix=unknown 8772hardcode_into_libs=no 8773 8774# when you set need_version to no, make sure it does not cause -set_version 8775# flags to be left without arguments 8776need_version=unknown 8777 8778case $host_os in 8779aix3*) 8780 version_type=linux 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8782 shlibpath_var=LIBPATH 8783 8784 # AIX 3 has no versioning support, so we append a major version to the name. 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 ;; 8787 8788aix4* | aix5*) 8789 version_type=linux 8790 need_lib_prefix=no 8791 need_version=no 8792 hardcode_into_libs=yes 8793 if test "$host_cpu" = ia64; then 8794 # AIX 5 supports IA64 8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8796 shlibpath_var=LD_LIBRARY_PATH 8797 else 8798 # With GCC up to 2.95.x, collect2 would create an import file 8799 # for dependence libraries. The import file would start with 8800 # the line `#! .'. This would cause the generated library to 8801 # depend on `.', always an invalid library. This was fixed in 8802 # development snapshots of GCC prior to 3.0. 8803 case $host_os in 8804 aix4 | aix4.[01] | aix4.[01].*) 8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8806 echo ' yes ' 8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8808 : 8809 else 8810 can_build_shared=no 8811 fi 8812 ;; 8813 esac 8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8815 # soname into executable. Probably we can add versioning support to 8816 # collect2, so additional links can be useful in future. 8817 if test "$aix_use_runtimelinking" = yes; then 8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8819 # instead of lib<name>.a to let people know that these are not 8820 # typical AIX shared libraries. 8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8822 else 8823 # We preserve .a as extension for shared libraries through AIX4.2 8824 # and later when we are not doing run time linking. 8825 library_names_spec='${libname}${release}.a $libname.a' 8826 soname_spec='${libname}${release}${shared_ext}$major' 8827 fi 8828 shlibpath_var=LIBPATH 8829 fi 8830 ;; 8831 8832amigaos*) 8833 library_names_spec='$libname.ixlibrary $libname.a' 8834 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8835 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' 8836 ;; 8837 8838beos*) 8839 library_names_spec='${libname}${shared_ext}' 8840 dynamic_linker="$host_os ld.so" 8841 shlibpath_var=LIBRARY_PATH 8842 ;; 8843 8844bsdi[45]*) 8845 version_type=linux 8846 need_version=no 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8848 soname_spec='${libname}${release}${shared_ext}$major' 8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8850 shlibpath_var=LD_LIBRARY_PATH 8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8853 # the default ld.so.conf also contains /usr/contrib/lib and 8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8855 # libtool to hard-code these into programs 8856 ;; 8857 8858cygwin* | mingw* | pw32*) 8859 version_type=windows 8860 shrext_cmds=".dll" 8861 need_version=no 8862 need_lib_prefix=no 8863 8864 case $GCC,$host_os in 8865 yes,cygwin* | yes,mingw* | yes,pw32*) 8866 library_names_spec='$libname.dll.a' 8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8868 postinstall_cmds='base_file=`basename \${file}`~ 8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8870 dldir=$destdir/`dirname \$dlpath`~ 8871 test -d \$dldir || mkdir -p \$dldir~ 8872 $install_prog $dir/$dlname \$dldir/$dlname~ 8873 chmod a+x \$dldir/$dlname' 8874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8875 dlpath=$dir/\$dldll~ 8876 $rm \$dlpath' 8877 shlibpath_overrides_runpath=yes 8878 8879 case $host_os in 8880 cygwin*) 8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8884 ;; 8885 mingw*) 8886 # MinGW DLLs use traditional 'lib' prefix 8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8890 # It is most probably a Windows format PATH printed by 8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8892 # path with ; separators, and with drive letters. We can handle the 8893 # drive letters (cygwin fileutils understands them), so leave them, 8894 # especially as we might pass files found there to a mingw objdump, 8895 # which wouldn't understand a cygwinified path. Ahh. 8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8897 else 8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8899 fi 8900 ;; 8901 pw32*) 8902 # pw32 DLLs use 'pw' prefix rather than 'lib' 8903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8904 ;; 8905 esac 8906 ;; 8907 8908 *) 8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8910 ;; 8911 esac 8912 dynamic_linker='Win32 ld.exe' 8913 # FIXME: first we should search . and the directory the executable is in 8914 shlibpath_var=PATH 8915 ;; 8916 8917darwin* | rhapsody*) 8918 dynamic_linker="$host_os dyld" 8919 version_type=darwin 8920 need_lib_prefix=no 8921 need_version=no 8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8923 soname_spec='${libname}${release}${major}$shared_ext' 8924 shlibpath_overrides_runpath=yes 8925 shlibpath_var=DYLD_LIBRARY_PATH 8926 shrext_cmds='.dylib' 8927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8928 if test "$GCC" = yes; then 8929 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"` 8930 else 8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8932 fi 8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8934 ;; 8935 8936dgux*) 8937 version_type=linux 8938 need_lib_prefix=no 8939 need_version=no 8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8941 soname_spec='${libname}${release}${shared_ext}$major' 8942 shlibpath_var=LD_LIBRARY_PATH 8943 ;; 8944 8945freebsd1.*) 8946 dynamic_linker=no 8947 ;; 8948 8949kfreebsd*-gnu) 8950 version_type=linux 8951 need_lib_prefix=no 8952 need_version=no 8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8954 soname_spec='${libname}${release}${shared_ext}$major' 8955 shlibpath_var=LD_LIBRARY_PATH 8956 shlibpath_overrides_runpath=no 8957 hardcode_into_libs=yes 8958 dynamic_linker='GNU ld.so' 8959 ;; 8960 8961freebsd* | dragonfly*) 8962 # DragonFly does not have aout. When/if they implement a new 8963 # versioning mechanism, adjust this. 8964 if test -x /usr/bin/objformat; then 8965 objformat=`/usr/bin/objformat` 8966 else 8967 case $host_os in 8968 freebsd[123].*) objformat=aout ;; 8969 *) objformat=elf ;; 8970 esac 8971 fi 8972 version_type=freebsd-$objformat 8973 case $version_type in 8974 freebsd-elf*) 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8976 need_version=no 8977 need_lib_prefix=no 8978 ;; 8979 freebsd-*) 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8981 need_version=yes 8982 ;; 8983 esac 8984 shlibpath_var=LD_LIBRARY_PATH 8985 case $host_os in 8986 freebsd2.*) 8987 shlibpath_overrides_runpath=yes 8988 ;; 8989 freebsd3.[01]* | freebsdelf3.[01]*) 8990 shlibpath_overrides_runpath=yes 8991 hardcode_into_libs=yes 8992 ;; 8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8995 shlibpath_overrides_runpath=no 8996 hardcode_into_libs=yes 8997 ;; 8998 freebsd*) # from 4.6 on 8999 shlibpath_overrides_runpath=yes 9000 hardcode_into_libs=yes 9001 ;; 9002 esac 9003 ;; 9004 9005gnu*) 9006 version_type=linux 9007 need_lib_prefix=no 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 hardcode_into_libs=yes 9013 ;; 9014 9015hpux9* | hpux10* | hpux11*) 9016 # Give a soname corresponding to the major version so that dld.sl refuses to 9017 # link against other versions. 9018 version_type=sunos 9019 need_lib_prefix=no 9020 need_version=no 9021 case $host_cpu in 9022 ia64*) 9023 shrext_cmds='.so' 9024 hardcode_into_libs=yes 9025 dynamic_linker="$host_os dld.so" 9026 shlibpath_var=LD_LIBRARY_PATH 9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9029 soname_spec='${libname}${release}${shared_ext}$major' 9030 if test "X$HPUX_IA64_MODE" = X32; then 9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9032 else 9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9034 fi 9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9036 ;; 9037 hppa*64*) 9038 shrext_cmds='.sl' 9039 hardcode_into_libs=yes 9040 dynamic_linker="$host_os dld.sl" 9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 soname_spec='${libname}${release}${shared_ext}$major' 9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9047 ;; 9048 *) 9049 shrext_cmds='.sl' 9050 dynamic_linker="$host_os dld.sl" 9051 shlibpath_var=SHLIB_PATH 9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9054 soname_spec='${libname}${release}${shared_ext}$major' 9055 ;; 9056 esac 9057 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9058 postinstall_cmds='chmod 555 $lib' 9059 ;; 9060 9061interix3*) 9062 version_type=linux 9063 need_lib_prefix=no 9064 need_version=no 9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9066 soname_spec='${libname}${release}${shared_ext}$major' 9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9068 shlibpath_var=LD_LIBRARY_PATH 9069 shlibpath_overrides_runpath=no 9070 hardcode_into_libs=yes 9071 ;; 9072 9073irix5* | irix6* | nonstopux*) 9074 case $host_os in 9075 nonstopux*) version_type=nonstopux ;; 9076 *) 9077 if test "$lt_cv_prog_gnu_ld" = yes; then 9078 version_type=linux 9079 else 9080 version_type=irix 9081 fi ;; 9082 esac 9083 need_lib_prefix=no 9084 need_version=no 9085 soname_spec='${libname}${release}${shared_ext}$major' 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9087 case $host_os in 9088 irix5* | nonstopux*) 9089 libsuff= shlibsuff= 9090 ;; 9091 *) 9092 case $LD in # libtool.m4 will add one of these switches to LD 9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9094 libsuff= shlibsuff= libmagic=32-bit;; 9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9096 libsuff=32 shlibsuff=N32 libmagic=N32;; 9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9098 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9099 *) libsuff= shlibsuff= libmagic=never-match;; 9100 esac 9101 ;; 9102 esac 9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9104 shlibpath_overrides_runpath=no 9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9107 hardcode_into_libs=yes 9108 ;; 9109 9110# No shared lib support for Linux oldld, aout, or coff. 9111linux*oldld* | linux*aout* | linux*coff*) 9112 dynamic_linker=no 9113 ;; 9114 9115# This must be Linux ELF. 9116linux*) 9117 version_type=linux 9118 need_lib_prefix=no 9119 need_version=no 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9121 soname_spec='${libname}${release}${shared_ext}$major' 9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9123 shlibpath_var=LD_LIBRARY_PATH 9124 shlibpath_overrides_runpath=no 9125 # This implies no fast_install, which is unacceptable. 9126 # Some rework will be needed to allow for fast_install 9127 # before this can be enabled. 9128 hardcode_into_libs=yes 9129 9130 # Append ld.so.conf contents to the search path 9131 if test -f /etc/ld.so.conf; then 9132 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' ' '` 9133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9134 fi 9135 9136 # We used to test for /lib/ld.so.1 and disable shared libraries on 9137 # powerpc, because MkLinux only supported shared libraries with the 9138 # GNU dynamic linker. Since this was broken with cross compilers, 9139 # most powerpc-linux boxes support dynamic linking these days and 9140 # people can always --disable-shared, the test was removed, and we 9141 # assume the GNU/Linux dynamic linker is in use. 9142 dynamic_linker='GNU/Linux ld.so' 9143 ;; 9144 9145knetbsd*-gnu) 9146 version_type=linux 9147 need_lib_prefix=no 9148 need_version=no 9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9150 soname_spec='${libname}${release}${shared_ext}$major' 9151 shlibpath_var=LD_LIBRARY_PATH 9152 shlibpath_overrides_runpath=no 9153 hardcode_into_libs=yes 9154 dynamic_linker='GNU ld.so' 9155 ;; 9156 9157netbsd*) 9158 version_type=sunos 9159 need_lib_prefix=no 9160 need_version=no 9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9164 dynamic_linker='NetBSD (a.out) ld.so' 9165 else 9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9167 soname_spec='${libname}${release}${shared_ext}$major' 9168 dynamic_linker='NetBSD ld.elf_so' 9169 fi 9170 shlibpath_var=LD_LIBRARY_PATH 9171 shlibpath_overrides_runpath=yes 9172 hardcode_into_libs=yes 9173 ;; 9174 9175newsos6) 9176 version_type=linux 9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9178 shlibpath_var=LD_LIBRARY_PATH 9179 shlibpath_overrides_runpath=yes 9180 ;; 9181 9182nto-qnx*) 9183 version_type=linux 9184 need_lib_prefix=no 9185 need_version=no 9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9187 soname_spec='${libname}${release}${shared_ext}$major' 9188 shlibpath_var=LD_LIBRARY_PATH 9189 shlibpath_overrides_runpath=yes 9190 ;; 9191 9192openbsd* | bitrig*) 9193 version_type=sunos 9194 sys_lib_dlsearch_path_spec="/usr/lib" 9195 need_lib_prefix=no 9196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9197 case $host_os in 9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9199 *) need_version=no ;; 9200 esac 9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9203 shlibpath_var=LD_LIBRARY_PATH 9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9205 case $host_os in 9206 openbsd2.[89] | openbsd2.[89].*) 9207 shlibpath_overrides_runpath=no 9208 ;; 9209 *) 9210 shlibpath_overrides_runpath=yes 9211 ;; 9212 esac 9213 else 9214 shlibpath_overrides_runpath=yes 9215 fi 9216 ;; 9217 9218os2*) 9219 libname_spec='$name' 9220 shrext_cmds=".dll" 9221 need_lib_prefix=no 9222 library_names_spec='$libname${shared_ext} $libname.a' 9223 dynamic_linker='OS/2 ld.exe' 9224 shlibpath_var=LIBPATH 9225 ;; 9226 9227osf3* | osf4* | osf5*) 9228 version_type=osf 9229 need_lib_prefix=no 9230 need_version=no 9231 soname_spec='${libname}${release}${shared_ext}$major' 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9233 shlibpath_var=LD_LIBRARY_PATH 9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9236 ;; 9237 9238solaris*) 9239 version_type=linux 9240 need_lib_prefix=no 9241 need_version=no 9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9243 soname_spec='${libname}${release}${shared_ext}$major' 9244 shlibpath_var=LD_LIBRARY_PATH 9245 shlibpath_overrides_runpath=yes 9246 hardcode_into_libs=yes 9247 # ldd complains unless libraries are executable 9248 postinstall_cmds='chmod +x $lib' 9249 ;; 9250 9251sunos4*) 9252 version_type=sunos 9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9255 shlibpath_var=LD_LIBRARY_PATH 9256 shlibpath_overrides_runpath=yes 9257 if test "$with_gnu_ld" = yes; then 9258 need_lib_prefix=no 9259 fi 9260 need_version=yes 9261 ;; 9262 9263sysv4 | sysv4.3*) 9264 version_type=linux 9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9266 soname_spec='${libname}${release}${shared_ext}$major' 9267 shlibpath_var=LD_LIBRARY_PATH 9268 case $host_vendor in 9269 sni) 9270 shlibpath_overrides_runpath=no 9271 need_lib_prefix=no 9272 export_dynamic_flag_spec='${wl}-Blargedynsym' 9273 runpath_var=LD_RUN_PATH 9274 ;; 9275 siemens) 9276 need_lib_prefix=no 9277 ;; 9278 motorola) 9279 need_lib_prefix=no 9280 need_version=no 9281 shlibpath_overrides_runpath=no 9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9283 ;; 9284 esac 9285 ;; 9286 9287sysv4*MP*) 9288 if test -d /usr/nec ;then 9289 version_type=linux 9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9291 soname_spec='$libname${shared_ext}.$major' 9292 shlibpath_var=LD_LIBRARY_PATH 9293 fi 9294 ;; 9295 9296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9297 version_type=freebsd-elf 9298 need_lib_prefix=no 9299 need_version=no 9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9301 soname_spec='${libname}${release}${shared_ext}$major' 9302 shlibpath_var=LD_LIBRARY_PATH 9303 hardcode_into_libs=yes 9304 if test "$with_gnu_ld" = yes; then 9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9306 shlibpath_overrides_runpath=no 9307 else 9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9309 shlibpath_overrides_runpath=yes 9310 case $host_os in 9311 sco3.2v5*) 9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9313 ;; 9314 esac 9315 fi 9316 sys_lib_dlsearch_path_spec='/usr/lib' 9317 ;; 9318 9319uts4*) 9320 version_type=linux 9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9322 soname_spec='${libname}${release}${shared_ext}$major' 9323 shlibpath_var=LD_LIBRARY_PATH 9324 ;; 9325 9326*) 9327 dynamic_linker=no 9328 ;; 9329esac 9330{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9331echo "${ECHO_T}$dynamic_linker" >&6; } 9332test "$dynamic_linker" = no && can_build_shared=no 9333 9334variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9335if test "$GCC" = yes; then 9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9337fi 9338 9339 9340{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9341echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9342if test "${libltdl_cv_shlibext+set}" = set; then 9343 echo $ECHO_N "(cached) $ECHO_C" >&6 9344else 9345 9346module=yes 9347eval libltdl_cv_shlibext=$shrext_cmds 9348 9349fi 9350{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9351echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9352if test -n "$libltdl_cv_shlibext"; then 9353 9354cat >>confdefs.h <<_ACEOF 9355#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9356_ACEOF 9357 9358fi 9359 9360 9361{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9362echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9363if test "${libltdl_cv_shlibpath_var+set}" = set; then 9364 echo $ECHO_N "(cached) $ECHO_C" >&6 9365else 9366 libltdl_cv_shlibpath_var="$shlibpath_var" 9367fi 9368{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9369echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9370if test -n "$libltdl_cv_shlibpath_var"; then 9371 9372cat >>confdefs.h <<_ACEOF 9373#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9374_ACEOF 9375 9376fi 9377 9378 9379{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9380echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9381if test "${libltdl_cv_sys_search_path+set}" = set; then 9382 echo $ECHO_N "(cached) $ECHO_C" >&6 9383else 9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9385fi 9386{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9387echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9388if test -n "$libltdl_cv_sys_search_path"; then 9389 sys_search_path= 9390 for dir in $libltdl_cv_sys_search_path; do 9391 if test -z "$sys_search_path"; then 9392 sys_search_path="$dir" 9393 else 9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9395 fi 9396 done 9397 9398cat >>confdefs.h <<_ACEOF 9399#define LTDL_SYSSEARCHPATH "$sys_search_path" 9400_ACEOF 9401 9402fi 9403 9404{ echo "$as_me:$LINENO: checking for objdir" >&5 9405echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9406if test "${libltdl_cv_objdir+set}" = set; then 9407 echo $ECHO_N "(cached) $ECHO_C" >&6 9408else 9409 libltdl_cv_objdir="$objdir" 9410 if test -n "$objdir"; then 9411 : 9412 else 9413 rm -f .libs 2>/dev/null 9414 mkdir .libs 2>/dev/null 9415 if test -d .libs; then 9416 libltdl_cv_objdir=.libs 9417 else 9418 # MS-DOS does not allow filenames that begin with a dot. 9419 libltdl_cv_objdir=_libs 9420 fi 9421 rmdir .libs 2>/dev/null 9422 fi 9423 9424fi 9425{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9426echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9427 9428cat >>confdefs.h <<_ACEOF 9429#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9430_ACEOF 9431 9432 9433 9434 9435 9436 9437# Check for command to grab the raw symbol name followed by C symbol from nm. 9438{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9439echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9440if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9441 echo $ECHO_N "(cached) $ECHO_C" >&6 9442else 9443 9444# These are sane defaults that work on at least a few old systems. 9445# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9446 9447# Character class describing NM global symbol codes. 9448symcode='[BCDEGRST]' 9449 9450# Regexp to match symbols that can be accessed directly from C. 9451sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9452 9453# Transform an extracted symbol line into a proper C declaration 9454lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9455 9456# Transform an extracted symbol line into symbol name and symbol address 9457lt_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'" 9458 9459# Define system-specific variables. 9460case $host_os in 9461aix*) 9462 symcode='[BCDT]' 9463 ;; 9464cygwin* | mingw* | pw32*) 9465 symcode='[ABCDGISTW]' 9466 ;; 9467hpux*) # Its linker distinguishes data from code symbols 9468 if test "$host_cpu" = ia64; then 9469 symcode='[ABCDEGRST]' 9470 fi 9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9472 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'" 9473 ;; 9474linux*) 9475 if test "$host_cpu" = ia64; then 9476 symcode='[ABCDGIRSTW]' 9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9478 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'" 9479 fi 9480 ;; 9481irix* | nonstopux*) 9482 symcode='[BCDEGRST]' 9483 ;; 9484osf*) 9485 symcode='[BCDEGQRST]' 9486 ;; 9487solaris*) 9488 symcode='[BDRT]' 9489 ;; 9490sco3.2v5*) 9491 symcode='[DT]' 9492 ;; 9493sysv4.2uw2*) 9494 symcode='[DT]' 9495 ;; 9496sysv5* | sco5v6* | unixware* | OpenUNIX*) 9497 symcode='[ABDT]' 9498 ;; 9499sysv4) 9500 symcode='[DFNSTU]' 9501 ;; 9502esac 9503 9504# Handle CRLF in mingw tool chain 9505opt_cr= 9506case $build_os in 9507mingw*) 9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9509 ;; 9510esac 9511 9512# If we're using GNU nm, then use its standard symbol codes. 9513case `$NM -V 2>&1` in 9514*GNU* | *'with BFD'*) 9515 symcode='[ABCDGIRSTW]' ;; 9516esac 9517 9518# Try without a prefix undercore, then with it. 9519for ac_symprfx in "" "_"; do 9520 9521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9522 symxfrm="\\1 $ac_symprfx\\2 \\2" 9523 9524 # Write the raw and C identifiers. 9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9526 9527 # Check to see that the pipe works correctly. 9528 pipe_works=no 9529 9530 rm -f conftest* 9531 cat > conftest.$ac_ext <<EOF 9532#ifdef __cplusplus 9533extern "C" { 9534#endif 9535char nm_test_var; 9536void nm_test_func(){} 9537#ifdef __cplusplus 9538} 9539#endif 9540int main(){nm_test_var='a';nm_test_func();return(0);} 9541EOF 9542 9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9544 (eval $ac_compile) 2>&5 9545 ac_status=$? 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); }; then 9548 # Now try to grab the symbols. 9549 nlist=conftest.nm 9550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9552 ac_status=$? 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 (exit $ac_status); } && test -s "$nlist"; then 9555 # Try sorting and uniquifying the output. 9556 if sort "$nlist" | uniq > "$nlist"T; then 9557 mv -f "$nlist"T "$nlist" 9558 else 9559 rm -f "$nlist"T 9560 fi 9561 9562 # Make sure that we snagged all the symbols we need. 9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9565 cat <<EOF > conftest.$ac_ext 9566#ifdef __cplusplus 9567extern "C" { 9568#endif 9569 9570EOF 9571 # Now generate the symbol file. 9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9573 9574 cat <<EOF >> conftest.$ac_ext 9575#if defined (__STDC__) && __STDC__ 9576# define lt_ptr_t void * 9577#else 9578# define lt_ptr_t char * 9579# define const 9580#endif 9581 9582/* The mapping between symbol names and symbols. */ 9583const struct { 9584 const char *name; 9585 lt_ptr_t address; 9586} 9587lt_preloaded_symbols[] = 9588{ 9589EOF 9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9591 cat <<\EOF >> conftest.$ac_ext 9592 {0, (lt_ptr_t) 0} 9593}; 9594 9595#ifdef __cplusplus 9596} 9597#endif 9598EOF 9599 # Now try linking the two files. 9600 mv conftest.$ac_objext conftstm.$ac_objext 9601 lt_save_LIBS="$LIBS" 9602 lt_save_CFLAGS="$CFLAGS" 9603 LIBS="conftstm.$ac_objext" 9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9606 (eval $ac_link) 2>&5 9607 ac_status=$? 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9610 pipe_works=yes 9611 fi 9612 LIBS="$lt_save_LIBS" 9613 CFLAGS="$lt_save_CFLAGS" 9614 else 9615 echo "cannot find nm_test_func in $nlist" >&5 9616 fi 9617 else 9618 echo "cannot find nm_test_var in $nlist" >&5 9619 fi 9620 else 9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9622 fi 9623 else 9624 echo "$progname: failed program was:" >&5 9625 cat conftest.$ac_ext >&5 9626 fi 9627 rm -f conftest* conftst* 9628 9629 # Do not use the global_symbol_pipe unless it works. 9630 if test "$pipe_works" = yes; then 9631 break 9632 else 9633 lt_cv_sys_global_symbol_pipe= 9634 fi 9635done 9636 9637fi 9638 9639if test -z "$lt_cv_sys_global_symbol_pipe"; then 9640 lt_cv_sys_global_symbol_to_cdecl= 9641fi 9642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9643 { echo "$as_me:$LINENO: result: failed" >&5 9644echo "${ECHO_T}failed" >&6; } 9645else 9646 { echo "$as_me:$LINENO: result: ok" >&5 9647echo "${ECHO_T}ok" >&6; } 9648fi 9649 9650 9651{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9652echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9653if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9654 echo $ECHO_N "(cached) $ECHO_C" >&6 9655else 9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9657 libltdl_cv_preloaded_symbols=yes 9658 else 9659 libltdl_cv_preloaded_symbols=no 9660 fi 9661 9662fi 9663{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9664echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9665if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9666 9667cat >>confdefs.h <<\_ACEOF 9668#define HAVE_PRELOADED_SYMBOLS 1 9669_ACEOF 9670 9671fi 9672 9673LIBADD_DL= 9674 9675ac_ext=c 9676ac_cpp='$CPP $CPPFLAGS' 9677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9679ac_compiler_gnu=$ac_cv_c_compiler_gnu 9680 9681 9682{ echo "$as_me:$LINENO: checking for shl_load" >&5 9683echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9684if test "${ac_cv_func_shl_load+set}" = set; then 9685 echo $ECHO_N "(cached) $ECHO_C" >&6 9686else 9687 cat >conftest.$ac_ext <<_ACEOF 9688/* confdefs.h. */ 9689_ACEOF 9690cat confdefs.h >>conftest.$ac_ext 9691cat >>conftest.$ac_ext <<_ACEOF 9692/* end confdefs.h. */ 9693/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9695#define shl_load innocuous_shl_load 9696 9697/* System header to define __stub macros and hopefully few prototypes, 9698 which can conflict with char shl_load (); below. 9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9700 <limits.h> exists even on freestanding compilers. */ 9701 9702#ifdef __STDC__ 9703# include <limits.h> 9704#else 9705# include <assert.h> 9706#endif 9707 9708#undef shl_load 9709 9710/* Override any GCC internal prototype to avoid an error. 9711 Use char because int might match the return type of a GCC 9712 builtin and then its argument prototype would still apply. */ 9713#ifdef __cplusplus 9714extern "C" 9715#endif 9716char shl_load (); 9717/* The GNU C library defines this for functions which it implements 9718 to always fail with ENOSYS. Some functions are actually named 9719 something starting with __ and the normal name is an alias. */ 9720#if defined __stub_shl_load || defined __stub___shl_load 9721choke me 9722#endif 9723 9724int 9725main () 9726{ 9727return shl_load (); 9728 ; 9729 return 0; 9730} 9731_ACEOF 9732rm -f conftest.$ac_objext conftest$ac_exeext 9733if { (ac_try="$ac_link" 9734case "(($ac_try" in 9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9736 *) ac_try_echo=$ac_try;; 9737esac 9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9739 (eval "$ac_link") 2>conftest.er1 9740 ac_status=$? 9741 grep -v '^ *+' conftest.er1 >conftest.err 9742 rm -f conftest.er1 9743 cat conftest.err >&5 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 (exit $ac_status); } && 9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9747 { (case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750esac 9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_try") 2>&5 9753 ac_status=$? 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 (exit $ac_status); }; } && 9756 { ac_try='test -s conftest$ac_exeext' 9757 { (case "(($ac_try" in 9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9759 *) ac_try_echo=$ac_try;; 9760esac 9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9762 (eval "$ac_try") 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; }; then 9766 ac_cv_func_shl_load=yes 9767else 9768 echo "$as_me: failed program was:" >&5 9769sed 's/^/| /' conftest.$ac_ext >&5 9770 9771 ac_cv_func_shl_load=no 9772fi 9773 9774rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776fi 9777{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9778echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9779if test $ac_cv_func_shl_load = yes; then 9780 9781cat >>confdefs.h <<\_ACEOF 9782#define HAVE_SHL_LOAD 1 9783_ACEOF 9784 9785else 9786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9787echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9788if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9789 echo $ECHO_N "(cached) $ECHO_C" >&6 9790else 9791 ac_check_lib_save_LIBS=$LIBS 9792LIBS="-ldld $LIBS" 9793cat >conftest.$ac_ext <<_ACEOF 9794/* confdefs.h. */ 9795_ACEOF 9796cat confdefs.h >>conftest.$ac_ext 9797cat >>conftest.$ac_ext <<_ACEOF 9798/* end confdefs.h. */ 9799 9800/* Override any GCC internal prototype to avoid an error. 9801 Use char because int might match the return type of a GCC 9802 builtin and then its argument prototype would still apply. */ 9803#ifdef __cplusplus 9804extern "C" 9805#endif 9806char shl_load (); 9807int 9808main () 9809{ 9810return shl_load (); 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815rm -f conftest.$ac_objext conftest$ac_exeext 9816if { (ac_try="$ac_link" 9817case "(($ac_try" in 9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9819 *) ac_try_echo=$ac_try;; 9820esac 9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9822 (eval "$ac_link") 2>conftest.er1 9823 ac_status=$? 9824 grep -v '^ *+' conftest.er1 >conftest.err 9825 rm -f conftest.er1 9826 cat conftest.err >&5 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && 9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9830 { (case "(($ac_try" in 9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *) ac_try_echo=$ac_try;; 9833esac 9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835 (eval "$ac_try") 2>&5 9836 ac_status=$? 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 (exit $ac_status); }; } && 9839 { ac_try='test -s conftest$ac_exeext' 9840 { (case "(($ac_try" in 9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9842 *) ac_try_echo=$ac_try;; 9843esac 9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9845 (eval "$ac_try") 2>&5 9846 ac_status=$? 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); }; }; then 9849 ac_cv_lib_dld_shl_load=yes 9850else 9851 echo "$as_me: failed program was:" >&5 9852sed 's/^/| /' conftest.$ac_ext >&5 9853 9854 ac_cv_lib_dld_shl_load=no 9855fi 9856 9857rm -f core conftest.err conftest.$ac_objext \ 9858 conftest$ac_exeext conftest.$ac_ext 9859LIBS=$ac_check_lib_save_LIBS 9860fi 9861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9862echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9863if test $ac_cv_lib_dld_shl_load = yes; then 9864 9865cat >>confdefs.h <<\_ACEOF 9866#define HAVE_SHL_LOAD 1 9867_ACEOF 9868 9869 LIBADD_DL="$LIBADD_DL -ldld" 9870else 9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9872echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9873if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9874 echo $ECHO_N "(cached) $ECHO_C" >&6 9875else 9876 ac_check_lib_save_LIBS=$LIBS 9877LIBS="-ldl $LIBS" 9878cat >conftest.$ac_ext <<_ACEOF 9879/* confdefs.h. */ 9880_ACEOF 9881cat confdefs.h >>conftest.$ac_ext 9882cat >>conftest.$ac_ext <<_ACEOF 9883/* end confdefs.h. */ 9884 9885/* Override any GCC internal prototype to avoid an error. 9886 Use char because int might match the return type of a GCC 9887 builtin and then its argument prototype would still apply. */ 9888#ifdef __cplusplus 9889extern "C" 9890#endif 9891char dlopen (); 9892int 9893main () 9894{ 9895return dlopen (); 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900rm -f conftest.$ac_objext conftest$ac_exeext 9901if { (ac_try="$ac_link" 9902case "(($ac_try" in 9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9904 *) ac_try_echo=$ac_try;; 9905esac 9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9907 (eval "$ac_link") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && 9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9915 { (case "(($ac_try" in 9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9917 *) ac_try_echo=$ac_try;; 9918esac 9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9920 (eval "$ac_try") 2>&5 9921 ac_status=$? 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 (exit $ac_status); }; } && 9924 { ac_try='test -s conftest$ac_exeext' 9925 { (case "(($ac_try" in 9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9927 *) ac_try_echo=$ac_try;; 9928esac 9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9930 (eval "$ac_try") 2>&5 9931 ac_status=$? 9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 (exit $ac_status); }; }; then 9934 ac_cv_lib_dl_dlopen=yes 9935else 9936 echo "$as_me: failed program was:" >&5 9937sed 's/^/| /' conftest.$ac_ext >&5 9938 9939 ac_cv_lib_dl_dlopen=no 9940fi 9941 9942rm -f core conftest.err conftest.$ac_objext \ 9943 conftest$ac_exeext conftest.$ac_ext 9944LIBS=$ac_check_lib_save_LIBS 9945fi 9946{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9948if test $ac_cv_lib_dl_dlopen = yes; then 9949 9950cat >>confdefs.h <<\_ACEOF 9951#define HAVE_LIBDL 1 9952_ACEOF 9953 9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9955else 9956 cat >conftest.$ac_ext <<_ACEOF 9957/* confdefs.h. */ 9958_ACEOF 9959cat confdefs.h >>conftest.$ac_ext 9960cat >>conftest.$ac_ext <<_ACEOF 9961/* end confdefs.h. */ 9962#if HAVE_DLFCN_H 9963# include <dlfcn.h> 9964#endif 9965 9966int 9967main () 9968{ 9969dlopen(0, 0); 9970 ; 9971 return 0; 9972} 9973_ACEOF 9974rm -f conftest.$ac_objext conftest$ac_exeext 9975if { (ac_try="$ac_link" 9976case "(($ac_try" in 9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9978 *) ac_try_echo=$ac_try;; 9979esac 9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9981 (eval "$ac_link") 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && 9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9989 { (case "(($ac_try" in 9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9991 *) ac_try_echo=$ac_try;; 9992esac 9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9994 (eval "$ac_try") 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; } && 9998 { ac_try='test -s conftest$ac_exeext' 9999 { (case "(($ac_try" in 10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10001 *) ac_try_echo=$ac_try;; 10002esac 10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10004 (eval "$ac_try") 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); }; }; then 10008 10009cat >>confdefs.h <<\_ACEOF 10010#define HAVE_LIBDL 1 10011_ACEOF 10012 libltdl_cv_func_dlopen="yes" 10013else 10014 echo "$as_me: failed program was:" >&5 10015sed 's/^/| /' conftest.$ac_ext >&5 10016 10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10018echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10019if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10020 echo $ECHO_N "(cached) $ECHO_C" >&6 10021else 10022 ac_check_lib_save_LIBS=$LIBS 10023LIBS="-lsvld $LIBS" 10024cat >conftest.$ac_ext <<_ACEOF 10025/* confdefs.h. */ 10026_ACEOF 10027cat confdefs.h >>conftest.$ac_ext 10028cat >>conftest.$ac_ext <<_ACEOF 10029/* end confdefs.h. */ 10030 10031/* Override any GCC internal prototype to avoid an error. 10032 Use char because int might match the return type of a GCC 10033 builtin and then its argument prototype would still apply. */ 10034#ifdef __cplusplus 10035extern "C" 10036#endif 10037char dlopen (); 10038int 10039main () 10040{ 10041return dlopen (); 10042 ; 10043 return 0; 10044} 10045_ACEOF 10046rm -f conftest.$ac_objext conftest$ac_exeext 10047if { (ac_try="$ac_link" 10048case "(($ac_try" in 10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10050 *) ac_try_echo=$ac_try;; 10051esac 10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10053 (eval "$ac_link") 2>conftest.er1 10054 ac_status=$? 10055 grep -v '^ *+' conftest.er1 >conftest.err 10056 rm -f conftest.er1 10057 cat conftest.err >&5 10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10059 (exit $ac_status); } && 10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10061 { (case "(($ac_try" in 10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10063 *) ac_try_echo=$ac_try;; 10064esac 10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10066 (eval "$ac_try") 2>&5 10067 ac_status=$? 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 (exit $ac_status); }; } && 10070 { ac_try='test -s conftest$ac_exeext' 10071 { (case "(($ac_try" in 10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10073 *) ac_try_echo=$ac_try;; 10074esac 10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10076 (eval "$ac_try") 2>&5 10077 ac_status=$? 10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 (exit $ac_status); }; }; then 10080 ac_cv_lib_svld_dlopen=yes 10081else 10082 echo "$as_me: failed program was:" >&5 10083sed 's/^/| /' conftest.$ac_ext >&5 10084 10085 ac_cv_lib_svld_dlopen=no 10086fi 10087 10088rm -f core conftest.err conftest.$ac_objext \ 10089 conftest$ac_exeext conftest.$ac_ext 10090LIBS=$ac_check_lib_save_LIBS 10091fi 10092{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10094if test $ac_cv_lib_svld_dlopen = yes; then 10095 10096cat >>confdefs.h <<\_ACEOF 10097#define HAVE_LIBDL 1 10098_ACEOF 10099 10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10101else 10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10104if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10105 echo $ECHO_N "(cached) $ECHO_C" >&6 10106else 10107 ac_check_lib_save_LIBS=$LIBS 10108LIBS="-ldld $LIBS" 10109cat >conftest.$ac_ext <<_ACEOF 10110/* confdefs.h. */ 10111_ACEOF 10112cat confdefs.h >>conftest.$ac_ext 10113cat >>conftest.$ac_ext <<_ACEOF 10114/* end confdefs.h. */ 10115 10116/* Override any GCC internal prototype to avoid an error. 10117 Use char because int might match the return type of a GCC 10118 builtin and then its argument prototype would still apply. */ 10119#ifdef __cplusplus 10120extern "C" 10121#endif 10122char dld_link (); 10123int 10124main () 10125{ 10126return dld_link (); 10127 ; 10128 return 0; 10129} 10130_ACEOF 10131rm -f conftest.$ac_objext conftest$ac_exeext 10132if { (ac_try="$ac_link" 10133case "(($ac_try" in 10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10135 *) ac_try_echo=$ac_try;; 10136esac 10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10138 (eval "$ac_link") 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && 10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10146 { (case "(($ac_try" in 10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10148 *) ac_try_echo=$ac_try;; 10149esac 10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10151 (eval "$ac_try") 2>&5 10152 ac_status=$? 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); }; } && 10155 { ac_try='test -s conftest$ac_exeext' 10156 { (case "(($ac_try" in 10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10158 *) ac_try_echo=$ac_try;; 10159esac 10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10161 (eval "$ac_try") 2>&5 10162 ac_status=$? 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); }; }; then 10165 ac_cv_lib_dld_dld_link=yes 10166else 10167 echo "$as_me: failed program was:" >&5 10168sed 's/^/| /' conftest.$ac_ext >&5 10169 10170 ac_cv_lib_dld_dld_link=no 10171fi 10172 10173rm -f core conftest.err conftest.$ac_objext \ 10174 conftest$ac_exeext conftest.$ac_ext 10175LIBS=$ac_check_lib_save_LIBS 10176fi 10177{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10178echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10179if test $ac_cv_lib_dld_dld_link = yes; then 10180 10181cat >>confdefs.h <<\_ACEOF 10182#define HAVE_DLD 1 10183_ACEOF 10184 10185 LIBADD_DL="$LIBADD_DL -ldld" 10186else 10187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10188echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10189if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10190 echo $ECHO_N "(cached) $ECHO_C" >&6 10191else 10192 cat >conftest.$ac_ext <<_ACEOF 10193/* confdefs.h. */ 10194_ACEOF 10195cat confdefs.h >>conftest.$ac_ext 10196cat >>conftest.$ac_ext <<_ACEOF 10197/* end confdefs.h. */ 10198/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10200#define _dyld_func_lookup innocuous__dyld_func_lookup 10201 10202/* System header to define __stub macros and hopefully few prototypes, 10203 which can conflict with char _dyld_func_lookup (); below. 10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10205 <limits.h> exists even on freestanding compilers. */ 10206 10207#ifdef __STDC__ 10208# include <limits.h> 10209#else 10210# include <assert.h> 10211#endif 10212 10213#undef _dyld_func_lookup 10214 10215/* Override any GCC internal prototype to avoid an error. 10216 Use char because int might match the return type of a GCC 10217 builtin and then its argument prototype would still apply. */ 10218#ifdef __cplusplus 10219extern "C" 10220#endif 10221char _dyld_func_lookup (); 10222/* The GNU C library defines this for functions which it implements 10223 to always fail with ENOSYS. Some functions are actually named 10224 something starting with __ and the normal name is an alias. */ 10225#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10226choke me 10227#endif 10228 10229int 10230main () 10231{ 10232return _dyld_func_lookup (); 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237rm -f conftest.$ac_objext conftest$ac_exeext 10238if { (ac_try="$ac_link" 10239case "(($ac_try" in 10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10241 *) ac_try_echo=$ac_try;; 10242esac 10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10244 (eval "$ac_link") 2>conftest.er1 10245 ac_status=$? 10246 grep -v '^ *+' conftest.er1 >conftest.err 10247 rm -f conftest.er1 10248 cat conftest.err >&5 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); } && 10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10252 { (case "(($ac_try" in 10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10254 *) ac_try_echo=$ac_try;; 10255esac 10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10257 (eval "$ac_try") 2>&5 10258 ac_status=$? 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10260 (exit $ac_status); }; } && 10261 { ac_try='test -s conftest$ac_exeext' 10262 { (case "(($ac_try" in 10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10264 *) ac_try_echo=$ac_try;; 10265esac 10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10267 (eval "$ac_try") 2>&5 10268 ac_status=$? 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10270 (exit $ac_status); }; }; then 10271 ac_cv_func__dyld_func_lookup=yes 10272else 10273 echo "$as_me: failed program was:" >&5 10274sed 's/^/| /' conftest.$ac_ext >&5 10275 10276 ac_cv_func__dyld_func_lookup=no 10277fi 10278 10279rm -f core conftest.err conftest.$ac_objext \ 10280 conftest$ac_exeext conftest.$ac_ext 10281fi 10282{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10283echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10284if test $ac_cv_func__dyld_func_lookup = yes; then 10285 10286cat >>confdefs.h <<\_ACEOF 10287#define HAVE_DYLD 1 10288_ACEOF 10289 10290fi 10291 10292 10293fi 10294 10295 10296fi 10297 10298 10299fi 10300 10301rm -f core conftest.err conftest.$ac_objext \ 10302 conftest$ac_exeext conftest.$ac_ext 10303 10304fi 10305 10306 10307fi 10308 10309 10310fi 10311 10312 10313if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10314then 10315 lt_save_LIBS="$LIBS" 10316 LIBS="$LIBS $LIBADD_DL" 10317 10318for ac_func in dlerror 10319do 10320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10321{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10324 echo $ECHO_N "(cached) $ECHO_C" >&6 10325else 10326 cat >conftest.$ac_ext <<_ACEOF 10327/* confdefs.h. */ 10328_ACEOF 10329cat confdefs.h >>conftest.$ac_ext 10330cat >>conftest.$ac_ext <<_ACEOF 10331/* end confdefs.h. */ 10332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10334#define $ac_func innocuous_$ac_func 10335 10336/* System header to define __stub macros and hopefully few prototypes, 10337 which can conflict with char $ac_func (); below. 10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10339 <limits.h> exists even on freestanding compilers. */ 10340 10341#ifdef __STDC__ 10342# include <limits.h> 10343#else 10344# include <assert.h> 10345#endif 10346 10347#undef $ac_func 10348 10349/* Override any GCC internal prototype to avoid an error. 10350 Use char because int might match the return type of a GCC 10351 builtin and then its argument prototype would still apply. */ 10352#ifdef __cplusplus 10353extern "C" 10354#endif 10355char $ac_func (); 10356/* The GNU C library defines this for functions which it implements 10357 to always fail with ENOSYS. Some functions are actually named 10358 something starting with __ and the normal name is an alias. */ 10359#if defined __stub_$ac_func || defined __stub___$ac_func 10360choke me 10361#endif 10362 10363int 10364main () 10365{ 10366return $ac_func (); 10367 ; 10368 return 0; 10369} 10370_ACEOF 10371rm -f conftest.$ac_objext conftest$ac_exeext 10372if { (ac_try="$ac_link" 10373case "(($ac_try" in 10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10375 *) ac_try_echo=$ac_try;; 10376esac 10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10378 (eval "$ac_link") 2>conftest.er1 10379 ac_status=$? 10380 grep -v '^ *+' conftest.er1 >conftest.err 10381 rm -f conftest.er1 10382 cat conftest.err >&5 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); } && 10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10386 { (case "(($ac_try" in 10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10388 *) ac_try_echo=$ac_try;; 10389esac 10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10391 (eval "$ac_try") 2>&5 10392 ac_status=$? 10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394 (exit $ac_status); }; } && 10395 { ac_try='test -s conftest$ac_exeext' 10396 { (case "(($ac_try" in 10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10398 *) ac_try_echo=$ac_try;; 10399esac 10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10401 (eval "$ac_try") 2>&5 10402 ac_status=$? 10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 (exit $ac_status); }; }; then 10405 eval "$as_ac_var=yes" 10406else 10407 echo "$as_me: failed program was:" >&5 10408sed 's/^/| /' conftest.$ac_ext >&5 10409 10410 eval "$as_ac_var=no" 10411fi 10412 10413rm -f core conftest.err conftest.$ac_objext \ 10414 conftest$ac_exeext conftest.$ac_ext 10415fi 10416ac_res=`eval echo '${'$as_ac_var'}'` 10417 { echo "$as_me:$LINENO: result: $ac_res" >&5 10418echo "${ECHO_T}$ac_res" >&6; } 10419if test `eval echo '${'$as_ac_var'}'` = yes; then 10420 cat >>confdefs.h <<_ACEOF 10421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10422_ACEOF 10423 10424fi 10425done 10426 10427 LIBS="$lt_save_LIBS" 10428fi 10429ac_ext=c 10430ac_cpp='$CPP $CPPFLAGS' 10431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10433ac_compiler_gnu=$ac_cv_c_compiler_gnu 10434 10435 10436 10437{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10438echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10439if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10440 echo $ECHO_N "(cached) $ECHO_C" >&6 10441else 10442 ac_cv_sys_symbol_underscore=no 10443 cat > conftest.$ac_ext <<EOF 10444void nm_test_func(){} 10445int main(){nm_test_func;return 0;} 10446EOF 10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10448 (eval $ac_compile) 2>&5 10449 ac_status=$? 10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10451 (exit $ac_status); }; then 10452 # Now try to grab the symbols. 10453 ac_nlist=conftest.nm 10454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10456 ac_status=$? 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); } && test -s "$ac_nlist"; then 10459 # See whether the symbols have a leading underscore. 10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10461 ac_cv_sys_symbol_underscore=yes 10462 else 10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10464 : 10465 else 10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10467 fi 10468 fi 10469 else 10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10471 fi 10472 else 10473 echo "configure: failed program was:" >&5 10474 cat conftest.c >&5 10475 fi 10476 rm -rf conftest* 10477 10478fi 10479{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10480echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10481 10482 10483if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10484 if test x"$libltdl_cv_func_dlopen" = xyes || 10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10487echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10488if test "${libltdl_cv_need_uscore+set}" = set; then 10489 echo $ECHO_N "(cached) $ECHO_C" >&6 10490else 10491 libltdl_cv_need_uscore=unknown 10492 save_LIBS="$LIBS" 10493 LIBS="$LIBS $LIBADD_DL" 10494 if test "$cross_compiling" = yes; then : 10495 libltdl_cv_need_uscore=cross 10496else 10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10498 lt_status=$lt_dlunknown 10499 cat > conftest.$ac_ext <<EOF 10500#line 10500 "configure" 10501#include "confdefs.h" 10502 10503#if HAVE_DLFCN_H 10504#include <dlfcn.h> 10505#endif 10506 10507#include <stdio.h> 10508 10509#ifdef RTLD_GLOBAL 10510# define LT_DLGLOBAL RTLD_GLOBAL 10511#else 10512# ifdef DL_GLOBAL 10513# define LT_DLGLOBAL DL_GLOBAL 10514# else 10515# define LT_DLGLOBAL 0 10516# endif 10517#endif 10518 10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10520 find out it does not work in some platform. */ 10521#ifndef LT_DLLAZY_OR_NOW 10522# ifdef RTLD_LAZY 10523# define LT_DLLAZY_OR_NOW RTLD_LAZY 10524# else 10525# ifdef DL_LAZY 10526# define LT_DLLAZY_OR_NOW DL_LAZY 10527# else 10528# ifdef RTLD_NOW 10529# define LT_DLLAZY_OR_NOW RTLD_NOW 10530# else 10531# ifdef DL_NOW 10532# define LT_DLLAZY_OR_NOW DL_NOW 10533# else 10534# define LT_DLLAZY_OR_NOW 0 10535# endif 10536# endif 10537# endif 10538# endif 10539#endif 10540 10541#ifdef __cplusplus 10542extern "C" void exit (int); 10543#endif 10544 10545void fnord() { int i=42;} 10546int main () 10547{ 10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10549 int status = $lt_dlunknown; 10550 10551 if (self) 10552 { 10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10555 /* dlclose (self); */ 10556 } 10557 else 10558 puts (dlerror ()); 10559 10560 exit (status); 10561} 10562EOF 10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10564 (eval $ac_link) 2>&5 10565 ac_status=$? 10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10568 (./conftest; exit; ) >&5 2>/dev/null 10569 lt_status=$? 10570 case x$lt_status in 10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10573 x$lt_dlunknown|x*) ;; 10574 esac 10575 else : 10576 # compilation failed 10577 10578 fi 10579fi 10580rm -fr conftest* 10581 10582 LIBS="$save_LIBS" 10583 10584fi 10585{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10586echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10587 fi 10588fi 10589 10590if test x"$libltdl_cv_need_uscore" = xyes; then 10591 10592cat >>confdefs.h <<\_ACEOF 10593#define NEED_USCORE 1 10594_ACEOF 10595 10596fi 10597 10598 10599{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10600echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10601if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10602 echo $ECHO_N "(cached) $ECHO_C" >&6 10603else 10604 # PORTME does your system automatically load deplibs for dlopen? 10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10606 # For now, we just catch OSes we know something about -- in the 10607 # future, we'll try test this programmatically. 10608 libltdl_cv_sys_dlopen_deplibs=unknown 10609 case "$host_os" in 10610 aix3*|aix4.1.*|aix4.2.*) 10611 # Unknown whether this is true for these versions of AIX, but 10612 # we want this `case' here to explicitly catch those versions. 10613 libltdl_cv_sys_dlopen_deplibs=unknown 10614 ;; 10615 aix[45]*) 10616 libltdl_cv_sys_dlopen_deplibs=yes 10617 ;; 10618 darwin*) 10619 # Assuming the user has installed a libdl from somewhere, this is true 10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10621 libltdl_cv_sys_dlopen_deplibs=yes 10622 ;; 10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10624 # GNU and its variants, using gnu ld.so (Glibc) 10625 libltdl_cv_sys_dlopen_deplibs=yes 10626 ;; 10627 hpux10*|hpux11*) 10628 libltdl_cv_sys_dlopen_deplibs=yes 10629 ;; 10630 interix*) 10631 libltdl_cv_sys_dlopen_deplibs=yes 10632 ;; 10633 irix[12345]*|irix6.[01]*) 10634 # Catch all versions of IRIX before 6.2, and indicate that we don't 10635 # know how it worked for any of those versions. 10636 libltdl_cv_sys_dlopen_deplibs=unknown 10637 ;; 10638 irix*) 10639 # The case above catches anything before 6.2, and it's known that 10640 # at 6.2 and later dlopen does load deplibs. 10641 libltdl_cv_sys_dlopen_deplibs=yes 10642 ;; 10643 netbsd*) 10644 libltdl_cv_sys_dlopen_deplibs=yes 10645 ;; 10646 openbsd*) 10647 libltdl_cv_sys_dlopen_deplibs=yes 10648 ;; 10649 osf[1234]*) 10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10651 # it did *not* use an RPATH in a shared library to find objects the 10652 # library depends on, so we explicitly say `no'. 10653 libltdl_cv_sys_dlopen_deplibs=no 10654 ;; 10655 osf5.0|osf5.0a|osf5.1) 10656 # dlopen *does* load deplibs and with the right loader patch applied 10657 # it even uses RPATH in a shared library to search for shared objects 10658 # that the library depends on, but there's no easy way to know if that 10659 # patch is installed. Since this is the case, all we can really 10660 # say is unknown -- it depends on the patch being installed. If 10661 # it is, this changes to `yes'. Without it, it would be `no'. 10662 libltdl_cv_sys_dlopen_deplibs=unknown 10663 ;; 10664 osf*) 10665 # the two cases above should catch all versions of osf <= 5.1. Read 10666 # the comments above for what we know about them. 10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10668 # is used to find them so we can finally say `yes'. 10669 libltdl_cv_sys_dlopen_deplibs=yes 10670 ;; 10671 solaris*) 10672 libltdl_cv_sys_dlopen_deplibs=yes 10673 ;; 10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10675 libltdl_cv_sys_dlopen_deplibs=yes 10676 ;; 10677 esac 10678 10679fi 10680{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10681echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10682if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10683 10684cat >>confdefs.h <<\_ACEOF 10685#define LTDL_DLOPEN_DEPLIBS 1 10686_ACEOF 10687 10688fi 10689 10690 10691for ac_header in argz.h 10692do 10693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699fi 10700ac_res=`eval echo '${'$as_ac_Header'}'` 10701 { echo "$as_me:$LINENO: result: $ac_res" >&5 10702echo "${ECHO_T}$ac_res" >&6; } 10703else 10704 # Is the header compilable? 10705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10707cat >conftest.$ac_ext <<_ACEOF 10708/* confdefs.h. */ 10709_ACEOF 10710cat confdefs.h >>conftest.$ac_ext 10711cat >>conftest.$ac_ext <<_ACEOF 10712/* end confdefs.h. */ 10713$ac_includes_default 10714#include <$ac_header> 10715_ACEOF 10716rm -f conftest.$ac_objext 10717if { (ac_try="$ac_compile" 10718case "(($ac_try" in 10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10720 *) ac_try_echo=$ac_try;; 10721esac 10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10723 (eval "$ac_compile") 2>conftest.er1 10724 ac_status=$? 10725 grep -v '^ *+' conftest.er1 >conftest.err 10726 rm -f conftest.er1 10727 cat conftest.err >&5 10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 (exit $ac_status); } && 10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10731 { (case "(($ac_try" in 10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10733 *) ac_try_echo=$ac_try;; 10734esac 10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10736 (eval "$ac_try") 2>&5 10737 ac_status=$? 10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 (exit $ac_status); }; } && 10740 { ac_try='test -s conftest.$ac_objext' 10741 { (case "(($ac_try" in 10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10743 *) ac_try_echo=$ac_try;; 10744esac 10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10746 (eval "$ac_try") 2>&5 10747 ac_status=$? 10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); }; }; then 10750 ac_header_compiler=yes 10751else 10752 echo "$as_me: failed program was:" >&5 10753sed 's/^/| /' conftest.$ac_ext >&5 10754 10755 ac_header_compiler=no 10756fi 10757 10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10760echo "${ECHO_T}$ac_header_compiler" >&6; } 10761 10762# Is the header present? 10763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10765cat >conftest.$ac_ext <<_ACEOF 10766/* confdefs.h. */ 10767_ACEOF 10768cat confdefs.h >>conftest.$ac_ext 10769cat >>conftest.$ac_ext <<_ACEOF 10770/* end confdefs.h. */ 10771#include <$ac_header> 10772_ACEOF 10773if { (ac_try="$ac_cpp conftest.$ac_ext" 10774case "(($ac_try" in 10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10776 *) ac_try_echo=$ac_try;; 10777esac 10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10780 ac_status=$? 10781 grep -v '^ *+' conftest.er1 >conftest.err 10782 rm -f conftest.er1 10783 cat conftest.err >&5 10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10785 (exit $ac_status); } >/dev/null; then 10786 if test -s conftest.err; then 10787 ac_cpp_err=$ac_c_preproc_warn_flag 10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10789 else 10790 ac_cpp_err= 10791 fi 10792else 10793 ac_cpp_err=yes 10794fi 10795if test -z "$ac_cpp_err"; then 10796 ac_header_preproc=yes 10797else 10798 echo "$as_me: failed program was:" >&5 10799sed 's/^/| /' conftest.$ac_ext >&5 10800 10801 ac_header_preproc=no 10802fi 10803 10804rm -f conftest.err conftest.$ac_ext 10805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10806echo "${ECHO_T}$ac_header_preproc" >&6; } 10807 10808# So? What about this header? 10809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10810 yes:no: ) 10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10815 ac_header_preproc=yes 10816 ;; 10817 no:yes:* ) 10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10830 ( cat <<\_ASBOX 10831## ------------------------------------ ## 10832## Report this to http://llvm.org/bugs/ ## 10833## ------------------------------------ ## 10834_ASBOX 10835 ) | sed "s/^/$as_me: WARNING: /" >&2 10836 ;; 10837esac 10838{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10841 echo $ECHO_N "(cached) $ECHO_C" >&6 10842else 10843 eval "$as_ac_Header=\$ac_header_preproc" 10844fi 10845ac_res=`eval echo '${'$as_ac_Header'}'` 10846 { echo "$as_me:$LINENO: result: $ac_res" >&5 10847echo "${ECHO_T}$ac_res" >&6; } 10848 10849fi 10850if test `eval echo '${'$as_ac_Header'}'` = yes; then 10851 cat >>confdefs.h <<_ACEOF 10852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10853_ACEOF 10854 10855fi 10856 10857done 10858 10859 10860{ echo "$as_me:$LINENO: checking for error_t" >&5 10861echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10862if test "${ac_cv_type_error_t+set}" = set; then 10863 echo $ECHO_N "(cached) $ECHO_C" >&6 10864else 10865 cat >conftest.$ac_ext <<_ACEOF 10866/* confdefs.h. */ 10867_ACEOF 10868cat confdefs.h >>conftest.$ac_ext 10869cat >>conftest.$ac_ext <<_ACEOF 10870/* end confdefs.h. */ 10871#if HAVE_ARGZ_H 10872# include <argz.h> 10873#endif 10874 10875typedef error_t ac__type_new_; 10876int 10877main () 10878{ 10879if ((ac__type_new_ *) 0) 10880 return 0; 10881if (sizeof (ac__type_new_)) 10882 return 0; 10883 ; 10884 return 0; 10885} 10886_ACEOF 10887rm -f conftest.$ac_objext 10888if { (ac_try="$ac_compile" 10889case "(($ac_try" in 10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10891 *) ac_try_echo=$ac_try;; 10892esac 10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10894 (eval "$ac_compile") 2>conftest.er1 10895 ac_status=$? 10896 grep -v '^ *+' conftest.er1 >conftest.err 10897 rm -f conftest.er1 10898 cat conftest.err >&5 10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10900 (exit $ac_status); } && 10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10902 { (case "(($ac_try" in 10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10904 *) ac_try_echo=$ac_try;; 10905esac 10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10907 (eval "$ac_try") 2>&5 10908 ac_status=$? 10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); }; } && 10911 { ac_try='test -s conftest.$ac_objext' 10912 { (case "(($ac_try" in 10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10914 *) ac_try_echo=$ac_try;; 10915esac 10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10917 (eval "$ac_try") 2>&5 10918 ac_status=$? 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10920 (exit $ac_status); }; }; then 10921 ac_cv_type_error_t=yes 10922else 10923 echo "$as_me: failed program was:" >&5 10924sed 's/^/| /' conftest.$ac_ext >&5 10925 10926 ac_cv_type_error_t=no 10927fi 10928 10929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10930fi 10931{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10932echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10933if test $ac_cv_type_error_t = yes; then 10934 10935cat >>confdefs.h <<_ACEOF 10936#define HAVE_ERROR_T 1 10937_ACEOF 10938 10939 10940else 10941 10942cat >>confdefs.h <<\_ACEOF 10943#define error_t int 10944_ACEOF 10945 10946fi 10947 10948 10949 10950 10951 10952 10953 10954for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10955do 10956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10957{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10960 echo $ECHO_N "(cached) $ECHO_C" >&6 10961else 10962 cat >conftest.$ac_ext <<_ACEOF 10963/* confdefs.h. */ 10964_ACEOF 10965cat confdefs.h >>conftest.$ac_ext 10966cat >>conftest.$ac_ext <<_ACEOF 10967/* end confdefs.h. */ 10968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10970#define $ac_func innocuous_$ac_func 10971 10972/* System header to define __stub macros and hopefully few prototypes, 10973 which can conflict with char $ac_func (); below. 10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10975 <limits.h> exists even on freestanding compilers. */ 10976 10977#ifdef __STDC__ 10978# include <limits.h> 10979#else 10980# include <assert.h> 10981#endif 10982 10983#undef $ac_func 10984 10985/* Override any GCC internal prototype to avoid an error. 10986 Use char because int might match the return type of a GCC 10987 builtin and then its argument prototype would still apply. */ 10988#ifdef __cplusplus 10989extern "C" 10990#endif 10991char $ac_func (); 10992/* The GNU C library defines this for functions which it implements 10993 to always fail with ENOSYS. Some functions are actually named 10994 something starting with __ and the normal name is an alias. */ 10995#if defined __stub_$ac_func || defined __stub___$ac_func 10996choke me 10997#endif 10998 10999int 11000main () 11001{ 11002return $ac_func (); 11003 ; 11004 return 0; 11005} 11006_ACEOF 11007rm -f conftest.$ac_objext conftest$ac_exeext 11008if { (ac_try="$ac_link" 11009case "(($ac_try" in 11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11011 *) ac_try_echo=$ac_try;; 11012esac 11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11014 (eval "$ac_link") 2>conftest.er1 11015 ac_status=$? 11016 grep -v '^ *+' conftest.er1 >conftest.err 11017 rm -f conftest.er1 11018 cat conftest.err >&5 11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11020 (exit $ac_status); } && 11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11022 { (case "(($ac_try" in 11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11024 *) ac_try_echo=$ac_try;; 11025esac 11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11027 (eval "$ac_try") 2>&5 11028 ac_status=$? 11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); }; } && 11031 { ac_try='test -s conftest$ac_exeext' 11032 { (case "(($ac_try" in 11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11034 *) ac_try_echo=$ac_try;; 11035esac 11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11037 (eval "$ac_try") 2>&5 11038 ac_status=$? 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); }; }; then 11041 eval "$as_ac_var=yes" 11042else 11043 echo "$as_me: failed program was:" >&5 11044sed 's/^/| /' conftest.$ac_ext >&5 11045 11046 eval "$as_ac_var=no" 11047fi 11048 11049rm -f core conftest.err conftest.$ac_objext \ 11050 conftest$ac_exeext conftest.$ac_ext 11051fi 11052ac_res=`eval echo '${'$as_ac_var'}'` 11053 { echo "$as_me:$LINENO: result: $ac_res" >&5 11054echo "${ECHO_T}$ac_res" >&6; } 11055if test `eval echo '${'$as_ac_var'}'` = yes; then 11056 cat >>confdefs.h <<_ACEOF 11057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11058_ACEOF 11059 11060fi 11061done 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11091 stdio.h unistd.h 11092do 11093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11098 echo $ECHO_N "(cached) $ECHO_C" >&6 11099fi 11100ac_res=`eval echo '${'$as_ac_Header'}'` 11101 { echo "$as_me:$LINENO: result: $ac_res" >&5 11102echo "${ECHO_T}$ac_res" >&6; } 11103else 11104 # Is the header compilable? 11105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11107cat >conftest.$ac_ext <<_ACEOF 11108/* confdefs.h. */ 11109_ACEOF 11110cat confdefs.h >>conftest.$ac_ext 11111cat >>conftest.$ac_ext <<_ACEOF 11112/* end confdefs.h. */ 11113$ac_includes_default 11114#include <$ac_header> 11115_ACEOF 11116rm -f conftest.$ac_objext 11117if { (ac_try="$ac_compile" 11118case "(($ac_try" in 11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11120 *) ac_try_echo=$ac_try;; 11121esac 11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11123 (eval "$ac_compile") 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && 11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11131 { (case "(($ac_try" in 11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11133 *) ac_try_echo=$ac_try;; 11134esac 11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11136 (eval "$ac_try") 2>&5 11137 ac_status=$? 11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11139 (exit $ac_status); }; } && 11140 { ac_try='test -s conftest.$ac_objext' 11141 { (case "(($ac_try" in 11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11143 *) ac_try_echo=$ac_try;; 11144esac 11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11146 (eval "$ac_try") 2>&5 11147 ac_status=$? 11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11149 (exit $ac_status); }; }; then 11150 ac_header_compiler=yes 11151else 11152 echo "$as_me: failed program was:" >&5 11153sed 's/^/| /' conftest.$ac_ext >&5 11154 11155 ac_header_compiler=no 11156fi 11157 11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11160echo "${ECHO_T}$ac_header_compiler" >&6; } 11161 11162# Is the header present? 11163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11165cat >conftest.$ac_ext <<_ACEOF 11166/* confdefs.h. */ 11167_ACEOF 11168cat confdefs.h >>conftest.$ac_ext 11169cat >>conftest.$ac_ext <<_ACEOF 11170/* end confdefs.h. */ 11171#include <$ac_header> 11172_ACEOF 11173if { (ac_try="$ac_cpp conftest.$ac_ext" 11174case "(($ac_try" in 11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11176 *) ac_try_echo=$ac_try;; 11177esac 11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11180 ac_status=$? 11181 grep -v '^ *+' conftest.er1 >conftest.err 11182 rm -f conftest.er1 11183 cat conftest.err >&5 11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11185 (exit $ac_status); } >/dev/null; then 11186 if test -s conftest.err; then 11187 ac_cpp_err=$ac_c_preproc_warn_flag 11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11189 else 11190 ac_cpp_err= 11191 fi 11192else 11193 ac_cpp_err=yes 11194fi 11195if test -z "$ac_cpp_err"; then 11196 ac_header_preproc=yes 11197else 11198 echo "$as_me: failed program was:" >&5 11199sed 's/^/| /' conftest.$ac_ext >&5 11200 11201 ac_header_preproc=no 11202fi 11203 11204rm -f conftest.err conftest.$ac_ext 11205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11206echo "${ECHO_T}$ac_header_preproc" >&6; } 11207 11208# So? What about this header? 11209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11210 yes:no: ) 11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11215 ac_header_preproc=yes 11216 ;; 11217 no:yes:* ) 11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11230 ( cat <<\_ASBOX 11231## ------------------------------------ ## 11232## Report this to http://llvm.org/bugs/ ## 11233## ------------------------------------ ## 11234_ASBOX 11235 ) | sed "s/^/$as_me: WARNING: /" >&2 11236 ;; 11237esac 11238{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11241 echo $ECHO_N "(cached) $ECHO_C" >&6 11242else 11243 eval "$as_ac_Header=\$ac_header_preproc" 11244fi 11245ac_res=`eval echo '${'$as_ac_Header'}'` 11246 { echo "$as_me:$LINENO: result: $ac_res" >&5 11247echo "${ECHO_T}$ac_res" >&6; } 11248 11249fi 11250if test `eval echo '${'$as_ac_Header'}'` = yes; then 11251 cat >>confdefs.h <<_ACEOF 11252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11253_ACEOF 11254 11255fi 11256 11257done 11258 11259 11260 11261 11262 11263for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11264do 11265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11270 echo $ECHO_N "(cached) $ECHO_C" >&6 11271fi 11272ac_res=`eval echo '${'$as_ac_Header'}'` 11273 { echo "$as_me:$LINENO: result: $ac_res" >&5 11274echo "${ECHO_T}$ac_res" >&6; } 11275else 11276 # Is the header compilable? 11277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11279cat >conftest.$ac_ext <<_ACEOF 11280/* confdefs.h. */ 11281_ACEOF 11282cat confdefs.h >>conftest.$ac_ext 11283cat >>conftest.$ac_ext <<_ACEOF 11284/* end confdefs.h. */ 11285$ac_includes_default 11286#include <$ac_header> 11287_ACEOF 11288rm -f conftest.$ac_objext 11289if { (ac_try="$ac_compile" 11290case "(($ac_try" in 11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11292 *) ac_try_echo=$ac_try;; 11293esac 11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11295 (eval "$ac_compile") 2>conftest.er1 11296 ac_status=$? 11297 grep -v '^ *+' conftest.er1 >conftest.err 11298 rm -f conftest.er1 11299 cat conftest.err >&5 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } && 11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11303 { (case "(($ac_try" in 11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11305 *) ac_try_echo=$ac_try;; 11306esac 11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11308 (eval "$ac_try") 2>&5 11309 ac_status=$? 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); }; } && 11312 { ac_try='test -s conftest.$ac_objext' 11313 { (case "(($ac_try" in 11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11315 *) ac_try_echo=$ac_try;; 11316esac 11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11318 (eval "$ac_try") 2>&5 11319 ac_status=$? 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 (exit $ac_status); }; }; then 11322 ac_header_compiler=yes 11323else 11324 echo "$as_me: failed program was:" >&5 11325sed 's/^/| /' conftest.$ac_ext >&5 11326 11327 ac_header_compiler=no 11328fi 11329 11330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11332echo "${ECHO_T}$ac_header_compiler" >&6; } 11333 11334# Is the header present? 11335{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11337cat >conftest.$ac_ext <<_ACEOF 11338/* confdefs.h. */ 11339_ACEOF 11340cat confdefs.h >>conftest.$ac_ext 11341cat >>conftest.$ac_ext <<_ACEOF 11342/* end confdefs.h. */ 11343#include <$ac_header> 11344_ACEOF 11345if { (ac_try="$ac_cpp conftest.$ac_ext" 11346case "(($ac_try" in 11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11348 *) ac_try_echo=$ac_try;; 11349esac 11350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11352 ac_status=$? 11353 grep -v '^ *+' conftest.er1 >conftest.err 11354 rm -f conftest.er1 11355 cat conftest.err >&5 11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11357 (exit $ac_status); } >/dev/null; then 11358 if test -s conftest.err; then 11359 ac_cpp_err=$ac_c_preproc_warn_flag 11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11361 else 11362 ac_cpp_err= 11363 fi 11364else 11365 ac_cpp_err=yes 11366fi 11367if test -z "$ac_cpp_err"; then 11368 ac_header_preproc=yes 11369else 11370 echo "$as_me: failed program was:" >&5 11371sed 's/^/| /' conftest.$ac_ext >&5 11372 11373 ac_header_preproc=no 11374fi 11375 11376rm -f conftest.err conftest.$ac_ext 11377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11378echo "${ECHO_T}$ac_header_preproc" >&6; } 11379 11380# So? What about this header? 11381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11382 yes:no: ) 11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11387 ac_header_preproc=yes 11388 ;; 11389 no:yes:* ) 11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11402 ( cat <<\_ASBOX 11403## ------------------------------------ ## 11404## Report this to http://llvm.org/bugs/ ## 11405## ------------------------------------ ## 11406_ASBOX 11407 ) | sed "s/^/$as_me: WARNING: /" >&2 11408 ;; 11409esac 11410{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11413 echo $ECHO_N "(cached) $ECHO_C" >&6 11414else 11415 eval "$as_ac_Header=\$ac_header_preproc" 11416fi 11417ac_res=`eval echo '${'$as_ac_Header'}'` 11418 { echo "$as_me:$LINENO: result: $ac_res" >&5 11419echo "${ECHO_T}$ac_res" >&6; } 11420 11421fi 11422if test `eval echo '${'$as_ac_Header'}'` = yes; then 11423 cat >>confdefs.h <<_ACEOF 11424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11425_ACEOF 11426 11427fi 11428 11429done 11430 11431 11432 11433for ac_header in string.h strings.h 11434do 11435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11440 echo $ECHO_N "(cached) $ECHO_C" >&6 11441fi 11442ac_res=`eval echo '${'$as_ac_Header'}'` 11443 { echo "$as_me:$LINENO: result: $ac_res" >&5 11444echo "${ECHO_T}$ac_res" >&6; } 11445else 11446 # Is the header compilable? 11447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11449cat >conftest.$ac_ext <<_ACEOF 11450/* confdefs.h. */ 11451_ACEOF 11452cat confdefs.h >>conftest.$ac_ext 11453cat >>conftest.$ac_ext <<_ACEOF 11454/* end confdefs.h. */ 11455$ac_includes_default 11456#include <$ac_header> 11457_ACEOF 11458rm -f conftest.$ac_objext 11459if { (ac_try="$ac_compile" 11460case "(($ac_try" in 11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11462 *) ac_try_echo=$ac_try;; 11463esac 11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11465 (eval "$ac_compile") 2>conftest.er1 11466 ac_status=$? 11467 grep -v '^ *+' conftest.er1 >conftest.err 11468 rm -f conftest.er1 11469 cat conftest.err >&5 11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11471 (exit $ac_status); } && 11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11473 { (case "(($ac_try" in 11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11475 *) ac_try_echo=$ac_try;; 11476esac 11477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11478 (eval "$ac_try") 2>&5 11479 ac_status=$? 11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11481 (exit $ac_status); }; } && 11482 { ac_try='test -s conftest.$ac_objext' 11483 { (case "(($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_try") 2>&5 11489 ac_status=$? 11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11491 (exit $ac_status); }; }; then 11492 ac_header_compiler=yes 11493else 11494 echo "$as_me: failed program was:" >&5 11495sed 's/^/| /' conftest.$ac_ext >&5 11496 11497 ac_header_compiler=no 11498fi 11499 11500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11502echo "${ECHO_T}$ac_header_compiler" >&6; } 11503 11504# Is the header present? 11505{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11507cat >conftest.$ac_ext <<_ACEOF 11508/* confdefs.h. */ 11509_ACEOF 11510cat confdefs.h >>conftest.$ac_ext 11511cat >>conftest.$ac_ext <<_ACEOF 11512/* end confdefs.h. */ 11513#include <$ac_header> 11514_ACEOF 11515if { (ac_try="$ac_cpp conftest.$ac_ext" 11516case "(($ac_try" in 11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11518 *) ac_try_echo=$ac_try;; 11519esac 11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11522 ac_status=$? 11523 grep -v '^ *+' conftest.er1 >conftest.err 11524 rm -f conftest.er1 11525 cat conftest.err >&5 11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11527 (exit $ac_status); } >/dev/null; then 11528 if test -s conftest.err; then 11529 ac_cpp_err=$ac_c_preproc_warn_flag 11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11531 else 11532 ac_cpp_err= 11533 fi 11534else 11535 ac_cpp_err=yes 11536fi 11537if test -z "$ac_cpp_err"; then 11538 ac_header_preproc=yes 11539else 11540 echo "$as_me: failed program was:" >&5 11541sed 's/^/| /' conftest.$ac_ext >&5 11542 11543 ac_header_preproc=no 11544fi 11545 11546rm -f conftest.err conftest.$ac_ext 11547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11548echo "${ECHO_T}$ac_header_preproc" >&6; } 11549 11550# So? What about this header? 11551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11552 yes:no: ) 11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11557 ac_header_preproc=yes 11558 ;; 11559 no:yes:* ) 11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11572 ( cat <<\_ASBOX 11573## ------------------------------------ ## 11574## Report this to http://llvm.org/bugs/ ## 11575## ------------------------------------ ## 11576_ASBOX 11577 ) | sed "s/^/$as_me: WARNING: /" >&2 11578 ;; 11579esac 11580{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11583 echo $ECHO_N "(cached) $ECHO_C" >&6 11584else 11585 eval "$as_ac_Header=\$ac_header_preproc" 11586fi 11587ac_res=`eval echo '${'$as_ac_Header'}'` 11588 { echo "$as_me:$LINENO: result: $ac_res" >&5 11589echo "${ECHO_T}$ac_res" >&6; } 11590 11591fi 11592if test `eval echo '${'$as_ac_Header'}'` = yes; then 11593 cat >>confdefs.h <<_ACEOF 11594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11595_ACEOF 11596 break 11597fi 11598 11599done 11600 11601 11602 11603 11604for ac_func in strchr index 11605do 11606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11607{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11610 echo $ECHO_N "(cached) $ECHO_C" >&6 11611else 11612 cat >conftest.$ac_ext <<_ACEOF 11613/* confdefs.h. */ 11614_ACEOF 11615cat confdefs.h >>conftest.$ac_ext 11616cat >>conftest.$ac_ext <<_ACEOF 11617/* end confdefs.h. */ 11618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11620#define $ac_func innocuous_$ac_func 11621 11622/* System header to define __stub macros and hopefully few prototypes, 11623 which can conflict with char $ac_func (); below. 11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11625 <limits.h> exists even on freestanding compilers. */ 11626 11627#ifdef __STDC__ 11628# include <limits.h> 11629#else 11630# include <assert.h> 11631#endif 11632 11633#undef $ac_func 11634 11635/* Override any GCC internal prototype to avoid an error. 11636 Use char because int might match the return type of a GCC 11637 builtin and then its argument prototype would still apply. */ 11638#ifdef __cplusplus 11639extern "C" 11640#endif 11641char $ac_func (); 11642/* The GNU C library defines this for functions which it implements 11643 to always fail with ENOSYS. Some functions are actually named 11644 something starting with __ and the normal name is an alias. */ 11645#if defined __stub_$ac_func || defined __stub___$ac_func 11646choke me 11647#endif 11648 11649int 11650main () 11651{ 11652return $ac_func (); 11653 ; 11654 return 0; 11655} 11656_ACEOF 11657rm -f conftest.$ac_objext conftest$ac_exeext 11658if { (ac_try="$ac_link" 11659case "(($ac_try" in 11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11661 *) ac_try_echo=$ac_try;; 11662esac 11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11664 (eval "$ac_link") 2>conftest.er1 11665 ac_status=$? 11666 grep -v '^ *+' conftest.er1 >conftest.err 11667 rm -f conftest.er1 11668 cat conftest.err >&5 11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11670 (exit $ac_status); } && 11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11672 { (case "(($ac_try" in 11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11674 *) ac_try_echo=$ac_try;; 11675esac 11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11677 (eval "$ac_try") 2>&5 11678 ac_status=$? 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); }; } && 11681 { ac_try='test -s conftest$ac_exeext' 11682 { (case "(($ac_try" in 11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11684 *) ac_try_echo=$ac_try;; 11685esac 11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11687 (eval "$ac_try") 2>&5 11688 ac_status=$? 11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11690 (exit $ac_status); }; }; then 11691 eval "$as_ac_var=yes" 11692else 11693 echo "$as_me: failed program was:" >&5 11694sed 's/^/| /' conftest.$ac_ext >&5 11695 11696 eval "$as_ac_var=no" 11697fi 11698 11699rm -f core conftest.err conftest.$ac_objext \ 11700 conftest$ac_exeext conftest.$ac_ext 11701fi 11702ac_res=`eval echo '${'$as_ac_var'}'` 11703 { echo "$as_me:$LINENO: result: $ac_res" >&5 11704echo "${ECHO_T}$ac_res" >&6; } 11705if test `eval echo '${'$as_ac_var'}'` = yes; then 11706 cat >>confdefs.h <<_ACEOF 11707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11708_ACEOF 11709 break 11710fi 11711done 11712 11713 11714 11715for ac_func in strrchr rindex 11716do 11717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11718{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11721 echo $ECHO_N "(cached) $ECHO_C" >&6 11722else 11723 cat >conftest.$ac_ext <<_ACEOF 11724/* confdefs.h. */ 11725_ACEOF 11726cat confdefs.h >>conftest.$ac_ext 11727cat >>conftest.$ac_ext <<_ACEOF 11728/* end confdefs.h. */ 11729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11731#define $ac_func innocuous_$ac_func 11732 11733/* System header to define __stub macros and hopefully few prototypes, 11734 which can conflict with char $ac_func (); below. 11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11736 <limits.h> exists even on freestanding compilers. */ 11737 11738#ifdef __STDC__ 11739# include <limits.h> 11740#else 11741# include <assert.h> 11742#endif 11743 11744#undef $ac_func 11745 11746/* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. */ 11749#ifdef __cplusplus 11750extern "C" 11751#endif 11752char $ac_func (); 11753/* The GNU C library defines this for functions which it implements 11754 to always fail with ENOSYS. Some functions are actually named 11755 something starting with __ and the normal name is an alias. */ 11756#if defined __stub_$ac_func || defined __stub___$ac_func 11757choke me 11758#endif 11759 11760int 11761main () 11762{ 11763return $ac_func (); 11764 ; 11765 return 0; 11766} 11767_ACEOF 11768rm -f conftest.$ac_objext conftest$ac_exeext 11769if { (ac_try="$ac_link" 11770case "(($ac_try" in 11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11772 *) ac_try_echo=$ac_try;; 11773esac 11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11775 (eval "$ac_link") 2>conftest.er1 11776 ac_status=$? 11777 grep -v '^ *+' conftest.er1 >conftest.err 11778 rm -f conftest.er1 11779 cat conftest.err >&5 11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11781 (exit $ac_status); } && 11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11783 { (case "(($ac_try" in 11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11785 *) ac_try_echo=$ac_try;; 11786esac 11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11788 (eval "$ac_try") 2>&5 11789 ac_status=$? 11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 (exit $ac_status); }; } && 11792 { ac_try='test -s conftest$ac_exeext' 11793 { (case "(($ac_try" in 11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11795 *) ac_try_echo=$ac_try;; 11796esac 11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11798 (eval "$ac_try") 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); }; }; then 11802 eval "$as_ac_var=yes" 11803else 11804 echo "$as_me: failed program was:" >&5 11805sed 's/^/| /' conftest.$ac_ext >&5 11806 11807 eval "$as_ac_var=no" 11808fi 11809 11810rm -f core conftest.err conftest.$ac_objext \ 11811 conftest$ac_exeext conftest.$ac_ext 11812fi 11813ac_res=`eval echo '${'$as_ac_var'}'` 11814 { echo "$as_me:$LINENO: result: $ac_res" >&5 11815echo "${ECHO_T}$ac_res" >&6; } 11816if test `eval echo '${'$as_ac_var'}'` = yes; then 11817 cat >>confdefs.h <<_ACEOF 11818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11819_ACEOF 11820 break 11821fi 11822done 11823 11824 11825 11826for ac_func in memcpy bcopy 11827do 11828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11829{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11832 echo $ECHO_N "(cached) $ECHO_C" >&6 11833else 11834 cat >conftest.$ac_ext <<_ACEOF 11835/* confdefs.h. */ 11836_ACEOF 11837cat confdefs.h >>conftest.$ac_ext 11838cat >>conftest.$ac_ext <<_ACEOF 11839/* end confdefs.h. */ 11840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11842#define $ac_func innocuous_$ac_func 11843 11844/* System header to define __stub macros and hopefully few prototypes, 11845 which can conflict with char $ac_func (); below. 11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11847 <limits.h> exists even on freestanding compilers. */ 11848 11849#ifdef __STDC__ 11850# include <limits.h> 11851#else 11852# include <assert.h> 11853#endif 11854 11855#undef $ac_func 11856 11857/* Override any GCC internal prototype to avoid an error. 11858 Use char because int might match the return type of a GCC 11859 builtin and then its argument prototype would still apply. */ 11860#ifdef __cplusplus 11861extern "C" 11862#endif 11863char $ac_func (); 11864/* The GNU C library defines this for functions which it implements 11865 to always fail with ENOSYS. Some functions are actually named 11866 something starting with __ and the normal name is an alias. */ 11867#if defined __stub_$ac_func || defined __stub___$ac_func 11868choke me 11869#endif 11870 11871int 11872main () 11873{ 11874return $ac_func (); 11875 ; 11876 return 0; 11877} 11878_ACEOF 11879rm -f conftest.$ac_objext conftest$ac_exeext 11880if { (ac_try="$ac_link" 11881case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884esac 11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11886 (eval "$ac_link") 2>conftest.er1 11887 ac_status=$? 11888 grep -v '^ *+' conftest.er1 >conftest.err 11889 rm -f conftest.er1 11890 cat conftest.err >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); } && 11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11894 { (case "(($ac_try" in 11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11896 *) ac_try_echo=$ac_try;; 11897esac 11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11899 (eval "$ac_try") 2>&5 11900 ac_status=$? 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); }; } && 11903 { ac_try='test -s conftest$ac_exeext' 11904 { (case "(($ac_try" in 11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11906 *) ac_try_echo=$ac_try;; 11907esac 11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11909 (eval "$ac_try") 2>&5 11910 ac_status=$? 11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11912 (exit $ac_status); }; }; then 11913 eval "$as_ac_var=yes" 11914else 11915 echo "$as_me: failed program was:" >&5 11916sed 's/^/| /' conftest.$ac_ext >&5 11917 11918 eval "$as_ac_var=no" 11919fi 11920 11921rm -f core conftest.err conftest.$ac_objext \ 11922 conftest$ac_exeext conftest.$ac_ext 11923fi 11924ac_res=`eval echo '${'$as_ac_var'}'` 11925 { echo "$as_me:$LINENO: result: $ac_res" >&5 11926echo "${ECHO_T}$ac_res" >&6; } 11927if test `eval echo '${'$as_ac_var'}'` = yes; then 11928 cat >>confdefs.h <<_ACEOF 11929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11930_ACEOF 11931 break 11932fi 11933done 11934 11935 11936 11937for ac_func in memmove strcmp 11938do 11939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11940{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11943 echo $ECHO_N "(cached) $ECHO_C" >&6 11944else 11945 cat >conftest.$ac_ext <<_ACEOF 11946/* confdefs.h. */ 11947_ACEOF 11948cat confdefs.h >>conftest.$ac_ext 11949cat >>conftest.$ac_ext <<_ACEOF 11950/* end confdefs.h. */ 11951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11953#define $ac_func innocuous_$ac_func 11954 11955/* System header to define __stub macros and hopefully few prototypes, 11956 which can conflict with char $ac_func (); below. 11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11958 <limits.h> exists even on freestanding compilers. */ 11959 11960#ifdef __STDC__ 11961# include <limits.h> 11962#else 11963# include <assert.h> 11964#endif 11965 11966#undef $ac_func 11967 11968/* Override any GCC internal prototype to avoid an error. 11969 Use char because int might match the return type of a GCC 11970 builtin and then its argument prototype would still apply. */ 11971#ifdef __cplusplus 11972extern "C" 11973#endif 11974char $ac_func (); 11975/* The GNU C library defines this for functions which it implements 11976 to always fail with ENOSYS. Some functions are actually named 11977 something starting with __ and the normal name is an alias. */ 11978#if defined __stub_$ac_func || defined __stub___$ac_func 11979choke me 11980#endif 11981 11982int 11983main () 11984{ 11985return $ac_func (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990rm -f conftest.$ac_objext conftest$ac_exeext 11991if { (ac_try="$ac_link" 11992case "(($ac_try" in 11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11994 *) ac_try_echo=$ac_try;; 11995esac 11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11997 (eval "$ac_link") 2>conftest.er1 11998 ac_status=$? 11999 grep -v '^ *+' conftest.er1 >conftest.err 12000 rm -f conftest.er1 12001 cat conftest.err >&5 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); } && 12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12005 { (case "(($ac_try" in 12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12007 *) ac_try_echo=$ac_try;; 12008esac 12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12010 (eval "$ac_try") 2>&5 12011 ac_status=$? 12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12013 (exit $ac_status); }; } && 12014 { ac_try='test -s conftest$ac_exeext' 12015 { (case "(($ac_try" in 12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12017 *) ac_try_echo=$ac_try;; 12018esac 12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12020 (eval "$ac_try") 2>&5 12021 ac_status=$? 12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12023 (exit $ac_status); }; }; then 12024 eval "$as_ac_var=yes" 12025else 12026 echo "$as_me: failed program was:" >&5 12027sed 's/^/| /' conftest.$ac_ext >&5 12028 12029 eval "$as_ac_var=no" 12030fi 12031 12032rm -f core conftest.err conftest.$ac_objext \ 12033 conftest$ac_exeext conftest.$ac_ext 12034fi 12035ac_res=`eval echo '${'$as_ac_var'}'` 12036 { echo "$as_me:$LINENO: result: $ac_res" >&5 12037echo "${ECHO_T}$ac_res" >&6; } 12038if test `eval echo '${'$as_ac_var'}'` = yes; then 12039 cat >>confdefs.h <<_ACEOF 12040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12041_ACEOF 12042 12043fi 12044done 12045 12046 12047 12048 12049for ac_func in closedir opendir readdir 12050do 12051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12052{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12055 echo $ECHO_N "(cached) $ECHO_C" >&6 12056else 12057 cat >conftest.$ac_ext <<_ACEOF 12058/* confdefs.h. */ 12059_ACEOF 12060cat confdefs.h >>conftest.$ac_ext 12061cat >>conftest.$ac_ext <<_ACEOF 12062/* end confdefs.h. */ 12063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12065#define $ac_func innocuous_$ac_func 12066 12067/* System header to define __stub macros and hopefully few prototypes, 12068 which can conflict with char $ac_func (); below. 12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12070 <limits.h> exists even on freestanding compilers. */ 12071 12072#ifdef __STDC__ 12073# include <limits.h> 12074#else 12075# include <assert.h> 12076#endif 12077 12078#undef $ac_func 12079 12080/* Override any GCC internal prototype to avoid an error. 12081 Use char because int might match the return type of a GCC 12082 builtin and then its argument prototype would still apply. */ 12083#ifdef __cplusplus 12084extern "C" 12085#endif 12086char $ac_func (); 12087/* The GNU C library defines this for functions which it implements 12088 to always fail with ENOSYS. Some functions are actually named 12089 something starting with __ and the normal name is an alias. */ 12090#if defined __stub_$ac_func || defined __stub___$ac_func 12091choke me 12092#endif 12093 12094int 12095main () 12096{ 12097return $ac_func (); 12098 ; 12099 return 0; 12100} 12101_ACEOF 12102rm -f conftest.$ac_objext conftest$ac_exeext 12103if { (ac_try="$ac_link" 12104case "(($ac_try" in 12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12106 *) ac_try_echo=$ac_try;; 12107esac 12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12109 (eval "$ac_link") 2>conftest.er1 12110 ac_status=$? 12111 grep -v '^ *+' conftest.er1 >conftest.err 12112 rm -f conftest.er1 12113 cat conftest.err >&5 12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12115 (exit $ac_status); } && 12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12117 { (case "(($ac_try" in 12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12119 *) ac_try_echo=$ac_try;; 12120esac 12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12122 (eval "$ac_try") 2>&5 12123 ac_status=$? 12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); }; } && 12126 { ac_try='test -s conftest$ac_exeext' 12127 { (case "(($ac_try" in 12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12129 *) ac_try_echo=$ac_try;; 12130esac 12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12132 (eval "$ac_try") 2>&5 12133 ac_status=$? 12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12135 (exit $ac_status); }; }; then 12136 eval "$as_ac_var=yes" 12137else 12138 echo "$as_me: failed program was:" >&5 12139sed 's/^/| /' conftest.$ac_ext >&5 12140 12141 eval "$as_ac_var=no" 12142fi 12143 12144rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146fi 12147ac_res=`eval echo '${'$as_ac_var'}'` 12148 { echo "$as_me:$LINENO: result: $ac_res" >&5 12149echo "${ECHO_T}$ac_res" >&6; } 12150if test `eval echo '${'$as_ac_var'}'` = yes; then 12151 cat >>confdefs.h <<_ACEOF 12152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12153_ACEOF 12154 12155fi 12156done 12157 12158 12159 12160{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12161echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12162 12163ICC=no 12164IXX=no 12165case $CC in 12166 icc*|icpc*) 12167 ICC=yes 12168 IXX=yes 12169 ;; 12170 *) 12171 ;; 12172esac 12173 12174if test "$GCC" != "yes" && test "$ICC" != "yes" 12175then 12176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12177echo "$as_me: error: gcc|icc required but not found" >&2;} 12178 { (exit 1); exit 1; }; } 12179fi 12180 12181if test "$GXX" != "yes" && test "$IXX" != "yes" 12182then 12183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12184echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12185 { (exit 1); exit 1; }; } 12186fi 12187 12188if test "$GCC" = "yes" 12189then 12190 cat >conftest.$ac_ext <<_ACEOF 12191 12192 /* confdefs.h. */ 12193_ACEOF 12194cat confdefs.h >>conftest.$ac_ext 12195cat >>conftest.$ac_ext <<_ACEOF 12196/* end confdefs.h. */ 12197 12198 #if !defined(__GNUC__) || __GNUC__ < 3 12199 #error Unsupported GCC version 12200 #endif 12201 12202 12203_ACEOF 12204rm -f conftest.$ac_objext 12205if { (ac_try="$ac_compile" 12206case "(($ac_try" in 12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12208 *) ac_try_echo=$ac_try;; 12209esac 12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12211 (eval "$ac_compile") 2>conftest.er1 12212 ac_status=$? 12213 grep -v '^ *+' conftest.er1 >conftest.err 12214 rm -f conftest.er1 12215 cat conftest.err >&5 12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12217 (exit $ac_status); } && 12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12219 { (case "(($ac_try" in 12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12221 *) ac_try_echo=$ac_try;; 12222esac 12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12224 (eval "$ac_try") 2>&5 12225 ac_status=$? 12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12227 (exit $ac_status); }; } && 12228 { ac_try='test -s conftest.$ac_objext' 12229 { (case "(($ac_try" in 12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12231 *) ac_try_echo=$ac_try;; 12232esac 12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12234 (eval "$ac_try") 2>&5 12235 ac_status=$? 12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 (exit $ac_status); }; }; then 12238 : 12239else 12240 echo "$as_me: failed program was:" >&5 12241sed 's/^/| /' conftest.$ac_ext >&5 12242 12243 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12244echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12245 { (exit 1); exit 1; }; } 12246fi 12247 12248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12249fi 12250 12251if test -z "$llvm_cv_gnu_make_command" 12252then 12253 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12254echo "$as_me: error: GNU Make required but not found" >&2;} 12255 { (exit 1); exit 1; }; } 12256fi 12257 12258{ echo "$as_me:$LINENO: result: ok" >&5 12259echo "${ECHO_T}ok" >&6; } 12260 12261{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12262echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12263NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12264 12265NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12266 12267COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12268 12269 12270NO_UNINITIALIZED= 12271NO_MAYBE_UNINITIALIZED= 12272if test "$GXX" = "yes" 12273then 12274 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 12275 12276 if test -z "$NO_MAYBE_UNINITIALIZED" 12277 then 12278 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 12279 12280 fi 12281fi 12282{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 12283echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 12284 12285 12286# Check whether --with-python was given. 12287if test "${with_python+set}" = set; then 12288 withval=$with_python; PYTHON="$withval" 12289fi 12290 12291 12292if test -n "$PYTHON" && test -x "$PYTHON" ; then 12293 { echo "$as_me:$LINENO: checking for python" >&5 12294echo $ECHO_N "checking for python... $ECHO_C" >&6; } 12295 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 12296echo "${ECHO_T}user defined: $with_python" >&6; } 12297else 12298 if test -n "$PYTHON" ; then 12299 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 12300echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 12301 fi 12302 12303 # Extract the first word of "python python2 python26", so it can be a program name with args. 12304set dummy python python2 python26; ac_word=$2 12305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12307if test "${ac_cv_path_PYTHON+set}" = set; then 12308 echo $ECHO_N "(cached) $ECHO_C" >&6 12309else 12310 case $PYTHON in 12311 [\\/]* | ?:[\\/]*) 12312 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12313 ;; 12314 *) 12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12316for as_dir in $PATH 12317do 12318 IFS=$as_save_IFS 12319 test -z "$as_dir" && as_dir=. 12320 for ac_exec_ext in '' $ac_executable_extensions; do 12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12322 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 12323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12324 break 2 12325 fi 12326done 12327done 12328IFS=$as_save_IFS 12329 12330 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 12331echo "${ECHO_T}not found" >&6; } 12332 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 12333echo "$as_me: error: could not find python 2.5 or higher" >&2;} 12334 { (exit 1); exit 1; }; }" 12335 ;; 12336esac 12337fi 12338PYTHON=$ac_cv_path_PYTHON 12339if test -n "$PYTHON"; then 12340 { echo "$as_me:$LINENO: result: $PYTHON" >&5 12341echo "${ECHO_T}$PYTHON" >&6; } 12342else 12343 { echo "$as_me:$LINENO: result: no" >&5 12344echo "${ECHO_T}no" >&6; } 12345fi 12346 12347 12348fi 12349 12350{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5 12351echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 12352ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 12353ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 12354ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 12355ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 12356if test "$ac_python_version_major" -eq "2" \ 12357 && test "$ac_python_version_minor" -ge "5" ; then 12358 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 12359echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 12360else 12361 { echo "$as_me:$LINENO: result: not found" >&5 12362echo "${ECHO_T}not found" >&6; } 12363 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 12364See \`config.log' for more details." >&5 12365echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 12366See \`config.log' for more details." >&2;} 12367 { (exit 1); exit 1; }; } 12368fi 12369 12370 12371 12372{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12373echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12374if test "${ac_cv_lib_m_sin+set}" = set; then 12375 echo $ECHO_N "(cached) $ECHO_C" >&6 12376else 12377 ac_check_lib_save_LIBS=$LIBS 12378LIBS="-lm $LIBS" 12379cat >conftest.$ac_ext <<_ACEOF 12380/* confdefs.h. */ 12381_ACEOF 12382cat confdefs.h >>conftest.$ac_ext 12383cat >>conftest.$ac_ext <<_ACEOF 12384/* end confdefs.h. */ 12385 12386/* Override any GCC internal prototype to avoid an error. 12387 Use char because int might match the return type of a GCC 12388 builtin and then its argument prototype would still apply. */ 12389#ifdef __cplusplus 12390extern "C" 12391#endif 12392char sin (); 12393int 12394main () 12395{ 12396return sin (); 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401rm -f conftest.$ac_objext conftest$ac_exeext 12402if { (ac_try="$ac_link" 12403case "(($ac_try" in 12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12405 *) ac_try_echo=$ac_try;; 12406esac 12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12408 (eval "$ac_link") 2>conftest.er1 12409 ac_status=$? 12410 grep -v '^ *+' conftest.er1 >conftest.err 12411 rm -f conftest.er1 12412 cat conftest.err >&5 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); } && 12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12416 { (case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419esac 12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12421 (eval "$ac_try") 2>&5 12422 ac_status=$? 12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12424 (exit $ac_status); }; } && 12425 { ac_try='test -s conftest$ac_exeext' 12426 { (case "(($ac_try" in 12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12428 *) ac_try_echo=$ac_try;; 12429esac 12430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12431 (eval "$ac_try") 2>&5 12432 ac_status=$? 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12434 (exit $ac_status); }; }; then 12435 ac_cv_lib_m_sin=yes 12436else 12437 echo "$as_me: failed program was:" >&5 12438sed 's/^/| /' conftest.$ac_ext >&5 12439 12440 ac_cv_lib_m_sin=no 12441fi 12442 12443rm -f core conftest.err conftest.$ac_objext \ 12444 conftest$ac_exeext conftest.$ac_ext 12445LIBS=$ac_check_lib_save_LIBS 12446fi 12447{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12448echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12449if test $ac_cv_lib_m_sin = yes; then 12450 cat >>confdefs.h <<_ACEOF 12451#define HAVE_LIBM 1 12452_ACEOF 12453 12454 LIBS="-lm $LIBS" 12455 12456fi 12457 12458if test "$llvm_cv_os_type" = "MingW" ; then 12459 12460{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12461echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12462if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12463 echo $ECHO_N "(cached) $ECHO_C" >&6 12464else 12465 ac_check_lib_save_LIBS=$LIBS 12466LIBS="-limagehlp $LIBS" 12467cat >conftest.$ac_ext <<_ACEOF 12468/* confdefs.h. */ 12469_ACEOF 12470cat confdefs.h >>conftest.$ac_ext 12471cat >>conftest.$ac_ext <<_ACEOF 12472/* end confdefs.h. */ 12473 12474 12475int 12476main () 12477{ 12478return main (); 12479 ; 12480 return 0; 12481} 12482_ACEOF 12483rm -f conftest.$ac_objext conftest$ac_exeext 12484if { (ac_try="$ac_link" 12485case "(($ac_try" in 12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12487 *) ac_try_echo=$ac_try;; 12488esac 12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12490 (eval "$ac_link") 2>conftest.er1 12491 ac_status=$? 12492 grep -v '^ *+' conftest.er1 >conftest.err 12493 rm -f conftest.er1 12494 cat conftest.err >&5 12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12496 (exit $ac_status); } && 12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12498 { (case "(($ac_try" in 12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12500 *) ac_try_echo=$ac_try;; 12501esac 12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12503 (eval "$ac_try") 2>&5 12504 ac_status=$? 12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12506 (exit $ac_status); }; } && 12507 { ac_try='test -s conftest$ac_exeext' 12508 { (case "(($ac_try" in 12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12510 *) ac_try_echo=$ac_try;; 12511esac 12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12513 (eval "$ac_try") 2>&5 12514 ac_status=$? 12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); }; }; then 12517 ac_cv_lib_imagehlp_main=yes 12518else 12519 echo "$as_me: failed program was:" >&5 12520sed 's/^/| /' conftest.$ac_ext >&5 12521 12522 ac_cv_lib_imagehlp_main=no 12523fi 12524 12525rm -f core conftest.err conftest.$ac_objext \ 12526 conftest$ac_exeext conftest.$ac_ext 12527LIBS=$ac_check_lib_save_LIBS 12528fi 12529{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12530echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12531if test $ac_cv_lib_imagehlp_main = yes; then 12532 cat >>confdefs.h <<_ACEOF 12533#define HAVE_LIBIMAGEHLP 1 12534_ACEOF 12535 12536 LIBS="-limagehlp $LIBS" 12537 12538fi 12539 12540 12541{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12542echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12543if test "${ac_cv_lib_psapi_main+set}" = set; then 12544 echo $ECHO_N "(cached) $ECHO_C" >&6 12545else 12546 ac_check_lib_save_LIBS=$LIBS 12547LIBS="-lpsapi $LIBS" 12548cat >conftest.$ac_ext <<_ACEOF 12549/* confdefs.h. */ 12550_ACEOF 12551cat confdefs.h >>conftest.$ac_ext 12552cat >>conftest.$ac_ext <<_ACEOF 12553/* end confdefs.h. */ 12554 12555 12556int 12557main () 12558{ 12559return main (); 12560 ; 12561 return 0; 12562} 12563_ACEOF 12564rm -f conftest.$ac_objext conftest$ac_exeext 12565if { (ac_try="$ac_link" 12566case "(($ac_try" in 12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12568 *) ac_try_echo=$ac_try;; 12569esac 12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12571 (eval "$ac_link") 2>conftest.er1 12572 ac_status=$? 12573 grep -v '^ *+' conftest.er1 >conftest.err 12574 rm -f conftest.er1 12575 cat conftest.err >&5 12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12577 (exit $ac_status); } && 12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12579 { (case "(($ac_try" in 12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12581 *) ac_try_echo=$ac_try;; 12582esac 12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12584 (eval "$ac_try") 2>&5 12585 ac_status=$? 12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12587 (exit $ac_status); }; } && 12588 { ac_try='test -s conftest$ac_exeext' 12589 { (case "(($ac_try" in 12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12591 *) ac_try_echo=$ac_try;; 12592esac 12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12594 (eval "$ac_try") 2>&5 12595 ac_status=$? 12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12597 (exit $ac_status); }; }; then 12598 ac_cv_lib_psapi_main=yes 12599else 12600 echo "$as_me: failed program was:" >&5 12601sed 's/^/| /' conftest.$ac_ext >&5 12602 12603 ac_cv_lib_psapi_main=no 12604fi 12605 12606rm -f core conftest.err conftest.$ac_objext \ 12607 conftest$ac_exeext conftest.$ac_ext 12608LIBS=$ac_check_lib_save_LIBS 12609fi 12610{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12611echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12612if test $ac_cv_lib_psapi_main = yes; then 12613 cat >>confdefs.h <<_ACEOF 12614#define HAVE_LIBPSAPI 1 12615_ACEOF 12616 12617 LIBS="-lpsapi $LIBS" 12618 12619fi 12620 12621fi 12622 12623{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12624echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12625if test "${ac_cv_search_dlopen+set}" = set; then 12626 echo $ECHO_N "(cached) $ECHO_C" >&6 12627else 12628 ac_func_search_save_LIBS=$LIBS 12629cat >conftest.$ac_ext <<_ACEOF 12630/* confdefs.h. */ 12631_ACEOF 12632cat confdefs.h >>conftest.$ac_ext 12633cat >>conftest.$ac_ext <<_ACEOF 12634/* end confdefs.h. */ 12635 12636/* Override any GCC internal prototype to avoid an error. 12637 Use char because int might match the return type of a GCC 12638 builtin and then its argument prototype would still apply. */ 12639#ifdef __cplusplus 12640extern "C" 12641#endif 12642char dlopen (); 12643int 12644main () 12645{ 12646return dlopen (); 12647 ; 12648 return 0; 12649} 12650_ACEOF 12651for ac_lib in '' dl; do 12652 if test -z "$ac_lib"; then 12653 ac_res="none required" 12654 else 12655 ac_res=-l$ac_lib 12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12657 fi 12658 rm -f conftest.$ac_objext conftest$ac_exeext 12659if { (ac_try="$ac_link" 12660case "(($ac_try" in 12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12662 *) ac_try_echo=$ac_try;; 12663esac 12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12665 (eval "$ac_link") 2>conftest.er1 12666 ac_status=$? 12667 grep -v '^ *+' conftest.er1 >conftest.err 12668 rm -f conftest.er1 12669 cat conftest.err >&5 12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12671 (exit $ac_status); } && 12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12673 { (case "(($ac_try" in 12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12675 *) ac_try_echo=$ac_try;; 12676esac 12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12678 (eval "$ac_try") 2>&5 12679 ac_status=$? 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); }; } && 12682 { ac_try='test -s conftest$ac_exeext' 12683 { (case "(($ac_try" in 12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12685 *) ac_try_echo=$ac_try;; 12686esac 12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12688 (eval "$ac_try") 2>&5 12689 ac_status=$? 12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12691 (exit $ac_status); }; }; then 12692 ac_cv_search_dlopen=$ac_res 12693else 12694 echo "$as_me: failed program was:" >&5 12695sed 's/^/| /' conftest.$ac_ext >&5 12696 12697 12698fi 12699 12700rm -f core conftest.err conftest.$ac_objext \ 12701 conftest$ac_exeext 12702 if test "${ac_cv_search_dlopen+set}" = set; then 12703 break 12704fi 12705done 12706if test "${ac_cv_search_dlopen+set}" = set; then 12707 : 12708else 12709 ac_cv_search_dlopen=no 12710fi 12711rm conftest.$ac_ext 12712LIBS=$ac_func_search_save_LIBS 12713fi 12714{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12715echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12716ac_res=$ac_cv_search_dlopen 12717if test "$ac_res" != no; then 12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12719 12720cat >>confdefs.h <<\_ACEOF 12721#define HAVE_DLOPEN 1 12722_ACEOF 12723 12724else 12725 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12726echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12727fi 12728 12729 12730{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12731echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12732if test "${ac_cv_search_clock_gettime+set}" = set; then 12733 echo $ECHO_N "(cached) $ECHO_C" >&6 12734else 12735 ac_func_search_save_LIBS=$LIBS 12736cat >conftest.$ac_ext <<_ACEOF 12737/* confdefs.h. */ 12738_ACEOF 12739cat confdefs.h >>conftest.$ac_ext 12740cat >>conftest.$ac_ext <<_ACEOF 12741/* end confdefs.h. */ 12742 12743/* Override any GCC internal prototype to avoid an error. 12744 Use char because int might match the return type of a GCC 12745 builtin and then its argument prototype would still apply. */ 12746#ifdef __cplusplus 12747extern "C" 12748#endif 12749char clock_gettime (); 12750int 12751main () 12752{ 12753return clock_gettime (); 12754 ; 12755 return 0; 12756} 12757_ACEOF 12758for ac_lib in '' rt; do 12759 if test -z "$ac_lib"; then 12760 ac_res="none required" 12761 else 12762 ac_res=-l$ac_lib 12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12764 fi 12765 rm -f conftest.$ac_objext conftest$ac_exeext 12766if { (ac_try="$ac_link" 12767case "(($ac_try" in 12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12769 *) ac_try_echo=$ac_try;; 12770esac 12771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12772 (eval "$ac_link") 2>conftest.er1 12773 ac_status=$? 12774 grep -v '^ *+' conftest.er1 >conftest.err 12775 rm -f conftest.er1 12776 cat conftest.err >&5 12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12778 (exit $ac_status); } && 12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12780 { (case "(($ac_try" in 12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12782 *) ac_try_echo=$ac_try;; 12783esac 12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12785 (eval "$ac_try") 2>&5 12786 ac_status=$? 12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12788 (exit $ac_status); }; } && 12789 { ac_try='test -s conftest$ac_exeext' 12790 { (case "(($ac_try" in 12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12792 *) ac_try_echo=$ac_try;; 12793esac 12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12795 (eval "$ac_try") 2>&5 12796 ac_status=$? 12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; }; then 12799 ac_cv_search_clock_gettime=$ac_res 12800else 12801 echo "$as_me: failed program was:" >&5 12802sed 's/^/| /' conftest.$ac_ext >&5 12803 12804 12805fi 12806 12807rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext 12809 if test "${ac_cv_search_clock_gettime+set}" = set; then 12810 break 12811fi 12812done 12813if test "${ac_cv_search_clock_gettime+set}" = set; then 12814 : 12815else 12816 ac_cv_search_clock_gettime=no 12817fi 12818rm conftest.$ac_ext 12819LIBS=$ac_func_search_save_LIBS 12820fi 12821{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12822echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12823ac_res=$ac_cv_search_clock_gettime 12824if test "$ac_res" != no; then 12825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12826 12827fi 12828 12829 12830if test "$llvm_cv_enable_libffi" = "yes" ; then 12831 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12832echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12833if test "${ac_cv_search_ffi_call+set}" = set; then 12834 echo $ECHO_N "(cached) $ECHO_C" >&6 12835else 12836 ac_func_search_save_LIBS=$LIBS 12837cat >conftest.$ac_ext <<_ACEOF 12838/* confdefs.h. */ 12839_ACEOF 12840cat confdefs.h >>conftest.$ac_ext 12841cat >>conftest.$ac_ext <<_ACEOF 12842/* end confdefs.h. */ 12843 12844/* Override any GCC internal prototype to avoid an error. 12845 Use char because int might match the return type of a GCC 12846 builtin and then its argument prototype would still apply. */ 12847#ifdef __cplusplus 12848extern "C" 12849#endif 12850char ffi_call (); 12851int 12852main () 12853{ 12854return ffi_call (); 12855 ; 12856 return 0; 12857} 12858_ACEOF 12859for ac_lib in '' ffi; do 12860 if test -z "$ac_lib"; then 12861 ac_res="none required" 12862 else 12863 ac_res=-l$ac_lib 12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12865 fi 12866 rm -f conftest.$ac_objext conftest$ac_exeext 12867if { (ac_try="$ac_link" 12868case "(($ac_try" in 12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12870 *) ac_try_echo=$ac_try;; 12871esac 12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12873 (eval "$ac_link") 2>conftest.er1 12874 ac_status=$? 12875 grep -v '^ *+' conftest.er1 >conftest.err 12876 rm -f conftest.er1 12877 cat conftest.err >&5 12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 (exit $ac_status); } && 12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12881 { (case "(($ac_try" in 12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12883 *) ac_try_echo=$ac_try;; 12884esac 12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12886 (eval "$ac_try") 2>&5 12887 ac_status=$? 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); }; } && 12890 { ac_try='test -s conftest$ac_exeext' 12891 { (case "(($ac_try" in 12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12893 *) ac_try_echo=$ac_try;; 12894esac 12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12896 (eval "$ac_try") 2>&5 12897 ac_status=$? 12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12899 (exit $ac_status); }; }; then 12900 ac_cv_search_ffi_call=$ac_res 12901else 12902 echo "$as_me: failed program was:" >&5 12903sed 's/^/| /' conftest.$ac_ext >&5 12904 12905 12906fi 12907 12908rm -f core conftest.err conftest.$ac_objext \ 12909 conftest$ac_exeext 12910 if test "${ac_cv_search_ffi_call+set}" = set; then 12911 break 12912fi 12913done 12914if test "${ac_cv_search_ffi_call+set}" = set; then 12915 : 12916else 12917 ac_cv_search_ffi_call=no 12918fi 12919rm conftest.$ac_ext 12920LIBS=$ac_func_search_save_LIBS 12921fi 12922{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12923echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12924ac_res=$ac_cv_search_ffi_call 12925if test "$ac_res" != no; then 12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12927 12928cat >>confdefs.h <<\_ACEOF 12929#define HAVE_FFI_CALL 1 12930_ACEOF 12931 12932else 12933 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12934echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12935 { (exit 1); exit 1; }; } 12936fi 12937 12938fi 12939 12940{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12941echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12942if test "${ac_cv_search_mallinfo+set}" = set; then 12943 echo $ECHO_N "(cached) $ECHO_C" >&6 12944else 12945 ac_func_search_save_LIBS=$LIBS 12946cat >conftest.$ac_ext <<_ACEOF 12947/* confdefs.h. */ 12948_ACEOF 12949cat confdefs.h >>conftest.$ac_ext 12950cat >>conftest.$ac_ext <<_ACEOF 12951/* end confdefs.h. */ 12952 12953/* Override any GCC internal prototype to avoid an error. 12954 Use char because int might match the return type of a GCC 12955 builtin and then its argument prototype would still apply. */ 12956#ifdef __cplusplus 12957extern "C" 12958#endif 12959char mallinfo (); 12960int 12961main () 12962{ 12963return mallinfo (); 12964 ; 12965 return 0; 12966} 12967_ACEOF 12968for ac_lib in '' malloc; do 12969 if test -z "$ac_lib"; then 12970 ac_res="none required" 12971 else 12972 ac_res=-l$ac_lib 12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12974 fi 12975 rm -f conftest.$ac_objext conftest$ac_exeext 12976if { (ac_try="$ac_link" 12977case "(($ac_try" in 12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12979 *) ac_try_echo=$ac_try;; 12980esac 12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12982 (eval "$ac_link") 2>conftest.er1 12983 ac_status=$? 12984 grep -v '^ *+' conftest.er1 >conftest.err 12985 rm -f conftest.er1 12986 cat conftest.err >&5 12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12988 (exit $ac_status); } && 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12990 { (case "(($ac_try" in 12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12992 *) ac_try_echo=$ac_try;; 12993esac 12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12995 (eval "$ac_try") 2>&5 12996 ac_status=$? 12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12998 (exit $ac_status); }; } && 12999 { ac_try='test -s conftest$ac_exeext' 13000 { (case "(($ac_try" in 13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13002 *) ac_try_echo=$ac_try;; 13003esac 13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13005 (eval "$ac_try") 2>&5 13006 ac_status=$? 13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13008 (exit $ac_status); }; }; then 13009 ac_cv_search_mallinfo=$ac_res 13010else 13011 echo "$as_me: failed program was:" >&5 13012sed 's/^/| /' conftest.$ac_ext >&5 13013 13014 13015fi 13016 13017rm -f core conftest.err conftest.$ac_objext \ 13018 conftest$ac_exeext 13019 if test "${ac_cv_search_mallinfo+set}" = set; then 13020 break 13021fi 13022done 13023if test "${ac_cv_search_mallinfo+set}" = set; then 13024 : 13025else 13026 ac_cv_search_mallinfo=no 13027fi 13028rm conftest.$ac_ext 13029LIBS=$ac_func_search_save_LIBS 13030fi 13031{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13032echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13033ac_res=$ac_cv_search_mallinfo 13034if test "$ac_res" != no; then 13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13036 13037cat >>confdefs.h <<\_ACEOF 13038#define HAVE_MALLINFO 1 13039_ACEOF 13040 13041fi 13042 13043 13044if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 13045 13046{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13047echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13048if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13049 echo $ECHO_N "(cached) $ECHO_C" >&6 13050else 13051 ac_check_lib_save_LIBS=$LIBS 13052LIBS="-lpthread $LIBS" 13053cat >conftest.$ac_ext <<_ACEOF 13054/* confdefs.h. */ 13055_ACEOF 13056cat confdefs.h >>conftest.$ac_ext 13057cat >>conftest.$ac_ext <<_ACEOF 13058/* end confdefs.h. */ 13059 13060/* Override any GCC internal prototype to avoid an error. 13061 Use char because int might match the return type of a GCC 13062 builtin and then its argument prototype would still apply. */ 13063#ifdef __cplusplus 13064extern "C" 13065#endif 13066char pthread_mutex_init (); 13067int 13068main () 13069{ 13070return pthread_mutex_init (); 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075rm -f conftest.$ac_objext conftest$ac_exeext 13076if { (ac_try="$ac_link" 13077case "(($ac_try" in 13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13079 *) ac_try_echo=$ac_try;; 13080esac 13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13082 (eval "$ac_link") 2>conftest.er1 13083 ac_status=$? 13084 grep -v '^ *+' conftest.er1 >conftest.err 13085 rm -f conftest.er1 13086 cat conftest.err >&5 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); } && 13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13090 { (case "(($ac_try" in 13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13092 *) ac_try_echo=$ac_try;; 13093esac 13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13095 (eval "$ac_try") 2>&5 13096 ac_status=$? 13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13098 (exit $ac_status); }; } && 13099 { ac_try='test -s conftest$ac_exeext' 13100 { (case "(($ac_try" in 13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13102 *) ac_try_echo=$ac_try;; 13103esac 13104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13105 (eval "$ac_try") 2>&5 13106 ac_status=$? 13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13108 (exit $ac_status); }; }; then 13109 ac_cv_lib_pthread_pthread_mutex_init=yes 13110else 13111 echo "$as_me: failed program was:" >&5 13112sed 's/^/| /' conftest.$ac_ext >&5 13113 13114 ac_cv_lib_pthread_pthread_mutex_init=no 13115fi 13116 13117rm -f core conftest.err conftest.$ac_objext \ 13118 conftest$ac_exeext conftest.$ac_ext 13119LIBS=$ac_check_lib_save_LIBS 13120fi 13121{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 13122echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13123if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13124 cat >>confdefs.h <<_ACEOF 13125#define HAVE_LIBPTHREAD 1 13126_ACEOF 13127 13128 LIBS="-lpthread $LIBS" 13129 13130fi 13131 13132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13133echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13134if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13135 echo $ECHO_N "(cached) $ECHO_C" >&6 13136else 13137 ac_func_search_save_LIBS=$LIBS 13138cat >conftest.$ac_ext <<_ACEOF 13139/* confdefs.h. */ 13140_ACEOF 13141cat confdefs.h >>conftest.$ac_ext 13142cat >>conftest.$ac_ext <<_ACEOF 13143/* end confdefs.h. */ 13144 13145/* Override any GCC internal prototype to avoid an error. 13146 Use char because int might match the return type of a GCC 13147 builtin and then its argument prototype would still apply. */ 13148#ifdef __cplusplus 13149extern "C" 13150#endif 13151char pthread_mutex_lock (); 13152int 13153main () 13154{ 13155return pthread_mutex_lock (); 13156 ; 13157 return 0; 13158} 13159_ACEOF 13160for ac_lib in '' pthread; do 13161 if test -z "$ac_lib"; then 13162 ac_res="none required" 13163 else 13164 ac_res=-l$ac_lib 13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13166 fi 13167 rm -f conftest.$ac_objext conftest$ac_exeext 13168if { (ac_try="$ac_link" 13169case "(($ac_try" in 13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13171 *) ac_try_echo=$ac_try;; 13172esac 13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13174 (eval "$ac_link") 2>conftest.er1 13175 ac_status=$? 13176 grep -v '^ *+' conftest.er1 >conftest.err 13177 rm -f conftest.er1 13178 cat conftest.err >&5 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } && 13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13182 { (case "(($ac_try" in 13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13184 *) ac_try_echo=$ac_try;; 13185esac 13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13187 (eval "$ac_try") 2>&5 13188 ac_status=$? 13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13190 (exit $ac_status); }; } && 13191 { ac_try='test -s conftest$ac_exeext' 13192 { (case "(($ac_try" in 13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13194 *) ac_try_echo=$ac_try;; 13195esac 13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13197 (eval "$ac_try") 2>&5 13198 ac_status=$? 13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13200 (exit $ac_status); }; }; then 13201 ac_cv_search_pthread_mutex_lock=$ac_res 13202else 13203 echo "$as_me: failed program was:" >&5 13204sed 's/^/| /' conftest.$ac_ext >&5 13205 13206 13207fi 13208 13209rm -f core conftest.err conftest.$ac_objext \ 13210 conftest$ac_exeext 13211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13212 break 13213fi 13214done 13215if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13216 : 13217else 13218 ac_cv_search_pthread_mutex_lock=no 13219fi 13220rm conftest.$ac_ext 13221LIBS=$ac_func_search_save_LIBS 13222fi 13223{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13224echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13225ac_res=$ac_cv_search_pthread_mutex_lock 13226if test "$ac_res" != no; then 13227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13228 13229cat >>confdefs.h <<\_ACEOF 13230#define HAVE_PTHREAD_MUTEX_LOCK 1 13231_ACEOF 13232 13233fi 13234 13235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13236echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13237if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13238 echo $ECHO_N "(cached) $ECHO_C" >&6 13239else 13240 ac_func_search_save_LIBS=$LIBS 13241cat >conftest.$ac_ext <<_ACEOF 13242/* confdefs.h. */ 13243_ACEOF 13244cat confdefs.h >>conftest.$ac_ext 13245cat >>conftest.$ac_ext <<_ACEOF 13246/* end confdefs.h. */ 13247 13248/* Override any GCC internal prototype to avoid an error. 13249 Use char because int might match the return type of a GCC 13250 builtin and then its argument prototype would still apply. */ 13251#ifdef __cplusplus 13252extern "C" 13253#endif 13254char pthread_rwlock_init (); 13255int 13256main () 13257{ 13258return pthread_rwlock_init (); 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263for ac_lib in '' pthread; do 13264 if test -z "$ac_lib"; then 13265 ac_res="none required" 13266 else 13267 ac_res=-l$ac_lib 13268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13269 fi 13270 rm -f conftest.$ac_objext conftest$ac_exeext 13271if { (ac_try="$ac_link" 13272case "(($ac_try" in 13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13274 *) ac_try_echo=$ac_try;; 13275esac 13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13277 (eval "$ac_link") 2>conftest.er1 13278 ac_status=$? 13279 grep -v '^ *+' conftest.er1 >conftest.err 13280 rm -f conftest.er1 13281 cat conftest.err >&5 13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13283 (exit $ac_status); } && 13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13285 { (case "(($ac_try" in 13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13287 *) ac_try_echo=$ac_try;; 13288esac 13289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13290 (eval "$ac_try") 2>&5 13291 ac_status=$? 13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13293 (exit $ac_status); }; } && 13294 { ac_try='test -s conftest$ac_exeext' 13295 { (case "(($ac_try" in 13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13297 *) ac_try_echo=$ac_try;; 13298esac 13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13300 (eval "$ac_try") 2>&5 13301 ac_status=$? 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); }; }; then 13304 ac_cv_search_pthread_rwlock_init=$ac_res 13305else 13306 echo "$as_me: failed program was:" >&5 13307sed 's/^/| /' conftest.$ac_ext >&5 13308 13309 13310fi 13311 13312rm -f core conftest.err conftest.$ac_objext \ 13313 conftest$ac_exeext 13314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13315 break 13316fi 13317done 13318if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13319 : 13320else 13321 ac_cv_search_pthread_rwlock_init=no 13322fi 13323rm conftest.$ac_ext 13324LIBS=$ac_func_search_save_LIBS 13325fi 13326{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13327echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13328ac_res=$ac_cv_search_pthread_rwlock_init 13329if test "$ac_res" != no; then 13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13331 13332cat >>confdefs.h <<\_ACEOF 13333#define HAVE_PTHREAD_RWLOCK_INIT 1 13334_ACEOF 13335 13336fi 13337 13338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13339echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13340if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13341 echo $ECHO_N "(cached) $ECHO_C" >&6 13342else 13343 ac_func_search_save_LIBS=$LIBS 13344cat >conftest.$ac_ext <<_ACEOF 13345/* confdefs.h. */ 13346_ACEOF 13347cat confdefs.h >>conftest.$ac_ext 13348cat >>conftest.$ac_ext <<_ACEOF 13349/* end confdefs.h. */ 13350 13351/* Override any GCC internal prototype to avoid an error. 13352 Use char because int might match the return type of a GCC 13353 builtin and then its argument prototype would still apply. */ 13354#ifdef __cplusplus 13355extern "C" 13356#endif 13357char pthread_getspecific (); 13358int 13359main () 13360{ 13361return pthread_getspecific (); 13362 ; 13363 return 0; 13364} 13365_ACEOF 13366for ac_lib in '' pthread; do 13367 if test -z "$ac_lib"; then 13368 ac_res="none required" 13369 else 13370 ac_res=-l$ac_lib 13371 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13372 fi 13373 rm -f conftest.$ac_objext conftest$ac_exeext 13374if { (ac_try="$ac_link" 13375case "(($ac_try" in 13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13377 *) ac_try_echo=$ac_try;; 13378esac 13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13380 (eval "$ac_link") 2>conftest.er1 13381 ac_status=$? 13382 grep -v '^ *+' conftest.er1 >conftest.err 13383 rm -f conftest.er1 13384 cat conftest.err >&5 13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13386 (exit $ac_status); } && 13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13388 { (case "(($ac_try" in 13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13390 *) ac_try_echo=$ac_try;; 13391esac 13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13393 (eval "$ac_try") 2>&5 13394 ac_status=$? 13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13396 (exit $ac_status); }; } && 13397 { ac_try='test -s conftest$ac_exeext' 13398 { (case "(($ac_try" in 13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13400 *) ac_try_echo=$ac_try;; 13401esac 13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13403 (eval "$ac_try") 2>&5 13404 ac_status=$? 13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13406 (exit $ac_status); }; }; then 13407 ac_cv_search_pthread_getspecific=$ac_res 13408else 13409 echo "$as_me: failed program was:" >&5 13410sed 's/^/| /' conftest.$ac_ext >&5 13411 13412 13413fi 13414 13415rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext 13417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13418 break 13419fi 13420done 13421if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13422 : 13423else 13424 ac_cv_search_pthread_getspecific=no 13425fi 13426rm conftest.$ac_ext 13427LIBS=$ac_func_search_save_LIBS 13428fi 13429{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13430echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13431ac_res=$ac_cv_search_pthread_getspecific 13432if test "$ac_res" != no; then 13433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13434 13435cat >>confdefs.h <<\_ACEOF 13436#define HAVE_PTHREAD_GETSPECIFIC 1 13437_ACEOF 13438 13439fi 13440 13441fi 13442 13443 13444# Check whether --with-udis86 was given. 13445if test "${with_udis86+set}" = set; then 13446 withval=$with_udis86; 13447 USE_UDIS86=1 13448 13449 case "$withval" in 13450 /usr/lib|yes) ;; 13451 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13452 esac 13453 13454{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13455echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13456if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13457 echo $ECHO_N "(cached) $ECHO_C" >&6 13458else 13459 ac_check_lib_save_LIBS=$LIBS 13460LIBS="-ludis86 $LIBS" 13461cat >conftest.$ac_ext <<_ACEOF 13462/* confdefs.h. */ 13463_ACEOF 13464cat confdefs.h >>conftest.$ac_ext 13465cat >>conftest.$ac_ext <<_ACEOF 13466/* end confdefs.h. */ 13467 13468/* Override any GCC internal prototype to avoid an error. 13469 Use char because int might match the return type of a GCC 13470 builtin and then its argument prototype would still apply. */ 13471#ifdef __cplusplus 13472extern "C" 13473#endif 13474char ud_init (); 13475int 13476main () 13477{ 13478return ud_init (); 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483rm -f conftest.$ac_objext conftest$ac_exeext 13484if { (ac_try="$ac_link" 13485case "(($ac_try" in 13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13487 *) ac_try_echo=$ac_try;; 13488esac 13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13490 (eval "$ac_link") 2>conftest.er1 13491 ac_status=$? 13492 grep -v '^ *+' conftest.er1 >conftest.err 13493 rm -f conftest.er1 13494 cat conftest.err >&5 13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13496 (exit $ac_status); } && 13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13498 { (case "(($ac_try" in 13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13500 *) ac_try_echo=$ac_try;; 13501esac 13502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13503 (eval "$ac_try") 2>&5 13504 ac_status=$? 13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13506 (exit $ac_status); }; } && 13507 { ac_try='test -s conftest$ac_exeext' 13508 { (case "(($ac_try" in 13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13510 *) ac_try_echo=$ac_try;; 13511esac 13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13513 (eval "$ac_try") 2>&5 13514 ac_status=$? 13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13516 (exit $ac_status); }; }; then 13517 ac_cv_lib_udis86_ud_init=yes 13518else 13519 echo "$as_me: failed program was:" >&5 13520sed 's/^/| /' conftest.$ac_ext >&5 13521 13522 ac_cv_lib_udis86_ud_init=no 13523fi 13524 13525rm -f core conftest.err conftest.$ac_objext \ 13526 conftest$ac_exeext conftest.$ac_ext 13527LIBS=$ac_check_lib_save_LIBS 13528fi 13529{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13530echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13531if test $ac_cv_lib_udis86_ud_init = yes; then 13532 cat >>confdefs.h <<_ACEOF 13533#define HAVE_LIBUDIS86 1 13534_ACEOF 13535 13536 LIBS="-ludis86 $LIBS" 13537 13538else 13539 13540 echo "Error! You need to have libudis86 around." 13541 exit -1 13542 13543fi 13544 13545 13546else 13547 USE_UDIS86=0 13548 13549fi 13550 13551 13552cat >>confdefs.h <<_ACEOF 13553#define USE_UDIS86 $USE_UDIS86 13554_ACEOF 13555 13556 13557 13558# Check whether --with-oprofile was given. 13559if test "${with_oprofile+set}" = set; then 13560 withval=$with_oprofile; 13561 USE_OPROFILE=1 13562 13563 case "$withval" in 13564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13565 no) llvm_cv_oppath= 13566 USE_OPROFILE=0 13567 ;; 13568 *) llvm_cv_oppath="${withval}/lib/oprofile" 13569 CPPFLAGS="-I${withval}/include";; 13570 esac 13571 case $llvm_cv_os_type in 13572 Linux) 13573 if test -n "$llvm_cv_oppath" ; then 13574 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13576echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13577if test "${ac_cv_search_bfd_init+set}" = set; then 13578 echo $ECHO_N "(cached) $ECHO_C" >&6 13579else 13580 ac_func_search_save_LIBS=$LIBS 13581cat >conftest.$ac_ext <<_ACEOF 13582/* confdefs.h. */ 13583_ACEOF 13584cat confdefs.h >>conftest.$ac_ext 13585cat >>conftest.$ac_ext <<_ACEOF 13586/* end confdefs.h. */ 13587 13588/* Override any GCC internal prototype to avoid an error. 13589 Use char because int might match the return type of a GCC 13590 builtin and then its argument prototype would still apply. */ 13591#ifdef __cplusplus 13592extern "C" 13593#endif 13594char bfd_init (); 13595int 13596main () 13597{ 13598return bfd_init (); 13599 ; 13600 return 0; 13601} 13602_ACEOF 13603for ac_lib in '' bfd; do 13604 if test -z "$ac_lib"; then 13605 ac_res="none required" 13606 else 13607 ac_res=-l$ac_lib 13608 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13609 fi 13610 rm -f conftest.$ac_objext conftest$ac_exeext 13611if { (ac_try="$ac_link" 13612case "(($ac_try" in 13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13614 *) ac_try_echo=$ac_try;; 13615esac 13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13617 (eval "$ac_link") 2>conftest.er1 13618 ac_status=$? 13619 grep -v '^ *+' conftest.er1 >conftest.err 13620 rm -f conftest.er1 13621 cat conftest.err >&5 13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13623 (exit $ac_status); } && 13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13625 { (case "(($ac_try" in 13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13627 *) ac_try_echo=$ac_try;; 13628esac 13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13630 (eval "$ac_try") 2>&5 13631 ac_status=$? 13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13633 (exit $ac_status); }; } && 13634 { ac_try='test -s conftest$ac_exeext' 13635 { (case "(($ac_try" in 13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13637 *) ac_try_echo=$ac_try;; 13638esac 13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13640 (eval "$ac_try") 2>&5 13641 ac_status=$? 13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13643 (exit $ac_status); }; }; then 13644 ac_cv_search_bfd_init=$ac_res 13645else 13646 echo "$as_me: failed program was:" >&5 13647sed 's/^/| /' conftest.$ac_ext >&5 13648 13649 13650fi 13651 13652rm -f core conftest.err conftest.$ac_objext \ 13653 conftest$ac_exeext 13654 if test "${ac_cv_search_bfd_init+set}" = set; then 13655 break 13656fi 13657done 13658if test "${ac_cv_search_bfd_init+set}" = set; then 13659 : 13660else 13661 ac_cv_search_bfd_init=no 13662fi 13663rm conftest.$ac_ext 13664LIBS=$ac_func_search_save_LIBS 13665fi 13666{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13667echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13668ac_res=$ac_cv_search_bfd_init 13669if test "$ac_res" != no; then 13670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13671 13672fi 13673 13674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13675echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13676if test "${ac_cv_search_op_open_agent+set}" = set; then 13677 echo $ECHO_N "(cached) $ECHO_C" >&6 13678else 13679 ac_func_search_save_LIBS=$LIBS 13680cat >conftest.$ac_ext <<_ACEOF 13681/* confdefs.h. */ 13682_ACEOF 13683cat confdefs.h >>conftest.$ac_ext 13684cat >>conftest.$ac_ext <<_ACEOF 13685/* end confdefs.h. */ 13686 13687/* Override any GCC internal prototype to avoid an error. 13688 Use char because int might match the return type of a GCC 13689 builtin and then its argument prototype would still apply. */ 13690#ifdef __cplusplus 13691extern "C" 13692#endif 13693char op_open_agent (); 13694int 13695main () 13696{ 13697return op_open_agent (); 13698 ; 13699 return 0; 13700} 13701_ACEOF 13702for ac_lib in '' opagent; do 13703 if test -z "$ac_lib"; then 13704 ac_res="none required" 13705 else 13706 ac_res=-l$ac_lib 13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13708 fi 13709 rm -f conftest.$ac_objext conftest$ac_exeext 13710if { (ac_try="$ac_link" 13711case "(($ac_try" in 13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13713 *) ac_try_echo=$ac_try;; 13714esac 13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13716 (eval "$ac_link") 2>conftest.er1 13717 ac_status=$? 13718 grep -v '^ *+' conftest.er1 >conftest.err 13719 rm -f conftest.er1 13720 cat conftest.err >&5 13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13722 (exit $ac_status); } && 13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13724 { (case "(($ac_try" in 13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13726 *) ac_try_echo=$ac_try;; 13727esac 13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13729 (eval "$ac_try") 2>&5 13730 ac_status=$? 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); }; } && 13733 { ac_try='test -s conftest$ac_exeext' 13734 { (case "(($ac_try" in 13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13736 *) ac_try_echo=$ac_try;; 13737esac 13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13739 (eval "$ac_try") 2>&5 13740 ac_status=$? 13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13742 (exit $ac_status); }; }; then 13743 ac_cv_search_op_open_agent=$ac_res 13744else 13745 echo "$as_me: failed program was:" >&5 13746sed 's/^/| /' conftest.$ac_ext >&5 13747 13748 13749fi 13750 13751rm -f core conftest.err conftest.$ac_objext \ 13752 conftest$ac_exeext 13753 if test "${ac_cv_search_op_open_agent+set}" = set; then 13754 break 13755fi 13756done 13757if test "${ac_cv_search_op_open_agent+set}" = set; then 13758 : 13759else 13760 ac_cv_search_op_open_agent=no 13761fi 13762rm conftest.$ac_ext 13763LIBS=$ac_func_search_save_LIBS 13764fi 13765{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13766echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13767ac_res=$ac_cv_search_op_open_agent 13768if test "$ac_res" != no; then 13769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13770 13771else 13772 13773 echo "Error! You need to have libopagent around." 13774 exit -1 13775 13776fi 13777 13778 if test "${ac_cv_header_opagent_h+set}" = set; then 13779 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13780echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13781if test "${ac_cv_header_opagent_h+set}" = set; then 13782 echo $ECHO_N "(cached) $ECHO_C" >&6 13783fi 13784{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13785echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13786else 13787 # Is the header compilable? 13788{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13789echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13790cat >conftest.$ac_ext <<_ACEOF 13791/* confdefs.h. */ 13792_ACEOF 13793cat confdefs.h >>conftest.$ac_ext 13794cat >>conftest.$ac_ext <<_ACEOF 13795/* end confdefs.h. */ 13796$ac_includes_default 13797#include <opagent.h> 13798_ACEOF 13799rm -f conftest.$ac_objext 13800if { (ac_try="$ac_compile" 13801case "(($ac_try" in 13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13803 *) ac_try_echo=$ac_try;; 13804esac 13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13806 (eval "$ac_compile") 2>conftest.er1 13807 ac_status=$? 13808 grep -v '^ *+' conftest.er1 >conftest.err 13809 rm -f conftest.er1 13810 cat conftest.err >&5 13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13812 (exit $ac_status); } && 13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13814 { (case "(($ac_try" in 13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13816 *) ac_try_echo=$ac_try;; 13817esac 13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13819 (eval "$ac_try") 2>&5 13820 ac_status=$? 13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13822 (exit $ac_status); }; } && 13823 { ac_try='test -s conftest.$ac_objext' 13824 { (case "(($ac_try" in 13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13826 *) ac_try_echo=$ac_try;; 13827esac 13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13829 (eval "$ac_try") 2>&5 13830 ac_status=$? 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); }; }; then 13833 ac_header_compiler=yes 13834else 13835 echo "$as_me: failed program was:" >&5 13836sed 's/^/| /' conftest.$ac_ext >&5 13837 13838 ac_header_compiler=no 13839fi 13840 13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13843echo "${ECHO_T}$ac_header_compiler" >&6; } 13844 13845# Is the header present? 13846{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13847echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13848cat >conftest.$ac_ext <<_ACEOF 13849/* confdefs.h. */ 13850_ACEOF 13851cat confdefs.h >>conftest.$ac_ext 13852cat >>conftest.$ac_ext <<_ACEOF 13853/* end confdefs.h. */ 13854#include <opagent.h> 13855_ACEOF 13856if { (ac_try="$ac_cpp conftest.$ac_ext" 13857case "(($ac_try" in 13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13859 *) ac_try_echo=$ac_try;; 13860esac 13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13863 ac_status=$? 13864 grep -v '^ *+' conftest.er1 >conftest.err 13865 rm -f conftest.er1 13866 cat conftest.err >&5 13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13868 (exit $ac_status); } >/dev/null; then 13869 if test -s conftest.err; then 13870 ac_cpp_err=$ac_c_preproc_warn_flag 13871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13872 else 13873 ac_cpp_err= 13874 fi 13875else 13876 ac_cpp_err=yes 13877fi 13878if test -z "$ac_cpp_err"; then 13879 ac_header_preproc=yes 13880else 13881 echo "$as_me: failed program was:" >&5 13882sed 's/^/| /' conftest.$ac_ext >&5 13883 13884 ac_header_preproc=no 13885fi 13886 13887rm -f conftest.err conftest.$ac_ext 13888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13889echo "${ECHO_T}$ac_header_preproc" >&6; } 13890 13891# So? What about this header? 13892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13893 yes:no: ) 13894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13895echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13897echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13898 ac_header_preproc=yes 13899 ;; 13900 no:yes:* ) 13901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13902echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13904echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13906echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13908echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13910echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13912echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13913 ( cat <<\_ASBOX 13914## ------------------------------------ ## 13915## Report this to http://llvm.org/bugs/ ## 13916## ------------------------------------ ## 13917_ASBOX 13918 ) | sed "s/^/$as_me: WARNING: /" >&2 13919 ;; 13920esac 13921{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13922echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13923if test "${ac_cv_header_opagent_h+set}" = set; then 13924 echo $ECHO_N "(cached) $ECHO_C" >&6 13925else 13926 ac_cv_header_opagent_h=$ac_header_preproc 13927fi 13928{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13929echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13930 13931fi 13932if test $ac_cv_header_opagent_h = yes; then 13933 : 13934else 13935 13936 echo "Error! You need to have opagent.h around." 13937 exit -1 13938 13939fi 13940 13941 13942 fi ;; 13943 *) 13944 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13945echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13946 { (exit 1); exit 1; }; } ;; 13947 esac 13948 13949else 13950 13951 USE_OPROFILE=0 13952 13953 13954fi 13955 13956 13957cat >>confdefs.h <<_ACEOF 13958#define LLVM_USE_OPROFILE $USE_OPROFILE 13959_ACEOF 13960 13961 13962 13963# Check whether --with-intel-jitevents was given. 13964if test "${with_intel_jitevents+set}" = set; then 13965 withval=$with_intel_jitevents; 13966 case "$withval" in 13967 yes) USE_INTEL_JITEVENTS=1 13968;; 13969 no) USE_INTEL_JITEVENTS=0 13970;; 13971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 13972echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 13973 { (exit 1); exit 1; }; };; 13974 esac 13975 13976 case $llvm_cv_os_type in 13977 Linux|Win32|Cygwin|MingW) ;; 13978 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 13979echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 13980 { (exit 1); exit 1; }; };; 13981 esac 13982 13983 case "$llvm_cv_target_arch" in 13984 x86|x86_64) ;; 13985 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 13986echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 13987 { (exit 1); exit 1; }; };; 13988 esac 13989 13990else 13991 13992 USE_INTEL_JITEVENTS=0 13993 13994 13995fi 13996 13997 13998cat >>confdefs.h <<_ACEOF 13999#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 14000_ACEOF 14001 14002 14003for ac_prog in xml2-config 14004do 14005 # Extract the first word of "$ac_prog", so it can be a program name with args. 14006set dummy $ac_prog; ac_word=$2 14007{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14009if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 14010 echo $ECHO_N "(cached) $ECHO_C" >&6 14011else 14012 if test -n "$XML2CONFIG"; then 14013 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 14014else 14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14016for as_dir in $PATH 14017do 14018 IFS=$as_save_IFS 14019 test -z "$as_dir" && as_dir=. 14020 for ac_exec_ext in '' $ac_executable_extensions; do 14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 14022 ac_cv_prog_XML2CONFIG="$ac_prog" 14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14024 break 2 14025 fi 14026done 14027done 14028IFS=$as_save_IFS 14029 14030fi 14031fi 14032XML2CONFIG=$ac_cv_prog_XML2CONFIG 14033if test -n "$XML2CONFIG"; then 14034 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 14035echo "${ECHO_T}$XML2CONFIG" >&6; } 14036else 14037 { echo "$as_me:$LINENO: result: no" >&5 14038echo "${ECHO_T}no" >&6; } 14039fi 14040 14041 14042 test -n "$XML2CONFIG" && break 14043done 14044 14045 14046{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 14047echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 14048if test "x$XML2CONFIG" = "x"; then 14049 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 14050echo "${ECHO_T}xml2-config not found" >&6; } 14051else 14052 LIBXML2_INC=`$XML2CONFIG --cflags` 14053 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 14054echo "${ECHO_T}$LIBXML2_INC" >&6; } 14055 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 14056echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 14057if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 14058 echo $ECHO_N "(cached) $ECHO_C" >&6 14059else 14060 ac_check_lib_save_LIBS=$LIBS 14061LIBS="-lxml2 $LIBS" 14062cat >conftest.$ac_ext <<_ACEOF 14063/* confdefs.h. */ 14064_ACEOF 14065cat confdefs.h >>conftest.$ac_ext 14066cat >>conftest.$ac_ext <<_ACEOF 14067/* end confdefs.h. */ 14068 14069/* Override any GCC internal prototype to avoid an error. 14070 Use char because int might match the return type of a GCC 14071 builtin and then its argument prototype would still apply. */ 14072#ifdef __cplusplus 14073extern "C" 14074#endif 14075char xmlReadFile (); 14076int 14077main () 14078{ 14079return xmlReadFile (); 14080 ; 14081 return 0; 14082} 14083_ACEOF 14084rm -f conftest.$ac_objext conftest$ac_exeext 14085if { (ac_try="$ac_link" 14086case "(($ac_try" in 14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14088 *) ac_try_echo=$ac_try;; 14089esac 14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14091 (eval "$ac_link") 2>conftest.er1 14092 ac_status=$? 14093 grep -v '^ *+' conftest.er1 >conftest.err 14094 rm -f conftest.er1 14095 cat conftest.err >&5 14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14097 (exit $ac_status); } && 14098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14099 { (case "(($ac_try" in 14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14101 *) ac_try_echo=$ac_try;; 14102esac 14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14104 (eval "$ac_try") 2>&5 14105 ac_status=$? 14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14107 (exit $ac_status); }; } && 14108 { ac_try='test -s conftest$ac_exeext' 14109 { (case "(($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_try") 2>&5 14115 ac_status=$? 14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14117 (exit $ac_status); }; }; then 14118 ac_cv_lib_xml2_xmlReadFile=yes 14119else 14120 echo "$as_me: failed program was:" >&5 14121sed 's/^/| /' conftest.$ac_ext >&5 14122 14123 ac_cv_lib_xml2_xmlReadFile=no 14124fi 14125 14126rm -f core conftest.err conftest.$ac_objext \ 14127 conftest$ac_exeext conftest.$ac_ext 14128LIBS=$ac_check_lib_save_LIBS 14129fi 14130{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 14131echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 14132if test $ac_cv_lib_xml2_xmlReadFile = yes; then 14133 14134cat >>confdefs.h <<\_ACEOF 14135#define CLANG_HAVE_LIBXML 1 14136_ACEOF 14137 14138 LIBXML2_LIBS="-lxml2" 14139fi 14140 14141fi 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151ac_header_dirent=no 14152for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14154{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14155echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14157 echo $ECHO_N "(cached) $ECHO_C" >&6 14158else 14159 cat >conftest.$ac_ext <<_ACEOF 14160/* confdefs.h. */ 14161_ACEOF 14162cat confdefs.h >>conftest.$ac_ext 14163cat >>conftest.$ac_ext <<_ACEOF 14164/* end confdefs.h. */ 14165#include <sys/types.h> 14166#include <$ac_hdr> 14167 14168int 14169main () 14170{ 14171if ((DIR *) 0) 14172return 0; 14173 ; 14174 return 0; 14175} 14176_ACEOF 14177rm -f conftest.$ac_objext 14178if { (ac_try="$ac_compile" 14179case "(($ac_try" in 14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14181 *) ac_try_echo=$ac_try;; 14182esac 14183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14184 (eval "$ac_compile") 2>conftest.er1 14185 ac_status=$? 14186 grep -v '^ *+' conftest.er1 >conftest.err 14187 rm -f conftest.er1 14188 cat conftest.err >&5 14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14190 (exit $ac_status); } && 14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14192 { (case "(($ac_try" in 14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14194 *) ac_try_echo=$ac_try;; 14195esac 14196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14197 (eval "$ac_try") 2>&5 14198 ac_status=$? 14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14200 (exit $ac_status); }; } && 14201 { ac_try='test -s conftest.$ac_objext' 14202 { (case "(($ac_try" in 14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14204 *) ac_try_echo=$ac_try;; 14205esac 14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14207 (eval "$ac_try") 2>&5 14208 ac_status=$? 14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14210 (exit $ac_status); }; }; then 14211 eval "$as_ac_Header=yes" 14212else 14213 echo "$as_me: failed program was:" >&5 14214sed 's/^/| /' conftest.$ac_ext >&5 14215 14216 eval "$as_ac_Header=no" 14217fi 14218 14219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14220fi 14221ac_res=`eval echo '${'$as_ac_Header'}'` 14222 { echo "$as_me:$LINENO: result: $ac_res" >&5 14223echo "${ECHO_T}$ac_res" >&6; } 14224if test `eval echo '${'$as_ac_Header'}'` = yes; then 14225 cat >>confdefs.h <<_ACEOF 14226#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14227_ACEOF 14228 14229ac_header_dirent=$ac_hdr; break 14230fi 14231 14232done 14233# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14234if test $ac_header_dirent = dirent.h; then 14235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14236echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14237if test "${ac_cv_search_opendir+set}" = set; then 14238 echo $ECHO_N "(cached) $ECHO_C" >&6 14239else 14240 ac_func_search_save_LIBS=$LIBS 14241cat >conftest.$ac_ext <<_ACEOF 14242/* confdefs.h. */ 14243_ACEOF 14244cat confdefs.h >>conftest.$ac_ext 14245cat >>conftest.$ac_ext <<_ACEOF 14246/* end confdefs.h. */ 14247 14248/* Override any GCC internal prototype to avoid an error. 14249 Use char because int might match the return type of a GCC 14250 builtin and then its argument prototype would still apply. */ 14251#ifdef __cplusplus 14252extern "C" 14253#endif 14254char opendir (); 14255int 14256main () 14257{ 14258return opendir (); 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263for ac_lib in '' dir; do 14264 if test -z "$ac_lib"; then 14265 ac_res="none required" 14266 else 14267 ac_res=-l$ac_lib 14268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14269 fi 14270 rm -f conftest.$ac_objext conftest$ac_exeext 14271if { (ac_try="$ac_link" 14272case "(($ac_try" in 14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14274 *) ac_try_echo=$ac_try;; 14275esac 14276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14277 (eval "$ac_link") 2>conftest.er1 14278 ac_status=$? 14279 grep -v '^ *+' conftest.er1 >conftest.err 14280 rm -f conftest.er1 14281 cat conftest.err >&5 14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14283 (exit $ac_status); } && 14284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14285 { (case "(($ac_try" in 14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14287 *) ac_try_echo=$ac_try;; 14288esac 14289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14290 (eval "$ac_try") 2>&5 14291 ac_status=$? 14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14293 (exit $ac_status); }; } && 14294 { ac_try='test -s conftest$ac_exeext' 14295 { (case "(($ac_try" in 14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14297 *) ac_try_echo=$ac_try;; 14298esac 14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14300 (eval "$ac_try") 2>&5 14301 ac_status=$? 14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14303 (exit $ac_status); }; }; then 14304 ac_cv_search_opendir=$ac_res 14305else 14306 echo "$as_me: failed program was:" >&5 14307sed 's/^/| /' conftest.$ac_ext >&5 14308 14309 14310fi 14311 14312rm -f core conftest.err conftest.$ac_objext \ 14313 conftest$ac_exeext 14314 if test "${ac_cv_search_opendir+set}" = set; then 14315 break 14316fi 14317done 14318if test "${ac_cv_search_opendir+set}" = set; then 14319 : 14320else 14321 ac_cv_search_opendir=no 14322fi 14323rm conftest.$ac_ext 14324LIBS=$ac_func_search_save_LIBS 14325fi 14326{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14327echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14328ac_res=$ac_cv_search_opendir 14329if test "$ac_res" != no; then 14330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14331 14332fi 14333 14334else 14335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14336echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14337if test "${ac_cv_search_opendir+set}" = set; then 14338 echo $ECHO_N "(cached) $ECHO_C" >&6 14339else 14340 ac_func_search_save_LIBS=$LIBS 14341cat >conftest.$ac_ext <<_ACEOF 14342/* confdefs.h. */ 14343_ACEOF 14344cat confdefs.h >>conftest.$ac_ext 14345cat >>conftest.$ac_ext <<_ACEOF 14346/* end confdefs.h. */ 14347 14348/* Override any GCC internal prototype to avoid an error. 14349 Use char because int might match the return type of a GCC 14350 builtin and then its argument prototype would still apply. */ 14351#ifdef __cplusplus 14352extern "C" 14353#endif 14354char opendir (); 14355int 14356main () 14357{ 14358return opendir (); 14359 ; 14360 return 0; 14361} 14362_ACEOF 14363for ac_lib in '' x; do 14364 if test -z "$ac_lib"; then 14365 ac_res="none required" 14366 else 14367 ac_res=-l$ac_lib 14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14369 fi 14370 rm -f conftest.$ac_objext conftest$ac_exeext 14371if { (ac_try="$ac_link" 14372case "(($ac_try" in 14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14374 *) ac_try_echo=$ac_try;; 14375esac 14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14377 (eval "$ac_link") 2>conftest.er1 14378 ac_status=$? 14379 grep -v '^ *+' conftest.er1 >conftest.err 14380 rm -f conftest.er1 14381 cat conftest.err >&5 14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14383 (exit $ac_status); } && 14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14385 { (case "(($ac_try" in 14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14387 *) ac_try_echo=$ac_try;; 14388esac 14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14390 (eval "$ac_try") 2>&5 14391 ac_status=$? 14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14393 (exit $ac_status); }; } && 14394 { ac_try='test -s conftest$ac_exeext' 14395 { (case "(($ac_try" in 14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14397 *) ac_try_echo=$ac_try;; 14398esac 14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14400 (eval "$ac_try") 2>&5 14401 ac_status=$? 14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14403 (exit $ac_status); }; }; then 14404 ac_cv_search_opendir=$ac_res 14405else 14406 echo "$as_me: failed program was:" >&5 14407sed 's/^/| /' conftest.$ac_ext >&5 14408 14409 14410fi 14411 14412rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext 14414 if test "${ac_cv_search_opendir+set}" = set; then 14415 break 14416fi 14417done 14418if test "${ac_cv_search_opendir+set}" = set; then 14419 : 14420else 14421 ac_cv_search_opendir=no 14422fi 14423rm conftest.$ac_ext 14424LIBS=$ac_func_search_save_LIBS 14425fi 14426{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14427echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14428ac_res=$ac_cv_search_opendir 14429if test "$ac_res" != no; then 14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14431 14432fi 14433 14434fi 14435 14436{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14437echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14438if test "${ac_cv_header_mmap_anon+set}" = set; then 14439 echo $ECHO_N "(cached) $ECHO_C" >&6 14440else 14441 ac_ext=c 14442ac_cpp='$CPP $CPPFLAGS' 14443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14445ac_compiler_gnu=$ac_cv_c_compiler_gnu 14446 14447 cat >conftest.$ac_ext <<_ACEOF 14448/* confdefs.h. */ 14449_ACEOF 14450cat confdefs.h >>conftest.$ac_ext 14451cat >>conftest.$ac_ext <<_ACEOF 14452/* end confdefs.h. */ 14453#include <sys/mman.h> 14454#include <unistd.h> 14455#include <fcntl.h> 14456int 14457main () 14458{ 14459mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14460 ; 14461 return 0; 14462} 14463_ACEOF 14464rm -f conftest.$ac_objext 14465if { (ac_try="$ac_compile" 14466case "(($ac_try" in 14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14468 *) ac_try_echo=$ac_try;; 14469esac 14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14471 (eval "$ac_compile") 2>conftest.er1 14472 ac_status=$? 14473 grep -v '^ *+' conftest.er1 >conftest.err 14474 rm -f conftest.er1 14475 cat conftest.err >&5 14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14477 (exit $ac_status); } && 14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14479 { (case "(($ac_try" in 14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14481 *) ac_try_echo=$ac_try;; 14482esac 14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14484 (eval "$ac_try") 2>&5 14485 ac_status=$? 14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 (exit $ac_status); }; } && 14488 { ac_try='test -s conftest.$ac_objext' 14489 { (case "(($ac_try" in 14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14491 *) ac_try_echo=$ac_try;; 14492esac 14493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14494 (eval "$ac_try") 2>&5 14495 ac_status=$? 14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14497 (exit $ac_status); }; }; then 14498 ac_cv_header_mmap_anon=yes 14499else 14500 echo "$as_me: failed program was:" >&5 14501sed 's/^/| /' conftest.$ac_ext >&5 14502 14503 ac_cv_header_mmap_anon=no 14504fi 14505 14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14507 ac_ext=c 14508ac_cpp='$CPP $CPPFLAGS' 14509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14511ac_compiler_gnu=$ac_cv_c_compiler_gnu 14512 14513 14514fi 14515{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14516echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14517if test "$ac_cv_header_mmap_anon" = yes; then 14518 14519cat >>confdefs.h <<\_ACEOF 14520#define HAVE_MMAP_ANONYMOUS 1 14521_ACEOF 14522 14523fi 14524 14525{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14526echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14527if test "${ac_cv_header_stat_broken+set}" = set; then 14528 echo $ECHO_N "(cached) $ECHO_C" >&6 14529else 14530 cat >conftest.$ac_ext <<_ACEOF 14531/* confdefs.h. */ 14532_ACEOF 14533cat confdefs.h >>conftest.$ac_ext 14534cat >>conftest.$ac_ext <<_ACEOF 14535/* end confdefs.h. */ 14536#include <sys/types.h> 14537#include <sys/stat.h> 14538 14539#if defined S_ISBLK && defined S_IFDIR 14540# if S_ISBLK (S_IFDIR) 14541You lose. 14542# endif 14543#endif 14544 14545#if defined S_ISBLK && defined S_IFCHR 14546# if S_ISBLK (S_IFCHR) 14547You lose. 14548# endif 14549#endif 14550 14551#if defined S_ISLNK && defined S_IFREG 14552# if S_ISLNK (S_IFREG) 14553You lose. 14554# endif 14555#endif 14556 14557#if defined S_ISSOCK && defined S_IFREG 14558# if S_ISSOCK (S_IFREG) 14559You lose. 14560# endif 14561#endif 14562 14563_ACEOF 14564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14565 $EGREP "You lose" >/dev/null 2>&1; then 14566 ac_cv_header_stat_broken=yes 14567else 14568 ac_cv_header_stat_broken=no 14569fi 14570rm -f conftest* 14571 14572fi 14573{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14574echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14575if test $ac_cv_header_stat_broken = yes; then 14576 14577cat >>confdefs.h <<\_ACEOF 14578#define STAT_MACROS_BROKEN 1 14579_ACEOF 14580 14581fi 14582 14583{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14584echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14585if test "${ac_cv_header_sys_wait_h+set}" = set; then 14586 echo $ECHO_N "(cached) $ECHO_C" >&6 14587else 14588 cat >conftest.$ac_ext <<_ACEOF 14589/* confdefs.h. */ 14590_ACEOF 14591cat confdefs.h >>conftest.$ac_ext 14592cat >>conftest.$ac_ext <<_ACEOF 14593/* end confdefs.h. */ 14594#include <sys/types.h> 14595#include <sys/wait.h> 14596#ifndef WEXITSTATUS 14597# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14598#endif 14599#ifndef WIFEXITED 14600# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14601#endif 14602 14603int 14604main () 14605{ 14606 int s; 14607 wait (&s); 14608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14609 ; 14610 return 0; 14611} 14612_ACEOF 14613rm -f conftest.$ac_objext 14614if { (ac_try="$ac_compile" 14615case "(($ac_try" in 14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14617 *) ac_try_echo=$ac_try;; 14618esac 14619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14620 (eval "$ac_compile") 2>conftest.er1 14621 ac_status=$? 14622 grep -v '^ *+' conftest.er1 >conftest.err 14623 rm -f conftest.er1 14624 cat conftest.err >&5 14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14626 (exit $ac_status); } && 14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14628 { (case "(($ac_try" in 14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14630 *) ac_try_echo=$ac_try;; 14631esac 14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14633 (eval "$ac_try") 2>&5 14634 ac_status=$? 14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14636 (exit $ac_status); }; } && 14637 { ac_try='test -s conftest.$ac_objext' 14638 { (case "(($ac_try" in 14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14640 *) ac_try_echo=$ac_try;; 14641esac 14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14643 (eval "$ac_try") 2>&5 14644 ac_status=$? 14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14646 (exit $ac_status); }; }; then 14647 ac_cv_header_sys_wait_h=yes 14648else 14649 echo "$as_me: failed program was:" >&5 14650sed 's/^/| /' conftest.$ac_ext >&5 14651 14652 ac_cv_header_sys_wait_h=no 14653fi 14654 14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656fi 14657{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14658echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14659if test $ac_cv_header_sys_wait_h = yes; then 14660 14661cat >>confdefs.h <<\_ACEOF 14662#define HAVE_SYS_WAIT_H 1 14663_ACEOF 14664 14665fi 14666 14667{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14668echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14669if test "${ac_cv_header_time+set}" = set; then 14670 echo $ECHO_N "(cached) $ECHO_C" >&6 14671else 14672 cat >conftest.$ac_ext <<_ACEOF 14673/* confdefs.h. */ 14674_ACEOF 14675cat confdefs.h >>conftest.$ac_ext 14676cat >>conftest.$ac_ext <<_ACEOF 14677/* end confdefs.h. */ 14678#include <sys/types.h> 14679#include <sys/time.h> 14680#include <time.h> 14681 14682int 14683main () 14684{ 14685if ((struct tm *) 0) 14686return 0; 14687 ; 14688 return 0; 14689} 14690_ACEOF 14691rm -f conftest.$ac_objext 14692if { (ac_try="$ac_compile" 14693case "(($ac_try" in 14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14695 *) ac_try_echo=$ac_try;; 14696esac 14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14698 (eval "$ac_compile") 2>conftest.er1 14699 ac_status=$? 14700 grep -v '^ *+' conftest.er1 >conftest.err 14701 rm -f conftest.er1 14702 cat conftest.err >&5 14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14704 (exit $ac_status); } && 14705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14706 { (case "(($ac_try" in 14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14708 *) ac_try_echo=$ac_try;; 14709esac 14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14711 (eval "$ac_try") 2>&5 14712 ac_status=$? 14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14714 (exit $ac_status); }; } && 14715 { ac_try='test -s conftest.$ac_objext' 14716 { (case "(($ac_try" in 14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14718 *) ac_try_echo=$ac_try;; 14719esac 14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14721 (eval "$ac_try") 2>&5 14722 ac_status=$? 14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14724 (exit $ac_status); }; }; then 14725 ac_cv_header_time=yes 14726else 14727 echo "$as_me: failed program was:" >&5 14728sed 's/^/| /' conftest.$ac_ext >&5 14729 14730 ac_cv_header_time=no 14731fi 14732 14733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14734fi 14735{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14736echo "${ECHO_T}$ac_cv_header_time" >&6; } 14737if test $ac_cv_header_time = yes; then 14738 14739cat >>confdefs.h <<\_ACEOF 14740#define TIME_WITH_SYS_TIME 1 14741_ACEOF 14742 14743fi 14744 14745 14746 14747 14748 14749 14750 14751 14752for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14753do 14754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14756 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14759 echo $ECHO_N "(cached) $ECHO_C" >&6 14760fi 14761ac_res=`eval echo '${'$as_ac_Header'}'` 14762 { echo "$as_me:$LINENO: result: $ac_res" >&5 14763echo "${ECHO_T}$ac_res" >&6; } 14764else 14765 # Is the header compilable? 14766{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14768cat >conftest.$ac_ext <<_ACEOF 14769/* confdefs.h. */ 14770_ACEOF 14771cat confdefs.h >>conftest.$ac_ext 14772cat >>conftest.$ac_ext <<_ACEOF 14773/* end confdefs.h. */ 14774$ac_includes_default 14775#include <$ac_header> 14776_ACEOF 14777rm -f conftest.$ac_objext 14778if { (ac_try="$ac_compile" 14779case "(($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_compile") 2>conftest.er1 14785 ac_status=$? 14786 grep -v '^ *+' conftest.er1 >conftest.err 14787 rm -f conftest.er1 14788 cat conftest.err >&5 14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14790 (exit $ac_status); } && 14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14792 { (case "(($ac_try" in 14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14794 *) ac_try_echo=$ac_try;; 14795esac 14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14797 (eval "$ac_try") 2>&5 14798 ac_status=$? 14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14800 (exit $ac_status); }; } && 14801 { ac_try='test -s conftest.$ac_objext' 14802 { (case "(($ac_try" in 14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14804 *) ac_try_echo=$ac_try;; 14805esac 14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14807 (eval "$ac_try") 2>&5 14808 ac_status=$? 14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14810 (exit $ac_status); }; }; then 14811 ac_header_compiler=yes 14812else 14813 echo "$as_me: failed program was:" >&5 14814sed 's/^/| /' conftest.$ac_ext >&5 14815 14816 ac_header_compiler=no 14817fi 14818 14819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14821echo "${ECHO_T}$ac_header_compiler" >&6; } 14822 14823# Is the header present? 14824{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14826cat >conftest.$ac_ext <<_ACEOF 14827/* confdefs.h. */ 14828_ACEOF 14829cat confdefs.h >>conftest.$ac_ext 14830cat >>conftest.$ac_ext <<_ACEOF 14831/* end confdefs.h. */ 14832#include <$ac_header> 14833_ACEOF 14834if { (ac_try="$ac_cpp conftest.$ac_ext" 14835case "(($ac_try" in 14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14837 *) ac_try_echo=$ac_try;; 14838esac 14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14841 ac_status=$? 14842 grep -v '^ *+' conftest.er1 >conftest.err 14843 rm -f conftest.er1 14844 cat conftest.err >&5 14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14846 (exit $ac_status); } >/dev/null; then 14847 if test -s conftest.err; then 14848 ac_cpp_err=$ac_c_preproc_warn_flag 14849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14850 else 14851 ac_cpp_err= 14852 fi 14853else 14854 ac_cpp_err=yes 14855fi 14856if test -z "$ac_cpp_err"; then 14857 ac_header_preproc=yes 14858else 14859 echo "$as_me: failed program was:" >&5 14860sed 's/^/| /' conftest.$ac_ext >&5 14861 14862 ac_header_preproc=no 14863fi 14864 14865rm -f conftest.err conftest.$ac_ext 14866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14867echo "${ECHO_T}$ac_header_preproc" >&6; } 14868 14869# So? What about this header? 14870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14871 yes:no: ) 14872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14876 ac_header_preproc=yes 14877 ;; 14878 no:yes:* ) 14879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14891 ( cat <<\_ASBOX 14892## ------------------------------------ ## 14893## Report this to http://llvm.org/bugs/ ## 14894## ------------------------------------ ## 14895_ASBOX 14896 ) | sed "s/^/$as_me: WARNING: /" >&2 14897 ;; 14898esac 14899{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14902 echo $ECHO_N "(cached) $ECHO_C" >&6 14903else 14904 eval "$as_ac_Header=\$ac_header_preproc" 14905fi 14906ac_res=`eval echo '${'$as_ac_Header'}'` 14907 { echo "$as_me:$LINENO: result: $ac_res" >&5 14908echo "${ECHO_T}$ac_res" >&6; } 14909 14910fi 14911if test `eval echo '${'$as_ac_Header'}'` = yes; then 14912 cat >>confdefs.h <<_ACEOF 14913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14914_ACEOF 14915 14916fi 14917 14918done 14919 14920 14921 14922 14923 14924 14925 14926for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14927do 14928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14933 echo $ECHO_N "(cached) $ECHO_C" >&6 14934fi 14935ac_res=`eval echo '${'$as_ac_Header'}'` 14936 { echo "$as_me:$LINENO: result: $ac_res" >&5 14937echo "${ECHO_T}$ac_res" >&6; } 14938else 14939 # Is the header compilable? 14940{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14942cat >conftest.$ac_ext <<_ACEOF 14943/* confdefs.h. */ 14944_ACEOF 14945cat confdefs.h >>conftest.$ac_ext 14946cat >>conftest.$ac_ext <<_ACEOF 14947/* end confdefs.h. */ 14948$ac_includes_default 14949#include <$ac_header> 14950_ACEOF 14951rm -f conftest.$ac_objext 14952if { (ac_try="$ac_compile" 14953case "(($ac_try" in 14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14955 *) ac_try_echo=$ac_try;; 14956esac 14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14958 (eval "$ac_compile") 2>conftest.er1 14959 ac_status=$? 14960 grep -v '^ *+' conftest.er1 >conftest.err 14961 rm -f conftest.er1 14962 cat conftest.err >&5 14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14964 (exit $ac_status); } && 14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14966 { (case "(($ac_try" in 14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14968 *) ac_try_echo=$ac_try;; 14969esac 14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14971 (eval "$ac_try") 2>&5 14972 ac_status=$? 14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14974 (exit $ac_status); }; } && 14975 { ac_try='test -s conftest.$ac_objext' 14976 { (case "(($ac_try" in 14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14978 *) ac_try_echo=$ac_try;; 14979esac 14980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14981 (eval "$ac_try") 2>&5 14982 ac_status=$? 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 (exit $ac_status); }; }; then 14985 ac_header_compiler=yes 14986else 14987 echo "$as_me: failed program was:" >&5 14988sed 's/^/| /' conftest.$ac_ext >&5 14989 14990 ac_header_compiler=no 14991fi 14992 14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14994{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14995echo "${ECHO_T}$ac_header_compiler" >&6; } 14996 14997# Is the header present? 14998{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15000cat >conftest.$ac_ext <<_ACEOF 15001/* confdefs.h. */ 15002_ACEOF 15003cat confdefs.h >>conftest.$ac_ext 15004cat >>conftest.$ac_ext <<_ACEOF 15005/* end confdefs.h. */ 15006#include <$ac_header> 15007_ACEOF 15008if { (ac_try="$ac_cpp conftest.$ac_ext" 15009case "(($ac_try" in 15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15011 *) ac_try_echo=$ac_try;; 15012esac 15013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15015 ac_status=$? 15016 grep -v '^ *+' conftest.er1 >conftest.err 15017 rm -f conftest.er1 15018 cat conftest.err >&5 15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15020 (exit $ac_status); } >/dev/null; then 15021 if test -s conftest.err; then 15022 ac_cpp_err=$ac_c_preproc_warn_flag 15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15024 else 15025 ac_cpp_err= 15026 fi 15027else 15028 ac_cpp_err=yes 15029fi 15030if test -z "$ac_cpp_err"; then 15031 ac_header_preproc=yes 15032else 15033 echo "$as_me: failed program was:" >&5 15034sed 's/^/| /' conftest.$ac_ext >&5 15035 15036 ac_header_preproc=no 15037fi 15038 15039rm -f conftest.err conftest.$ac_ext 15040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15041echo "${ECHO_T}$ac_header_preproc" >&6; } 15042 15043# So? What about this header? 15044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15045 yes:no: ) 15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15050 ac_header_preproc=yes 15051 ;; 15052 no:yes:* ) 15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15065 ( cat <<\_ASBOX 15066## ------------------------------------ ## 15067## Report this to http://llvm.org/bugs/ ## 15068## ------------------------------------ ## 15069_ASBOX 15070 ) | sed "s/^/$as_me: WARNING: /" >&2 15071 ;; 15072esac 15073{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15076 echo $ECHO_N "(cached) $ECHO_C" >&6 15077else 15078 eval "$as_ac_Header=\$ac_header_preproc" 15079fi 15080ac_res=`eval echo '${'$as_ac_Header'}'` 15081 { echo "$as_me:$LINENO: result: $ac_res" >&5 15082echo "${ECHO_T}$ac_res" >&6; } 15083 15084fi 15085if test `eval echo '${'$as_ac_Header'}'` = yes; then 15086 cat >>confdefs.h <<_ACEOF 15087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15088_ACEOF 15089 15090fi 15091 15092done 15093 15094 15095 15096for ac_header in utime.h windows.h 15097do 15098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15100 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15103 echo $ECHO_N "(cached) $ECHO_C" >&6 15104fi 15105ac_res=`eval echo '${'$as_ac_Header'}'` 15106 { echo "$as_me:$LINENO: result: $ac_res" >&5 15107echo "${ECHO_T}$ac_res" >&6; } 15108else 15109 # Is the header compilable? 15110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15112cat >conftest.$ac_ext <<_ACEOF 15113/* confdefs.h. */ 15114_ACEOF 15115cat confdefs.h >>conftest.$ac_ext 15116cat >>conftest.$ac_ext <<_ACEOF 15117/* end confdefs.h. */ 15118$ac_includes_default 15119#include <$ac_header> 15120_ACEOF 15121rm -f conftest.$ac_objext 15122if { (ac_try="$ac_compile" 15123case "(($ac_try" in 15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15125 *) ac_try_echo=$ac_try;; 15126esac 15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15128 (eval "$ac_compile") 2>conftest.er1 15129 ac_status=$? 15130 grep -v '^ *+' conftest.er1 >conftest.err 15131 rm -f conftest.er1 15132 cat conftest.err >&5 15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15134 (exit $ac_status); } && 15135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15136 { (case "(($ac_try" in 15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15138 *) ac_try_echo=$ac_try;; 15139esac 15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15141 (eval "$ac_try") 2>&5 15142 ac_status=$? 15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15144 (exit $ac_status); }; } && 15145 { ac_try='test -s conftest.$ac_objext' 15146 { (case "(($ac_try" in 15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15148 *) ac_try_echo=$ac_try;; 15149esac 15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15151 (eval "$ac_try") 2>&5 15152 ac_status=$? 15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15154 (exit $ac_status); }; }; then 15155 ac_header_compiler=yes 15156else 15157 echo "$as_me: failed program was:" >&5 15158sed 's/^/| /' conftest.$ac_ext >&5 15159 15160 ac_header_compiler=no 15161fi 15162 15163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15165echo "${ECHO_T}$ac_header_compiler" >&6; } 15166 15167# Is the header present? 15168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15170cat >conftest.$ac_ext <<_ACEOF 15171/* confdefs.h. */ 15172_ACEOF 15173cat confdefs.h >>conftest.$ac_ext 15174cat >>conftest.$ac_ext <<_ACEOF 15175/* end confdefs.h. */ 15176#include <$ac_header> 15177_ACEOF 15178if { (ac_try="$ac_cpp conftest.$ac_ext" 15179case "(($ac_try" in 15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15181 *) ac_try_echo=$ac_try;; 15182esac 15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15185 ac_status=$? 15186 grep -v '^ *+' conftest.er1 >conftest.err 15187 rm -f conftest.er1 15188 cat conftest.err >&5 15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15190 (exit $ac_status); } >/dev/null; then 15191 if test -s conftest.err; then 15192 ac_cpp_err=$ac_c_preproc_warn_flag 15193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15194 else 15195 ac_cpp_err= 15196 fi 15197else 15198 ac_cpp_err=yes 15199fi 15200if test -z "$ac_cpp_err"; then 15201 ac_header_preproc=yes 15202else 15203 echo "$as_me: failed program was:" >&5 15204sed 's/^/| /' conftest.$ac_ext >&5 15205 15206 ac_header_preproc=no 15207fi 15208 15209rm -f conftest.err conftest.$ac_ext 15210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15211echo "${ECHO_T}$ac_header_preproc" >&6; } 15212 15213# So? What about this header? 15214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15215 yes:no: ) 15216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15220 ac_header_preproc=yes 15221 ;; 15222 no:yes:* ) 15223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15235 ( cat <<\_ASBOX 15236## ------------------------------------ ## 15237## Report this to http://llvm.org/bugs/ ## 15238## ------------------------------------ ## 15239_ASBOX 15240 ) | sed "s/^/$as_me: WARNING: /" >&2 15241 ;; 15242esac 15243{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15246 echo $ECHO_N "(cached) $ECHO_C" >&6 15247else 15248 eval "$as_ac_Header=\$ac_header_preproc" 15249fi 15250ac_res=`eval echo '${'$as_ac_Header'}'` 15251 { echo "$as_me:$LINENO: result: $ac_res" >&5 15252echo "${ECHO_T}$ac_res" >&6; } 15253 15254fi 15255if test `eval echo '${'$as_ac_Header'}'` = yes; then 15256 cat >>confdefs.h <<_ACEOF 15257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15258_ACEOF 15259 15260fi 15261 15262done 15263 15264 15265 15266 15267 15268 15269for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15270do 15271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15273 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15276 echo $ECHO_N "(cached) $ECHO_C" >&6 15277fi 15278ac_res=`eval echo '${'$as_ac_Header'}'` 15279 { echo "$as_me:$LINENO: result: $ac_res" >&5 15280echo "${ECHO_T}$ac_res" >&6; } 15281else 15282 # Is the header compilable? 15283{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15285cat >conftest.$ac_ext <<_ACEOF 15286/* confdefs.h. */ 15287_ACEOF 15288cat confdefs.h >>conftest.$ac_ext 15289cat >>conftest.$ac_ext <<_ACEOF 15290/* end confdefs.h. */ 15291$ac_includes_default 15292#include <$ac_header> 15293_ACEOF 15294rm -f conftest.$ac_objext 15295if { (ac_try="$ac_compile" 15296case "(($ac_try" in 15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15298 *) ac_try_echo=$ac_try;; 15299esac 15300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15301 (eval "$ac_compile") 2>conftest.er1 15302 ac_status=$? 15303 grep -v '^ *+' conftest.er1 >conftest.err 15304 rm -f conftest.er1 15305 cat conftest.err >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15307 (exit $ac_status); } && 15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15309 { (case "(($ac_try" in 15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15311 *) ac_try_echo=$ac_try;; 15312esac 15313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15314 (eval "$ac_try") 2>&5 15315 ac_status=$? 15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15317 (exit $ac_status); }; } && 15318 { ac_try='test -s conftest.$ac_objext' 15319 { (case "(($ac_try" in 15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15321 *) ac_try_echo=$ac_try;; 15322esac 15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15324 (eval "$ac_try") 2>&5 15325 ac_status=$? 15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15327 (exit $ac_status); }; }; then 15328 ac_header_compiler=yes 15329else 15330 echo "$as_me: failed program was:" >&5 15331sed 's/^/| /' conftest.$ac_ext >&5 15332 15333 ac_header_compiler=no 15334fi 15335 15336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15337{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15338echo "${ECHO_T}$ac_header_compiler" >&6; } 15339 15340# Is the header present? 15341{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15343cat >conftest.$ac_ext <<_ACEOF 15344/* confdefs.h. */ 15345_ACEOF 15346cat confdefs.h >>conftest.$ac_ext 15347cat >>conftest.$ac_ext <<_ACEOF 15348/* end confdefs.h. */ 15349#include <$ac_header> 15350_ACEOF 15351if { (ac_try="$ac_cpp conftest.$ac_ext" 15352case "(($ac_try" in 15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15354 *) ac_try_echo=$ac_try;; 15355esac 15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15358 ac_status=$? 15359 grep -v '^ *+' conftest.er1 >conftest.err 15360 rm -f conftest.er1 15361 cat conftest.err >&5 15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15363 (exit $ac_status); } >/dev/null; then 15364 if test -s conftest.err; then 15365 ac_cpp_err=$ac_c_preproc_warn_flag 15366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15367 else 15368 ac_cpp_err= 15369 fi 15370else 15371 ac_cpp_err=yes 15372fi 15373if test -z "$ac_cpp_err"; then 15374 ac_header_preproc=yes 15375else 15376 echo "$as_me: failed program was:" >&5 15377sed 's/^/| /' conftest.$ac_ext >&5 15378 15379 ac_header_preproc=no 15380fi 15381 15382rm -f conftest.err conftest.$ac_ext 15383{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15384echo "${ECHO_T}$ac_header_preproc" >&6; } 15385 15386# So? What about this header? 15387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15388 yes:no: ) 15389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15393 ac_header_preproc=yes 15394 ;; 15395 no:yes:* ) 15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15408 ( cat <<\_ASBOX 15409## ------------------------------------ ## 15410## Report this to http://llvm.org/bugs/ ## 15411## ------------------------------------ ## 15412_ASBOX 15413 ) | sed "s/^/$as_me: WARNING: /" >&2 15414 ;; 15415esac 15416{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15419 echo $ECHO_N "(cached) $ECHO_C" >&6 15420else 15421 eval "$as_ac_Header=\$ac_header_preproc" 15422fi 15423ac_res=`eval echo '${'$as_ac_Header'}'` 15424 { echo "$as_me:$LINENO: result: $ac_res" >&5 15425echo "${ECHO_T}$ac_res" >&6; } 15426 15427fi 15428if test `eval echo '${'$as_ac_Header'}'` = yes; then 15429 cat >>confdefs.h <<_ACEOF 15430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15431_ACEOF 15432 15433fi 15434 15435done 15436 15437 15438 15439 15440 15441for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15442do 15443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15448 echo $ECHO_N "(cached) $ECHO_C" >&6 15449fi 15450ac_res=`eval echo '${'$as_ac_Header'}'` 15451 { echo "$as_me:$LINENO: result: $ac_res" >&5 15452echo "${ECHO_T}$ac_res" >&6; } 15453else 15454 # Is the header compilable? 15455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15457cat >conftest.$ac_ext <<_ACEOF 15458/* confdefs.h. */ 15459_ACEOF 15460cat confdefs.h >>conftest.$ac_ext 15461cat >>conftest.$ac_ext <<_ACEOF 15462/* end confdefs.h. */ 15463$ac_includes_default 15464#include <$ac_header> 15465_ACEOF 15466rm -f conftest.$ac_objext 15467if { (ac_try="$ac_compile" 15468case "(($ac_try" in 15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15470 *) ac_try_echo=$ac_try;; 15471esac 15472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15473 (eval "$ac_compile") 2>conftest.er1 15474 ac_status=$? 15475 grep -v '^ *+' conftest.er1 >conftest.err 15476 rm -f conftest.er1 15477 cat conftest.err >&5 15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15479 (exit $ac_status); } && 15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15481 { (case "(($ac_try" in 15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15483 *) ac_try_echo=$ac_try;; 15484esac 15485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15486 (eval "$ac_try") 2>&5 15487 ac_status=$? 15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15489 (exit $ac_status); }; } && 15490 { ac_try='test -s conftest.$ac_objext' 15491 { (case "(($ac_try" in 15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15493 *) ac_try_echo=$ac_try;; 15494esac 15495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15496 (eval "$ac_try") 2>&5 15497 ac_status=$? 15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15499 (exit $ac_status); }; }; then 15500 ac_header_compiler=yes 15501else 15502 echo "$as_me: failed program was:" >&5 15503sed 's/^/| /' conftest.$ac_ext >&5 15504 15505 ac_header_compiler=no 15506fi 15507 15508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15510echo "${ECHO_T}$ac_header_compiler" >&6; } 15511 15512# Is the header present? 15513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15515cat >conftest.$ac_ext <<_ACEOF 15516/* confdefs.h. */ 15517_ACEOF 15518cat confdefs.h >>conftest.$ac_ext 15519cat >>conftest.$ac_ext <<_ACEOF 15520/* end confdefs.h. */ 15521#include <$ac_header> 15522_ACEOF 15523if { (ac_try="$ac_cpp conftest.$ac_ext" 15524case "(($ac_try" in 15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15526 *) ac_try_echo=$ac_try;; 15527esac 15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15530 ac_status=$? 15531 grep -v '^ *+' conftest.er1 >conftest.err 15532 rm -f conftest.er1 15533 cat conftest.err >&5 15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15535 (exit $ac_status); } >/dev/null; then 15536 if test -s conftest.err; then 15537 ac_cpp_err=$ac_c_preproc_warn_flag 15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15539 else 15540 ac_cpp_err= 15541 fi 15542else 15543 ac_cpp_err=yes 15544fi 15545if test -z "$ac_cpp_err"; then 15546 ac_header_preproc=yes 15547else 15548 echo "$as_me: failed program was:" >&5 15549sed 's/^/| /' conftest.$ac_ext >&5 15550 15551 ac_header_preproc=no 15552fi 15553 15554rm -f conftest.err conftest.$ac_ext 15555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15556echo "${ECHO_T}$ac_header_preproc" >&6; } 15557 15558# So? What about this header? 15559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15560 yes:no: ) 15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15565 ac_header_preproc=yes 15566 ;; 15567 no:yes:* ) 15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15580 ( cat <<\_ASBOX 15581## ------------------------------------ ## 15582## Report this to http://llvm.org/bugs/ ## 15583## ------------------------------------ ## 15584_ASBOX 15585 ) | sed "s/^/$as_me: WARNING: /" >&2 15586 ;; 15587esac 15588{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15591 echo $ECHO_N "(cached) $ECHO_C" >&6 15592else 15593 eval "$as_ac_Header=\$ac_header_preproc" 15594fi 15595ac_res=`eval echo '${'$as_ac_Header'}'` 15596 { echo "$as_me:$LINENO: result: $ac_res" >&5 15597echo "${ECHO_T}$ac_res" >&6; } 15598 15599fi 15600if test `eval echo '${'$as_ac_Header'}'` = yes; then 15601 cat >>confdefs.h <<_ACEOF 15602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15603_ACEOF 15604 15605fi 15606 15607done 15608 15609 15610for ac_header in valgrind/valgrind.h 15611do 15612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15617 echo $ECHO_N "(cached) $ECHO_C" >&6 15618fi 15619ac_res=`eval echo '${'$as_ac_Header'}'` 15620 { echo "$as_me:$LINENO: result: $ac_res" >&5 15621echo "${ECHO_T}$ac_res" >&6; } 15622else 15623 # Is the header compilable? 15624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15626cat >conftest.$ac_ext <<_ACEOF 15627/* confdefs.h. */ 15628_ACEOF 15629cat confdefs.h >>conftest.$ac_ext 15630cat >>conftest.$ac_ext <<_ACEOF 15631/* end confdefs.h. */ 15632$ac_includes_default 15633#include <$ac_header> 15634_ACEOF 15635rm -f conftest.$ac_objext 15636if { (ac_try="$ac_compile" 15637case "(($ac_try" in 15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15639 *) ac_try_echo=$ac_try;; 15640esac 15641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15642 (eval "$ac_compile") 2>conftest.er1 15643 ac_status=$? 15644 grep -v '^ *+' conftest.er1 >conftest.err 15645 rm -f conftest.er1 15646 cat conftest.err >&5 15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15648 (exit $ac_status); } && 15649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15650 { (case "(($ac_try" in 15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15652 *) ac_try_echo=$ac_try;; 15653esac 15654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15655 (eval "$ac_try") 2>&5 15656 ac_status=$? 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15658 (exit $ac_status); }; } && 15659 { ac_try='test -s conftest.$ac_objext' 15660 { (case "(($ac_try" in 15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15662 *) ac_try_echo=$ac_try;; 15663esac 15664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15665 (eval "$ac_try") 2>&5 15666 ac_status=$? 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); }; }; then 15669 ac_header_compiler=yes 15670else 15671 echo "$as_me: failed program was:" >&5 15672sed 's/^/| /' conftest.$ac_ext >&5 15673 15674 ac_header_compiler=no 15675fi 15676 15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15678{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15679echo "${ECHO_T}$ac_header_compiler" >&6; } 15680 15681# Is the header present? 15682{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15684cat >conftest.$ac_ext <<_ACEOF 15685/* confdefs.h. */ 15686_ACEOF 15687cat confdefs.h >>conftest.$ac_ext 15688cat >>conftest.$ac_ext <<_ACEOF 15689/* end confdefs.h. */ 15690#include <$ac_header> 15691_ACEOF 15692if { (ac_try="$ac_cpp conftest.$ac_ext" 15693case "(($ac_try" in 15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15695 *) ac_try_echo=$ac_try;; 15696esac 15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15699 ac_status=$? 15700 grep -v '^ *+' conftest.er1 >conftest.err 15701 rm -f conftest.er1 15702 cat conftest.err >&5 15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15704 (exit $ac_status); } >/dev/null; then 15705 if test -s conftest.err; then 15706 ac_cpp_err=$ac_c_preproc_warn_flag 15707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15708 else 15709 ac_cpp_err= 15710 fi 15711else 15712 ac_cpp_err=yes 15713fi 15714if test -z "$ac_cpp_err"; then 15715 ac_header_preproc=yes 15716else 15717 echo "$as_me: failed program was:" >&5 15718sed 's/^/| /' conftest.$ac_ext >&5 15719 15720 ac_header_preproc=no 15721fi 15722 15723rm -f conftest.err conftest.$ac_ext 15724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15725echo "${ECHO_T}$ac_header_preproc" >&6; } 15726 15727# So? What about this header? 15728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15729 yes:no: ) 15730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15734 ac_header_preproc=yes 15735 ;; 15736 no:yes:* ) 15737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15749 ( cat <<\_ASBOX 15750## ------------------------------------ ## 15751## Report this to http://llvm.org/bugs/ ## 15752## ------------------------------------ ## 15753_ASBOX 15754 ) | sed "s/^/$as_me: WARNING: /" >&2 15755 ;; 15756esac 15757{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15760 echo $ECHO_N "(cached) $ECHO_C" >&6 15761else 15762 eval "$as_ac_Header=\$ac_header_preproc" 15763fi 15764ac_res=`eval echo '${'$as_ac_Header'}'` 15765 { echo "$as_me:$LINENO: result: $ac_res" >&5 15766echo "${ECHO_T}$ac_res" >&6; } 15767 15768fi 15769if test `eval echo '${'$as_ac_Header'}'` = yes; then 15770 cat >>confdefs.h <<_ACEOF 15771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15772_ACEOF 15773 15774fi 15775 15776done 15777 15778 15779for ac_header in fenv.h 15780do 15781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15786 echo $ECHO_N "(cached) $ECHO_C" >&6 15787fi 15788ac_res=`eval echo '${'$as_ac_Header'}'` 15789 { echo "$as_me:$LINENO: result: $ac_res" >&5 15790echo "${ECHO_T}$ac_res" >&6; } 15791else 15792 # Is the header compilable? 15793{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15795cat >conftest.$ac_ext <<_ACEOF 15796/* confdefs.h. */ 15797_ACEOF 15798cat confdefs.h >>conftest.$ac_ext 15799cat >>conftest.$ac_ext <<_ACEOF 15800/* end confdefs.h. */ 15801$ac_includes_default 15802#include <$ac_header> 15803_ACEOF 15804rm -f conftest.$ac_objext 15805if { (ac_try="$ac_compile" 15806case "(($ac_try" in 15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15808 *) ac_try_echo=$ac_try;; 15809esac 15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15811 (eval "$ac_compile") 2>conftest.er1 15812 ac_status=$? 15813 grep -v '^ *+' conftest.er1 >conftest.err 15814 rm -f conftest.er1 15815 cat conftest.err >&5 15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15817 (exit $ac_status); } && 15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15819 { (case "(($ac_try" in 15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15821 *) ac_try_echo=$ac_try;; 15822esac 15823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15824 (eval "$ac_try") 2>&5 15825 ac_status=$? 15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15827 (exit $ac_status); }; } && 15828 { ac_try='test -s conftest.$ac_objext' 15829 { (case "(($ac_try" in 15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15831 *) ac_try_echo=$ac_try;; 15832esac 15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15834 (eval "$ac_try") 2>&5 15835 ac_status=$? 15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15837 (exit $ac_status); }; }; then 15838 ac_header_compiler=yes 15839else 15840 echo "$as_me: failed program was:" >&5 15841sed 's/^/| /' conftest.$ac_ext >&5 15842 15843 ac_header_compiler=no 15844fi 15845 15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15847{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15848echo "${ECHO_T}$ac_header_compiler" >&6; } 15849 15850# Is the header present? 15851{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15853cat >conftest.$ac_ext <<_ACEOF 15854/* confdefs.h. */ 15855_ACEOF 15856cat confdefs.h >>conftest.$ac_ext 15857cat >>conftest.$ac_ext <<_ACEOF 15858/* end confdefs.h. */ 15859#include <$ac_header> 15860_ACEOF 15861if { (ac_try="$ac_cpp conftest.$ac_ext" 15862case "(($ac_try" in 15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15864 *) ac_try_echo=$ac_try;; 15865esac 15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15868 ac_status=$? 15869 grep -v '^ *+' conftest.er1 >conftest.err 15870 rm -f conftest.er1 15871 cat conftest.err >&5 15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15873 (exit $ac_status); } >/dev/null; then 15874 if test -s conftest.err; then 15875 ac_cpp_err=$ac_c_preproc_warn_flag 15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15877 else 15878 ac_cpp_err= 15879 fi 15880else 15881 ac_cpp_err=yes 15882fi 15883if test -z "$ac_cpp_err"; then 15884 ac_header_preproc=yes 15885else 15886 echo "$as_me: failed program was:" >&5 15887sed 's/^/| /' conftest.$ac_ext >&5 15888 15889 ac_header_preproc=no 15890fi 15891 15892rm -f conftest.err conftest.$ac_ext 15893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15894echo "${ECHO_T}$ac_header_preproc" >&6; } 15895 15896# So? What about this header? 15897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15898 yes:no: ) 15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15903 ac_header_preproc=yes 15904 ;; 15905 no:yes:* ) 15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15918 ( cat <<\_ASBOX 15919## ------------------------------------ ## 15920## Report this to http://llvm.org/bugs/ ## 15921## ------------------------------------ ## 15922_ASBOX 15923 ) | sed "s/^/$as_me: WARNING: /" >&2 15924 ;; 15925esac 15926{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15929 echo $ECHO_N "(cached) $ECHO_C" >&6 15930else 15931 eval "$as_ac_Header=\$ac_header_preproc" 15932fi 15933ac_res=`eval echo '${'$as_ac_Header'}'` 15934 { echo "$as_me:$LINENO: result: $ac_res" >&5 15935echo "${ECHO_T}$ac_res" >&6; } 15936 15937fi 15938if test `eval echo '${'$as_ac_Header'}'` = yes; then 15939 cat >>confdefs.h <<_ACEOF 15940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15941_ACEOF 15942 15943fi 15944 15945done 15946 15947if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15948 15949for ac_header in pthread.h 15950do 15951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15956 echo $ECHO_N "(cached) $ECHO_C" >&6 15957fi 15958ac_res=`eval echo '${'$as_ac_Header'}'` 15959 { echo "$as_me:$LINENO: result: $ac_res" >&5 15960echo "${ECHO_T}$ac_res" >&6; } 15961else 15962 # Is the header compilable? 15963{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15965cat >conftest.$ac_ext <<_ACEOF 15966/* confdefs.h. */ 15967_ACEOF 15968cat confdefs.h >>conftest.$ac_ext 15969cat >>conftest.$ac_ext <<_ACEOF 15970/* end confdefs.h. */ 15971$ac_includes_default 15972#include <$ac_header> 15973_ACEOF 15974rm -f conftest.$ac_objext 15975if { (ac_try="$ac_compile" 15976case "(($ac_try" in 15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15978 *) ac_try_echo=$ac_try;; 15979esac 15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15981 (eval "$ac_compile") 2>conftest.er1 15982 ac_status=$? 15983 grep -v '^ *+' conftest.er1 >conftest.err 15984 rm -f conftest.er1 15985 cat conftest.err >&5 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 (exit $ac_status); } && 15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15989 { (case "(($ac_try" in 15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15991 *) ac_try_echo=$ac_try;; 15992esac 15993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15994 (eval "$ac_try") 2>&5 15995 ac_status=$? 15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15997 (exit $ac_status); }; } && 15998 { ac_try='test -s conftest.$ac_objext' 15999 { (case "(($ac_try" in 16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16001 *) ac_try_echo=$ac_try;; 16002esac 16003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16004 (eval "$ac_try") 2>&5 16005 ac_status=$? 16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16007 (exit $ac_status); }; }; then 16008 ac_header_compiler=yes 16009else 16010 echo "$as_me: failed program was:" >&5 16011sed 's/^/| /' conftest.$ac_ext >&5 16012 16013 ac_header_compiler=no 16014fi 16015 16016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16018echo "${ECHO_T}$ac_header_compiler" >&6; } 16019 16020# Is the header present? 16021{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16023cat >conftest.$ac_ext <<_ACEOF 16024/* confdefs.h. */ 16025_ACEOF 16026cat confdefs.h >>conftest.$ac_ext 16027cat >>conftest.$ac_ext <<_ACEOF 16028/* end confdefs.h. */ 16029#include <$ac_header> 16030_ACEOF 16031if { (ac_try="$ac_cpp conftest.$ac_ext" 16032case "(($ac_try" in 16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16034 *) ac_try_echo=$ac_try;; 16035esac 16036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16038 ac_status=$? 16039 grep -v '^ *+' conftest.er1 >conftest.err 16040 rm -f conftest.er1 16041 cat conftest.err >&5 16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16043 (exit $ac_status); } >/dev/null; then 16044 if test -s conftest.err; then 16045 ac_cpp_err=$ac_c_preproc_warn_flag 16046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16047 else 16048 ac_cpp_err= 16049 fi 16050else 16051 ac_cpp_err=yes 16052fi 16053if test -z "$ac_cpp_err"; then 16054 ac_header_preproc=yes 16055else 16056 echo "$as_me: failed program was:" >&5 16057sed 's/^/| /' conftest.$ac_ext >&5 16058 16059 ac_header_preproc=no 16060fi 16061 16062rm -f conftest.err conftest.$ac_ext 16063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16064echo "${ECHO_T}$ac_header_preproc" >&6; } 16065 16066# So? What about this header? 16067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16068 yes:no: ) 16069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16073 ac_header_preproc=yes 16074 ;; 16075 no:yes:* ) 16076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16088 ( cat <<\_ASBOX 16089## ------------------------------------ ## 16090## Report this to http://llvm.org/bugs/ ## 16091## ------------------------------------ ## 16092_ASBOX 16093 ) | sed "s/^/$as_me: WARNING: /" >&2 16094 ;; 16095esac 16096{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16099 echo $ECHO_N "(cached) $ECHO_C" >&6 16100else 16101 eval "$as_ac_Header=\$ac_header_preproc" 16102fi 16103ac_res=`eval echo '${'$as_ac_Header'}'` 16104 { echo "$as_me:$LINENO: result: $ac_res" >&5 16105echo "${ECHO_T}$ac_res" >&6; } 16106 16107fi 16108if test `eval echo '${'$as_ac_Header'}'` = yes; then 16109 cat >>confdefs.h <<_ACEOF 16110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16111_ACEOF 16112 HAVE_PTHREAD=1 16113 16114else 16115 HAVE_PTHREAD=0 16116 16117fi 16118 16119done 16120 16121else 16122 HAVE_PTHREAD=0 16123 16124fi 16125 16126if test "$llvm_cv_enable_libffi" = "yes" ; then 16127 16128 16129for ac_header in ffi.h ffi/ffi.h 16130do 16131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16136 echo $ECHO_N "(cached) $ECHO_C" >&6 16137fi 16138ac_res=`eval echo '${'$as_ac_Header'}'` 16139 { echo "$as_me:$LINENO: result: $ac_res" >&5 16140echo "${ECHO_T}$ac_res" >&6; } 16141else 16142 # Is the header compilable? 16143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16145cat >conftest.$ac_ext <<_ACEOF 16146/* confdefs.h. */ 16147_ACEOF 16148cat confdefs.h >>conftest.$ac_ext 16149cat >>conftest.$ac_ext <<_ACEOF 16150/* end confdefs.h. */ 16151$ac_includes_default 16152#include <$ac_header> 16153_ACEOF 16154rm -f conftest.$ac_objext 16155if { (ac_try="$ac_compile" 16156case "(($ac_try" in 16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16158 *) ac_try_echo=$ac_try;; 16159esac 16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16161 (eval "$ac_compile") 2>conftest.er1 16162 ac_status=$? 16163 grep -v '^ *+' conftest.er1 >conftest.err 16164 rm -f conftest.er1 16165 cat conftest.err >&5 16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16167 (exit $ac_status); } && 16168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16169 { (case "(($ac_try" in 16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16171 *) ac_try_echo=$ac_try;; 16172esac 16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16174 (eval "$ac_try") 2>&5 16175 ac_status=$? 16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16177 (exit $ac_status); }; } && 16178 { ac_try='test -s conftest.$ac_objext' 16179 { (case "(($ac_try" in 16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16181 *) ac_try_echo=$ac_try;; 16182esac 16183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16184 (eval "$ac_try") 2>&5 16185 ac_status=$? 16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16187 (exit $ac_status); }; }; then 16188 ac_header_compiler=yes 16189else 16190 echo "$as_me: failed program was:" >&5 16191sed 's/^/| /' conftest.$ac_ext >&5 16192 16193 ac_header_compiler=no 16194fi 16195 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16198echo "${ECHO_T}$ac_header_compiler" >&6; } 16199 16200# Is the header present? 16201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16203cat >conftest.$ac_ext <<_ACEOF 16204/* confdefs.h. */ 16205_ACEOF 16206cat confdefs.h >>conftest.$ac_ext 16207cat >>conftest.$ac_ext <<_ACEOF 16208/* end confdefs.h. */ 16209#include <$ac_header> 16210_ACEOF 16211if { (ac_try="$ac_cpp conftest.$ac_ext" 16212case "(($ac_try" in 16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16214 *) ac_try_echo=$ac_try;; 16215esac 16216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16218 ac_status=$? 16219 grep -v '^ *+' conftest.er1 >conftest.err 16220 rm -f conftest.er1 16221 cat conftest.err >&5 16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16223 (exit $ac_status); } >/dev/null; then 16224 if test -s conftest.err; then 16225 ac_cpp_err=$ac_c_preproc_warn_flag 16226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16227 else 16228 ac_cpp_err= 16229 fi 16230else 16231 ac_cpp_err=yes 16232fi 16233if test -z "$ac_cpp_err"; then 16234 ac_header_preproc=yes 16235else 16236 echo "$as_me: failed program was:" >&5 16237sed 's/^/| /' conftest.$ac_ext >&5 16238 16239 ac_header_preproc=no 16240fi 16241 16242rm -f conftest.err conftest.$ac_ext 16243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16244echo "${ECHO_T}$ac_header_preproc" >&6; } 16245 16246# So? What about this header? 16247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16248 yes:no: ) 16249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16253 ac_header_preproc=yes 16254 ;; 16255 no:yes:* ) 16256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16259echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16263echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16268 ( cat <<\_ASBOX 16269## ------------------------------------ ## 16270## Report this to http://llvm.org/bugs/ ## 16271## ------------------------------------ ## 16272_ASBOX 16273 ) | sed "s/^/$as_me: WARNING: /" >&2 16274 ;; 16275esac 16276{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16279 echo $ECHO_N "(cached) $ECHO_C" >&6 16280else 16281 eval "$as_ac_Header=\$ac_header_preproc" 16282fi 16283ac_res=`eval echo '${'$as_ac_Header'}'` 16284 { echo "$as_me:$LINENO: result: $ac_res" >&5 16285echo "${ECHO_T}$ac_res" >&6; } 16286 16287fi 16288if test `eval echo '${'$as_ac_Header'}'` = yes; then 16289 cat >>confdefs.h <<_ACEOF 16290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16291_ACEOF 16292 16293fi 16294 16295done 16296 16297fi 16298 16299 16300for ac_header in CrashReporterClient.h 16301do 16302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16304 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16307 echo $ECHO_N "(cached) $ECHO_C" >&6 16308fi 16309ac_res=`eval echo '${'$as_ac_Header'}'` 16310 { echo "$as_me:$LINENO: result: $ac_res" >&5 16311echo "${ECHO_T}$ac_res" >&6; } 16312else 16313 # Is the header compilable? 16314{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16316cat >conftest.$ac_ext <<_ACEOF 16317/* confdefs.h. */ 16318_ACEOF 16319cat confdefs.h >>conftest.$ac_ext 16320cat >>conftest.$ac_ext <<_ACEOF 16321/* end confdefs.h. */ 16322$ac_includes_default 16323#include <$ac_header> 16324_ACEOF 16325rm -f conftest.$ac_objext 16326if { (ac_try="$ac_compile" 16327case "(($ac_try" in 16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16329 *) ac_try_echo=$ac_try;; 16330esac 16331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16332 (eval "$ac_compile") 2>conftest.er1 16333 ac_status=$? 16334 grep -v '^ *+' conftest.er1 >conftest.err 16335 rm -f conftest.er1 16336 cat conftest.err >&5 16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16338 (exit $ac_status); } && 16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16340 { (case "(($ac_try" in 16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16342 *) ac_try_echo=$ac_try;; 16343esac 16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16345 (eval "$ac_try") 2>&5 16346 ac_status=$? 16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16348 (exit $ac_status); }; } && 16349 { ac_try='test -s conftest.$ac_objext' 16350 { (case "(($ac_try" in 16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16352 *) ac_try_echo=$ac_try;; 16353esac 16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16355 (eval "$ac_try") 2>&5 16356 ac_status=$? 16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16358 (exit $ac_status); }; }; then 16359 ac_header_compiler=yes 16360else 16361 echo "$as_me: failed program was:" >&5 16362sed 's/^/| /' conftest.$ac_ext >&5 16363 16364 ac_header_compiler=no 16365fi 16366 16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16368{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16369echo "${ECHO_T}$ac_header_compiler" >&6; } 16370 16371# Is the header present? 16372{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16374cat >conftest.$ac_ext <<_ACEOF 16375/* confdefs.h. */ 16376_ACEOF 16377cat confdefs.h >>conftest.$ac_ext 16378cat >>conftest.$ac_ext <<_ACEOF 16379/* end confdefs.h. */ 16380#include <$ac_header> 16381_ACEOF 16382if { (ac_try="$ac_cpp conftest.$ac_ext" 16383case "(($ac_try" in 16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16385 *) ac_try_echo=$ac_try;; 16386esac 16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16389 ac_status=$? 16390 grep -v '^ *+' conftest.er1 >conftest.err 16391 rm -f conftest.er1 16392 cat conftest.err >&5 16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16394 (exit $ac_status); } >/dev/null; then 16395 if test -s conftest.err; then 16396 ac_cpp_err=$ac_c_preproc_warn_flag 16397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16398 else 16399 ac_cpp_err= 16400 fi 16401else 16402 ac_cpp_err=yes 16403fi 16404if test -z "$ac_cpp_err"; then 16405 ac_header_preproc=yes 16406else 16407 echo "$as_me: failed program was:" >&5 16408sed 's/^/| /' conftest.$ac_ext >&5 16409 16410 ac_header_preproc=no 16411fi 16412 16413rm -f conftest.err conftest.$ac_ext 16414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16415echo "${ECHO_T}$ac_header_preproc" >&6; } 16416 16417# So? What about this header? 16418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16419 yes:no: ) 16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16424 ac_header_preproc=yes 16425 ;; 16426 no:yes:* ) 16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16439 ( cat <<\_ASBOX 16440## ------------------------------------ ## 16441## Report this to http://llvm.org/bugs/ ## 16442## ------------------------------------ ## 16443_ASBOX 16444 ) | sed "s/^/$as_me: WARNING: /" >&2 16445 ;; 16446esac 16447{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16450 echo $ECHO_N "(cached) $ECHO_C" >&6 16451else 16452 eval "$as_ac_Header=\$ac_header_preproc" 16453fi 16454ac_res=`eval echo '${'$as_ac_Header'}'` 16455 { echo "$as_me:$LINENO: result: $ac_res" >&5 16456echo "${ECHO_T}$ac_res" >&6; } 16457 16458fi 16459if test `eval echo '${'$as_ac_Header'}'` = yes; then 16460 cat >>confdefs.h <<_ACEOF 16461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16462_ACEOF 16463 16464fi 16465 16466done 16467 16468 16469{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16470echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16471cat >conftest.$ac_ext <<_ACEOF 16472 16473 /* confdefs.h. */ 16474_ACEOF 16475cat confdefs.h >>conftest.$ac_ext 16476cat >>conftest.$ac_ext <<_ACEOF 16477/* end confdefs.h. */ 16478 16479 extern const char *__crashreporter_info__; 16480 int main() { 16481 __crashreporter_info__ = "test"; 16482 return 0; 16483 } 16484 16485 16486_ACEOF 16487rm -f conftest.$ac_objext conftest$ac_exeext 16488if { (ac_try="$ac_link" 16489case "(($ac_try" in 16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16491 *) ac_try_echo=$ac_try;; 16492esac 16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16494 (eval "$ac_link") 2>conftest.er1 16495 ac_status=$? 16496 grep -v '^ *+' conftest.er1 >conftest.err 16497 rm -f conftest.er1 16498 cat conftest.err >&5 16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16500 (exit $ac_status); } && 16501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16502 { (case "(($ac_try" in 16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16504 *) ac_try_echo=$ac_try;; 16505esac 16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16507 (eval "$ac_try") 2>&5 16508 ac_status=$? 16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16510 (exit $ac_status); }; } && 16511 { ac_try='test -s conftest$ac_exeext' 16512 { (case "(($ac_try" in 16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16514 *) ac_try_echo=$ac_try;; 16515esac 16516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16517 (eval "$ac_try") 2>&5 16518 ac_status=$? 16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16520 (exit $ac_status); }; }; then 16521 16522 { echo "$as_me:$LINENO: result: yes" >&5 16523echo "${ECHO_T}yes" >&6; } 16524 16525cat >>confdefs.h <<\_ACEOF 16526#define HAVE_CRASHREPORTER_INFO 1 16527_ACEOF 16528 16529 16530else 16531 echo "$as_me: failed program was:" >&5 16532sed 's/^/| /' conftest.$ac_ext >&5 16533 16534 16535 { echo "$as_me:$LINENO: result: no" >&5 16536echo "${ECHO_T}no" >&6; } 16537 16538cat >>confdefs.h <<\_ACEOF 16539#define HAVE_CRASHREPORTER_INFO 0 16540_ACEOF 16541 16542 16543fi 16544 16545rm -f core conftest.err conftest.$ac_objext \ 16546 conftest$ac_exeext conftest.$ac_ext 16547 16548 16549 16550 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16551echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16552if test "${ac_cv_huge_val_sanity+set}" = set; then 16553 echo $ECHO_N "(cached) $ECHO_C" >&6 16554else 16555 16556 ac_ext=cpp 16557ac_cpp='$CXXCPP $CPPFLAGS' 16558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16561 16562 ac_save_CXXFLAGS=$CXXFLAGS 16563 CXXFLAGS="$CXXFLAGS -pedantic" 16564 if test "$cross_compiling" = yes; then 16565 ac_cv_huge_val_sanity=yes 16566else 16567 cat >conftest.$ac_ext <<_ACEOF 16568/* confdefs.h. */ 16569_ACEOF 16570cat confdefs.h >>conftest.$ac_ext 16571cat >>conftest.$ac_ext <<_ACEOF 16572/* end confdefs.h. */ 16573#include <math.h> 16574int 16575main () 16576{ 16577double x = HUGE_VAL; return x != x; 16578 ; 16579 return 0; 16580} 16581_ACEOF 16582rm -f conftest$ac_exeext 16583if { (ac_try="$ac_link" 16584case "(($ac_try" in 16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16586 *) ac_try_echo=$ac_try;; 16587esac 16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16589 (eval "$ac_link") 2>&5 16590 ac_status=$? 16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16593 { (case "(($ac_try" in 16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16595 *) ac_try_echo=$ac_try;; 16596esac 16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16598 (eval "$ac_try") 2>&5 16599 ac_status=$? 16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16601 (exit $ac_status); }; }; then 16602 ac_cv_huge_val_sanity=yes 16603else 16604 echo "$as_me: program exited with status $ac_status" >&5 16605echo "$as_me: failed program was:" >&5 16606sed 's/^/| /' conftest.$ac_ext >&5 16607 16608( exit $ac_status ) 16609ac_cv_huge_val_sanity=no 16610fi 16611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16612fi 16613 16614 16615 CXXFLAGS=$ac_save_CXXFLAGS 16616 ac_ext=c 16617ac_cpp='$CPP $CPPFLAGS' 16618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16620ac_compiler_gnu=$ac_cv_c_compiler_gnu 16621 16622 16623fi 16624{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16625echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16626 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16627 16628 16629{ echo "$as_me:$LINENO: checking for pid_t" >&5 16630echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16631if test "${ac_cv_type_pid_t+set}" = set; then 16632 echo $ECHO_N "(cached) $ECHO_C" >&6 16633else 16634 cat >conftest.$ac_ext <<_ACEOF 16635/* confdefs.h. */ 16636_ACEOF 16637cat confdefs.h >>conftest.$ac_ext 16638cat >>conftest.$ac_ext <<_ACEOF 16639/* end confdefs.h. */ 16640$ac_includes_default 16641typedef pid_t ac__type_new_; 16642int 16643main () 16644{ 16645if ((ac__type_new_ *) 0) 16646 return 0; 16647if (sizeof (ac__type_new_)) 16648 return 0; 16649 ; 16650 return 0; 16651} 16652_ACEOF 16653rm -f conftest.$ac_objext 16654if { (ac_try="$ac_compile" 16655case "(($ac_try" in 16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16657 *) ac_try_echo=$ac_try;; 16658esac 16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16660 (eval "$ac_compile") 2>conftest.er1 16661 ac_status=$? 16662 grep -v '^ *+' conftest.er1 >conftest.err 16663 rm -f conftest.er1 16664 cat conftest.err >&5 16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16666 (exit $ac_status); } && 16667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16668 { (case "(($ac_try" in 16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16670 *) ac_try_echo=$ac_try;; 16671esac 16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16673 (eval "$ac_try") 2>&5 16674 ac_status=$? 16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16676 (exit $ac_status); }; } && 16677 { ac_try='test -s conftest.$ac_objext' 16678 { (case "(($ac_try" in 16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16680 *) ac_try_echo=$ac_try;; 16681esac 16682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16683 (eval "$ac_try") 2>&5 16684 ac_status=$? 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16686 (exit $ac_status); }; }; then 16687 ac_cv_type_pid_t=yes 16688else 16689 echo "$as_me: failed program was:" >&5 16690sed 's/^/| /' conftest.$ac_ext >&5 16691 16692 ac_cv_type_pid_t=no 16693fi 16694 16695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16696fi 16697{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16698echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16699if test $ac_cv_type_pid_t = yes; then 16700 : 16701else 16702 16703cat >>confdefs.h <<_ACEOF 16704#define pid_t int 16705_ACEOF 16706 16707fi 16708 16709{ echo "$as_me:$LINENO: checking for size_t" >&5 16710echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16711if test "${ac_cv_type_size_t+set}" = set; then 16712 echo $ECHO_N "(cached) $ECHO_C" >&6 16713else 16714 cat >conftest.$ac_ext <<_ACEOF 16715/* confdefs.h. */ 16716_ACEOF 16717cat confdefs.h >>conftest.$ac_ext 16718cat >>conftest.$ac_ext <<_ACEOF 16719/* end confdefs.h. */ 16720$ac_includes_default 16721typedef size_t ac__type_new_; 16722int 16723main () 16724{ 16725if ((ac__type_new_ *) 0) 16726 return 0; 16727if (sizeof (ac__type_new_)) 16728 return 0; 16729 ; 16730 return 0; 16731} 16732_ACEOF 16733rm -f conftest.$ac_objext 16734if { (ac_try="$ac_compile" 16735case "(($ac_try" in 16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16737 *) ac_try_echo=$ac_try;; 16738esac 16739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16740 (eval "$ac_compile") 2>conftest.er1 16741 ac_status=$? 16742 grep -v '^ *+' conftest.er1 >conftest.err 16743 rm -f conftest.er1 16744 cat conftest.err >&5 16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16746 (exit $ac_status); } && 16747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16748 { (case "(($ac_try" in 16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16750 *) ac_try_echo=$ac_try;; 16751esac 16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16753 (eval "$ac_try") 2>&5 16754 ac_status=$? 16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16756 (exit $ac_status); }; } && 16757 { ac_try='test -s conftest.$ac_objext' 16758 { (case "(($ac_try" in 16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16760 *) ac_try_echo=$ac_try;; 16761esac 16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16763 (eval "$ac_try") 2>&5 16764 ac_status=$? 16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16766 (exit $ac_status); }; }; then 16767 ac_cv_type_size_t=yes 16768else 16769 echo "$as_me: failed program was:" >&5 16770sed 's/^/| /' conftest.$ac_ext >&5 16771 16772 ac_cv_type_size_t=no 16773fi 16774 16775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16776fi 16777{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16778echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16779if test $ac_cv_type_size_t = yes; then 16780 : 16781else 16782 16783cat >>confdefs.h <<_ACEOF 16784#define size_t unsigned int 16785_ACEOF 16786 16787fi 16788 16789 16790cat >>confdefs.h <<_ACEOF 16791#define RETSIGTYPE void 16792_ACEOF 16793 16794{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16795echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16796if test "${ac_cv_struct_tm+set}" = set; then 16797 echo $ECHO_N "(cached) $ECHO_C" >&6 16798else 16799 cat >conftest.$ac_ext <<_ACEOF 16800/* confdefs.h. */ 16801_ACEOF 16802cat confdefs.h >>conftest.$ac_ext 16803cat >>conftest.$ac_ext <<_ACEOF 16804/* end confdefs.h. */ 16805#include <sys/types.h> 16806#include <time.h> 16807 16808int 16809main () 16810{ 16811struct tm *tp; tp->tm_sec; 16812 ; 16813 return 0; 16814} 16815_ACEOF 16816rm -f conftest.$ac_objext 16817if { (ac_try="$ac_compile" 16818case "(($ac_try" in 16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16820 *) ac_try_echo=$ac_try;; 16821esac 16822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16823 (eval "$ac_compile") 2>conftest.er1 16824 ac_status=$? 16825 grep -v '^ *+' conftest.er1 >conftest.err 16826 rm -f conftest.er1 16827 cat conftest.err >&5 16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16829 (exit $ac_status); } && 16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16831 { (case "(($ac_try" in 16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16833 *) ac_try_echo=$ac_try;; 16834esac 16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16836 (eval "$ac_try") 2>&5 16837 ac_status=$? 16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16839 (exit $ac_status); }; } && 16840 { ac_try='test -s conftest.$ac_objext' 16841 { (case "(($ac_try" in 16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16843 *) ac_try_echo=$ac_try;; 16844esac 16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16846 (eval "$ac_try") 2>&5 16847 ac_status=$? 16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16849 (exit $ac_status); }; }; then 16850 ac_cv_struct_tm=time.h 16851else 16852 echo "$as_me: failed program was:" >&5 16853sed 's/^/| /' conftest.$ac_ext >&5 16854 16855 ac_cv_struct_tm=sys/time.h 16856fi 16857 16858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16859fi 16860{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16861echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16862if test $ac_cv_struct_tm = sys/time.h; then 16863 16864cat >>confdefs.h <<\_ACEOF 16865#define TM_IN_SYS_TIME 1 16866_ACEOF 16867 16868fi 16869 16870{ echo "$as_me:$LINENO: checking for int64_t" >&5 16871echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16872if test "${ac_cv_type_int64_t+set}" = set; then 16873 echo $ECHO_N "(cached) $ECHO_C" >&6 16874else 16875 cat >conftest.$ac_ext <<_ACEOF 16876/* confdefs.h. */ 16877_ACEOF 16878cat confdefs.h >>conftest.$ac_ext 16879cat >>conftest.$ac_ext <<_ACEOF 16880/* end confdefs.h. */ 16881$ac_includes_default 16882typedef int64_t ac__type_new_; 16883int 16884main () 16885{ 16886if ((ac__type_new_ *) 0) 16887 return 0; 16888if (sizeof (ac__type_new_)) 16889 return 0; 16890 ; 16891 return 0; 16892} 16893_ACEOF 16894rm -f conftest.$ac_objext 16895if { (ac_try="$ac_compile" 16896case "(($ac_try" in 16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16898 *) ac_try_echo=$ac_try;; 16899esac 16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16901 (eval "$ac_compile") 2>conftest.er1 16902 ac_status=$? 16903 grep -v '^ *+' conftest.er1 >conftest.err 16904 rm -f conftest.er1 16905 cat conftest.err >&5 16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16907 (exit $ac_status); } && 16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16909 { (case "(($ac_try" in 16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16911 *) ac_try_echo=$ac_try;; 16912esac 16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16914 (eval "$ac_try") 2>&5 16915 ac_status=$? 16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16917 (exit $ac_status); }; } && 16918 { ac_try='test -s conftest.$ac_objext' 16919 { (case "(($ac_try" in 16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16921 *) ac_try_echo=$ac_try;; 16922esac 16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16924 (eval "$ac_try") 2>&5 16925 ac_status=$? 16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16927 (exit $ac_status); }; }; then 16928 ac_cv_type_int64_t=yes 16929else 16930 echo "$as_me: failed program was:" >&5 16931sed 's/^/| /' conftest.$ac_ext >&5 16932 16933 ac_cv_type_int64_t=no 16934fi 16935 16936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16937fi 16938{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16939echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16940if test $ac_cv_type_int64_t = yes; then 16941 16942cat >>confdefs.h <<_ACEOF 16943#define HAVE_INT64_T 1 16944_ACEOF 16945 16946 16947else 16948 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16949echo "$as_me: error: Type int64_t required but not found" >&2;} 16950 { (exit 1); exit 1; }; } 16951fi 16952 16953{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16954echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16955if test "${ac_cv_type_uint64_t+set}" = set; then 16956 echo $ECHO_N "(cached) $ECHO_C" >&6 16957else 16958 cat >conftest.$ac_ext <<_ACEOF 16959/* confdefs.h. */ 16960_ACEOF 16961cat confdefs.h >>conftest.$ac_ext 16962cat >>conftest.$ac_ext <<_ACEOF 16963/* end confdefs.h. */ 16964$ac_includes_default 16965typedef uint64_t ac__type_new_; 16966int 16967main () 16968{ 16969if ((ac__type_new_ *) 0) 16970 return 0; 16971if (sizeof (ac__type_new_)) 16972 return 0; 16973 ; 16974 return 0; 16975} 16976_ACEOF 16977rm -f conftest.$ac_objext 16978if { (ac_try="$ac_compile" 16979case "(($ac_try" in 16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16981 *) ac_try_echo=$ac_try;; 16982esac 16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16984 (eval "$ac_compile") 2>conftest.er1 16985 ac_status=$? 16986 grep -v '^ *+' conftest.er1 >conftest.err 16987 rm -f conftest.er1 16988 cat conftest.err >&5 16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16990 (exit $ac_status); } && 16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16992 { (case "(($ac_try" in 16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16994 *) ac_try_echo=$ac_try;; 16995esac 16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16997 (eval "$ac_try") 2>&5 16998 ac_status=$? 16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17000 (exit $ac_status); }; } && 17001 { ac_try='test -s conftest.$ac_objext' 17002 { (case "(($ac_try" in 17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17004 *) ac_try_echo=$ac_try;; 17005esac 17006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17007 (eval "$ac_try") 2>&5 17008 ac_status=$? 17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17010 (exit $ac_status); }; }; then 17011 ac_cv_type_uint64_t=yes 17012else 17013 echo "$as_me: failed program was:" >&5 17014sed 's/^/| /' conftest.$ac_ext >&5 17015 17016 ac_cv_type_uint64_t=no 17017fi 17018 17019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17020fi 17021{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17022echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17023if test $ac_cv_type_uint64_t = yes; then 17024 17025cat >>confdefs.h <<_ACEOF 17026#define HAVE_UINT64_T 1 17027_ACEOF 17028 17029 17030else 17031 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17032echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17033if test "${ac_cv_type_u_int64_t+set}" = set; then 17034 echo $ECHO_N "(cached) $ECHO_C" >&6 17035else 17036 cat >conftest.$ac_ext <<_ACEOF 17037/* confdefs.h. */ 17038_ACEOF 17039cat confdefs.h >>conftest.$ac_ext 17040cat >>conftest.$ac_ext <<_ACEOF 17041/* end confdefs.h. */ 17042$ac_includes_default 17043typedef u_int64_t ac__type_new_; 17044int 17045main () 17046{ 17047if ((ac__type_new_ *) 0) 17048 return 0; 17049if (sizeof (ac__type_new_)) 17050 return 0; 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055rm -f conftest.$ac_objext 17056if { (ac_try="$ac_compile" 17057case "(($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_compile") 2>conftest.er1 17063 ac_status=$? 17064 grep -v '^ *+' conftest.er1 >conftest.err 17065 rm -f conftest.er1 17066 cat conftest.err >&5 17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17068 (exit $ac_status); } && 17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17070 { (case "(($ac_try" in 17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17072 *) ac_try_echo=$ac_try;; 17073esac 17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17075 (eval "$ac_try") 2>&5 17076 ac_status=$? 17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17078 (exit $ac_status); }; } && 17079 { ac_try='test -s conftest.$ac_objext' 17080 { (case "(($ac_try" in 17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17082 *) ac_try_echo=$ac_try;; 17083esac 17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17085 (eval "$ac_try") 2>&5 17086 ac_status=$? 17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17088 (exit $ac_status); }; }; then 17089 ac_cv_type_u_int64_t=yes 17090else 17091 echo "$as_me: failed program was:" >&5 17092sed 's/^/| /' conftest.$ac_ext >&5 17093 17094 ac_cv_type_u_int64_t=no 17095fi 17096 17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17098fi 17099{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17100echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17101if test $ac_cv_type_u_int64_t = yes; then 17102 17103cat >>confdefs.h <<_ACEOF 17104#define HAVE_U_INT64_T 1 17105_ACEOF 17106 17107 17108else 17109 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17110echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17111 { (exit 1); exit 1; }; } 17112fi 17113 17114fi 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17126do 17127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17128{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17131 echo $ECHO_N "(cached) $ECHO_C" >&6 17132else 17133 cat >conftest.$ac_ext <<_ACEOF 17134/* confdefs.h. */ 17135_ACEOF 17136cat confdefs.h >>conftest.$ac_ext 17137cat >>conftest.$ac_ext <<_ACEOF 17138/* end confdefs.h. */ 17139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17141#define $ac_func innocuous_$ac_func 17142 17143/* System header to define __stub macros and hopefully few prototypes, 17144 which can conflict with char $ac_func (); below. 17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17146 <limits.h> exists even on freestanding compilers. */ 17147 17148#ifdef __STDC__ 17149# include <limits.h> 17150#else 17151# include <assert.h> 17152#endif 17153 17154#undef $ac_func 17155 17156/* Override any GCC internal prototype to avoid an error. 17157 Use char because int might match the return type of a GCC 17158 builtin and then its argument prototype would still apply. */ 17159#ifdef __cplusplus 17160extern "C" 17161#endif 17162char $ac_func (); 17163/* The GNU C library defines this for functions which it implements 17164 to always fail with ENOSYS. Some functions are actually named 17165 something starting with __ and the normal name is an alias. */ 17166#if defined __stub_$ac_func || defined __stub___$ac_func 17167choke me 17168#endif 17169 17170int 17171main () 17172{ 17173return $ac_func (); 17174 ; 17175 return 0; 17176} 17177_ACEOF 17178rm -f conftest.$ac_objext conftest$ac_exeext 17179if { (ac_try="$ac_link" 17180case "(($ac_try" in 17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17182 *) ac_try_echo=$ac_try;; 17183esac 17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17185 (eval "$ac_link") 2>conftest.er1 17186 ac_status=$? 17187 grep -v '^ *+' conftest.er1 >conftest.err 17188 rm -f conftest.er1 17189 cat conftest.err >&5 17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17191 (exit $ac_status); } && 17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17193 { (case "(($ac_try" in 17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17195 *) ac_try_echo=$ac_try;; 17196esac 17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17198 (eval "$ac_try") 2>&5 17199 ac_status=$? 17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17201 (exit $ac_status); }; } && 17202 { ac_try='test -s conftest$ac_exeext' 17203 { (case "(($ac_try" in 17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17205 *) ac_try_echo=$ac_try;; 17206esac 17207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17208 (eval "$ac_try") 2>&5 17209 ac_status=$? 17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17211 (exit $ac_status); }; }; then 17212 eval "$as_ac_var=yes" 17213else 17214 echo "$as_me: failed program was:" >&5 17215sed 's/^/| /' conftest.$ac_ext >&5 17216 17217 eval "$as_ac_var=no" 17218fi 17219 17220rm -f core conftest.err conftest.$ac_objext \ 17221 conftest$ac_exeext conftest.$ac_ext 17222fi 17223ac_res=`eval echo '${'$as_ac_var'}'` 17224 { echo "$as_me:$LINENO: result: $ac_res" >&5 17225echo "${ECHO_T}$ac_res" >&6; } 17226if test `eval echo '${'$as_ac_var'}'` = yes; then 17227 cat >>confdefs.h <<_ACEOF 17228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17229_ACEOF 17230 17231fi 17232done 17233 17234 17235 17236 17237 17238for ac_func in powf fmodf strtof round 17239do 17240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17241{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17244 echo $ECHO_N "(cached) $ECHO_C" >&6 17245else 17246 cat >conftest.$ac_ext <<_ACEOF 17247/* confdefs.h. */ 17248_ACEOF 17249cat confdefs.h >>conftest.$ac_ext 17250cat >>conftest.$ac_ext <<_ACEOF 17251/* end confdefs.h. */ 17252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17254#define $ac_func innocuous_$ac_func 17255 17256/* System header to define __stub macros and hopefully few prototypes, 17257 which can conflict with char $ac_func (); below. 17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17259 <limits.h> exists even on freestanding compilers. */ 17260 17261#ifdef __STDC__ 17262# include <limits.h> 17263#else 17264# include <assert.h> 17265#endif 17266 17267#undef $ac_func 17268 17269/* Override any GCC internal prototype to avoid an error. 17270 Use char because int might match the return type of a GCC 17271 builtin and then its argument prototype would still apply. */ 17272#ifdef __cplusplus 17273extern "C" 17274#endif 17275char $ac_func (); 17276/* The GNU C library defines this for functions which it implements 17277 to always fail with ENOSYS. Some functions are actually named 17278 something starting with __ and the normal name is an alias. */ 17279#if defined __stub_$ac_func || defined __stub___$ac_func 17280choke me 17281#endif 17282 17283int 17284main () 17285{ 17286return $ac_func (); 17287 ; 17288 return 0; 17289} 17290_ACEOF 17291rm -f conftest.$ac_objext conftest$ac_exeext 17292if { (ac_try="$ac_link" 17293case "(($ac_try" in 17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17295 *) ac_try_echo=$ac_try;; 17296esac 17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17298 (eval "$ac_link") 2>conftest.er1 17299 ac_status=$? 17300 grep -v '^ *+' conftest.er1 >conftest.err 17301 rm -f conftest.er1 17302 cat conftest.err >&5 17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17304 (exit $ac_status); } && 17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17306 { (case "(($ac_try" in 17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17308 *) ac_try_echo=$ac_try;; 17309esac 17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17311 (eval "$ac_try") 2>&5 17312 ac_status=$? 17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17314 (exit $ac_status); }; } && 17315 { ac_try='test -s conftest$ac_exeext' 17316 { (case "(($ac_try" in 17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17318 *) ac_try_echo=$ac_try;; 17319esac 17320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17321 (eval "$ac_try") 2>&5 17322 ac_status=$? 17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17324 (exit $ac_status); }; }; then 17325 eval "$as_ac_var=yes" 17326else 17327 echo "$as_me: failed program was:" >&5 17328sed 's/^/| /' conftest.$ac_ext >&5 17329 17330 eval "$as_ac_var=no" 17331fi 17332 17333rm -f core conftest.err conftest.$ac_objext \ 17334 conftest$ac_exeext conftest.$ac_ext 17335fi 17336ac_res=`eval echo '${'$as_ac_var'}'` 17337 { echo "$as_me:$LINENO: result: $ac_res" >&5 17338echo "${ECHO_T}$ac_res" >&6; } 17339if test `eval echo '${'$as_ac_var'}'` = yes; then 17340 cat >>confdefs.h <<_ACEOF 17341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17342_ACEOF 17343 17344fi 17345done 17346 17347 17348 17349 17350 17351 17352for ac_func in log log2 log10 exp exp2 17353do 17354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17355{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17357if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17358 echo $ECHO_N "(cached) $ECHO_C" >&6 17359else 17360 cat >conftest.$ac_ext <<_ACEOF 17361/* confdefs.h. */ 17362_ACEOF 17363cat confdefs.h >>conftest.$ac_ext 17364cat >>conftest.$ac_ext <<_ACEOF 17365/* end confdefs.h. */ 17366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17367 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17368#define $ac_func innocuous_$ac_func 17369 17370/* System header to define __stub macros and hopefully few prototypes, 17371 which can conflict with char $ac_func (); below. 17372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17373 <limits.h> exists even on freestanding compilers. */ 17374 17375#ifdef __STDC__ 17376# include <limits.h> 17377#else 17378# include <assert.h> 17379#endif 17380 17381#undef $ac_func 17382 17383/* Override any GCC internal prototype to avoid an error. 17384 Use char because int might match the return type of a GCC 17385 builtin and then its argument prototype would still apply. */ 17386#ifdef __cplusplus 17387extern "C" 17388#endif 17389char $ac_func (); 17390/* The GNU C library defines this for functions which it implements 17391 to always fail with ENOSYS. Some functions are actually named 17392 something starting with __ and the normal name is an alias. */ 17393#if defined __stub_$ac_func || defined __stub___$ac_func 17394choke me 17395#endif 17396 17397int 17398main () 17399{ 17400return $ac_func (); 17401 ; 17402 return 0; 17403} 17404_ACEOF 17405rm -f conftest.$ac_objext conftest$ac_exeext 17406if { (ac_try="$ac_link" 17407case "(($ac_try" in 17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17409 *) ac_try_echo=$ac_try;; 17410esac 17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17412 (eval "$ac_link") 2>conftest.er1 17413 ac_status=$? 17414 grep -v '^ *+' conftest.er1 >conftest.err 17415 rm -f conftest.er1 17416 cat conftest.err >&5 17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17418 (exit $ac_status); } && 17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17420 { (case "(($ac_try" in 17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17422 *) ac_try_echo=$ac_try;; 17423esac 17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17425 (eval "$ac_try") 2>&5 17426 ac_status=$? 17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17428 (exit $ac_status); }; } && 17429 { ac_try='test -s conftest$ac_exeext' 17430 { (case "(($ac_try" in 17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17432 *) ac_try_echo=$ac_try;; 17433esac 17434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17435 (eval "$ac_try") 2>&5 17436 ac_status=$? 17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17438 (exit $ac_status); }; }; then 17439 eval "$as_ac_var=yes" 17440else 17441 echo "$as_me: failed program was:" >&5 17442sed 's/^/| /' conftest.$ac_ext >&5 17443 17444 eval "$as_ac_var=no" 17445fi 17446 17447rm -f core conftest.err conftest.$ac_objext \ 17448 conftest$ac_exeext conftest.$ac_ext 17449fi 17450ac_res=`eval echo '${'$as_ac_var'}'` 17451 { echo "$as_me:$LINENO: result: $ac_res" >&5 17452echo "${ECHO_T}$ac_res" >&6; } 17453if test `eval echo '${'$as_ac_var'}'` = yes; then 17454 cat >>confdefs.h <<_ACEOF 17455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17456_ACEOF 17457 17458fi 17459done 17460 17461 17462 17463 17464 17465 17466for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17467do 17468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17469{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17471if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17472 echo $ECHO_N "(cached) $ECHO_C" >&6 17473else 17474 cat >conftest.$ac_ext <<_ACEOF 17475/* confdefs.h. */ 17476_ACEOF 17477cat confdefs.h >>conftest.$ac_ext 17478cat >>conftest.$ac_ext <<_ACEOF 17479/* end confdefs.h. */ 17480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17482#define $ac_func innocuous_$ac_func 17483 17484/* System header to define __stub macros and hopefully few prototypes, 17485 which can conflict with char $ac_func (); below. 17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17487 <limits.h> exists even on freestanding compilers. */ 17488 17489#ifdef __STDC__ 17490# include <limits.h> 17491#else 17492# include <assert.h> 17493#endif 17494 17495#undef $ac_func 17496 17497/* Override any GCC internal prototype to avoid an error. 17498 Use char because int might match the return type of a GCC 17499 builtin and then its argument prototype would still apply. */ 17500#ifdef __cplusplus 17501extern "C" 17502#endif 17503char $ac_func (); 17504/* The GNU C library defines this for functions which it implements 17505 to always fail with ENOSYS. Some functions are actually named 17506 something starting with __ and the normal name is an alias. */ 17507#if defined __stub_$ac_func || defined __stub___$ac_func 17508choke me 17509#endif 17510 17511int 17512main () 17513{ 17514return $ac_func (); 17515 ; 17516 return 0; 17517} 17518_ACEOF 17519rm -f conftest.$ac_objext conftest$ac_exeext 17520if { (ac_try="$ac_link" 17521case "(($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_link") 2>conftest.er1 17527 ac_status=$? 17528 grep -v '^ *+' conftest.er1 >conftest.err 17529 rm -f conftest.er1 17530 cat conftest.err >&5 17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17532 (exit $ac_status); } && 17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17534 { (case "(($ac_try" in 17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17536 *) ac_try_echo=$ac_try;; 17537esac 17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17539 (eval "$ac_try") 2>&5 17540 ac_status=$? 17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17542 (exit $ac_status); }; } && 17543 { ac_try='test -s conftest$ac_exeext' 17544 { (case "(($ac_try" in 17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17546 *) ac_try_echo=$ac_try;; 17547esac 17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17549 (eval "$ac_try") 2>&5 17550 ac_status=$? 17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17552 (exit $ac_status); }; }; then 17553 eval "$as_ac_var=yes" 17554else 17555 echo "$as_me: failed program was:" >&5 17556sed 's/^/| /' conftest.$ac_ext >&5 17557 17558 eval "$as_ac_var=no" 17559fi 17560 17561rm -f core conftest.err conftest.$ac_objext \ 17562 conftest$ac_exeext conftest.$ac_ext 17563fi 17564ac_res=`eval echo '${'$as_ac_var'}'` 17565 { echo "$as_me:$LINENO: result: $ac_res" >&5 17566echo "${ECHO_T}$ac_res" >&6; } 17567if test `eval echo '${'$as_ac_var'}'` = yes; then 17568 cat >>confdefs.h <<_ACEOF 17569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17570_ACEOF 17571 17572fi 17573done 17574 17575 17576 17577 17578for ac_func in isatty mkdtemp mkstemp 17579do 17580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17581{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17584 echo $ECHO_N "(cached) $ECHO_C" >&6 17585else 17586 cat >conftest.$ac_ext <<_ACEOF 17587/* confdefs.h. */ 17588_ACEOF 17589cat confdefs.h >>conftest.$ac_ext 17590cat >>conftest.$ac_ext <<_ACEOF 17591/* end confdefs.h. */ 17592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17594#define $ac_func innocuous_$ac_func 17595 17596/* System header to define __stub macros and hopefully few prototypes, 17597 which can conflict with char $ac_func (); below. 17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17599 <limits.h> exists even on freestanding compilers. */ 17600 17601#ifdef __STDC__ 17602# include <limits.h> 17603#else 17604# include <assert.h> 17605#endif 17606 17607#undef $ac_func 17608 17609/* Override any GCC internal prototype to avoid an error. 17610 Use char because int might match the return type of a GCC 17611 builtin and then its argument prototype would still apply. */ 17612#ifdef __cplusplus 17613extern "C" 17614#endif 17615char $ac_func (); 17616/* The GNU C library defines this for functions which it implements 17617 to always fail with ENOSYS. Some functions are actually named 17618 something starting with __ and the normal name is an alias. */ 17619#if defined __stub_$ac_func || defined __stub___$ac_func 17620choke me 17621#endif 17622 17623int 17624main () 17625{ 17626return $ac_func (); 17627 ; 17628 return 0; 17629} 17630_ACEOF 17631rm -f conftest.$ac_objext conftest$ac_exeext 17632if { (ac_try="$ac_link" 17633case "(($ac_try" in 17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17635 *) ac_try_echo=$ac_try;; 17636esac 17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17638 (eval "$ac_link") 2>conftest.er1 17639 ac_status=$? 17640 grep -v '^ *+' conftest.er1 >conftest.err 17641 rm -f conftest.er1 17642 cat conftest.err >&5 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); } && 17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17646 { (case "(($ac_try" in 17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17648 *) ac_try_echo=$ac_try;; 17649esac 17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17651 (eval "$ac_try") 2>&5 17652 ac_status=$? 17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17654 (exit $ac_status); }; } && 17655 { ac_try='test -s conftest$ac_exeext' 17656 { (case "(($ac_try" in 17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17658 *) ac_try_echo=$ac_try;; 17659esac 17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17661 (eval "$ac_try") 2>&5 17662 ac_status=$? 17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17664 (exit $ac_status); }; }; then 17665 eval "$as_ac_var=yes" 17666else 17667 echo "$as_me: failed program was:" >&5 17668sed 's/^/| /' conftest.$ac_ext >&5 17669 17670 eval "$as_ac_var=no" 17671fi 17672 17673rm -f core conftest.err conftest.$ac_objext \ 17674 conftest$ac_exeext conftest.$ac_ext 17675fi 17676ac_res=`eval echo '${'$as_ac_var'}'` 17677 { echo "$as_me:$LINENO: result: $ac_res" >&5 17678echo "${ECHO_T}$ac_res" >&6; } 17679if test `eval echo '${'$as_ac_var'}'` = yes; then 17680 cat >>confdefs.h <<_ACEOF 17681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17682_ACEOF 17683 17684fi 17685done 17686 17687 17688 17689 17690 17691 17692 17693 17694for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17695do 17696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17697{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17700 echo $ECHO_N "(cached) $ECHO_C" >&6 17701else 17702 cat >conftest.$ac_ext <<_ACEOF 17703/* confdefs.h. */ 17704_ACEOF 17705cat confdefs.h >>conftest.$ac_ext 17706cat >>conftest.$ac_ext <<_ACEOF 17707/* end confdefs.h. */ 17708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17709 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17710#define $ac_func innocuous_$ac_func 17711 17712/* System header to define __stub macros and hopefully few prototypes, 17713 which can conflict with char $ac_func (); below. 17714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17715 <limits.h> exists even on freestanding compilers. */ 17716 17717#ifdef __STDC__ 17718# include <limits.h> 17719#else 17720# include <assert.h> 17721#endif 17722 17723#undef $ac_func 17724 17725/* Override any GCC internal prototype to avoid an error. 17726 Use char because int might match the return type of a GCC 17727 builtin and then its argument prototype would still apply. */ 17728#ifdef __cplusplus 17729extern "C" 17730#endif 17731char $ac_func (); 17732/* The GNU C library defines this for functions which it implements 17733 to always fail with ENOSYS. Some functions are actually named 17734 something starting with __ and the normal name is an alias. */ 17735#if defined __stub_$ac_func || defined __stub___$ac_func 17736choke me 17737#endif 17738 17739int 17740main () 17741{ 17742return $ac_func (); 17743 ; 17744 return 0; 17745} 17746_ACEOF 17747rm -f conftest.$ac_objext conftest$ac_exeext 17748if { (ac_try="$ac_link" 17749case "(($ac_try" in 17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17751 *) ac_try_echo=$ac_try;; 17752esac 17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17754 (eval "$ac_link") 2>conftest.er1 17755 ac_status=$? 17756 grep -v '^ *+' conftest.er1 >conftest.err 17757 rm -f conftest.er1 17758 cat conftest.err >&5 17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17760 (exit $ac_status); } && 17761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17762 { (case "(($ac_try" in 17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17764 *) ac_try_echo=$ac_try;; 17765esac 17766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17767 (eval "$ac_try") 2>&5 17768 ac_status=$? 17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17770 (exit $ac_status); }; } && 17771 { ac_try='test -s conftest$ac_exeext' 17772 { (case "(($ac_try" in 17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17774 *) ac_try_echo=$ac_try;; 17775esac 17776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17777 (eval "$ac_try") 2>&5 17778 ac_status=$? 17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17780 (exit $ac_status); }; }; then 17781 eval "$as_ac_var=yes" 17782else 17783 echo "$as_me: failed program was:" >&5 17784sed 's/^/| /' conftest.$ac_ext >&5 17785 17786 eval "$as_ac_var=no" 17787fi 17788 17789rm -f core conftest.err conftest.$ac_objext \ 17790 conftest$ac_exeext conftest.$ac_ext 17791fi 17792ac_res=`eval echo '${'$as_ac_var'}'` 17793 { echo "$as_me:$LINENO: result: $ac_res" >&5 17794echo "${ECHO_T}$ac_res" >&6; } 17795if test `eval echo '${'$as_ac_var'}'` = yes; then 17796 cat >>confdefs.h <<_ACEOF 17797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17798_ACEOF 17799 17800fi 17801done 17802 17803 17804 17805 17806 17807for ac_func in strerror strerror_r setenv arc4random 17808do 17809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17810{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17813 echo $ECHO_N "(cached) $ECHO_C" >&6 17814else 17815 cat >conftest.$ac_ext <<_ACEOF 17816/* confdefs.h. */ 17817_ACEOF 17818cat confdefs.h >>conftest.$ac_ext 17819cat >>conftest.$ac_ext <<_ACEOF 17820/* end confdefs.h. */ 17821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17823#define $ac_func innocuous_$ac_func 17824 17825/* System header to define __stub macros and hopefully few prototypes, 17826 which can conflict with char $ac_func (); below. 17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17828 <limits.h> exists even on freestanding compilers. */ 17829 17830#ifdef __STDC__ 17831# include <limits.h> 17832#else 17833# include <assert.h> 17834#endif 17835 17836#undef $ac_func 17837 17838/* Override any GCC internal prototype to avoid an error. 17839 Use char because int might match the return type of a GCC 17840 builtin and then its argument prototype would still apply. */ 17841#ifdef __cplusplus 17842extern "C" 17843#endif 17844char $ac_func (); 17845/* The GNU C library defines this for functions which it implements 17846 to always fail with ENOSYS. Some functions are actually named 17847 something starting with __ and the normal name is an alias. */ 17848#if defined __stub_$ac_func || defined __stub___$ac_func 17849choke me 17850#endif 17851 17852int 17853main () 17854{ 17855return $ac_func (); 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860rm -f conftest.$ac_objext conftest$ac_exeext 17861if { (ac_try="$ac_link" 17862case "(($ac_try" in 17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17864 *) ac_try_echo=$ac_try;; 17865esac 17866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17867 (eval "$ac_link") 2>conftest.er1 17868 ac_status=$? 17869 grep -v '^ *+' conftest.er1 >conftest.err 17870 rm -f conftest.er1 17871 cat conftest.err >&5 17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17873 (exit $ac_status); } && 17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17875 { (case "(($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_try") 2>&5 17881 ac_status=$? 17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17883 (exit $ac_status); }; } && 17884 { ac_try='test -s conftest$ac_exeext' 17885 { (case "(($ac_try" in 17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17887 *) ac_try_echo=$ac_try;; 17888esac 17889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17890 (eval "$ac_try") 2>&5 17891 ac_status=$? 17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17893 (exit $ac_status); }; }; then 17894 eval "$as_ac_var=yes" 17895else 17896 echo "$as_me: failed program was:" >&5 17897sed 's/^/| /' conftest.$ac_ext >&5 17898 17899 eval "$as_ac_var=no" 17900fi 17901 17902rm -f core conftest.err conftest.$ac_objext \ 17903 conftest$ac_exeext conftest.$ac_ext 17904fi 17905ac_res=`eval echo '${'$as_ac_var'}'` 17906 { echo "$as_me:$LINENO: result: $ac_res" >&5 17907echo "${ECHO_T}$ac_res" >&6; } 17908if test `eval echo '${'$as_ac_var'}'` = yes; then 17909 cat >>confdefs.h <<_ACEOF 17910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17911_ACEOF 17912 17913fi 17914done 17915 17916 17917 17918 17919 17920for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17921do 17922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17923{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17926 echo $ECHO_N "(cached) $ECHO_C" >&6 17927else 17928 cat >conftest.$ac_ext <<_ACEOF 17929/* confdefs.h. */ 17930_ACEOF 17931cat confdefs.h >>conftest.$ac_ext 17932cat >>conftest.$ac_ext <<_ACEOF 17933/* end confdefs.h. */ 17934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17936#define $ac_func innocuous_$ac_func 17937 17938/* System header to define __stub macros and hopefully few prototypes, 17939 which can conflict with char $ac_func (); below. 17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17941 <limits.h> exists even on freestanding compilers. */ 17942 17943#ifdef __STDC__ 17944# include <limits.h> 17945#else 17946# include <assert.h> 17947#endif 17948 17949#undef $ac_func 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 $ac_func (); 17958/* The GNU C library defines this for functions which it implements 17959 to always fail with ENOSYS. Some functions are actually named 17960 something starting with __ and the normal name is an alias. */ 17961#if defined __stub_$ac_func || defined __stub___$ac_func 17962choke me 17963#endif 17964 17965int 17966main () 17967{ 17968return $ac_func (); 17969 ; 17970 return 0; 17971} 17972_ACEOF 17973rm -f conftest.$ac_objext conftest$ac_exeext 17974if { (ac_try="$ac_link" 17975case "(($ac_try" in 17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17977 *) ac_try_echo=$ac_try;; 17978esac 17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17980 (eval "$ac_link") 2>conftest.er1 17981 ac_status=$? 17982 grep -v '^ *+' conftest.er1 >conftest.err 17983 rm -f conftest.er1 17984 cat conftest.err >&5 17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17986 (exit $ac_status); } && 17987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17988 { (case "(($ac_try" in 17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17990 *) ac_try_echo=$ac_try;; 17991esac 17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17993 (eval "$ac_try") 2>&5 17994 ac_status=$? 17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17996 (exit $ac_status); }; } && 17997 { ac_try='test -s conftest$ac_exeext' 17998 { (case "(($ac_try" in 17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18000 *) ac_try_echo=$ac_try;; 18001esac 18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18003 (eval "$ac_try") 2>&5 18004 ac_status=$? 18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18006 (exit $ac_status); }; }; then 18007 eval "$as_ac_var=yes" 18008else 18009 echo "$as_me: failed program was:" >&5 18010sed 's/^/| /' conftest.$ac_ext >&5 18011 18012 eval "$as_ac_var=no" 18013fi 18014 18015rm -f core conftest.err conftest.$ac_objext \ 18016 conftest$ac_exeext conftest.$ac_ext 18017fi 18018ac_res=`eval echo '${'$as_ac_var'}'` 18019 { echo "$as_me:$LINENO: result: $ac_res" >&5 18020echo "${ECHO_T}$ac_res" >&6; } 18021if test `eval echo '${'$as_ac_var'}'` = yes; then 18022 cat >>confdefs.h <<_ACEOF 18023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18024_ACEOF 18025 18026fi 18027done 18028 18029 18030 18031 18032 18033 18034for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18035do 18036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18037{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18040 echo $ECHO_N "(cached) $ECHO_C" >&6 18041else 18042 cat >conftest.$ac_ext <<_ACEOF 18043/* confdefs.h. */ 18044_ACEOF 18045cat confdefs.h >>conftest.$ac_ext 18046cat >>conftest.$ac_ext <<_ACEOF 18047/* end confdefs.h. */ 18048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18050#define $ac_func innocuous_$ac_func 18051 18052/* System header to define __stub macros and hopefully few prototypes, 18053 which can conflict with char $ac_func (); below. 18054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18055 <limits.h> exists even on freestanding compilers. */ 18056 18057#ifdef __STDC__ 18058# include <limits.h> 18059#else 18060# include <assert.h> 18061#endif 18062 18063#undef $ac_func 18064 18065/* Override any GCC internal prototype to avoid an error. 18066 Use char because int might match the return type of a GCC 18067 builtin and then its argument prototype would still apply. */ 18068#ifdef __cplusplus 18069extern "C" 18070#endif 18071char $ac_func (); 18072/* The GNU C library defines this for functions which it implements 18073 to always fail with ENOSYS. Some functions are actually named 18074 something starting with __ and the normal name is an alias. */ 18075#if defined __stub_$ac_func || defined __stub___$ac_func 18076choke me 18077#endif 18078 18079int 18080main () 18081{ 18082return $ac_func (); 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087rm -f conftest.$ac_objext conftest$ac_exeext 18088if { (ac_try="$ac_link" 18089case "(($ac_try" in 18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18091 *) ac_try_echo=$ac_try;; 18092esac 18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18094 (eval "$ac_link") 2>conftest.er1 18095 ac_status=$? 18096 grep -v '^ *+' conftest.er1 >conftest.err 18097 rm -f conftest.er1 18098 cat conftest.err >&5 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); } && 18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18102 { (case "(($ac_try" in 18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18104 *) ac_try_echo=$ac_try;; 18105esac 18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18107 (eval "$ac_try") 2>&5 18108 ac_status=$? 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18110 (exit $ac_status); }; } && 18111 { ac_try='test -s conftest$ac_exeext' 18112 { (case "(($ac_try" in 18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18114 *) ac_try_echo=$ac_try;; 18115esac 18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18117 (eval "$ac_try") 2>&5 18118 ac_status=$? 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); }; }; then 18121 eval "$as_ac_var=yes" 18122else 18123 echo "$as_me: failed program was:" >&5 18124sed 's/^/| /' conftest.$ac_ext >&5 18125 18126 eval "$as_ac_var=no" 18127fi 18128 18129rm -f core conftest.err conftest.$ac_objext \ 18130 conftest$ac_exeext conftest.$ac_ext 18131fi 18132ac_res=`eval echo '${'$as_ac_var'}'` 18133 { echo "$as_me:$LINENO: result: $ac_res" >&5 18134echo "${ECHO_T}$ac_res" >&6; } 18135if test `eval echo '${'$as_ac_var'}'` = yes; then 18136 cat >>confdefs.h <<_ACEOF 18137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18138_ACEOF 18139 18140fi 18141done 18142 18143{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18144echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18145if test "${llvm_cv_c_printf_a+set}" = set; then 18146 echo $ECHO_N "(cached) $ECHO_C" >&6 18147else 18148 ac_ext=c 18149ac_cpp='$CPP $CPPFLAGS' 18150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18152ac_compiler_gnu=$ac_cv_c_compiler_gnu 18153 18154 if test "$cross_compiling" = yes; then 18155 llvmac_cv_c_printf_a=no 18156else 18157 cat >conftest.$ac_ext <<_ACEOF 18158 18159 /* confdefs.h. */ 18160_ACEOF 18161cat confdefs.h >>conftest.$ac_ext 18162cat >>conftest.$ac_ext <<_ACEOF 18163/* end confdefs.h. */ 18164 18165#include <stdio.h> 18166#include <stdlib.h> 18167 18168int 18169main () 18170{ 18171 18172volatile double A, B; 18173char Buffer[100]; 18174A = 1; 18175A /= 10.0; 18176sprintf(Buffer, "%a", A); 18177B = atof(Buffer); 18178if (A != B) 18179 return (1); 18180if (A != 0x1.999999999999ap-4) 18181 return (1); 18182return (0); 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187rm -f conftest$ac_exeext 18188if { (ac_try="$ac_link" 18189case "(($ac_try" in 18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18191 *) ac_try_echo=$ac_try;; 18192esac 18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18194 (eval "$ac_link") 2>&5 18195 ac_status=$? 18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18198 { (case "(($ac_try" in 18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18200 *) ac_try_echo=$ac_try;; 18201esac 18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18203 (eval "$ac_try") 2>&5 18204 ac_status=$? 18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18206 (exit $ac_status); }; }; then 18207 llvm_cv_c_printf_a=yes 18208else 18209 echo "$as_me: program exited with status $ac_status" >&5 18210echo "$as_me: failed program was:" >&5 18211sed 's/^/| /' conftest.$ac_ext >&5 18212 18213( exit $ac_status ) 18214llvmac_cv_c_printf_a=no 18215fi 18216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18217fi 18218 18219 18220 ac_ext=c 18221ac_cpp='$CPP $CPPFLAGS' 18222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18224ac_compiler_gnu=$ac_cv_c_compiler_gnu 18225 18226fi 18227{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18228echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18229 if test "$llvm_cv_c_printf_a" = "yes"; then 18230 18231cat >>confdefs.h <<\_ACEOF 18232#define HAVE_PRINTF_A 1 18233_ACEOF 18234 18235 fi 18236 18237 18238 18239 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18240echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18241if test "${ac_cv_func_rand48+set}" = set; then 18242 echo $ECHO_N "(cached) $ECHO_C" >&6 18243else 18244 18245 ac_ext=cpp 18246ac_cpp='$CXXCPP $CPPFLAGS' 18247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18250 18251 cat >conftest.$ac_ext <<_ACEOF 18252/* confdefs.h. */ 18253_ACEOF 18254cat confdefs.h >>conftest.$ac_ext 18255cat >>conftest.$ac_ext <<_ACEOF 18256/* end confdefs.h. */ 18257#include <stdlib.h> 18258int 18259main () 18260{ 18261srand48(0);lrand48();drand48(); 18262 ; 18263 return 0; 18264} 18265_ACEOF 18266rm -f conftest.$ac_objext 18267if { (ac_try="$ac_compile" 18268case "(($ac_try" in 18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18270 *) ac_try_echo=$ac_try;; 18271esac 18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18273 (eval "$ac_compile") 2>conftest.er1 18274 ac_status=$? 18275 grep -v '^ *+' conftest.er1 >conftest.err 18276 rm -f conftest.er1 18277 cat conftest.err >&5 18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18279 (exit $ac_status); } && 18280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18281 { (case "(($ac_try" in 18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18283 *) ac_try_echo=$ac_try;; 18284esac 18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18286 (eval "$ac_try") 2>&5 18287 ac_status=$? 18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18289 (exit $ac_status); }; } && 18290 { ac_try='test -s conftest.$ac_objext' 18291 { (case "(($ac_try" in 18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18293 *) ac_try_echo=$ac_try;; 18294esac 18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18296 (eval "$ac_try") 2>&5 18297 ac_status=$? 18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18299 (exit $ac_status); }; }; then 18300 ac_cv_func_rand48=yes 18301else 18302 echo "$as_me: failed program was:" >&5 18303sed 's/^/| /' conftest.$ac_ext >&5 18304 18305 ac_cv_func_rand48=no 18306fi 18307 18308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18309 ac_ext=c 18310ac_cpp='$CPP $CPPFLAGS' 18311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18313ac_compiler_gnu=$ac_cv_c_compiler_gnu 18314 18315 18316fi 18317{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18318echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18319 18320if test "$ac_cv_func_rand48" = "yes" ; then 18321 18322cat >>confdefs.h <<\_ACEOF 18323#define HAVE_RAND48 1 18324_ACEOF 18325 18326fi 18327 18328 18329{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18330echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18331if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18332 echo $ECHO_N "(cached) $ECHO_C" >&6 18333else 18334 cat >conftest.$ac_ext <<_ACEOF 18335/* confdefs.h. */ 18336_ACEOF 18337cat confdefs.h >>conftest.$ac_ext 18338cat >>conftest.$ac_ext <<_ACEOF 18339/* end confdefs.h. */ 18340$ac_includes_default 18341int 18342main () 18343{ 18344#ifndef strerror_s 18345 char *p = (char *) strerror_s; 18346 return !p; 18347#endif 18348 18349 ; 18350 return 0; 18351} 18352_ACEOF 18353rm -f conftest.$ac_objext 18354if { (ac_try="$ac_compile" 18355case "(($ac_try" in 18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18357 *) ac_try_echo=$ac_try;; 18358esac 18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18360 (eval "$ac_compile") 2>conftest.er1 18361 ac_status=$? 18362 grep -v '^ *+' conftest.er1 >conftest.err 18363 rm -f conftest.er1 18364 cat conftest.err >&5 18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18366 (exit $ac_status); } && 18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18368 { (case "(($ac_try" in 18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18370 *) ac_try_echo=$ac_try;; 18371esac 18372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18373 (eval "$ac_try") 2>&5 18374 ac_status=$? 18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18376 (exit $ac_status); }; } && 18377 { ac_try='test -s conftest.$ac_objext' 18378 { (case "(($ac_try" in 18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18380 *) ac_try_echo=$ac_try;; 18381esac 18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18383 (eval "$ac_try") 2>&5 18384 ac_status=$? 18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18386 (exit $ac_status); }; }; then 18387 ac_cv_have_decl_strerror_s=yes 18388else 18389 echo "$as_me: failed program was:" >&5 18390sed 's/^/| /' conftest.$ac_ext >&5 18391 18392 ac_cv_have_decl_strerror_s=no 18393fi 18394 18395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18396fi 18397{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18398echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18399if test $ac_cv_have_decl_strerror_s = yes; then 18400 18401cat >>confdefs.h <<_ACEOF 18402#define HAVE_DECL_STRERROR_S 1 18403_ACEOF 18404 18405 18406else 18407 cat >>confdefs.h <<_ACEOF 18408#define HAVE_DECL_STRERROR_S 0 18409_ACEOF 18410 18411 18412fi 18413 18414 18415 18416if test "$llvm_cv_os_type" = "MingW" ; then 18417 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18418echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18419if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18420 echo $ECHO_N "(cached) $ECHO_C" >&6 18421else 18422 ac_check_lib_save_LIBS=$LIBS 18423LIBS="-lgcc $LIBS" 18424cat >conftest.$ac_ext <<_ACEOF 18425/* confdefs.h. */ 18426_ACEOF 18427cat confdefs.h >>conftest.$ac_ext 18428cat >>conftest.$ac_ext <<_ACEOF 18429/* end confdefs.h. */ 18430 18431/* Override any GCC internal prototype to avoid an error. 18432 Use char because int might match the return type of a GCC 18433 builtin and then its argument prototype would still apply. */ 18434#ifdef __cplusplus 18435extern "C" 18436#endif 18437char _alloca (); 18438int 18439main () 18440{ 18441return _alloca (); 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446rm -f conftest.$ac_objext conftest$ac_exeext 18447if { (ac_try="$ac_link" 18448case "(($ac_try" in 18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18450 *) ac_try_echo=$ac_try;; 18451esac 18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18453 (eval "$ac_link") 2>conftest.er1 18454 ac_status=$? 18455 grep -v '^ *+' conftest.er1 >conftest.err 18456 rm -f conftest.er1 18457 cat conftest.err >&5 18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18459 (exit $ac_status); } && 18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18461 { (case "(($ac_try" in 18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18463 *) ac_try_echo=$ac_try;; 18464esac 18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18466 (eval "$ac_try") 2>&5 18467 ac_status=$? 18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18469 (exit $ac_status); }; } && 18470 { ac_try='test -s conftest$ac_exeext' 18471 { (case "(($ac_try" in 18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18473 *) ac_try_echo=$ac_try;; 18474esac 18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18476 (eval "$ac_try") 2>&5 18477 ac_status=$? 18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18479 (exit $ac_status); }; }; then 18480 ac_cv_lib_gcc__alloca=yes 18481else 18482 echo "$as_me: failed program was:" >&5 18483sed 's/^/| /' conftest.$ac_ext >&5 18484 18485 ac_cv_lib_gcc__alloca=no 18486fi 18487 18488rm -f core conftest.err conftest.$ac_objext \ 18489 conftest$ac_exeext conftest.$ac_ext 18490LIBS=$ac_check_lib_save_LIBS 18491fi 18492{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18493echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18494if test $ac_cv_lib_gcc__alloca = yes; then 18495 18496cat >>confdefs.h <<\_ACEOF 18497#define HAVE__ALLOCA 1 18498_ACEOF 18499 18500fi 18501 18502 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18503echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18504if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18505 echo $ECHO_N "(cached) $ECHO_C" >&6 18506else 18507 ac_check_lib_save_LIBS=$LIBS 18508LIBS="-lgcc $LIBS" 18509cat >conftest.$ac_ext <<_ACEOF 18510/* confdefs.h. */ 18511_ACEOF 18512cat confdefs.h >>conftest.$ac_ext 18513cat >>conftest.$ac_ext <<_ACEOF 18514/* end confdefs.h. */ 18515 18516/* Override any GCC internal prototype to avoid an error. 18517 Use char because int might match the return type of a GCC 18518 builtin and then its argument prototype would still apply. */ 18519#ifdef __cplusplus 18520extern "C" 18521#endif 18522char __alloca (); 18523int 18524main () 18525{ 18526return __alloca (); 18527 ; 18528 return 0; 18529} 18530_ACEOF 18531rm -f conftest.$ac_objext conftest$ac_exeext 18532if { (ac_try="$ac_link" 18533case "(($ac_try" in 18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18535 *) ac_try_echo=$ac_try;; 18536esac 18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18538 (eval "$ac_link") 2>conftest.er1 18539 ac_status=$? 18540 grep -v '^ *+' conftest.er1 >conftest.err 18541 rm -f conftest.er1 18542 cat conftest.err >&5 18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18544 (exit $ac_status); } && 18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18546 { (case "(($ac_try" in 18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18548 *) ac_try_echo=$ac_try;; 18549esac 18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18551 (eval "$ac_try") 2>&5 18552 ac_status=$? 18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18554 (exit $ac_status); }; } && 18555 { ac_try='test -s conftest$ac_exeext' 18556 { (case "(($ac_try" in 18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18558 *) ac_try_echo=$ac_try;; 18559esac 18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18561 (eval "$ac_try") 2>&5 18562 ac_status=$? 18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18564 (exit $ac_status); }; }; then 18565 ac_cv_lib_gcc___alloca=yes 18566else 18567 echo "$as_me: failed program was:" >&5 18568sed 's/^/| /' conftest.$ac_ext >&5 18569 18570 ac_cv_lib_gcc___alloca=no 18571fi 18572 18573rm -f core conftest.err conftest.$ac_objext \ 18574 conftest$ac_exeext conftest.$ac_ext 18575LIBS=$ac_check_lib_save_LIBS 18576fi 18577{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18578echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18579if test $ac_cv_lib_gcc___alloca = yes; then 18580 18581cat >>confdefs.h <<\_ACEOF 18582#define HAVE___ALLOCA 1 18583_ACEOF 18584 18585fi 18586 18587 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18588echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18589if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18590 echo $ECHO_N "(cached) $ECHO_C" >&6 18591else 18592 ac_check_lib_save_LIBS=$LIBS 18593LIBS="-lgcc $LIBS" 18594cat >conftest.$ac_ext <<_ACEOF 18595/* confdefs.h. */ 18596_ACEOF 18597cat confdefs.h >>conftest.$ac_ext 18598cat >>conftest.$ac_ext <<_ACEOF 18599/* end confdefs.h. */ 18600 18601/* Override any GCC internal prototype to avoid an error. 18602 Use char because int might match the return type of a GCC 18603 builtin and then its argument prototype would still apply. */ 18604#ifdef __cplusplus 18605extern "C" 18606#endif 18607char __chkstk (); 18608int 18609main () 18610{ 18611return __chkstk (); 18612 ; 18613 return 0; 18614} 18615_ACEOF 18616rm -f conftest.$ac_objext conftest$ac_exeext 18617if { (ac_try="$ac_link" 18618case "(($ac_try" in 18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18620 *) ac_try_echo=$ac_try;; 18621esac 18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18623 (eval "$ac_link") 2>conftest.er1 18624 ac_status=$? 18625 grep -v '^ *+' conftest.er1 >conftest.err 18626 rm -f conftest.er1 18627 cat conftest.err >&5 18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18629 (exit $ac_status); } && 18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18631 { (case "(($ac_try" in 18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18633 *) ac_try_echo=$ac_try;; 18634esac 18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18636 (eval "$ac_try") 2>&5 18637 ac_status=$? 18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18639 (exit $ac_status); }; } && 18640 { ac_try='test -s conftest$ac_exeext' 18641 { (case "(($ac_try" in 18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18643 *) ac_try_echo=$ac_try;; 18644esac 18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18646 (eval "$ac_try") 2>&5 18647 ac_status=$? 18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18649 (exit $ac_status); }; }; then 18650 ac_cv_lib_gcc___chkstk=yes 18651else 18652 echo "$as_me: failed program was:" >&5 18653sed 's/^/| /' conftest.$ac_ext >&5 18654 18655 ac_cv_lib_gcc___chkstk=no 18656fi 18657 18658rm -f core conftest.err conftest.$ac_objext \ 18659 conftest$ac_exeext conftest.$ac_ext 18660LIBS=$ac_check_lib_save_LIBS 18661fi 18662{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18663echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18664if test $ac_cv_lib_gcc___chkstk = yes; then 18665 18666cat >>confdefs.h <<\_ACEOF 18667#define HAVE___CHKSTK 1 18668_ACEOF 18669 18670fi 18671 18672 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18673echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18674if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18675 echo $ECHO_N "(cached) $ECHO_C" >&6 18676else 18677 ac_check_lib_save_LIBS=$LIBS 18678LIBS="-lgcc $LIBS" 18679cat >conftest.$ac_ext <<_ACEOF 18680/* confdefs.h. */ 18681_ACEOF 18682cat confdefs.h >>conftest.$ac_ext 18683cat >>conftest.$ac_ext <<_ACEOF 18684/* end confdefs.h. */ 18685 18686/* Override any GCC internal prototype to avoid an error. 18687 Use char because int might match the return type of a GCC 18688 builtin and then its argument prototype would still apply. */ 18689#ifdef __cplusplus 18690extern "C" 18691#endif 18692char ___chkstk (); 18693int 18694main () 18695{ 18696return ___chkstk (); 18697 ; 18698 return 0; 18699} 18700_ACEOF 18701rm -f conftest.$ac_objext conftest$ac_exeext 18702if { (ac_try="$ac_link" 18703case "(($ac_try" in 18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18705 *) ac_try_echo=$ac_try;; 18706esac 18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18708 (eval "$ac_link") 2>conftest.er1 18709 ac_status=$? 18710 grep -v '^ *+' conftest.er1 >conftest.err 18711 rm -f conftest.er1 18712 cat conftest.err >&5 18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18714 (exit $ac_status); } && 18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18716 { (case "(($ac_try" in 18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18718 *) ac_try_echo=$ac_try;; 18719esac 18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18721 (eval "$ac_try") 2>&5 18722 ac_status=$? 18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18724 (exit $ac_status); }; } && 18725 { ac_try='test -s conftest$ac_exeext' 18726 { (case "(($ac_try" in 18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18728 *) ac_try_echo=$ac_try;; 18729esac 18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18731 (eval "$ac_try") 2>&5 18732 ac_status=$? 18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18734 (exit $ac_status); }; }; then 18735 ac_cv_lib_gcc____chkstk=yes 18736else 18737 echo "$as_me: failed program was:" >&5 18738sed 's/^/| /' conftest.$ac_ext >&5 18739 18740 ac_cv_lib_gcc____chkstk=no 18741fi 18742 18743rm -f core conftest.err conftest.$ac_objext \ 18744 conftest$ac_exeext conftest.$ac_ext 18745LIBS=$ac_check_lib_save_LIBS 18746fi 18747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18748echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18749if test $ac_cv_lib_gcc____chkstk = yes; then 18750 18751cat >>confdefs.h <<\_ACEOF 18752#define HAVE____CHKSTK 1 18753_ACEOF 18754 18755fi 18756 18757 18758 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18759echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18760if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18761 echo $ECHO_N "(cached) $ECHO_C" >&6 18762else 18763 ac_check_lib_save_LIBS=$LIBS 18764LIBS="-lgcc $LIBS" 18765cat >conftest.$ac_ext <<_ACEOF 18766/* confdefs.h. */ 18767_ACEOF 18768cat confdefs.h >>conftest.$ac_ext 18769cat >>conftest.$ac_ext <<_ACEOF 18770/* end confdefs.h. */ 18771 18772/* Override any GCC internal prototype to avoid an error. 18773 Use char because int might match the return type of a GCC 18774 builtin and then its argument prototype would still apply. */ 18775#ifdef __cplusplus 18776extern "C" 18777#endif 18778char __ashldi3 (); 18779int 18780main () 18781{ 18782return __ashldi3 (); 18783 ; 18784 return 0; 18785} 18786_ACEOF 18787rm -f conftest.$ac_objext conftest$ac_exeext 18788if { (ac_try="$ac_link" 18789case "(($ac_try" in 18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18791 *) ac_try_echo=$ac_try;; 18792esac 18793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18794 (eval "$ac_link") 2>conftest.er1 18795 ac_status=$? 18796 grep -v '^ *+' conftest.er1 >conftest.err 18797 rm -f conftest.er1 18798 cat conftest.err >&5 18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); } && 18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18802 { (case "(($ac_try" in 18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18804 *) ac_try_echo=$ac_try;; 18805esac 18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18807 (eval "$ac_try") 2>&5 18808 ac_status=$? 18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18810 (exit $ac_status); }; } && 18811 { ac_try='test -s conftest$ac_exeext' 18812 { (case "(($ac_try" in 18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18814 *) ac_try_echo=$ac_try;; 18815esac 18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18817 (eval "$ac_try") 2>&5 18818 ac_status=$? 18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18820 (exit $ac_status); }; }; then 18821 ac_cv_lib_gcc___ashldi3=yes 18822else 18823 echo "$as_me: failed program was:" >&5 18824sed 's/^/| /' conftest.$ac_ext >&5 18825 18826 ac_cv_lib_gcc___ashldi3=no 18827fi 18828 18829rm -f core conftest.err conftest.$ac_objext \ 18830 conftest$ac_exeext conftest.$ac_ext 18831LIBS=$ac_check_lib_save_LIBS 18832fi 18833{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18834echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18835if test $ac_cv_lib_gcc___ashldi3 = yes; then 18836 18837cat >>confdefs.h <<\_ACEOF 18838#define HAVE___ASHLDI3 1 18839_ACEOF 18840 18841fi 18842 18843 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18844echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18845if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847else 18848 ac_check_lib_save_LIBS=$LIBS 18849LIBS="-lgcc $LIBS" 18850cat >conftest.$ac_ext <<_ACEOF 18851/* confdefs.h. */ 18852_ACEOF 18853cat confdefs.h >>conftest.$ac_ext 18854cat >>conftest.$ac_ext <<_ACEOF 18855/* end confdefs.h. */ 18856 18857/* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860#ifdef __cplusplus 18861extern "C" 18862#endif 18863char __ashrdi3 (); 18864int 18865main () 18866{ 18867return __ashrdi3 (); 18868 ; 18869 return 0; 18870} 18871_ACEOF 18872rm -f conftest.$ac_objext conftest$ac_exeext 18873if { (ac_try="$ac_link" 18874case "(($ac_try" in 18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18876 *) ac_try_echo=$ac_try;; 18877esac 18878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18879 (eval "$ac_link") 2>conftest.er1 18880 ac_status=$? 18881 grep -v '^ *+' conftest.er1 >conftest.err 18882 rm -f conftest.er1 18883 cat conftest.err >&5 18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18885 (exit $ac_status); } && 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18887 { (case "(($ac_try" in 18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18889 *) ac_try_echo=$ac_try;; 18890esac 18891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18892 (eval "$ac_try") 2>&5 18893 ac_status=$? 18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18895 (exit $ac_status); }; } && 18896 { ac_try='test -s conftest$ac_exeext' 18897 { (case "(($ac_try" in 18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18899 *) ac_try_echo=$ac_try;; 18900esac 18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18902 (eval "$ac_try") 2>&5 18903 ac_status=$? 18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18905 (exit $ac_status); }; }; then 18906 ac_cv_lib_gcc___ashrdi3=yes 18907else 18908 echo "$as_me: failed program was:" >&5 18909sed 's/^/| /' conftest.$ac_ext >&5 18910 18911 ac_cv_lib_gcc___ashrdi3=no 18912fi 18913 18914rm -f core conftest.err conftest.$ac_objext \ 18915 conftest$ac_exeext conftest.$ac_ext 18916LIBS=$ac_check_lib_save_LIBS 18917fi 18918{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18919echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18920if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18921 18922cat >>confdefs.h <<\_ACEOF 18923#define HAVE___ASHRDI3 1 18924_ACEOF 18925 18926fi 18927 18928 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18929echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18930if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18931 echo $ECHO_N "(cached) $ECHO_C" >&6 18932else 18933 ac_check_lib_save_LIBS=$LIBS 18934LIBS="-lgcc $LIBS" 18935cat >conftest.$ac_ext <<_ACEOF 18936/* confdefs.h. */ 18937_ACEOF 18938cat confdefs.h >>conftest.$ac_ext 18939cat >>conftest.$ac_ext <<_ACEOF 18940/* end confdefs.h. */ 18941 18942/* Override any GCC internal prototype to avoid an error. 18943 Use char because int might match the return type of a GCC 18944 builtin and then its argument prototype would still apply. */ 18945#ifdef __cplusplus 18946extern "C" 18947#endif 18948char __divdi3 (); 18949int 18950main () 18951{ 18952return __divdi3 (); 18953 ; 18954 return 0; 18955} 18956_ACEOF 18957rm -f conftest.$ac_objext conftest$ac_exeext 18958if { (ac_try="$ac_link" 18959case "(($ac_try" in 18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18961 *) ac_try_echo=$ac_try;; 18962esac 18963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18964 (eval "$ac_link") 2>conftest.er1 18965 ac_status=$? 18966 grep -v '^ *+' conftest.er1 >conftest.err 18967 rm -f conftest.er1 18968 cat conftest.err >&5 18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18970 (exit $ac_status); } && 18971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18972 { (case "(($ac_try" in 18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18974 *) ac_try_echo=$ac_try;; 18975esac 18976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18977 (eval "$ac_try") 2>&5 18978 ac_status=$? 18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18980 (exit $ac_status); }; } && 18981 { ac_try='test -s conftest$ac_exeext' 18982 { (case "(($ac_try" in 18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18984 *) ac_try_echo=$ac_try;; 18985esac 18986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18987 (eval "$ac_try") 2>&5 18988 ac_status=$? 18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18990 (exit $ac_status); }; }; then 18991 ac_cv_lib_gcc___divdi3=yes 18992else 18993 echo "$as_me: failed program was:" >&5 18994sed 's/^/| /' conftest.$ac_ext >&5 18995 18996 ac_cv_lib_gcc___divdi3=no 18997fi 18998 18999rm -f core conftest.err conftest.$ac_objext \ 19000 conftest$ac_exeext conftest.$ac_ext 19001LIBS=$ac_check_lib_save_LIBS 19002fi 19003{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19004echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19005if test $ac_cv_lib_gcc___divdi3 = yes; then 19006 19007cat >>confdefs.h <<\_ACEOF 19008#define HAVE___DIVDI3 1 19009_ACEOF 19010 19011fi 19012 19013 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19014echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19015if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19016 echo $ECHO_N "(cached) $ECHO_C" >&6 19017else 19018 ac_check_lib_save_LIBS=$LIBS 19019LIBS="-lgcc $LIBS" 19020cat >conftest.$ac_ext <<_ACEOF 19021/* confdefs.h. */ 19022_ACEOF 19023cat confdefs.h >>conftest.$ac_ext 19024cat >>conftest.$ac_ext <<_ACEOF 19025/* end confdefs.h. */ 19026 19027/* Override any GCC internal prototype to avoid an error. 19028 Use char because int might match the return type of a GCC 19029 builtin and then its argument prototype would still apply. */ 19030#ifdef __cplusplus 19031extern "C" 19032#endif 19033char __fixdfdi (); 19034int 19035main () 19036{ 19037return __fixdfdi (); 19038 ; 19039 return 0; 19040} 19041_ACEOF 19042rm -f conftest.$ac_objext conftest$ac_exeext 19043if { (ac_try="$ac_link" 19044case "(($ac_try" in 19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19046 *) ac_try_echo=$ac_try;; 19047esac 19048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19049 (eval "$ac_link") 2>conftest.er1 19050 ac_status=$? 19051 grep -v '^ *+' conftest.er1 >conftest.err 19052 rm -f conftest.er1 19053 cat conftest.err >&5 19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19055 (exit $ac_status); } && 19056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19057 { (case "(($ac_try" in 19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19059 *) ac_try_echo=$ac_try;; 19060esac 19061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19062 (eval "$ac_try") 2>&5 19063 ac_status=$? 19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19065 (exit $ac_status); }; } && 19066 { ac_try='test -s conftest$ac_exeext' 19067 { (case "(($ac_try" in 19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19069 *) ac_try_echo=$ac_try;; 19070esac 19071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19072 (eval "$ac_try") 2>&5 19073 ac_status=$? 19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19075 (exit $ac_status); }; }; then 19076 ac_cv_lib_gcc___fixdfdi=yes 19077else 19078 echo "$as_me: failed program was:" >&5 19079sed 's/^/| /' conftest.$ac_ext >&5 19080 19081 ac_cv_lib_gcc___fixdfdi=no 19082fi 19083 19084rm -f core conftest.err conftest.$ac_objext \ 19085 conftest$ac_exeext conftest.$ac_ext 19086LIBS=$ac_check_lib_save_LIBS 19087fi 19088{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 19089echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 19090if test $ac_cv_lib_gcc___fixdfdi = yes; then 19091 19092cat >>confdefs.h <<\_ACEOF 19093#define HAVE___FIXDFDI 1 19094_ACEOF 19095 19096fi 19097 19098 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 19099echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 19100if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 19101 echo $ECHO_N "(cached) $ECHO_C" >&6 19102else 19103 ac_check_lib_save_LIBS=$LIBS 19104LIBS="-lgcc $LIBS" 19105cat >conftest.$ac_ext <<_ACEOF 19106/* confdefs.h. */ 19107_ACEOF 19108cat confdefs.h >>conftest.$ac_ext 19109cat >>conftest.$ac_ext <<_ACEOF 19110/* end confdefs.h. */ 19111 19112/* Override any GCC internal prototype to avoid an error. 19113 Use char because int might match the return type of a GCC 19114 builtin and then its argument prototype would still apply. */ 19115#ifdef __cplusplus 19116extern "C" 19117#endif 19118char __fixsfdi (); 19119int 19120main () 19121{ 19122return __fixsfdi (); 19123 ; 19124 return 0; 19125} 19126_ACEOF 19127rm -f conftest.$ac_objext conftest$ac_exeext 19128if { (ac_try="$ac_link" 19129case "(($ac_try" in 19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19131 *) ac_try_echo=$ac_try;; 19132esac 19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19134 (eval "$ac_link") 2>conftest.er1 19135 ac_status=$? 19136 grep -v '^ *+' conftest.er1 >conftest.err 19137 rm -f conftest.er1 19138 cat conftest.err >&5 19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19140 (exit $ac_status); } && 19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19142 { (case "(($ac_try" in 19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19144 *) ac_try_echo=$ac_try;; 19145esac 19146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19147 (eval "$ac_try") 2>&5 19148 ac_status=$? 19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19150 (exit $ac_status); }; } && 19151 { ac_try='test -s conftest$ac_exeext' 19152 { (case "(($ac_try" in 19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19154 *) ac_try_echo=$ac_try;; 19155esac 19156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19157 (eval "$ac_try") 2>&5 19158 ac_status=$? 19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19160 (exit $ac_status); }; }; then 19161 ac_cv_lib_gcc___fixsfdi=yes 19162else 19163 echo "$as_me: failed program was:" >&5 19164sed 's/^/| /' conftest.$ac_ext >&5 19165 19166 ac_cv_lib_gcc___fixsfdi=no 19167fi 19168 19169rm -f core conftest.err conftest.$ac_objext \ 19170 conftest$ac_exeext conftest.$ac_ext 19171LIBS=$ac_check_lib_save_LIBS 19172fi 19173{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 19174echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 19175if test $ac_cv_lib_gcc___fixsfdi = yes; then 19176 19177cat >>confdefs.h <<\_ACEOF 19178#define HAVE___FIXSFDI 1 19179_ACEOF 19180 19181fi 19182 19183 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 19184echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 19185if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 19186 echo $ECHO_N "(cached) $ECHO_C" >&6 19187else 19188 ac_check_lib_save_LIBS=$LIBS 19189LIBS="-lgcc $LIBS" 19190cat >conftest.$ac_ext <<_ACEOF 19191/* confdefs.h. */ 19192_ACEOF 19193cat confdefs.h >>conftest.$ac_ext 19194cat >>conftest.$ac_ext <<_ACEOF 19195/* end confdefs.h. */ 19196 19197/* Override any GCC internal prototype to avoid an error. 19198 Use char because int might match the return type of a GCC 19199 builtin and then its argument prototype would still apply. */ 19200#ifdef __cplusplus 19201extern "C" 19202#endif 19203char __floatdidf (); 19204int 19205main () 19206{ 19207return __floatdidf (); 19208 ; 19209 return 0; 19210} 19211_ACEOF 19212rm -f conftest.$ac_objext conftest$ac_exeext 19213if { (ac_try="$ac_link" 19214case "(($ac_try" in 19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19216 *) ac_try_echo=$ac_try;; 19217esac 19218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19219 (eval "$ac_link") 2>conftest.er1 19220 ac_status=$? 19221 grep -v '^ *+' conftest.er1 >conftest.err 19222 rm -f conftest.er1 19223 cat conftest.err >&5 19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19225 (exit $ac_status); } && 19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19227 { (case "(($ac_try" in 19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19229 *) ac_try_echo=$ac_try;; 19230esac 19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19232 (eval "$ac_try") 2>&5 19233 ac_status=$? 19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19235 (exit $ac_status); }; } && 19236 { ac_try='test -s conftest$ac_exeext' 19237 { (case "(($ac_try" in 19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19239 *) ac_try_echo=$ac_try;; 19240esac 19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19242 (eval "$ac_try") 2>&5 19243 ac_status=$? 19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19245 (exit $ac_status); }; }; then 19246 ac_cv_lib_gcc___floatdidf=yes 19247else 19248 echo "$as_me: failed program was:" >&5 19249sed 's/^/| /' conftest.$ac_ext >&5 19250 19251 ac_cv_lib_gcc___floatdidf=no 19252fi 19253 19254rm -f core conftest.err conftest.$ac_objext \ 19255 conftest$ac_exeext conftest.$ac_ext 19256LIBS=$ac_check_lib_save_LIBS 19257fi 19258{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19259echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19260if test $ac_cv_lib_gcc___floatdidf = yes; then 19261 19262cat >>confdefs.h <<\_ACEOF 19263#define HAVE___FLOATDIDF 1 19264_ACEOF 19265 19266fi 19267 19268 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19269echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19270if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19271 echo $ECHO_N "(cached) $ECHO_C" >&6 19272else 19273 ac_check_lib_save_LIBS=$LIBS 19274LIBS="-lgcc $LIBS" 19275cat >conftest.$ac_ext <<_ACEOF 19276/* confdefs.h. */ 19277_ACEOF 19278cat confdefs.h >>conftest.$ac_ext 19279cat >>conftest.$ac_ext <<_ACEOF 19280/* end confdefs.h. */ 19281 19282/* Override any GCC internal prototype to avoid an error. 19283 Use char because int might match the return type of a GCC 19284 builtin and then its argument prototype would still apply. */ 19285#ifdef __cplusplus 19286extern "C" 19287#endif 19288char __lshrdi3 (); 19289int 19290main () 19291{ 19292return __lshrdi3 (); 19293 ; 19294 return 0; 19295} 19296_ACEOF 19297rm -f conftest.$ac_objext conftest$ac_exeext 19298if { (ac_try="$ac_link" 19299case "(($ac_try" in 19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19301 *) ac_try_echo=$ac_try;; 19302esac 19303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19304 (eval "$ac_link") 2>conftest.er1 19305 ac_status=$? 19306 grep -v '^ *+' conftest.er1 >conftest.err 19307 rm -f conftest.er1 19308 cat conftest.err >&5 19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19310 (exit $ac_status); } && 19311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19312 { (case "(($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_try") 2>&5 19318 ac_status=$? 19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19320 (exit $ac_status); }; } && 19321 { ac_try='test -s conftest$ac_exeext' 19322 { (case "(($ac_try" in 19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19324 *) ac_try_echo=$ac_try;; 19325esac 19326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19327 (eval "$ac_try") 2>&5 19328 ac_status=$? 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19330 (exit $ac_status); }; }; then 19331 ac_cv_lib_gcc___lshrdi3=yes 19332else 19333 echo "$as_me: failed program was:" >&5 19334sed 's/^/| /' conftest.$ac_ext >&5 19335 19336 ac_cv_lib_gcc___lshrdi3=no 19337fi 19338 19339rm -f core conftest.err conftest.$ac_objext \ 19340 conftest$ac_exeext conftest.$ac_ext 19341LIBS=$ac_check_lib_save_LIBS 19342fi 19343{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19344echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19345if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19346 19347cat >>confdefs.h <<\_ACEOF 19348#define HAVE___LSHRDI3 1 19349_ACEOF 19350 19351fi 19352 19353 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19354echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19355if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19356 echo $ECHO_N "(cached) $ECHO_C" >&6 19357else 19358 ac_check_lib_save_LIBS=$LIBS 19359LIBS="-lgcc $LIBS" 19360cat >conftest.$ac_ext <<_ACEOF 19361/* confdefs.h. */ 19362_ACEOF 19363cat confdefs.h >>conftest.$ac_ext 19364cat >>conftest.$ac_ext <<_ACEOF 19365/* end confdefs.h. */ 19366 19367/* Override any GCC internal prototype to avoid an error. 19368 Use char because int might match the return type of a GCC 19369 builtin and then its argument prototype would still apply. */ 19370#ifdef __cplusplus 19371extern "C" 19372#endif 19373char __moddi3 (); 19374int 19375main () 19376{ 19377return __moddi3 (); 19378 ; 19379 return 0; 19380} 19381_ACEOF 19382rm -f conftest.$ac_objext conftest$ac_exeext 19383if { (ac_try="$ac_link" 19384case "(($ac_try" in 19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19386 *) ac_try_echo=$ac_try;; 19387esac 19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19389 (eval "$ac_link") 2>conftest.er1 19390 ac_status=$? 19391 grep -v '^ *+' conftest.er1 >conftest.err 19392 rm -f conftest.er1 19393 cat conftest.err >&5 19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19395 (exit $ac_status); } && 19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19397 { (case "(($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_try") 2>&5 19403 ac_status=$? 19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19405 (exit $ac_status); }; } && 19406 { ac_try='test -s conftest$ac_exeext' 19407 { (case "(($ac_try" in 19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19409 *) ac_try_echo=$ac_try;; 19410esac 19411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19412 (eval "$ac_try") 2>&5 19413 ac_status=$? 19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19415 (exit $ac_status); }; }; then 19416 ac_cv_lib_gcc___moddi3=yes 19417else 19418 echo "$as_me: failed program was:" >&5 19419sed 's/^/| /' conftest.$ac_ext >&5 19420 19421 ac_cv_lib_gcc___moddi3=no 19422fi 19423 19424rm -f core conftest.err conftest.$ac_objext \ 19425 conftest$ac_exeext conftest.$ac_ext 19426LIBS=$ac_check_lib_save_LIBS 19427fi 19428{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19429echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19430if test $ac_cv_lib_gcc___moddi3 = yes; then 19431 19432cat >>confdefs.h <<\_ACEOF 19433#define HAVE___MODDI3 1 19434_ACEOF 19435 19436fi 19437 19438 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19439echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19440if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19441 echo $ECHO_N "(cached) $ECHO_C" >&6 19442else 19443 ac_check_lib_save_LIBS=$LIBS 19444LIBS="-lgcc $LIBS" 19445cat >conftest.$ac_ext <<_ACEOF 19446/* confdefs.h. */ 19447_ACEOF 19448cat confdefs.h >>conftest.$ac_ext 19449cat >>conftest.$ac_ext <<_ACEOF 19450/* end confdefs.h. */ 19451 19452/* Override any GCC internal prototype to avoid an error. 19453 Use char because int might match the return type of a GCC 19454 builtin and then its argument prototype would still apply. */ 19455#ifdef __cplusplus 19456extern "C" 19457#endif 19458char __udivdi3 (); 19459int 19460main () 19461{ 19462return __udivdi3 (); 19463 ; 19464 return 0; 19465} 19466_ACEOF 19467rm -f conftest.$ac_objext conftest$ac_exeext 19468if { (ac_try="$ac_link" 19469case "(($ac_try" in 19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19471 *) ac_try_echo=$ac_try;; 19472esac 19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19474 (eval "$ac_link") 2>conftest.er1 19475 ac_status=$? 19476 grep -v '^ *+' conftest.er1 >conftest.err 19477 rm -f conftest.er1 19478 cat conftest.err >&5 19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19480 (exit $ac_status); } && 19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19482 { (case "(($ac_try" in 19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19484 *) ac_try_echo=$ac_try;; 19485esac 19486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19487 (eval "$ac_try") 2>&5 19488 ac_status=$? 19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19490 (exit $ac_status); }; } && 19491 { ac_try='test -s conftest$ac_exeext' 19492 { (case "(($ac_try" in 19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19494 *) ac_try_echo=$ac_try;; 19495esac 19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19497 (eval "$ac_try") 2>&5 19498 ac_status=$? 19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19500 (exit $ac_status); }; }; then 19501 ac_cv_lib_gcc___udivdi3=yes 19502else 19503 echo "$as_me: failed program was:" >&5 19504sed 's/^/| /' conftest.$ac_ext >&5 19505 19506 ac_cv_lib_gcc___udivdi3=no 19507fi 19508 19509rm -f core conftest.err conftest.$ac_objext \ 19510 conftest$ac_exeext conftest.$ac_ext 19511LIBS=$ac_check_lib_save_LIBS 19512fi 19513{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19514echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19515if test $ac_cv_lib_gcc___udivdi3 = yes; then 19516 19517cat >>confdefs.h <<\_ACEOF 19518#define HAVE___UDIVDI3 1 19519_ACEOF 19520 19521fi 19522 19523 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19524echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19525if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19526 echo $ECHO_N "(cached) $ECHO_C" >&6 19527else 19528 ac_check_lib_save_LIBS=$LIBS 19529LIBS="-lgcc $LIBS" 19530cat >conftest.$ac_ext <<_ACEOF 19531/* confdefs.h. */ 19532_ACEOF 19533cat confdefs.h >>conftest.$ac_ext 19534cat >>conftest.$ac_ext <<_ACEOF 19535/* end confdefs.h. */ 19536 19537/* Override any GCC internal prototype to avoid an error. 19538 Use char because int might match the return type of a GCC 19539 builtin and then its argument prototype would still apply. */ 19540#ifdef __cplusplus 19541extern "C" 19542#endif 19543char __umoddi3 (); 19544int 19545main () 19546{ 19547return __umoddi3 (); 19548 ; 19549 return 0; 19550} 19551_ACEOF 19552rm -f conftest.$ac_objext conftest$ac_exeext 19553if { (ac_try="$ac_link" 19554case "(($ac_try" in 19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19556 *) ac_try_echo=$ac_try;; 19557esac 19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19559 (eval "$ac_link") 2>conftest.er1 19560 ac_status=$? 19561 grep -v '^ *+' conftest.er1 >conftest.err 19562 rm -f conftest.er1 19563 cat conftest.err >&5 19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19565 (exit $ac_status); } && 19566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19567 { (case "(($ac_try" in 19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19569 *) ac_try_echo=$ac_try;; 19570esac 19571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19572 (eval "$ac_try") 2>&5 19573 ac_status=$? 19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19575 (exit $ac_status); }; } && 19576 { ac_try='test -s conftest$ac_exeext' 19577 { (case "(($ac_try" in 19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19579 *) ac_try_echo=$ac_try;; 19580esac 19581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19582 (eval "$ac_try") 2>&5 19583 ac_status=$? 19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19585 (exit $ac_status); }; }; then 19586 ac_cv_lib_gcc___umoddi3=yes 19587else 19588 echo "$as_me: failed program was:" >&5 19589sed 's/^/| /' conftest.$ac_ext >&5 19590 19591 ac_cv_lib_gcc___umoddi3=no 19592fi 19593 19594rm -f core conftest.err conftest.$ac_objext \ 19595 conftest$ac_exeext conftest.$ac_ext 19596LIBS=$ac_check_lib_save_LIBS 19597fi 19598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19599echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19600if test $ac_cv_lib_gcc___umoddi3 = yes; then 19601 19602cat >>confdefs.h <<\_ACEOF 19603#define HAVE___UMODDI3 1 19604_ACEOF 19605 19606fi 19607 19608 19609 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19610echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19611if test "${ac_cv_lib_gcc___main+set}" = set; then 19612 echo $ECHO_N "(cached) $ECHO_C" >&6 19613else 19614 ac_check_lib_save_LIBS=$LIBS 19615LIBS="-lgcc $LIBS" 19616cat >conftest.$ac_ext <<_ACEOF 19617/* confdefs.h. */ 19618_ACEOF 19619cat confdefs.h >>conftest.$ac_ext 19620cat >>conftest.$ac_ext <<_ACEOF 19621/* end confdefs.h. */ 19622 19623/* Override any GCC internal prototype to avoid an error. 19624 Use char because int might match the return type of a GCC 19625 builtin and then its argument prototype would still apply. */ 19626#ifdef __cplusplus 19627extern "C" 19628#endif 19629char __main (); 19630int 19631main () 19632{ 19633return __main (); 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638rm -f conftest.$ac_objext conftest$ac_exeext 19639if { (ac_try="$ac_link" 19640case "(($ac_try" in 19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19642 *) ac_try_echo=$ac_try;; 19643esac 19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19645 (eval "$ac_link") 2>conftest.er1 19646 ac_status=$? 19647 grep -v '^ *+' conftest.er1 >conftest.err 19648 rm -f conftest.er1 19649 cat conftest.err >&5 19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19651 (exit $ac_status); } && 19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19653 { (case "(($ac_try" in 19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19655 *) ac_try_echo=$ac_try;; 19656esac 19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19658 (eval "$ac_try") 2>&5 19659 ac_status=$? 19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19661 (exit $ac_status); }; } && 19662 { ac_try='test -s conftest$ac_exeext' 19663 { (case "(($ac_try" in 19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19665 *) ac_try_echo=$ac_try;; 19666esac 19667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19668 (eval "$ac_try") 2>&5 19669 ac_status=$? 19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19671 (exit $ac_status); }; }; then 19672 ac_cv_lib_gcc___main=yes 19673else 19674 echo "$as_me: failed program was:" >&5 19675sed 's/^/| /' conftest.$ac_ext >&5 19676 19677 ac_cv_lib_gcc___main=no 19678fi 19679 19680rm -f core conftest.err conftest.$ac_objext \ 19681 conftest$ac_exeext conftest.$ac_ext 19682LIBS=$ac_check_lib_save_LIBS 19683fi 19684{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19685echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19686if test $ac_cv_lib_gcc___main = yes; then 19687 19688cat >>confdefs.h <<\_ACEOF 19689#define HAVE___MAIN 1 19690_ACEOF 19691 19692fi 19693 19694 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19695echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19696if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19697 echo $ECHO_N "(cached) $ECHO_C" >&6 19698else 19699 ac_check_lib_save_LIBS=$LIBS 19700LIBS="-lgcc $LIBS" 19701cat >conftest.$ac_ext <<_ACEOF 19702/* confdefs.h. */ 19703_ACEOF 19704cat confdefs.h >>conftest.$ac_ext 19705cat >>conftest.$ac_ext <<_ACEOF 19706/* end confdefs.h. */ 19707 19708/* Override any GCC internal prototype to avoid an error. 19709 Use char because int might match the return type of a GCC 19710 builtin and then its argument prototype would still apply. */ 19711#ifdef __cplusplus 19712extern "C" 19713#endif 19714char __cmpdi2 (); 19715int 19716main () 19717{ 19718return __cmpdi2 (); 19719 ; 19720 return 0; 19721} 19722_ACEOF 19723rm -f conftest.$ac_objext conftest$ac_exeext 19724if { (ac_try="$ac_link" 19725case "(($ac_try" in 19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19727 *) ac_try_echo=$ac_try;; 19728esac 19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19730 (eval "$ac_link") 2>conftest.er1 19731 ac_status=$? 19732 grep -v '^ *+' conftest.er1 >conftest.err 19733 rm -f conftest.er1 19734 cat conftest.err >&5 19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19736 (exit $ac_status); } && 19737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19738 { (case "(($ac_try" in 19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19740 *) ac_try_echo=$ac_try;; 19741esac 19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19743 (eval "$ac_try") 2>&5 19744 ac_status=$? 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); }; } && 19747 { ac_try='test -s conftest$ac_exeext' 19748 { (case "(($ac_try" in 19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19750 *) ac_try_echo=$ac_try;; 19751esac 19752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19753 (eval "$ac_try") 2>&5 19754 ac_status=$? 19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19756 (exit $ac_status); }; }; then 19757 ac_cv_lib_gcc___cmpdi2=yes 19758else 19759 echo "$as_me: failed program was:" >&5 19760sed 's/^/| /' conftest.$ac_ext >&5 19761 19762 ac_cv_lib_gcc___cmpdi2=no 19763fi 19764 19765rm -f core conftest.err conftest.$ac_objext \ 19766 conftest$ac_exeext conftest.$ac_ext 19767LIBS=$ac_check_lib_save_LIBS 19768fi 19769{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19770echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19771if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19772 19773cat >>confdefs.h <<\_ACEOF 19774#define HAVE___CMPDI2 1 19775_ACEOF 19776 19777fi 19778 19779fi 19780 19781if test "$llvm_cv_os_type" = "MingW" ; then 19782 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19783echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19784 cat >conftest.$ac_ext <<_ACEOF 19785 19786 /* confdefs.h. */ 19787_ACEOF 19788cat confdefs.h >>conftest.$ac_ext 19789cat >>conftest.$ac_ext <<_ACEOF 19790/* end confdefs.h. */ 19791 19792 #include <windows.h> 19793 #include <imagehlp.h> 19794 extern void foo(PENUMLOADED_MODULES_CALLBACK); 19795 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19796 19797 19798_ACEOF 19799rm -f conftest.$ac_objext 19800if { (ac_try="$ac_compile" 19801case "(($ac_try" in 19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19803 *) ac_try_echo=$ac_try;; 19804esac 19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19806 (eval "$ac_compile") 2>conftest.er1 19807 ac_status=$? 19808 grep -v '^ *+' conftest.er1 >conftest.err 19809 rm -f conftest.er1 19810 cat conftest.err >&5 19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19812 (exit $ac_status); } && 19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19814 { (case "(($ac_try" in 19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19816 *) ac_try_echo=$ac_try;; 19817esac 19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19819 (eval "$ac_try") 2>&5 19820 ac_status=$? 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19822 (exit $ac_status); }; } && 19823 { ac_try='test -s conftest.$ac_objext' 19824 { (case "(($ac_try" in 19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19826 *) ac_try_echo=$ac_try;; 19827esac 19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19829 (eval "$ac_try") 2>&5 19830 ac_status=$? 19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19832 (exit $ac_status); }; }; then 19833 19834 { echo "$as_me:$LINENO: result: yes" >&5 19835echo "${ECHO_T}yes" >&6; } 19836 llvm_cv_win32_elmcb_pcstr="PCSTR" 19837 19838else 19839 echo "$as_me: failed program was:" >&5 19840sed 's/^/| /' conftest.$ac_ext >&5 19841 19842 19843 { echo "$as_me:$LINENO: result: no" >&5 19844echo "${ECHO_T}no" >&6; } 19845 llvm_cv_win32_elmcb_pcstr="PSTR" 19846 19847fi 19848 19849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19850 19851cat >>confdefs.h <<_ACEOF 19852#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19853_ACEOF 19854 19855fi 19856 19857 19858 19859 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19860echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19861if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19862 echo $ECHO_N "(cached) $ECHO_C" >&6 19863else 19864 19865 ac_ext=cpp 19866ac_cpp='$CXXCPP $CPPFLAGS' 19867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19870 19871 cat >conftest.$ac_ext <<_ACEOF 19872/* confdefs.h. */ 19873_ACEOF 19874cat confdefs.h >>conftest.$ac_ext 19875cat >>conftest.$ac_ext <<_ACEOF 19876/* end confdefs.h. */ 19877#include <math.h> 19878int 19879main () 19880{ 19881float f; isnan(f); 19882 ; 19883 return 0; 19884} 19885_ACEOF 19886rm -f conftest.$ac_objext 19887if { (ac_try="$ac_compile" 19888case "(($ac_try" in 19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19890 *) ac_try_echo=$ac_try;; 19891esac 19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19893 (eval "$ac_compile") 2>conftest.er1 19894 ac_status=$? 19895 grep -v '^ *+' conftest.er1 >conftest.err 19896 rm -f conftest.er1 19897 cat conftest.err >&5 19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19899 (exit $ac_status); } && 19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19901 { (case "(($ac_try" in 19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19903 *) ac_try_echo=$ac_try;; 19904esac 19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19906 (eval "$ac_try") 2>&5 19907 ac_status=$? 19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19909 (exit $ac_status); }; } && 19910 { ac_try='test -s conftest.$ac_objext' 19911 { (case "(($ac_try" in 19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19913 *) ac_try_echo=$ac_try;; 19914esac 19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19916 (eval "$ac_try") 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; }; then 19920 ac_cv_func_isnan_in_math_h=yes 19921else 19922 echo "$as_me: failed program was:" >&5 19923sed 's/^/| /' conftest.$ac_ext >&5 19924 19925 ac_cv_func_isnan_in_math_h=no 19926fi 19927 19928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19929 ac_ext=c 19930ac_cpp='$CPP $CPPFLAGS' 19931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19933ac_compiler_gnu=$ac_cv_c_compiler_gnu 19934 19935 19936fi 19937{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19938echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19939 19940 19941if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19942 19943cat >>confdefs.h <<\_ACEOF 19944#define HAVE_ISNAN_IN_MATH_H 1 19945_ACEOF 19946 19947fi 19948 19949 19950 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19951echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19952if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19953 echo $ECHO_N "(cached) $ECHO_C" >&6 19954else 19955 19956 ac_ext=cpp 19957ac_cpp='$CXXCPP $CPPFLAGS' 19958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19961 19962 cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968#include <cmath> 19969int 19970main () 19971{ 19972float f; isnan(f); 19973 ; 19974 return 0; 19975} 19976_ACEOF 19977rm -f conftest.$ac_objext 19978if { (ac_try="$ac_compile" 19979case "(($ac_try" in 19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19981 *) ac_try_echo=$ac_try;; 19982esac 19983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19984 (eval "$ac_compile") 2>conftest.er1 19985 ac_status=$? 19986 grep -v '^ *+' conftest.er1 >conftest.err 19987 rm -f conftest.er1 19988 cat conftest.err >&5 19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19990 (exit $ac_status); } && 19991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19992 { (case "(($ac_try" in 19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19994 *) ac_try_echo=$ac_try;; 19995esac 19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19997 (eval "$ac_try") 2>&5 19998 ac_status=$? 19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20000 (exit $ac_status); }; } && 20001 { ac_try='test -s conftest.$ac_objext' 20002 { (case "(($ac_try" in 20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20004 *) ac_try_echo=$ac_try;; 20005esac 20006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20007 (eval "$ac_try") 2>&5 20008 ac_status=$? 20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20010 (exit $ac_status); }; }; then 20011 ac_cv_func_isnan_in_cmath=yes 20012else 20013 echo "$as_me: failed program was:" >&5 20014sed 's/^/| /' conftest.$ac_ext >&5 20015 20016 ac_cv_func_isnan_in_cmath=no 20017fi 20018 20019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20020 ac_ext=c 20021ac_cpp='$CPP $CPPFLAGS' 20022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20024ac_compiler_gnu=$ac_cv_c_compiler_gnu 20025 20026 20027fi 20028{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20029echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20030 20031if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20032 20033cat >>confdefs.h <<\_ACEOF 20034#define HAVE_ISNAN_IN_CMATH 1 20035_ACEOF 20036 20037fi 20038 20039 20040 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20041echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20042if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20043 echo $ECHO_N "(cached) $ECHO_C" >&6 20044else 20045 20046 ac_ext=cpp 20047ac_cpp='$CXXCPP $CPPFLAGS' 20048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20051 20052 cat >conftest.$ac_ext <<_ACEOF 20053/* confdefs.h. */ 20054_ACEOF 20055cat confdefs.h >>conftest.$ac_ext 20056cat >>conftest.$ac_ext <<_ACEOF 20057/* end confdefs.h. */ 20058#include <cmath> 20059int 20060main () 20061{ 20062float f; std::isnan(f); 20063 ; 20064 return 0; 20065} 20066_ACEOF 20067rm -f conftest.$ac_objext 20068if { (ac_try="$ac_compile" 20069case "(($ac_try" in 20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20071 *) ac_try_echo=$ac_try;; 20072esac 20073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20074 (eval "$ac_compile") 2>conftest.er1 20075 ac_status=$? 20076 grep -v '^ *+' conftest.er1 >conftest.err 20077 rm -f conftest.er1 20078 cat conftest.err >&5 20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20080 (exit $ac_status); } && 20081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20082 { (case "(($ac_try" in 20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20084 *) ac_try_echo=$ac_try;; 20085esac 20086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20087 (eval "$ac_try") 2>&5 20088 ac_status=$? 20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20090 (exit $ac_status); }; } && 20091 { ac_try='test -s conftest.$ac_objext' 20092 { (case "(($ac_try" in 20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20094 *) ac_try_echo=$ac_try;; 20095esac 20096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20097 (eval "$ac_try") 2>&5 20098 ac_status=$? 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20100 (exit $ac_status); }; }; then 20101 ac_cv_func_std_isnan_in_cmath=yes 20102else 20103 echo "$as_me: failed program was:" >&5 20104sed 's/^/| /' conftest.$ac_ext >&5 20105 20106 ac_cv_func_std_isnan_in_cmath=no 20107fi 20108 20109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20110 ac_ext=c 20111ac_cpp='$CPP $CPPFLAGS' 20112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20114ac_compiler_gnu=$ac_cv_c_compiler_gnu 20115 20116 20117fi 20118{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 20119echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 20120 20121if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 20122 20123cat >>confdefs.h <<\_ACEOF 20124#define HAVE_STD_ISNAN_IN_CMATH 1 20125_ACEOF 20126 20127fi 20128 20129 20130 20131 20132 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 20133echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 20134if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 20135 echo $ECHO_N "(cached) $ECHO_C" >&6 20136else 20137 20138 ac_ext=cpp 20139ac_cpp='$CXXCPP $CPPFLAGS' 20140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20143 20144 cat >conftest.$ac_ext <<_ACEOF 20145/* confdefs.h. */ 20146_ACEOF 20147cat confdefs.h >>conftest.$ac_ext 20148cat >>conftest.$ac_ext <<_ACEOF 20149/* end confdefs.h. */ 20150#include <math.h> 20151int 20152main () 20153{ 20154float f; isinf(f); 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159rm -f conftest.$ac_objext 20160if { (ac_try="$ac_compile" 20161case "(($ac_try" in 20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20163 *) ac_try_echo=$ac_try;; 20164esac 20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20166 (eval "$ac_compile") 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } && 20173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20174 { (case "(($ac_try" in 20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20176 *) ac_try_echo=$ac_try;; 20177esac 20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20179 (eval "$ac_try") 2>&5 20180 ac_status=$? 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); }; } && 20183 { ac_try='test -s conftest.$ac_objext' 20184 { (case "(($ac_try" in 20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20186 *) ac_try_echo=$ac_try;; 20187esac 20188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20189 (eval "$ac_try") 2>&5 20190 ac_status=$? 20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20192 (exit $ac_status); }; }; then 20193 ac_cv_func_isinf_in_math_h=yes 20194else 20195 echo "$as_me: failed program was:" >&5 20196sed 's/^/| /' conftest.$ac_ext >&5 20197 20198 ac_cv_func_isinf_in_math_h=no 20199fi 20200 20201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20202 ac_ext=c 20203ac_cpp='$CPP $CPPFLAGS' 20204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20206ac_compiler_gnu=$ac_cv_c_compiler_gnu 20207 20208 20209fi 20210{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 20211echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 20212 20213if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 20214 20215cat >>confdefs.h <<\_ACEOF 20216#define HAVE_ISINF_IN_MATH_H 1 20217_ACEOF 20218 20219fi 20220 20221 20222 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 20223echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 20224if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 20225 echo $ECHO_N "(cached) $ECHO_C" >&6 20226else 20227 20228 ac_ext=cpp 20229ac_cpp='$CXXCPP $CPPFLAGS' 20230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20233 20234 cat >conftest.$ac_ext <<_ACEOF 20235/* confdefs.h. */ 20236_ACEOF 20237cat confdefs.h >>conftest.$ac_ext 20238cat >>conftest.$ac_ext <<_ACEOF 20239/* end confdefs.h. */ 20240#include <cmath> 20241int 20242main () 20243{ 20244float f; isinf(f); 20245 ; 20246 return 0; 20247} 20248_ACEOF 20249rm -f conftest.$ac_objext 20250if { (ac_try="$ac_compile" 20251case "(($ac_try" in 20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20253 *) ac_try_echo=$ac_try;; 20254esac 20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20256 (eval "$ac_compile") 2>conftest.er1 20257 ac_status=$? 20258 grep -v '^ *+' conftest.er1 >conftest.err 20259 rm -f conftest.er1 20260 cat conftest.err >&5 20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20262 (exit $ac_status); } && 20263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20264 { (case "(($ac_try" in 20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20266 *) ac_try_echo=$ac_try;; 20267esac 20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20269 (eval "$ac_try") 2>&5 20270 ac_status=$? 20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20272 (exit $ac_status); }; } && 20273 { ac_try='test -s conftest.$ac_objext' 20274 { (case "(($ac_try" in 20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20276 *) ac_try_echo=$ac_try;; 20277esac 20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20279 (eval "$ac_try") 2>&5 20280 ac_status=$? 20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20282 (exit $ac_status); }; }; then 20283 ac_cv_func_isinf_in_cmath=yes 20284else 20285 echo "$as_me: failed program was:" >&5 20286sed 's/^/| /' conftest.$ac_ext >&5 20287 20288 ac_cv_func_isinf_in_cmath=no 20289fi 20290 20291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20292 ac_ext=c 20293ac_cpp='$CPP $CPPFLAGS' 20294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20296ac_compiler_gnu=$ac_cv_c_compiler_gnu 20297 20298 20299fi 20300{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 20301echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 20302 20303if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20304 20305cat >>confdefs.h <<\_ACEOF 20306#define HAVE_ISINF_IN_CMATH 1 20307_ACEOF 20308 20309fi 20310 20311 20312 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 20313echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 20314if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 20315 echo $ECHO_N "(cached) $ECHO_C" >&6 20316else 20317 20318 ac_ext=cpp 20319ac_cpp='$CXXCPP $CPPFLAGS' 20320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20323 20324 cat >conftest.$ac_ext <<_ACEOF 20325/* confdefs.h. */ 20326_ACEOF 20327cat confdefs.h >>conftest.$ac_ext 20328cat >>conftest.$ac_ext <<_ACEOF 20329/* end confdefs.h. */ 20330#include <cmath> 20331int 20332main () 20333{ 20334float f; std::isinf(f); 20335 ; 20336 return 0; 20337} 20338_ACEOF 20339rm -f conftest.$ac_objext 20340if { (ac_try="$ac_compile" 20341case "(($ac_try" in 20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20343 *) ac_try_echo=$ac_try;; 20344esac 20345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20346 (eval "$ac_compile") 2>conftest.er1 20347 ac_status=$? 20348 grep -v '^ *+' conftest.er1 >conftest.err 20349 rm -f conftest.er1 20350 cat conftest.err >&5 20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20352 (exit $ac_status); } && 20353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20354 { (case "(($ac_try" in 20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20356 *) ac_try_echo=$ac_try;; 20357esac 20358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20359 (eval "$ac_try") 2>&5 20360 ac_status=$? 20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20362 (exit $ac_status); }; } && 20363 { ac_try='test -s conftest.$ac_objext' 20364 { (case "(($ac_try" in 20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20366 *) ac_try_echo=$ac_try;; 20367esac 20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20369 (eval "$ac_try") 2>&5 20370 ac_status=$? 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20372 (exit $ac_status); }; }; then 20373 ac_cv_func_std_isinf_in_cmath=yes 20374else 20375 echo "$as_me: failed program was:" >&5 20376sed 's/^/| /' conftest.$ac_ext >&5 20377 20378 ac_cv_func_std_isinf_in_cmath=no 20379fi 20380 20381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20382 ac_ext=c 20383ac_cpp='$CPP $CPPFLAGS' 20384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20386ac_compiler_gnu=$ac_cv_c_compiler_gnu 20387 20388 20389fi 20390{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20391echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20392 20393if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20394 20395cat >>confdefs.h <<\_ACEOF 20396#define HAVE_STD_ISINF_IN_CMATH 1 20397_ACEOF 20398 20399fi 20400 20401 20402 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20403echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20404if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20405 echo $ECHO_N "(cached) $ECHO_C" >&6 20406else 20407 20408 ac_ext=cpp 20409ac_cpp='$CXXCPP $CPPFLAGS' 20410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20413 20414 cat >conftest.$ac_ext <<_ACEOF 20415/* confdefs.h. */ 20416_ACEOF 20417cat confdefs.h >>conftest.$ac_ext 20418cat >>conftest.$ac_ext <<_ACEOF 20419/* end confdefs.h. */ 20420#include <ieeefp.h> 20421int 20422main () 20423{ 20424float f; finite(f); 20425 ; 20426 return 0; 20427} 20428_ACEOF 20429rm -f conftest.$ac_objext 20430if { (ac_try="$ac_compile" 20431case "(($ac_try" in 20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20433 *) ac_try_echo=$ac_try;; 20434esac 20435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20436 (eval "$ac_compile") 2>conftest.er1 20437 ac_status=$? 20438 grep -v '^ *+' conftest.er1 >conftest.err 20439 rm -f conftest.er1 20440 cat conftest.err >&5 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); } && 20443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20444 { (case "(($ac_try" in 20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20446 *) ac_try_echo=$ac_try;; 20447esac 20448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20449 (eval "$ac_try") 2>&5 20450 ac_status=$? 20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20452 (exit $ac_status); }; } && 20453 { ac_try='test -s conftest.$ac_objext' 20454 { (case "(($ac_try" in 20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20456 *) ac_try_echo=$ac_try;; 20457esac 20458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20459 (eval "$ac_try") 2>&5 20460 ac_status=$? 20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20462 (exit $ac_status); }; }; then 20463 ac_cv_func_finite_in_ieeefp_h=yes 20464else 20465 echo "$as_me: failed program was:" >&5 20466sed 's/^/| /' conftest.$ac_ext >&5 20467 20468 ac_cv_func_finite_in_ieeefp_h=no 20469fi 20470 20471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20472 ac_ext=c 20473ac_cpp='$CPP $CPPFLAGS' 20474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20476ac_compiler_gnu=$ac_cv_c_compiler_gnu 20477 20478 20479fi 20480{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20481echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20482 20483if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20484 20485cat >>confdefs.h <<\_ACEOF 20486#define HAVE_FINITE_IN_IEEEFP_H 1 20487_ACEOF 20488 20489fi 20490 20491 20492 20493if test "$llvm_cv_platform_type" = "Unix" ; then 20494 20495 20496for ac_header in stdlib.h unistd.h 20497do 20498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20500 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20503 echo $ECHO_N "(cached) $ECHO_C" >&6 20504fi 20505ac_res=`eval echo '${'$as_ac_Header'}'` 20506 { echo "$as_me:$LINENO: result: $ac_res" >&5 20507echo "${ECHO_T}$ac_res" >&6; } 20508else 20509 # Is the header compilable? 20510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20512cat >conftest.$ac_ext <<_ACEOF 20513/* confdefs.h. */ 20514_ACEOF 20515cat confdefs.h >>conftest.$ac_ext 20516cat >>conftest.$ac_ext <<_ACEOF 20517/* end confdefs.h. */ 20518$ac_includes_default 20519#include <$ac_header> 20520_ACEOF 20521rm -f conftest.$ac_objext 20522if { (ac_try="$ac_compile" 20523case "(($ac_try" in 20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20525 *) ac_try_echo=$ac_try;; 20526esac 20527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20528 (eval "$ac_compile") 2>conftest.er1 20529 ac_status=$? 20530 grep -v '^ *+' conftest.er1 >conftest.err 20531 rm -f conftest.er1 20532 cat conftest.err >&5 20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20534 (exit $ac_status); } && 20535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20536 { (case "(($ac_try" in 20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20538 *) ac_try_echo=$ac_try;; 20539esac 20540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20541 (eval "$ac_try") 2>&5 20542 ac_status=$? 20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20544 (exit $ac_status); }; } && 20545 { ac_try='test -s conftest.$ac_objext' 20546 { (case "(($ac_try" in 20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20548 *) ac_try_echo=$ac_try;; 20549esac 20550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20551 (eval "$ac_try") 2>&5 20552 ac_status=$? 20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20554 (exit $ac_status); }; }; then 20555 ac_header_compiler=yes 20556else 20557 echo "$as_me: failed program was:" >&5 20558sed 's/^/| /' conftest.$ac_ext >&5 20559 20560 ac_header_compiler=no 20561fi 20562 20563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20565echo "${ECHO_T}$ac_header_compiler" >&6; } 20566 20567# Is the header present? 20568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20570cat >conftest.$ac_ext <<_ACEOF 20571/* confdefs.h. */ 20572_ACEOF 20573cat confdefs.h >>conftest.$ac_ext 20574cat >>conftest.$ac_ext <<_ACEOF 20575/* end confdefs.h. */ 20576#include <$ac_header> 20577_ACEOF 20578if { (ac_try="$ac_cpp conftest.$ac_ext" 20579case "(($ac_try" in 20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20581 *) ac_try_echo=$ac_try;; 20582esac 20583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20585 ac_status=$? 20586 grep -v '^ *+' conftest.er1 >conftest.err 20587 rm -f conftest.er1 20588 cat conftest.err >&5 20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20590 (exit $ac_status); } >/dev/null; then 20591 if test -s conftest.err; then 20592 ac_cpp_err=$ac_c_preproc_warn_flag 20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20594 else 20595 ac_cpp_err= 20596 fi 20597else 20598 ac_cpp_err=yes 20599fi 20600if test -z "$ac_cpp_err"; then 20601 ac_header_preproc=yes 20602else 20603 echo "$as_me: failed program was:" >&5 20604sed 's/^/| /' conftest.$ac_ext >&5 20605 20606 ac_header_preproc=no 20607fi 20608 20609rm -f conftest.err conftest.$ac_ext 20610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20611echo "${ECHO_T}$ac_header_preproc" >&6; } 20612 20613# So? What about this header? 20614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20615 yes:no: ) 20616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20620 ac_header_preproc=yes 20621 ;; 20622 no:yes:* ) 20623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20635 ( cat <<\_ASBOX 20636## ------------------------------------ ## 20637## Report this to http://llvm.org/bugs/ ## 20638## ------------------------------------ ## 20639_ASBOX 20640 ) | sed "s/^/$as_me: WARNING: /" >&2 20641 ;; 20642esac 20643{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20646 echo $ECHO_N "(cached) $ECHO_C" >&6 20647else 20648 eval "$as_ac_Header=\$ac_header_preproc" 20649fi 20650ac_res=`eval echo '${'$as_ac_Header'}'` 20651 { echo "$as_me:$LINENO: result: $ac_res" >&5 20652echo "${ECHO_T}$ac_res" >&6; } 20653 20654fi 20655if test `eval echo '${'$as_ac_Header'}'` = yes; then 20656 cat >>confdefs.h <<_ACEOF 20657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20658_ACEOF 20659 20660fi 20661 20662done 20663 20664 20665for ac_func in getpagesize 20666do 20667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20668{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20670if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20671 echo $ECHO_N "(cached) $ECHO_C" >&6 20672else 20673 cat >conftest.$ac_ext <<_ACEOF 20674/* confdefs.h. */ 20675_ACEOF 20676cat confdefs.h >>conftest.$ac_ext 20677cat >>conftest.$ac_ext <<_ACEOF 20678/* end confdefs.h. */ 20679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20681#define $ac_func innocuous_$ac_func 20682 20683/* System header to define __stub macros and hopefully few prototypes, 20684 which can conflict with char $ac_func (); below. 20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20686 <limits.h> exists even on freestanding compilers. */ 20687 20688#ifdef __STDC__ 20689# include <limits.h> 20690#else 20691# include <assert.h> 20692#endif 20693 20694#undef $ac_func 20695 20696/* Override any GCC internal prototype to avoid an error. 20697 Use char because int might match the return type of a GCC 20698 builtin and then its argument prototype would still apply. */ 20699#ifdef __cplusplus 20700extern "C" 20701#endif 20702char $ac_func (); 20703/* The GNU C library defines this for functions which it implements 20704 to always fail with ENOSYS. Some functions are actually named 20705 something starting with __ and the normal name is an alias. */ 20706#if defined __stub_$ac_func || defined __stub___$ac_func 20707choke me 20708#endif 20709 20710int 20711main () 20712{ 20713return $ac_func (); 20714 ; 20715 return 0; 20716} 20717_ACEOF 20718rm -f conftest.$ac_objext conftest$ac_exeext 20719if { (ac_try="$ac_link" 20720case "(($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_link") 2>conftest.er1 20726 ac_status=$? 20727 grep -v '^ *+' conftest.er1 >conftest.err 20728 rm -f conftest.er1 20729 cat conftest.err >&5 20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20731 (exit $ac_status); } && 20732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20733 { (case "(($ac_try" in 20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20735 *) ac_try_echo=$ac_try;; 20736esac 20737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20738 (eval "$ac_try") 2>&5 20739 ac_status=$? 20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20741 (exit $ac_status); }; } && 20742 { ac_try='test -s conftest$ac_exeext' 20743 { (case "(($ac_try" in 20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20745 *) ac_try_echo=$ac_try;; 20746esac 20747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20748 (eval "$ac_try") 2>&5 20749 ac_status=$? 20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20751 (exit $ac_status); }; }; then 20752 eval "$as_ac_var=yes" 20753else 20754 echo "$as_me: failed program was:" >&5 20755sed 's/^/| /' conftest.$ac_ext >&5 20756 20757 eval "$as_ac_var=no" 20758fi 20759 20760rm -f core conftest.err conftest.$ac_objext \ 20761 conftest$ac_exeext conftest.$ac_ext 20762fi 20763ac_res=`eval echo '${'$as_ac_var'}'` 20764 { echo "$as_me:$LINENO: result: $ac_res" >&5 20765echo "${ECHO_T}$ac_res" >&6; } 20766if test `eval echo '${'$as_ac_var'}'` = yes; then 20767 cat >>confdefs.h <<_ACEOF 20768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20769_ACEOF 20770 20771fi 20772done 20773 20774{ echo "$as_me:$LINENO: checking for working mmap" >&5 20775echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20776if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20777 echo $ECHO_N "(cached) $ECHO_C" >&6 20778else 20779 if test "$cross_compiling" = yes; then 20780 ac_cv_func_mmap_fixed_mapped=no 20781else 20782 cat >conftest.$ac_ext <<_ACEOF 20783/* confdefs.h. */ 20784_ACEOF 20785cat confdefs.h >>conftest.$ac_ext 20786cat >>conftest.$ac_ext <<_ACEOF 20787/* end confdefs.h. */ 20788$ac_includes_default 20789/* malloc might have been renamed as rpl_malloc. */ 20790#undef malloc 20791 20792/* Thanks to Mike Haertel and Jim Avera for this test. 20793 Here is a matrix of mmap possibilities: 20794 mmap private not fixed 20795 mmap private fixed at somewhere currently unmapped 20796 mmap private fixed at somewhere already mapped 20797 mmap shared not fixed 20798 mmap shared fixed at somewhere currently unmapped 20799 mmap shared fixed at somewhere already mapped 20800 For private mappings, we should verify that changes cannot be read() 20801 back from the file, nor mmap's back from the file at a different 20802 address. (There have been systems where private was not correctly 20803 implemented like the infamous i386 svr4.0, and systems where the 20804 VM page cache was not coherent with the file system buffer cache 20805 like early versions of FreeBSD and possibly contemporary NetBSD.) 20806 For shared mappings, we should conversely verify that changes get 20807 propagated back to all the places they're supposed to be. 20808 20809 Grep wants private fixed already mapped. 20810 The main things grep needs to know about mmap are: 20811 * does it exist and is it safe to write into the mmap'd area 20812 * how to use it (BSD variants) */ 20813 20814#include <fcntl.h> 20815#include <sys/mman.h> 20816 20817#if !STDC_HEADERS && !HAVE_STDLIB_H 20818char *malloc (); 20819#endif 20820 20821/* This mess was copied from the GNU getpagesize.h. */ 20822#if !HAVE_GETPAGESIZE 20823/* Assume that all systems that can run configure have sys/param.h. */ 20824# if !HAVE_SYS_PARAM_H 20825# define HAVE_SYS_PARAM_H 1 20826# endif 20827 20828# ifdef _SC_PAGESIZE 20829# define getpagesize() sysconf(_SC_PAGESIZE) 20830# else /* no _SC_PAGESIZE */ 20831# if HAVE_SYS_PARAM_H 20832# include <sys/param.h> 20833# ifdef EXEC_PAGESIZE 20834# define getpagesize() EXEC_PAGESIZE 20835# else /* no EXEC_PAGESIZE */ 20836# ifdef NBPG 20837# define getpagesize() NBPG * CLSIZE 20838# ifndef CLSIZE 20839# define CLSIZE 1 20840# endif /* no CLSIZE */ 20841# else /* no NBPG */ 20842# ifdef NBPC 20843# define getpagesize() NBPC 20844# else /* no NBPC */ 20845# ifdef PAGESIZE 20846# define getpagesize() PAGESIZE 20847# endif /* PAGESIZE */ 20848# endif /* no NBPC */ 20849# endif /* no NBPG */ 20850# endif /* no EXEC_PAGESIZE */ 20851# else /* no HAVE_SYS_PARAM_H */ 20852# define getpagesize() 8192 /* punt totally */ 20853# endif /* no HAVE_SYS_PARAM_H */ 20854# endif /* no _SC_PAGESIZE */ 20855 20856#endif /* no HAVE_GETPAGESIZE */ 20857 20858int 20859main () 20860{ 20861 char *data, *data2, *data3; 20862 int i, pagesize; 20863 int fd; 20864 20865 pagesize = getpagesize (); 20866 20867 /* First, make a file with some known garbage in it. */ 20868 data = (char *) malloc (pagesize); 20869 if (!data) 20870 return 1; 20871 for (i = 0; i < pagesize; ++i) 20872 *(data + i) = rand (); 20873 umask (0); 20874 fd = creat ("conftest.mmap", 0600); 20875 if (fd < 0) 20876 return 1; 20877 if (write (fd, data, pagesize) != pagesize) 20878 return 1; 20879 close (fd); 20880 20881 /* Next, try to mmap the file at a fixed address which already has 20882 something else allocated at it. If we can, also make sure that 20883 we see the same garbage. */ 20884 fd = open ("conftest.mmap", O_RDWR); 20885 if (fd < 0) 20886 return 1; 20887 data2 = (char *) malloc (2 * pagesize); 20888 if (!data2) 20889 return 1; 20890 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20892 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20893 return 1; 20894 for (i = 0; i < pagesize; ++i) 20895 if (*(data + i) != *(data2 + i)) 20896 return 1; 20897 20898 /* Finally, make sure that changes to the mapped area do not 20899 percolate back to the file as seen by read(). (This is a bug on 20900 some variants of i386 svr4.0.) */ 20901 for (i = 0; i < pagesize; ++i) 20902 *(data2 + i) = *(data2 + i) + 1; 20903 data3 = (char *) malloc (pagesize); 20904 if (!data3) 20905 return 1; 20906 if (read (fd, data3, pagesize) != pagesize) 20907 return 1; 20908 for (i = 0; i < pagesize; ++i) 20909 if (*(data + i) != *(data3 + i)) 20910 return 1; 20911 close (fd); 20912 return 0; 20913} 20914_ACEOF 20915rm -f conftest$ac_exeext 20916if { (ac_try="$ac_link" 20917case "(($ac_try" in 20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20919 *) ac_try_echo=$ac_try;; 20920esac 20921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20922 (eval "$ac_link") 2>&5 20923 ac_status=$? 20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20926 { (case "(($ac_try" in 20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20928 *) ac_try_echo=$ac_try;; 20929esac 20930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20931 (eval "$ac_try") 2>&5 20932 ac_status=$? 20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20934 (exit $ac_status); }; }; then 20935 ac_cv_func_mmap_fixed_mapped=yes 20936else 20937 echo "$as_me: program exited with status $ac_status" >&5 20938echo "$as_me: failed program was:" >&5 20939sed 's/^/| /' conftest.$ac_ext >&5 20940 20941( exit $ac_status ) 20942ac_cv_func_mmap_fixed_mapped=no 20943fi 20944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20945fi 20946 20947 20948fi 20949{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20950echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20951if test $ac_cv_func_mmap_fixed_mapped = yes; then 20952 20953cat >>confdefs.h <<\_ACEOF 20954#define HAVE_MMAP 1 20955_ACEOF 20956 20957fi 20958rm -f conftest.mmap 20959 20960 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20961echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20962if test "${ac_cv_func_mmap_file+set}" = set; then 20963 echo $ECHO_N "(cached) $ECHO_C" >&6 20964else 20965 ac_ext=c 20966ac_cpp='$CPP $CPPFLAGS' 20967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20969ac_compiler_gnu=$ac_cv_c_compiler_gnu 20970 20971 if test "$cross_compiling" = yes; then 20972 ac_cv_func_mmap_file=no 20973else 20974 cat >conftest.$ac_ext <<_ACEOF 20975 20976 /* confdefs.h. */ 20977_ACEOF 20978cat confdefs.h >>conftest.$ac_ext 20979cat >>conftest.$ac_ext <<_ACEOF 20980/* end confdefs.h. */ 20981 20982#include <sys/types.h> 20983#include <sys/mman.h> 20984#include <fcntl.h> 20985 20986int 20987main () 20988{ 20989 20990 int fd; 20991 fd = creat ("foo",0777); 20992 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20993 unlink ("foo"); 20994 return (fd != (int) MAP_FAILED); 20995 ; 20996 return 0; 20997} 20998_ACEOF 20999rm -f conftest$ac_exeext 21000if { (ac_try="$ac_link" 21001case "(($ac_try" in 21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21003 *) ac_try_echo=$ac_try;; 21004esac 21005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21006 (eval "$ac_link") 2>&5 21007 ac_status=$? 21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21010 { (case "(($ac_try" in 21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21012 *) ac_try_echo=$ac_try;; 21013esac 21014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21015 (eval "$ac_try") 2>&5 21016 ac_status=$? 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); }; }; then 21019 ac_cv_func_mmap_file=yes 21020else 21021 echo "$as_me: program exited with status $ac_status" >&5 21022echo "$as_me: failed program was:" >&5 21023sed 's/^/| /' conftest.$ac_ext >&5 21024 21025( exit $ac_status ) 21026ac_cv_func_mmap_file=no 21027fi 21028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21029fi 21030 21031 21032 ac_ext=c 21033ac_cpp='$CPP $CPPFLAGS' 21034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21036ac_compiler_gnu=$ac_cv_c_compiler_gnu 21037 21038 21039fi 21040{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21041echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21042if test "$ac_cv_func_mmap_file" = yes; then 21043 21044cat >>confdefs.h <<\_ACEOF 21045#define HAVE_MMAP_FILE 21046_ACEOF 21047 21048 MMAP_FILE=yes 21049 21050fi 21051 21052 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21053echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21054if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21055 echo $ECHO_N "(cached) $ECHO_C" >&6 21056else 21057 if test "$llvm_cv_os_type" = "Interix" ; then 21058 ac_cv_need_dev_zero_for_mmap=yes 21059 else 21060 ac_cv_need_dev_zero_for_mmap=no 21061 fi 21062 21063fi 21064{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21065echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21066if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21067 21068cat >>confdefs.h <<\_ACEOF 21069#define NEED_DEV_ZERO_FOR_MMAP 1 21070_ACEOF 21071 21072fi 21073 21074 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21075 then 21076 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21077echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21078 fi 21079 if test "$ac_cv_func_mmap_file" = "no" 21080 then 21081 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21082echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21083 fi 21084fi 21085 21086{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21087echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21088ac_ext=cpp 21089ac_cpp='$CXXCPP $CPPFLAGS' 21090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21093 21094cat >conftest.$ac_ext <<_ACEOF 21095 21096 /* confdefs.h. */ 21097_ACEOF 21098cat confdefs.h >>conftest.$ac_ext 21099cat >>conftest.$ac_ext <<_ACEOF 21100/* end confdefs.h. */ 21101 21102 int main() { 21103 volatile unsigned long val = 1; 21104 __sync_synchronize(); 21105 __sync_val_compare_and_swap(&val, 1, 0); 21106 __sync_add_and_fetch(&val, 1); 21107 __sync_sub_and_fetch(&val, 1); 21108 return 0; 21109 } 21110 21111 21112_ACEOF 21113rm -f conftest.$ac_objext conftest$ac_exeext 21114if { (ac_try="$ac_link" 21115case "(($ac_try" in 21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21117 *) ac_try_echo=$ac_try;; 21118esac 21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21120 (eval "$ac_link") 2>conftest.er1 21121 ac_status=$? 21122 grep -v '^ *+' conftest.er1 >conftest.err 21123 rm -f conftest.er1 21124 cat conftest.err >&5 21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); } && 21127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21128 { (case "(($ac_try" in 21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21130 *) ac_try_echo=$ac_try;; 21131esac 21132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21133 (eval "$ac_try") 2>&5 21134 ac_status=$? 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21136 (exit $ac_status); }; } && 21137 { ac_try='test -s conftest$ac_exeext' 21138 { (case "(($ac_try" in 21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21140 *) ac_try_echo=$ac_try;; 21141esac 21142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21143 (eval "$ac_try") 2>&5 21144 ac_status=$? 21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21146 (exit $ac_status); }; }; then 21147 21148 { echo "$as_me:$LINENO: result: yes" >&5 21149echo "${ECHO_T}yes" >&6; } 21150 21151cat >>confdefs.h <<\_ACEOF 21152#define LLVM_HAS_ATOMICS 1 21153_ACEOF 21154 21155 21156else 21157 echo "$as_me: failed program was:" >&5 21158sed 's/^/| /' conftest.$ac_ext >&5 21159 21160 21161 { echo "$as_me:$LINENO: result: no" >&5 21162echo "${ECHO_T}no" >&6; } 21163 21164cat >>confdefs.h <<\_ACEOF 21165#define LLVM_HAS_ATOMICS 0 21166_ACEOF 21167 21168 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 21169echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 21170 21171fi 21172 21173rm -f core conftest.err conftest.$ac_objext \ 21174 conftest$ac_exeext conftest.$ac_ext 21175ac_ext=c 21176ac_cpp='$CPP $CPPFLAGS' 21177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21179ac_compiler_gnu=$ac_cv_c_compiler_gnu 21180 21181 21182 21183if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 21184 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 21185echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 21186if test "${llvm_cv_linux_mixed+set}" = set; then 21187 echo $ECHO_N "(cached) $ECHO_C" >&6 21188else 21189 ac_ext=c 21190ac_cpp='$CPP $CPPFLAGS' 21191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21193ac_compiler_gnu=$ac_cv_c_compiler_gnu 21194 21195 cat >conftest.$ac_ext <<_ACEOF 21196/* confdefs.h. */ 21197_ACEOF 21198cat confdefs.h >>conftest.$ac_ext 21199cat >>conftest.$ac_ext <<_ACEOF 21200/* end confdefs.h. */ 21201#ifndef __x86_64__ 21202 error: Not x86-64 even if uname says so! 21203 #endif 21204 21205int 21206main () 21207{ 21208 21209 ; 21210 return 0; 21211} 21212_ACEOF 21213rm -f conftest.$ac_objext 21214if { (ac_try="$ac_compile" 21215case "(($ac_try" in 21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21217 *) ac_try_echo=$ac_try;; 21218esac 21219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21220 (eval "$ac_compile") 2>conftest.er1 21221 ac_status=$? 21222 grep -v '^ *+' conftest.er1 >conftest.err 21223 rm -f conftest.er1 21224 cat conftest.err >&5 21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21226 (exit $ac_status); } && 21227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21228 { (case "(($ac_try" in 21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21230 *) ac_try_echo=$ac_try;; 21231esac 21232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21233 (eval "$ac_try") 2>&5 21234 ac_status=$? 21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21236 (exit $ac_status); }; } && 21237 { ac_try='test -s conftest.$ac_objext' 21238 { (case "(($ac_try" in 21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21240 *) ac_try_echo=$ac_try;; 21241esac 21242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21243 (eval "$ac_try") 2>&5 21244 ac_status=$? 21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21246 (exit $ac_status); }; }; then 21247 llvm_cv_linux_mixed=no 21248else 21249 echo "$as_me: failed program was:" >&5 21250sed 's/^/| /' conftest.$ac_ext >&5 21251 21252 llvm_cv_linux_mixed=yes 21253fi 21254 21255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21256 ac_ext=c 21257ac_cpp='$CPP $CPPFLAGS' 21258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21260ac_compiler_gnu=$ac_cv_c_compiler_gnu 21261 21262 21263fi 21264{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 21265echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 21266 21267 if test "$llvm_cv_linux_mixed" = "yes"; then 21268 llvm_cv_target_arch="x86" 21269 ARCH="x86" 21270 fi 21271fi 21272 21273 21274for ac_func in __dso_handle 21275do 21276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21277{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21280 echo $ECHO_N "(cached) $ECHO_C" >&6 21281else 21282 cat >conftest.$ac_ext <<_ACEOF 21283/* confdefs.h. */ 21284_ACEOF 21285cat confdefs.h >>conftest.$ac_ext 21286cat >>conftest.$ac_ext <<_ACEOF 21287/* end confdefs.h. */ 21288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21289 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21290#define $ac_func innocuous_$ac_func 21291 21292/* System header to define __stub macros and hopefully few prototypes, 21293 which can conflict with char $ac_func (); below. 21294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21295 <limits.h> exists even on freestanding compilers. */ 21296 21297#ifdef __STDC__ 21298# include <limits.h> 21299#else 21300# include <assert.h> 21301#endif 21302 21303#undef $ac_func 21304 21305/* Override any GCC internal prototype to avoid an error. 21306 Use char because int might match the return type of a GCC 21307 builtin and then its argument prototype would still apply. */ 21308#ifdef __cplusplus 21309extern "C" 21310#endif 21311char $ac_func (); 21312/* The GNU C library defines this for functions which it implements 21313 to always fail with ENOSYS. Some functions are actually named 21314 something starting with __ and the normal name is an alias. */ 21315#if defined __stub_$ac_func || defined __stub___$ac_func 21316choke me 21317#endif 21318 21319int 21320main () 21321{ 21322return $ac_func (); 21323 ; 21324 return 0; 21325} 21326_ACEOF 21327rm -f conftest.$ac_objext conftest$ac_exeext 21328if { (ac_try="$ac_link" 21329case "(($ac_try" in 21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21331 *) ac_try_echo=$ac_try;; 21332esac 21333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21334 (eval "$ac_link") 2>conftest.er1 21335 ac_status=$? 21336 grep -v '^ *+' conftest.er1 >conftest.err 21337 rm -f conftest.er1 21338 cat conftest.err >&5 21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21340 (exit $ac_status); } && 21341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21342 { (case "(($ac_try" in 21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21344 *) ac_try_echo=$ac_try;; 21345esac 21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21347 (eval "$ac_try") 2>&5 21348 ac_status=$? 21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21350 (exit $ac_status); }; } && 21351 { ac_try='test -s conftest$ac_exeext' 21352 { (case "(($ac_try" in 21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21354 *) ac_try_echo=$ac_try;; 21355esac 21356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21357 (eval "$ac_try") 2>&5 21358 ac_status=$? 21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21360 (exit $ac_status); }; }; then 21361 eval "$as_ac_var=yes" 21362else 21363 echo "$as_me: failed program was:" >&5 21364sed 's/^/| /' conftest.$ac_ext >&5 21365 21366 eval "$as_ac_var=no" 21367fi 21368 21369rm -f core conftest.err conftest.$ac_objext \ 21370 conftest$ac_exeext conftest.$ac_ext 21371fi 21372ac_res=`eval echo '${'$as_ac_var'}'` 21373 { echo "$as_me:$LINENO: result: $ac_res" >&5 21374echo "${ECHO_T}$ac_res" >&6; } 21375if test `eval echo '${'$as_ac_var'}'` = yes; then 21376 cat >>confdefs.h <<_ACEOF 21377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21378_ACEOF 21379 21380fi 21381done 21382 21383 21384SHLIBEXT=$libltdl_cv_shlibext 21385 21386 21387SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21388 21389 21390if test "${prefix}" = "NONE" ; then 21391 prefix="/usr/local" 21392fi 21393eval LLVM_PREFIX="${prefix}"; 21394eval LLVM_BINDIR="${prefix}/bin"; 21395eval LLVM_LIBDIR="${prefix}/lib"; 21396eval LLVM_DATADIR="${prefix}/share/llvm"; 21397eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21398eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21399eval LLVM_INCLUDEDIR="${prefix}/include"; 21400eval LLVM_INFODIR="${prefix}/info"; 21401eval LLVM_MANDIR="${prefix}/man"; 21402LLVM_CONFIGTIME=`date` 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414if test "${ENABLE_TIMESTAMPS}" = "0"; then 21415 LLVM_CONFIGTIME="(timestamp not enabled)" 21416fi 21417 21418 21419cat >>confdefs.h <<_ACEOF 21420#define LLVM_PREFIX "$LLVM_PREFIX" 21421_ACEOF 21422 21423 21424cat >>confdefs.h <<_ACEOF 21425#define LLVM_BINDIR "$LLVM_BINDIR" 21426_ACEOF 21427 21428 21429cat >>confdefs.h <<_ACEOF 21430#define LLVM_LIBDIR "$LLVM_LIBDIR" 21431_ACEOF 21432 21433 21434cat >>confdefs.h <<_ACEOF 21435#define LLVM_DATADIR "$LLVM_DATADIR" 21436_ACEOF 21437 21438 21439cat >>confdefs.h <<_ACEOF 21440#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21441_ACEOF 21442 21443 21444cat >>confdefs.h <<_ACEOF 21445#define LLVM_ETCDIR "$LLVM_ETCDIR" 21446_ACEOF 21447 21448 21449cat >>confdefs.h <<_ACEOF 21450#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21451_ACEOF 21452 21453 21454cat >>confdefs.h <<_ACEOF 21455#define LLVM_INFODIR "$LLVM_INFODIR" 21456_ACEOF 21457 21458 21459cat >>confdefs.h <<_ACEOF 21460#define LLVM_MANDIR "$LLVM_MANDIR" 21461_ACEOF 21462 21463 21464cat >>confdefs.h <<_ACEOF 21465#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21466_ACEOF 21467 21468 21469cat >>confdefs.h <<_ACEOF 21470#define LLVM_HOSTTRIPLE "$host" 21471_ACEOF 21472 21473 21474cat >>confdefs.h <<_ACEOF 21475#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21476_ACEOF 21477 21478 21479if test "$BINDINGS_TO_BUILD" = auto ; then 21480 BINDINGS_TO_BUILD="" 21481 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21482 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21483 fi 21484fi 21485BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21486 21487 21488ALL_BINDINGS=ocaml 21489 21490 21491binding_prereqs_failed=0 21492for a_binding in $BINDINGS_TO_BUILD ; do 21493 case "$a_binding" in 21494 ocaml) 21495 if test "x$OCAMLC" = x ; then 21496 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21497echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21498 binding_prereqs_failed=1 21499 fi 21500 if test "x$OCAMLDEP" = x ; then 21501 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21502echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21503 binding_prereqs_failed=1 21504 fi 21505 if test "x$OCAMLOPT" = x ; then 21506 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21507echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21508 fi 21509 if test "x$with_ocaml_libdir" != xauto ; then 21510 OCAML_LIBDIR=$with_ocaml_libdir 21511 21512 else 21513 ocaml_stdlib="`"$OCAMLC" -where`" 21514 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21515 then 21516 # ocaml stdlib is beneath our prefix; use stdlib 21517 OCAML_LIBDIR=$ocaml_stdlib 21518 21519 else 21520 # ocaml stdlib is outside our prefix; use libdir/ocaml 21521 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 21522 21523 fi 21524 fi 21525 ;; 21526 esac 21527done 21528if test "$binding_prereqs_failed" = 1 ; then 21529 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21530echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21531 { (exit 1); exit 1; }; } 21532fi 21533 21534{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21535echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21536if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21537 echo $ECHO_N "(cached) $ECHO_C" >&6 21538else 21539 ac_ext=cpp 21540ac_cpp='$CXXCPP $CPPFLAGS' 21541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21544 21545 oldcxxflags="$CXXFLAGS" 21546 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21547 cat >conftest.$ac_ext <<_ACEOF 21548/* confdefs.h. */ 21549_ACEOF 21550cat confdefs.h >>conftest.$ac_ext 21551cat >>conftest.$ac_ext <<_ACEOF 21552/* end confdefs.h. */ 21553template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21554int 21555main () 21556{ 21557X<int>().f(); 21558 ; 21559 return 0; 21560} 21561_ACEOF 21562rm -f conftest.$ac_objext 21563if { (ac_try="$ac_compile" 21564case "(($ac_try" in 21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21566 *) ac_try_echo=$ac_try;; 21567esac 21568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21569 (eval "$ac_compile") 2>conftest.er1 21570 ac_status=$? 21571 grep -v '^ *+' conftest.er1 >conftest.err 21572 rm -f conftest.er1 21573 cat conftest.err >&5 21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21575 (exit $ac_status); } && 21576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21577 { (case "(($ac_try" in 21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21579 *) ac_try_echo=$ac_try;; 21580esac 21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21582 (eval "$ac_try") 2>&5 21583 ac_status=$? 21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21585 (exit $ac_status); }; } && 21586 { ac_try='test -s conftest.$ac_objext' 21587 { (case "(($ac_try" in 21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21589 *) ac_try_echo=$ac_try;; 21590esac 21591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21592 (eval "$ac_try") 2>&5 21593 ac_status=$? 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); }; }; then 21596 llvm_cv_cxx_visibility_inlines_hidden=yes 21597else 21598 echo "$as_me: failed program was:" >&5 21599sed 's/^/| /' conftest.$ac_ext >&5 21600 21601 llvm_cv_cxx_visibility_inlines_hidden=no 21602fi 21603 21604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21605 CXXFLAGS="$oldcxxflags" 21606 ac_ext=c 21607ac_cpp='$CPP $CPPFLAGS' 21608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21610ac_compiler_gnu=$ac_cv_c_compiler_gnu 21611 21612 21613fi 21614{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21615echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21616if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21617 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21618 21619else 21620 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21621 21622fi 21623 21624 21625if test "$llvm_cv_link_use_r" = "yes" ; then 21626 RPATH="-Wl,-R" 21627else 21628 RPATH="-Wl,-rpath" 21629fi 21630 21631 21632if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21633 RDYNAMIC="-Wl,-export-dynamic" 21634else 21635 RDYNAMIC="" 21636fi 21637 21638 21639 21640ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21641 21642 21643 21644 21645 21646 21647ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21648 21649ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21650 21651ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21652 21653ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21654 21655ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21656 21657 21658ac_config_files="$ac_config_files Makefile.config" 21659 21660 21661ac_config_files="$ac_config_files llvm.spec" 21662 21663 21664ac_config_files="$ac_config_files docs/doxygen.cfg" 21665 21666 21667if test "${clang_src_root}" = ""; then 21668 clang_src_root="$srcdir/tools/clang" 21669fi 21670if test -f ${clang_src_root}/README.txt; then 21671 configh="include/clang/Config/config.h" 21672 doxy="docs/doxygen.cfg" 21673 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21674 21675 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21676 21677fi 21678 21679ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21680 21681 21682test "x$program_prefix" = "xNONE" && program_prefix="" 21683 21684 21685 21686ac_config_commands="$ac_config_commands setup" 21687 21688ac_config_commands="$ac_config_commands Makefile" 21689 21690 21691ac_config_commands="$ac_config_commands Makefile.common" 21692 21693 21694ac_config_commands="$ac_config_commands examples/Makefile" 21695 21696 21697ac_config_commands="$ac_config_commands lib/Makefile" 21698 21699 21700ac_config_commands="$ac_config_commands runtime/Makefile" 21701 21702 21703ac_config_commands="$ac_config_commands test/Makefile" 21704 21705 21706ac_config_commands="$ac_config_commands test/Makefile.tests" 21707 21708 21709ac_config_commands="$ac_config_commands unittests/Makefile" 21710 21711 21712ac_config_commands="$ac_config_commands tools/Makefile" 21713 21714 21715ac_config_commands="$ac_config_commands utils/Makefile" 21716 21717 21718ac_config_commands="$ac_config_commands projects/Makefile" 21719 21720 21721ac_config_commands="$ac_config_commands bindings/Makefile" 21722 21723 21724ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21725 21726 21727 21728cat >confcache <<\_ACEOF 21729# This file is a shell script that caches the results of configure 21730# tests run on this system so they can be shared between configure 21731# scripts and configure runs, see configure's option --config-cache. 21732# It is not useful on other systems. If it contains results you don't 21733# want to keep, you may remove or edit it. 21734# 21735# config.status only pays attention to the cache file if you give it 21736# the --recheck option to rerun configure. 21737# 21738# `ac_cv_env_foo' variables (set or unset) will be overridden when 21739# loading this file, other *unset* `ac_cv_foo' will be assigned the 21740# following values. 21741 21742_ACEOF 21743 21744# The following way of writing the cache mishandles newlines in values, 21745# but we know of no workaround that is simple, portable, and efficient. 21746# So, we kill variables containing newlines. 21747# Ultrix sh set writes to stderr and can't be redirected directly, 21748# and sets the high bit in the cache file unless we assign to the vars. 21749( 21750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21751 eval ac_val=\$$ac_var 21752 case $ac_val in #( 21753 *${as_nl}*) 21754 case $ac_var in #( 21755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21756echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21757 esac 21758 case $ac_var in #( 21759 _ | IFS | as_nl) ;; #( 21760 *) $as_unset $ac_var ;; 21761 esac ;; 21762 esac 21763 done 21764 21765 (set) 2>&1 | 21766 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21767 *${as_nl}ac_space=\ *) 21768 # `set' does not quote correctly, so add quotes (double-quote 21769 # substitution turns \\\\ into \\, and sed turns \\ into \). 21770 sed -n \ 21771 "s/'/'\\\\''/g; 21772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21773 ;; #( 21774 *) 21775 # `set' quotes correctly as required by POSIX, so do not add quotes. 21776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21777 ;; 21778 esac | 21779 sort 21780) | 21781 sed ' 21782 /^ac_cv_env_/b end 21783 t clear 21784 :clear 21785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21786 t end 21787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21788 :end' >>confcache 21789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21790 if test -w "$cache_file"; then 21791 test "x$cache_file" != "x/dev/null" && 21792 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21793echo "$as_me: updating cache $cache_file" >&6;} 21794 cat confcache >$cache_file 21795 else 21796 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21797echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21798 fi 21799fi 21800rm -f confcache 21801 21802test "x$prefix" = xNONE && prefix=$ac_default_prefix 21803# Let make expand exec_prefix. 21804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21805 21806DEFS=-DHAVE_CONFIG_H 21807 21808ac_libobjs= 21809ac_ltlibobjs= 21810for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21811 # 1. Remove the extension, and $U if already installed. 21812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21813 ac_i=`echo "$ac_i" | sed "$ac_script"` 21814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21815 # will be set to the directory where LIBOBJS objects are built. 21816 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21817 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21818done 21819LIBOBJS=$ac_libobjs 21820 21821LTLIBOBJS=$ac_ltlibobjs 21822 21823 21824if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21825 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21826Usually this means the macro was only invoked conditionally." >&5 21827echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21828Usually this means the macro was only invoked conditionally." >&2;} 21829 { (exit 1); exit 1; }; } 21830fi 21831if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21832 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21833Usually this means the macro was only invoked conditionally." >&5 21834echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21835Usually this means the macro was only invoked conditionally." >&2;} 21836 { (exit 1); exit 1; }; } 21837fi 21838 21839: ${CONFIG_STATUS=./config.status} 21840ac_clean_files_save=$ac_clean_files 21841ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21842{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21843echo "$as_me: creating $CONFIG_STATUS" >&6;} 21844cat >$CONFIG_STATUS <<_ACEOF 21845#! $SHELL 21846# Generated by $as_me. 21847# Run this file to recreate the current configuration. 21848# Compiler output produced by configure, useful for debugging 21849# configure, is in config.log if it exists. 21850 21851debug=false 21852ac_cs_recheck=false 21853ac_cs_silent=false 21854SHELL=\${CONFIG_SHELL-$SHELL} 21855_ACEOF 21856 21857cat >>$CONFIG_STATUS <<\_ACEOF 21858## --------------------- ## 21859## M4sh Initialization. ## 21860## --------------------- ## 21861 21862# Be Bourne compatible 21863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21864 emulate sh 21865 NULLCMD=: 21866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21867 # is contrary to our usage. Disable this feature. 21868 alias -g '${1+"$@"}'='"$@"' 21869 setopt NO_GLOB_SUBST 21870else 21871 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21872fi 21873BIN_SH=xpg4; export BIN_SH # for Tru64 21874DUALCASE=1; export DUALCASE # for MKS sh 21875 21876 21877# PATH needs CR 21878# Avoid depending upon Character Ranges. 21879as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21881as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21882as_cr_digits='0123456789' 21883as_cr_alnum=$as_cr_Letters$as_cr_digits 21884 21885# The user is always right. 21886if test "${PATH_SEPARATOR+set}" != set; then 21887 echo "#! /bin/sh" >conf$$.sh 21888 echo "exit 0" >>conf$$.sh 21889 chmod +x conf$$.sh 21890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21891 PATH_SEPARATOR=';' 21892 else 21893 PATH_SEPARATOR=: 21894 fi 21895 rm -f conf$$.sh 21896fi 21897 21898# Support unset when possible. 21899if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21900 as_unset=unset 21901else 21902 as_unset=false 21903fi 21904 21905 21906# IFS 21907# We need space, tab and new line, in precisely that order. Quoting is 21908# there to prevent editors from complaining about space-tab. 21909# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21910# splitting by setting IFS to empty value.) 21911as_nl=' 21912' 21913IFS=" "" $as_nl" 21914 21915# Find who we are. Look in the path if we contain no directory separator. 21916case $0 in 21917 *[\\/]* ) as_myself=$0 ;; 21918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21919for as_dir in $PATH 21920do 21921 IFS=$as_save_IFS 21922 test -z "$as_dir" && as_dir=. 21923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21924done 21925IFS=$as_save_IFS 21926 21927 ;; 21928esac 21929# We did not find ourselves, most probably we were run as `sh COMMAND' 21930# in which case we are not to be found in the path. 21931if test "x$as_myself" = x; then 21932 as_myself=$0 21933fi 21934if test ! -f "$as_myself"; then 21935 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21936 { (exit 1); exit 1; } 21937fi 21938 21939# Work around bugs in pre-3.0 UWIN ksh. 21940for as_var in ENV MAIL MAILPATH 21941do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21942done 21943PS1='$ ' 21944PS2='> ' 21945PS4='+ ' 21946 21947# NLS nuisances. 21948for as_var in \ 21949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21951 LC_TELEPHONE LC_TIME 21952do 21953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21954 eval $as_var=C; export $as_var 21955 else 21956 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21957 fi 21958done 21959 21960# Required to use basename. 21961if expr a : '\(a\)' >/dev/null 2>&1 && 21962 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21963 as_expr=expr 21964else 21965 as_expr=false 21966fi 21967 21968if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21969 as_basename=basename 21970else 21971 as_basename=false 21972fi 21973 21974 21975# Name of the executable. 21976as_me=`$as_basename -- "$0" || 21977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21978 X"$0" : 'X\(//\)$' \| \ 21979 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21980echo X/"$0" | 21981 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21982 s//\1/ 21983 q 21984 } 21985 /^X\/\(\/\/\)$/{ 21986 s//\1/ 21987 q 21988 } 21989 /^X\/\(\/\).*/{ 21990 s//\1/ 21991 q 21992 } 21993 s/.*/./; q'` 21994 21995# CDPATH. 21996$as_unset CDPATH 21997 21998 21999 22000 as_lineno_1=$LINENO 22001 as_lineno_2=$LINENO 22002 test "x$as_lineno_1" != "x$as_lineno_2" && 22003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22004 22005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22006 # uniformly replaced by the line number. The first 'sed' inserts a 22007 # line-number line after each line using $LINENO; the second 'sed' 22008 # does the real work. The second script uses 'N' to pair each 22009 # line-number line with the line containing $LINENO, and appends 22010 # trailing '-' during substitution so that $LINENO is not a special 22011 # case at line end. 22012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22013 # scripts with optimization help from Paolo Bonzini. Blame Lee 22014 # E. McMahon (1931-1989) for sed's syntax. :-) 22015 sed -n ' 22016 p 22017 /[$]LINENO/= 22018 ' <$as_myself | 22019 sed ' 22020 s/[$]LINENO.*/&-/ 22021 t lineno 22022 b 22023 :lineno 22024 N 22025 :loop 22026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22027 t loop 22028 s/-\n.*// 22029 ' >$as_me.lineno && 22030 chmod +x "$as_me.lineno" || 22031 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22032 { (exit 1); exit 1; }; } 22033 22034 # Don't try to exec as it changes $[0], causing all sort of problems 22035 # (the dirname of $[0] is not the place where we might find the 22036 # original and so on. Autoconf is especially sensitive to this). 22037 . "./$as_me.lineno" 22038 # Exit status is that of the last command. 22039 exit 22040} 22041 22042 22043if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22044 as_dirname=dirname 22045else 22046 as_dirname=false 22047fi 22048 22049ECHO_C= ECHO_N= ECHO_T= 22050case `echo -n x` in 22051-n*) 22052 case `echo 'x\c'` in 22053 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22054 *) ECHO_C='\c';; 22055 esac;; 22056*) 22057 ECHO_N='-n';; 22058esac 22059 22060if expr a : '\(a\)' >/dev/null 2>&1 && 22061 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22062 as_expr=expr 22063else 22064 as_expr=false 22065fi 22066 22067rm -f conf$$ conf$$.exe conf$$.file 22068if test -d conf$$.dir; then 22069 rm -f conf$$.dir/conf$$.file 22070else 22071 rm -f conf$$.dir 22072 mkdir conf$$.dir 22073fi 22074echo >conf$$.file 22075if ln -s conf$$.file conf$$ 2>/dev/null; then 22076 as_ln_s='ln -s' 22077 # ... but there are two gotchas: 22078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22080 # In both cases, we have to default to `cp -p'. 22081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22082 as_ln_s='cp -p' 22083elif ln conf$$.file conf$$ 2>/dev/null; then 22084 as_ln_s=ln 22085else 22086 as_ln_s='cp -p' 22087fi 22088rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22089rmdir conf$$.dir 2>/dev/null 22090 22091if mkdir -p . 2>/dev/null; then 22092 as_mkdir_p=: 22093else 22094 test -d ./-p && rmdir ./-p 22095 as_mkdir_p=false 22096fi 22097 22098# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22099# systems may use methods other than mode bits to determine executability. 22100cat >conf$$.file <<_ASEOF 22101#! /bin/sh 22102exit 0 22103_ASEOF 22104chmod +x conf$$.file 22105if test -x conf$$.file >/dev/null 2>&1; then 22106 as_executable_p="test -x" 22107else 22108 as_executable_p=: 22109fi 22110rm -f conf$$.file 22111 22112# Sed expression to map a string onto a valid CPP name. 22113as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22114 22115# Sed expression to map a string onto a valid variable name. 22116as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22117 22118 22119exec 6>&1 22120 22121# Save the log message, to keep $[0] and so on meaningful, and to 22122# report actual input values of CONFIG_FILES etc. instead of their 22123# values after options handling. 22124ac_log=" 22125This file was extended by LLVM $as_me 3.3svn, which was 22126generated by GNU Autoconf 2.60. Invocation command line was 22127 22128 CONFIG_FILES = $CONFIG_FILES 22129 CONFIG_HEADERS = $CONFIG_HEADERS 22130 CONFIG_LINKS = $CONFIG_LINKS 22131 CONFIG_COMMANDS = $CONFIG_COMMANDS 22132 $ $0 $@ 22133 22134on `(hostname || uname -n) 2>/dev/null | sed 1q` 22135" 22136 22137_ACEOF 22138 22139cat >>$CONFIG_STATUS <<_ACEOF 22140# Files that config.status was made for. 22141config_files="$ac_config_files" 22142config_headers="$ac_config_headers" 22143config_commands="$ac_config_commands" 22144 22145_ACEOF 22146 22147cat >>$CONFIG_STATUS <<\_ACEOF 22148ac_cs_usage="\ 22149\`$as_me' instantiates files from templates according to the 22150current configuration. 22151 22152Usage: $0 [OPTIONS] [FILE]... 22153 22154 -h, --help print this help, then exit 22155 -V, --version print version number, then exit 22156 -q, --quiet do not print progress messages 22157 -d, --debug don't remove temporary files 22158 --recheck update $as_me by reconfiguring in the same conditions 22159 --file=FILE[:TEMPLATE] 22160 instantiate the configuration file FILE 22161 --header=FILE[:TEMPLATE] 22162 instantiate the configuration header FILE 22163 22164Configuration files: 22165$config_files 22166 22167Configuration headers: 22168$config_headers 22169 22170Configuration commands: 22171$config_commands 22172 22173Report bugs to <bug-autoconf@gnu.org>." 22174 22175_ACEOF 22176cat >>$CONFIG_STATUS <<_ACEOF 22177ac_cs_version="\\ 22178LLVM config.status 3.3svn 22179configured by $0, generated by GNU Autoconf 2.60, 22180 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22181 22182Copyright (C) 2006 Free Software Foundation, Inc. 22183This config.status script is free software; the Free Software Foundation 22184gives unlimited permission to copy, distribute and modify it." 22185 22186ac_pwd='$ac_pwd' 22187srcdir='$srcdir' 22188INSTALL='$INSTALL' 22189_ACEOF 22190 22191cat >>$CONFIG_STATUS <<\_ACEOF 22192# If no file are specified by the user, then we need to provide default 22193# value. By we need to know if files were specified by the user. 22194ac_need_defaults=: 22195while test $# != 0 22196do 22197 case $1 in 22198 --*=*) 22199 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22201 ac_shift=: 22202 ;; 22203 *) 22204 ac_option=$1 22205 ac_optarg=$2 22206 ac_shift=shift 22207 ;; 22208 esac 22209 22210 case $ac_option in 22211 # Handling of the options. 22212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22213 ac_cs_recheck=: ;; 22214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22215 echo "$ac_cs_version"; exit ;; 22216 --debug | --debu | --deb | --de | --d | -d ) 22217 debug=: ;; 22218 --file | --fil | --fi | --f ) 22219 $ac_shift 22220 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22221 ac_need_defaults=false;; 22222 --header | --heade | --head | --hea ) 22223 $ac_shift 22224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22225 ac_need_defaults=false;; 22226 --he | --h) 22227 # Conflict between --help and --header 22228 { echo "$as_me: error: ambiguous option: $1 22229Try \`$0 --help' for more information." >&2 22230 { (exit 1); exit 1; }; };; 22231 --help | --hel | -h ) 22232 echo "$ac_cs_usage"; exit ;; 22233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22234 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22235 ac_cs_silent=: ;; 22236 22237 # This is an error. 22238 -*) { echo "$as_me: error: unrecognized option: $1 22239Try \`$0 --help' for more information." >&2 22240 { (exit 1); exit 1; }; } ;; 22241 22242 *) ac_config_targets="$ac_config_targets $1" 22243 ac_need_defaults=false ;; 22244 22245 esac 22246 shift 22247done 22248 22249ac_configure_extra_args= 22250 22251if $ac_cs_silent; then 22252 exec 6>/dev/null 22253 ac_configure_extra_args="$ac_configure_extra_args --silent" 22254fi 22255 22256_ACEOF 22257cat >>$CONFIG_STATUS <<_ACEOF 22258if \$ac_cs_recheck; then 22259 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22260 CONFIG_SHELL=$SHELL 22261 export CONFIG_SHELL 22262 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22263fi 22264 22265_ACEOF 22266cat >>$CONFIG_STATUS <<\_ACEOF 22267exec 5>>config.log 22268{ 22269 echo 22270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22271## Running $as_me. ## 22272_ASBOX 22273 echo "$ac_log" 22274} >&5 22275 22276_ACEOF 22277cat >>$CONFIG_STATUS <<_ACEOF 22278# 22279# INIT-COMMANDS 22280# 22281llvm_src="${srcdir}" 22282 22283_ACEOF 22284 22285cat >>$CONFIG_STATUS <<\_ACEOF 22286 22287# Handling of arguments. 22288for ac_config_target in $ac_config_targets 22289do 22290 case $ac_config_target in 22291 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 22292 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 22293 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 22294 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 22295 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 22296 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 22297 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 22298 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22299 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 22300 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 22301 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 22302 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 22303 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 22304 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 22305 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22306 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22307 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 22308 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22309 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22310 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22311 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22312 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 22313 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22314 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22315 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22316 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 22317 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 22318 22319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22320echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22321 { (exit 1); exit 1; }; };; 22322 esac 22323done 22324 22325 22326# If the user did not use the arguments to specify the items to instantiate, 22327# then the envvar interface is used. Set only those that are not. 22328# We use the long form for the default assignment because of an extremely 22329# bizarre bug on SunOS 4.1.3. 22330if $ac_need_defaults; then 22331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22334fi 22335 22336# Have a temporary directory for convenience. Make it in the build tree 22337# simply because there is no reason against having it here, and in addition, 22338# creating and moving files from /tmp can sometimes cause problems. 22339# Hook for its removal unless debugging. 22340# Note that there is a small window in which the directory will not be cleaned: 22341# after its creation but before its name has been assigned to `$tmp'. 22342$debug || 22343{ 22344 tmp= 22345 trap 'exit_status=$? 22346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22347' 0 22348 trap '{ (exit 1); exit 1; }' 1 2 13 15 22349} 22350# Create a (secure) tmp directory for tmp files. 22351 22352{ 22353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22354 test -n "$tmp" && test -d "$tmp" 22355} || 22356{ 22357 tmp=./conf$$-$RANDOM 22358 (umask 077 && mkdir "$tmp") 22359} || 22360{ 22361 echo "$me: cannot create a temporary directory in ." >&2 22362 { (exit 1); exit 1; } 22363} 22364 22365# 22366# Set up the sed scripts for CONFIG_FILES section. 22367# 22368 22369# No need to generate the scripts if there are no CONFIG_FILES. 22370# This happens for instance when ./config.status config.h 22371if test -n "$CONFIG_FILES"; then 22372 22373_ACEOF 22374 22375 22376 22377ac_delim='%!_!# ' 22378for ac_last_try in false false false false false :; do 22379 cat >conf$$subs.sed <<_ACEOF 22380SHELL!$SHELL$ac_delim 22381PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22382PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22383PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22384PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22385PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22386PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22387exec_prefix!$exec_prefix$ac_delim 22388prefix!$prefix$ac_delim 22389program_transform_name!$program_transform_name$ac_delim 22390bindir!$bindir$ac_delim 22391sbindir!$sbindir$ac_delim 22392libexecdir!$libexecdir$ac_delim 22393datarootdir!$datarootdir$ac_delim 22394datadir!$datadir$ac_delim 22395sysconfdir!$sysconfdir$ac_delim 22396sharedstatedir!$sharedstatedir$ac_delim 22397localstatedir!$localstatedir$ac_delim 22398includedir!$includedir$ac_delim 22399oldincludedir!$oldincludedir$ac_delim 22400docdir!$docdir$ac_delim 22401infodir!$infodir$ac_delim 22402htmldir!$htmldir$ac_delim 22403dvidir!$dvidir$ac_delim 22404pdfdir!$pdfdir$ac_delim 22405psdir!$psdir$ac_delim 22406libdir!$libdir$ac_delim 22407localedir!$localedir$ac_delim 22408mandir!$mandir$ac_delim 22409DEFS!$DEFS$ac_delim 22410ECHO_C!$ECHO_C$ac_delim 22411ECHO_N!$ECHO_N$ac_delim 22412ECHO_T!$ECHO_T$ac_delim 22413LIBS!$LIBS$ac_delim 22414build_alias!$build_alias$ac_delim 22415host_alias!$host_alias$ac_delim 22416target_alias!$target_alias$ac_delim 22417LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22418CC!$CC$ac_delim 22419CFLAGS!$CFLAGS$ac_delim 22420LDFLAGS!$LDFLAGS$ac_delim 22421CPPFLAGS!$CPPFLAGS$ac_delim 22422ac_ct_CC!$ac_ct_CC$ac_delim 22423EXEEXT!$EXEEXT$ac_delim 22424OBJEXT!$OBJEXT$ac_delim 22425CXX!$CXX$ac_delim 22426CXXFLAGS!$CXXFLAGS$ac_delim 22427ac_ct_CXX!$ac_ct_CXX$ac_delim 22428CPP!$CPP$ac_delim 22429subdirs!$subdirs$ac_delim 22430ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22431LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22432build!$build$ac_delim 22433build_cpu!$build_cpu$ac_delim 22434build_vendor!$build_vendor$ac_delim 22435build_os!$build_os$ac_delim 22436host!$host$ac_delim 22437host_cpu!$host_cpu$ac_delim 22438host_vendor!$host_vendor$ac_delim 22439host_os!$host_os$ac_delim 22440target!$target$ac_delim 22441target_cpu!$target_cpu$ac_delim 22442target_vendor!$target_vendor$ac_delim 22443target_os!$target_os$ac_delim 22444OS!$OS$ac_delim 22445HOST_OS!$HOST_OS$ac_delim 22446TARGET_OS!$TARGET_OS$ac_delim 22447LINKALL!$LINKALL$ac_delim 22448NOLINKALL!$NOLINKALL$ac_delim 22449LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22450LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22451ARCH!$ARCH$ac_delim 22452HOST_ARCH!$HOST_ARCH$ac_delim 22453ENDIAN!$ENDIAN$ac_delim 22454GREP!$GREP$ac_delim 22455EGREP!$EGREP$ac_delim 22456LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22457BUILD_CC!$BUILD_CC$ac_delim 22458BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22459BUILD_CXX!$BUILD_CXX$ac_delim 22460CVSBUILD!$CVSBUILD$ac_delim 22461ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22462ENABLE_CXX11!$ENABLE_CXX11$ac_delim 22463ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 22464ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 22465ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 22466ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22467ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22468DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22469ENABLE_WERROR!$ENABLE_WERROR$ac_delim 22470ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22471EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22472DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22473DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22474KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 22475JIT!$JIT$ac_delim 22476TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22477_ACEOF 22478 22479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22480 break 22481 elif $ac_last_try; then 22482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22483echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22484 { (exit 1); exit 1; }; } 22485 else 22486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22487 fi 22488done 22489 22490ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22491if test -n "$ac_eof"; then 22492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22493 ac_eof=`expr $ac_eof + 1` 22494fi 22495 22496cat >>$CONFIG_STATUS <<_ACEOF 22497cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22499_ACEOF 22500sed ' 22501s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22502s/^/s,@/; s/!/@,|#_!!_#|/ 22503:n 22504t n 22505s/'"$ac_delim"'$/,g/; t 22506s/$/\\/; p 22507N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22508' >>$CONFIG_STATUS <conf$$subs.sed 22509rm -f conf$$subs.sed 22510cat >>$CONFIG_STATUS <<_ACEOF 22511CEOF$ac_eof 22512_ACEOF 22513 22514 22515ac_delim='%!_!# ' 22516for ac_last_try in false false false false false :; do 22517 cat >conf$$subs.sed <<_ACEOF 22518ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22519ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22520LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22521ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22522ENABLE_PIC!$ENABLE_PIC$ac_delim 22523ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22524ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22525ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22526ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 22527TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22528LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22529LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22530LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22531LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22532OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22533EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22534EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22535CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22536BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22537INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22538NM!$NM$ac_delim 22539ifGNUmake!$ifGNUmake$ac_delim 22540LN_S!$LN_S$ac_delim 22541CMP!$CMP$ac_delim 22542CP!$CP$ac_delim 22543DATE!$DATE$ac_delim 22544FIND!$FIND$ac_delim 22545MKDIR!$MKDIR$ac_delim 22546MV!$MV$ac_delim 22547RANLIB!$RANLIB$ac_delim 22548AR!$AR$ac_delim 22549RM!$RM$ac_delim 22550SED!$SED$ac_delim 22551TAR!$TAR$ac_delim 22552BINPWD!$BINPWD$ac_delim 22553GRAPHVIZ!$GRAPHVIZ$ac_delim 22554DOT!$DOT$ac_delim 22555FDP!$FDP$ac_delim 22556NEATO!$NEATO$ac_delim 22557TWOPI!$TWOPI$ac_delim 22558CIRCO!$CIRCO$ac_delim 22559GV!$GV$ac_delim 22560DOTTY!$DOTTY$ac_delim 22561XDOT_PY!$XDOT_PY$ac_delim 22562INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22563INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22564INSTALL_DATA!$INSTALL_DATA$ac_delim 22565BZIP2!$BZIP2$ac_delim 22566CAT!$CAT$ac_delim 22567DOXYGEN!$DOXYGEN$ac_delim 22568GROFF!$GROFF$ac_delim 22569GZIPBIN!$GZIPBIN$ac_delim 22570PDFROFF!$PDFROFF$ac_delim 22571ZIP!$ZIP$ac_delim 22572OCAMLC!$OCAMLC$ac_delim 22573OCAMLOPT!$OCAMLOPT$ac_delim 22574OCAMLDEP!$OCAMLDEP$ac_delim 22575OCAMLDOC!$OCAMLDOC$ac_delim 22576GAS!$GAS$ac_delim 22577HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22578INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22579INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22580CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22581CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22582LIBADD_DL!$LIBADD_DL$ac_delim 22583NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22584NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22585COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22586NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 22587NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 22588PYTHON!$PYTHON$ac_delim 22589USE_UDIS86!$USE_UDIS86$ac_delim 22590USE_OPROFILE!$USE_OPROFILE$ac_delim 22591USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22592XML2CONFIG!$XML2CONFIG$ac_delim 22593LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 22594LIBXML2_INC!$LIBXML2_INC$ac_delim 22595HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22596HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22597MMAP_FILE!$MMAP_FILE$ac_delim 22598SHLIBEXT!$SHLIBEXT$ac_delim 22599SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22600LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22601LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22602LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22603LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22604LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22605LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22606LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22607LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22608LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22609LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22610BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22611ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22612OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22613ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22614RPATH!$RPATH$ac_delim 22615_ACEOF 22616 22617 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22618 break 22619 elif $ac_last_try; then 22620 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22621echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22622 { (exit 1); exit 1; }; } 22623 else 22624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22625 fi 22626done 22627 22628ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22629if test -n "$ac_eof"; then 22630 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22631 ac_eof=`expr $ac_eof + 1` 22632fi 22633 22634cat >>$CONFIG_STATUS <<_ACEOF 22635cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22636/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22637_ACEOF 22638sed ' 22639s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22640s/^/s,@/; s/!/@,|#_!!_#|/ 22641:n 22642t n 22643s/'"$ac_delim"'$/,g/; t 22644s/$/\\/; p 22645N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22646' >>$CONFIG_STATUS <conf$$subs.sed 22647rm -f conf$$subs.sed 22648cat >>$CONFIG_STATUS <<_ACEOF 22649CEOF$ac_eof 22650_ACEOF 22651 22652 22653ac_delim='%!_!# ' 22654for ac_last_try in false false false false false :; do 22655 cat >conf$$subs.sed <<_ACEOF 22656RDYNAMIC!$RDYNAMIC$ac_delim 22657program_prefix!$program_prefix$ac_delim 22658LIBOBJS!$LIBOBJS$ac_delim 22659LTLIBOBJS!$LTLIBOBJS$ac_delim 22660_ACEOF 22661 22662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then 22663 break 22664 elif $ac_last_try; then 22665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22666echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22667 { (exit 1); exit 1; }; } 22668 else 22669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22670 fi 22671done 22672 22673ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22674if test -n "$ac_eof"; then 22675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22676 ac_eof=`expr $ac_eof + 1` 22677fi 22678 22679cat >>$CONFIG_STATUS <<_ACEOF 22680cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 22681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22682_ACEOF 22683sed ' 22684s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22685s/^/s,@/; s/!/@,|#_!!_#|/ 22686:n 22687t n 22688s/'"$ac_delim"'$/,g/; t 22689s/$/\\/; p 22690N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22691' >>$CONFIG_STATUS <conf$$subs.sed 22692rm -f conf$$subs.sed 22693cat >>$CONFIG_STATUS <<_ACEOF 22694:end 22695s/|#_!!_#|//g 22696CEOF$ac_eof 22697_ACEOF 22698 22699 22700# VPATH may cause trouble with some makes, so we remove $(srcdir), 22701# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22702# trailing colons and then remove the whole line if VPATH becomes empty 22703# (actually we leave an empty line to preserve line numbers). 22704if test "x$srcdir" = x.; then 22705 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22706s/:*\$(srcdir):*/:/ 22707s/:*\${srcdir}:*/:/ 22708s/:*@srcdir@:*/:/ 22709s/^\([^=]*=[ ]*\):*/\1/ 22710s/:*$// 22711s/^[^=]*=[ ]*$// 22712}' 22713fi 22714 22715cat >>$CONFIG_STATUS <<\_ACEOF 22716fi # test -n "$CONFIG_FILES" 22717 22718 22719for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22720do 22721 case $ac_tag in 22722 :[FHLC]) ac_mode=$ac_tag; continue;; 22723 esac 22724 case $ac_mode$ac_tag in 22725 :[FHL]*:*);; 22726 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22727echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22728 { (exit 1); exit 1; }; };; 22729 :[FH]-) ac_tag=-:-;; 22730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22731 esac 22732 ac_save_IFS=$IFS 22733 IFS=: 22734 set x $ac_tag 22735 IFS=$ac_save_IFS 22736 shift 22737 ac_file=$1 22738 shift 22739 22740 case $ac_mode in 22741 :L) ac_source=$1;; 22742 :[FH]) 22743 ac_file_inputs= 22744 for ac_f 22745 do 22746 case $ac_f in 22747 -) ac_f="$tmp/stdin";; 22748 *) # Look for the file first in the build tree, then in the source tree 22749 # (if the path is not absolute). The absolute path cannot be DOS-style, 22750 # because $ac_f cannot contain `:'. 22751 test -f "$ac_f" || 22752 case $ac_f in 22753 [\\/$]*) false;; 22754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22755 esac || 22756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22757echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22758 { (exit 1); exit 1; }; };; 22759 esac 22760 ac_file_inputs="$ac_file_inputs $ac_f" 22761 done 22762 22763 # Let's still pretend it is `configure' which instantiates (i.e., don't 22764 # use $as_me), people would be surprised to read: 22765 # /* config.h. Generated by config.status. */ 22766 configure_input="Generated from "`IFS=: 22767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22768 if test x"$ac_file" != x-; then 22769 configure_input="$ac_file. $configure_input" 22770 { echo "$as_me:$LINENO: creating $ac_file" >&5 22771echo "$as_me: creating $ac_file" >&6;} 22772 fi 22773 22774 case $ac_tag in 22775 *:-:* | *:-) cat >"$tmp/stdin";; 22776 esac 22777 ;; 22778 esac 22779 22780 ac_dir=`$as_dirname -- "$ac_file" || 22781$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22782 X"$ac_file" : 'X\(//\)[^/]' \| \ 22783 X"$ac_file" : 'X\(//\)$' \| \ 22784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22785echo X"$ac_file" | 22786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22787 s//\1/ 22788 q 22789 } 22790 /^X\(\/\/\)[^/].*/{ 22791 s//\1/ 22792 q 22793 } 22794 /^X\(\/\/\)$/{ 22795 s//\1/ 22796 q 22797 } 22798 /^X\(\/\).*/{ 22799 s//\1/ 22800 q 22801 } 22802 s/.*/./; q'` 22803 { as_dir="$ac_dir" 22804 case $as_dir in #( 22805 -*) as_dir=./$as_dir;; 22806 esac 22807 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22808 as_dirs= 22809 while :; do 22810 case $as_dir in #( 22811 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22812 *) as_qdir=$as_dir;; 22813 esac 22814 as_dirs="'$as_qdir' $as_dirs" 22815 as_dir=`$as_dirname -- "$as_dir" || 22816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22817 X"$as_dir" : 'X\(//\)[^/]' \| \ 22818 X"$as_dir" : 'X\(//\)$' \| \ 22819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22820echo X"$as_dir" | 22821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22822 s//\1/ 22823 q 22824 } 22825 /^X\(\/\/\)[^/].*/{ 22826 s//\1/ 22827 q 22828 } 22829 /^X\(\/\/\)$/{ 22830 s//\1/ 22831 q 22832 } 22833 /^X\(\/\).*/{ 22834 s//\1/ 22835 q 22836 } 22837 s/.*/./; q'` 22838 test -d "$as_dir" && break 22839 done 22840 test -z "$as_dirs" || eval "mkdir $as_dirs" 22841 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22842echo "$as_me: error: cannot create directory $as_dir" >&2;} 22843 { (exit 1); exit 1; }; }; } 22844 ac_builddir=. 22845 22846case "$ac_dir" in 22847.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22848*) 22849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22850 # A ".." for each directory in $ac_dir_suffix. 22851 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22852 case $ac_top_builddir_sub in 22853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22855 esac ;; 22856esac 22857ac_abs_top_builddir=$ac_pwd 22858ac_abs_builddir=$ac_pwd$ac_dir_suffix 22859# for backward compatibility: 22860ac_top_builddir=$ac_top_build_prefix 22861 22862case $srcdir in 22863 .) # We are building in place. 22864 ac_srcdir=. 22865 ac_top_srcdir=$ac_top_builddir_sub 22866 ac_abs_top_srcdir=$ac_pwd ;; 22867 [\\/]* | ?:[\\/]* ) # Absolute name. 22868 ac_srcdir=$srcdir$ac_dir_suffix; 22869 ac_top_srcdir=$srcdir 22870 ac_abs_top_srcdir=$srcdir ;; 22871 *) # Relative name. 22872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22873 ac_top_srcdir=$ac_top_build_prefix$srcdir 22874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22875esac 22876ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22877 22878 22879 case $ac_mode in 22880 :F) 22881 # 22882 # CONFIG_FILE 22883 # 22884 22885 case $INSTALL in 22886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22888 esac 22889_ACEOF 22890 22891cat >>$CONFIG_STATUS <<\_ACEOF 22892# If the template does not know about datarootdir, expand it. 22893# FIXME: This hack should be removed a few years after 2.60. 22894ac_datarootdir_hack=; ac_datarootdir_seen= 22895 22896case `sed -n '/datarootdir/ { 22897 p 22898 q 22899} 22900/@datadir@/p 22901/@docdir@/p 22902/@infodir@/p 22903/@localedir@/p 22904/@mandir@/p 22905' $ac_file_inputs` in 22906*datarootdir*) ac_datarootdir_seen=yes;; 22907*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22909echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22910_ACEOF 22911cat >>$CONFIG_STATUS <<_ACEOF 22912 ac_datarootdir_hack=' 22913 s&@datadir@&$datadir&g 22914 s&@docdir@&$docdir&g 22915 s&@infodir@&$infodir&g 22916 s&@localedir@&$localedir&g 22917 s&@mandir@&$mandir&g 22918 s&\\\${datarootdir}&$datarootdir&g' ;; 22919esac 22920_ACEOF 22921 22922# Neutralize VPATH when `$srcdir' = `.'. 22923# Shell code in configure.ac might set extrasub. 22924# FIXME: do we really want to maintain this feature? 22925cat >>$CONFIG_STATUS <<_ACEOF 22926 sed "$ac_vpsub 22927$extrasub 22928_ACEOF 22929cat >>$CONFIG_STATUS <<\_ACEOF 22930:t 22931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22932s&@configure_input@&$configure_input&;t t 22933s&@top_builddir@&$ac_top_builddir_sub&;t t 22934s&@srcdir@&$ac_srcdir&;t t 22935s&@abs_srcdir@&$ac_abs_srcdir&;t t 22936s&@top_srcdir@&$ac_top_srcdir&;t t 22937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22938s&@builddir@&$ac_builddir&;t t 22939s&@abs_builddir@&$ac_abs_builddir&;t t 22940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22941s&@INSTALL@&$ac_INSTALL&;t t 22942$ac_datarootdir_hack 22943" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 22944 22945test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22948 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22949which seems to be undefined. Please make sure it is defined." >&5 22950echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22951which seems to be undefined. Please make sure it is defined." >&2;} 22952 22953 rm -f "$tmp/stdin" 22954 case $ac_file in 22955 -) cat "$tmp/out"; rm -f "$tmp/out";; 22956 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22957 esac 22958 ;; 22959 :H) 22960 # 22961 # CONFIG_HEADER 22962 # 22963_ACEOF 22964 22965# Transform confdefs.h into a sed script `conftest.defines', that 22966# substitutes the proper values into config.h.in to produce config.h. 22967rm -f conftest.defines conftest.tail 22968# First, append a space to every undef/define line, to ease matching. 22969echo 's/$/ /' >conftest.defines 22970# Then, protect against being on the right side of a sed subst, or in 22971# an unquoted here document, in config.status. If some macros were 22972# called several times there might be several #defines for the same 22973# symbol, which is useless. But do not sort them, since the last 22974# AC_DEFINE must be honored. 22975ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22976# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22977# NAME is the cpp macro being defined, VALUE is the value it is being given. 22978# PARAMS is the parameter list in the macro definition--in most cases, it's 22979# just an empty string. 22980ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22981ac_dB='\\)[ (].*,\\1define\\2' 22982ac_dC=' ' 22983ac_dD=' ,' 22984 22985uniq confdefs.h | 22986 sed -n ' 22987 t rset 22988 :rset 22989 s/^[ ]*#[ ]*define[ ][ ]*// 22990 t ok 22991 d 22992 :ok 22993 s/[\\&,]/\\&/g 22994 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22995 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22996 ' >>conftest.defines 22997 22998# Remove the space that was appended to ease matching. 22999# Then replace #undef with comments. This is necessary, for 23000# example, in the case of _POSIX_SOURCE, which is predefined and required 23001# on some systems where configure will not decide to define it. 23002# (The regexp can be short, since the line contains either #define or #undef.) 23003echo 's/ $// 23004s,^[ #]*u.*,/* & */,' >>conftest.defines 23005 23006# Break up conftest.defines: 23007ac_max_sed_lines=50 23008 23009# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23010# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23011# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23012# et cetera. 23013ac_in='$ac_file_inputs' 23014ac_out='"$tmp/out1"' 23015ac_nxt='"$tmp/out2"' 23016 23017while : 23018do 23019 # Write a here document: 23020 cat >>$CONFIG_STATUS <<_ACEOF 23021 # First, check the format of the line: 23022 cat >"\$tmp/defines.sed" <<\\CEOF 23023/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23024/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23025b 23026:def 23027_ACEOF 23028 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23029 echo 'CEOF 23030 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23031 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23032 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23033 grep . conftest.tail >/dev/null || break 23034 rm -f conftest.defines 23035 mv conftest.tail conftest.defines 23036done 23037rm -f conftest.defines conftest.tail 23038 23039echo "ac_result=$ac_in" >>$CONFIG_STATUS 23040cat >>$CONFIG_STATUS <<\_ACEOF 23041 if test x"$ac_file" != x-; then 23042 echo "/* $configure_input */" >"$tmp/config.h" 23043 cat "$ac_result" >>"$tmp/config.h" 23044 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23046echo "$as_me: $ac_file is unchanged" >&6;} 23047 else 23048 rm -f $ac_file 23049 mv "$tmp/config.h" $ac_file 23050 fi 23051 else 23052 echo "/* $configure_input */" 23053 cat "$ac_result" 23054 fi 23055 rm -f "$tmp/out12" 23056 ;; 23057 23058 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23059echo "$as_me: executing $ac_file commands" >&6;} 23060 ;; 23061 esac 23062 23063 23064 case $ac_file$ac_mode in 23065 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 23066 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 23067 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 23068 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 23069 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 23070 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 23071 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 23072 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 23073 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23074 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23075 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 23076 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 23077 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23078 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23079 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 23080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 23081 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 23082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 23083 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 23084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 23085 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 23086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 23087 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 23088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 23089 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 23090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 23091 23092 esac 23093done # for ac_tag 23094 23095 23096{ (exit 0); exit 0; } 23097_ACEOF 23098chmod +x $CONFIG_STATUS 23099ac_clean_files=$ac_clean_files_save 23100 23101 23102# configure is writing to config.log, and then calls config.status. 23103# config.status does its own redirection, appending to config.log. 23104# Unfortunately, on DOS this fails, as config.log is still kept open 23105# by configure, so config.status won't be able to write to it; its 23106# output is simply discarded. So we exec the FD to /dev/null, 23107# effectively closing config.log, so it can be properly (re)opened and 23108# appended to by config.status. When coming back to configure, we 23109# need to make the FD available again. 23110if test "$no_create" != yes; then 23111 ac_cs_success=: 23112 ac_config_status_args= 23113 test "$silent" = yes && 23114 ac_config_status_args="$ac_config_status_args --quiet" 23115 exec 5>/dev/null 23116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23117 exec 5>>config.log 23118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23119 # would make configure fail if this is the last instruction. 23120 $ac_cs_success || { (exit 1); exit 1; } 23121fi 23122 23123# 23124# CONFIG_SUBDIRS section. 23125# 23126if test "$no_recursion" != yes; then 23127 23128 # Remove --cache-file and --srcdir arguments so they do not pile up. 23129 ac_sub_configure_args= 23130 ac_prev= 23131 eval "set x $ac_configure_args" 23132 shift 23133 for ac_arg 23134 do 23135 if test -n "$ac_prev"; then 23136 ac_prev= 23137 continue 23138 fi 23139 case $ac_arg in 23140 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23142 ac_prev=cache_file ;; 23143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23145 | --c=*) 23146 ;; 23147 --config-cache | -C) 23148 ;; 23149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23150 ac_prev=srcdir ;; 23151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23152 ;; 23153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23154 ac_prev=prefix ;; 23155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23156 ;; 23157 *) 23158 case $ac_arg in 23159 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23160 esac 23161 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23162 esac 23163 done 23164 23165 # Always prepend --prefix to ensure using the same prefix 23166 # in subdir configurations. 23167 ac_arg="--prefix=$prefix" 23168 case $ac_arg in 23169 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23170 esac 23171 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 23172 23173 ac_popdir=`pwd` 23174 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23175 23176 # Do not complain, so a configure script can configure whichever 23177 # parts of a large source tree are present. 23178 test -d "$srcdir/$ac_dir" || continue 23179 23180 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23181 echo "$as_me:$LINENO: $ac_msg" >&5 23182 echo "$ac_msg" >&6 23183 { as_dir="$ac_dir" 23184 case $as_dir in #( 23185 -*) as_dir=./$as_dir;; 23186 esac 23187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23188 as_dirs= 23189 while :; do 23190 case $as_dir in #( 23191 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23192 *) as_qdir=$as_dir;; 23193 esac 23194 as_dirs="'$as_qdir' $as_dirs" 23195 as_dir=`$as_dirname -- "$as_dir" || 23196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23197 X"$as_dir" : 'X\(//\)[^/]' \| \ 23198 X"$as_dir" : 'X\(//\)$' \| \ 23199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23200echo X"$as_dir" | 23201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23202 s//\1/ 23203 q 23204 } 23205 /^X\(\/\/\)[^/].*/{ 23206 s//\1/ 23207 q 23208 } 23209 /^X\(\/\/\)$/{ 23210 s//\1/ 23211 q 23212 } 23213 /^X\(\/\).*/{ 23214 s//\1/ 23215 q 23216 } 23217 s/.*/./; q'` 23218 test -d "$as_dir" && break 23219 done 23220 test -z "$as_dirs" || eval "mkdir $as_dirs" 23221 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23222echo "$as_me: error: cannot create directory $as_dir" >&2;} 23223 { (exit 1); exit 1; }; }; } 23224 ac_builddir=. 23225 23226case "$ac_dir" in 23227.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23228*) 23229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23230 # A ".." for each directory in $ac_dir_suffix. 23231 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23232 case $ac_top_builddir_sub in 23233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23235 esac ;; 23236esac 23237ac_abs_top_builddir=$ac_pwd 23238ac_abs_builddir=$ac_pwd$ac_dir_suffix 23239# for backward compatibility: 23240ac_top_builddir=$ac_top_build_prefix 23241 23242case $srcdir in 23243 .) # We are building in place. 23244 ac_srcdir=. 23245 ac_top_srcdir=$ac_top_builddir_sub 23246 ac_abs_top_srcdir=$ac_pwd ;; 23247 [\\/]* | ?:[\\/]* ) # Absolute name. 23248 ac_srcdir=$srcdir$ac_dir_suffix; 23249 ac_top_srcdir=$srcdir 23250 ac_abs_top_srcdir=$srcdir ;; 23251 *) # Relative name. 23252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23253 ac_top_srcdir=$ac_top_build_prefix$srcdir 23254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23255esac 23256ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23257 23258 23259 cd "$ac_dir" 23260 23261 # Check for guested configure; otherwise get Cygnus style configure. 23262 if test -f "$ac_srcdir/configure.gnu"; then 23263 ac_sub_configure=$ac_srcdir/configure.gnu 23264 elif test -f "$ac_srcdir/configure"; then 23265 ac_sub_configure=$ac_srcdir/configure 23266 elif test -f "$ac_srcdir/configure.in"; then 23267 # This should be Cygnus configure. 23268 ac_sub_configure=$ac_aux_dir/configure 23269 else 23270 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23271echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23272 ac_sub_configure= 23273 fi 23274 23275 # The recursion is here. 23276 if test -n "$ac_sub_configure"; then 23277 # Make the cache file name correct relative to the subdirectory. 23278 case $cache_file in 23279 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23280 *) # Relative name. 23281 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23282 esac 23283 23284 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23285echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23286 # The eval makes quoting arguments work. 23287 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23288 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23289 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23290echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23291 { (exit 1); exit 1; }; } 23292 fi 23293 23294 cd "$ac_popdir" 23295 done 23296fi 23297 23298