1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.1svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be Bourne compatible 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27fi 28BIN_SH=xpg4; export BIN_SH # for Tru64 29DUALCASE=1; export DUALCASE # for MKS sh 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240# Be Bourne compatible 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250fi 251BIN_SH=xpg4; export BIN_SH # for Tru64 252DUALCASE=1; export DUALCASE # for MKS sh 253 254: 255_ASEOF 256}; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260# Be Bourne compatible 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270fi 271BIN_SH=xpg4; export BIN_SH # for Tru64 272DUALCASE=1; export DUALCASE # for MKS sh 273 274: 275(as_func_return () { 276 (exit $1) 277} 278as_func_success () { 279 as_func_return 0 280} 281as_func_failure () { 282 as_func_return 1 283} 284as_func_ret_success () { 285 return 0 286} 287as_func_ret_failure () { 288 return 1 289} 290 291exitcode=0 292if as_func_success; then 293 : 294else 295 exitcode=1 296 echo as_func_success failed. 297fi 298 299if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302fi 303 304if as_func_ret_success; then 305 : 306else 307 exitcode=1 308 echo as_func_ret_success failed. 309fi 310 311if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314fi 315 316if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318else 319 exitcode=1 320 echo positional parameters were not saved. 321fi 322 323test $exitcode = 0) || { (exit 1); exit 1; } 324 325( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331_ASEOF 332}; then 333 break 334fi 335 336fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355fi 356 357 358fi 359 360fi 361 362 363 364(eval "as_func_return () { 365 (exit \$1) 366} 367as_func_success () { 368 as_func_return 0 369} 370as_func_failure () { 371 as_func_return 1 372} 373as_func_ret_success () { 374 return 0 375} 376as_func_ret_failure () { 377 return 1 378} 379 380exitcode=0 381if as_func_success; then 382 : 383else 384 exitcode=1 385 echo as_func_success failed. 386fi 387 388if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391fi 392 393if as_func_ret_success; then 394 : 395else 396 exitcode=1 397 echo as_func_ret_success failed. 398fi 399 400if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403fi 404 405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407else 408 exitcode=1 409 echo positional parameters were not saved. 410fi 411 412test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417} 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470ECHO_C= ECHO_N= ECHO_T= 471case `echo -n x` in 472-n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484else 485 as_expr=false 486fi 487 488rm -f conf$$ conf$$.exe conf$$.file 489if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494fi 495echo >conf$$.file 496if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519# Find out whether ``test -x'' works. Don't use a zero-byte file, as 520# systems may use methods other than mode bits to determine executability. 521cat >conf$$.file <<_ASEOF 522#! /bin/sh 523exit 0 524_ASEOF 525chmod +x conf$$.file 526if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528else 529 as_executable_p=: 530fi 531rm -f conf$$.file 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541exec 7<&0 </dev/null 6>&1 542 543# Name of the host. 544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545# so uname gets run too. 546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548# 549# Initializations. 550# 551ac_default_prefix=/usr/local 552ac_clean_files= 553ac_config_libobj_dir=. 554LIBOBJS= 555cross_compiling=no 556subdirs= 557MFLAGS= 558MAKEFLAGS= 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561# Identity of this package. 562PACKAGE_NAME='LLVM' 563PACKAGE_TARNAME='llvm' 564PACKAGE_VERSION='3.1svn' 565PACKAGE_STRING='LLVM 3.1svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/VMCore/Module.cpp" 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#if HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#if HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#if STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# if HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#if HAVE_STRING_H 587# if !STDC_HEADERS && HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#if HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#if HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#if HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#if HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642LLVM_COPYRIGHT 643CC 644CFLAGS 645LDFLAGS 646CPPFLAGS 647ac_ct_CC 648EXEEXT 649OBJEXT 650CXX 651CXXFLAGS 652ac_ct_CXX 653CPP 654subdirs 655ENABLE_POLLY 656LLVM_HAS_POLLY 657build 658build_cpu 659build_vendor 660build_os 661host 662host_cpu 663host_vendor 664host_os 665target 666target_cpu 667target_vendor 668target_os 669OS 670HOST_OS 671TARGET_OS 672LINKALL 673NOLINKALL 674LLVM_ON_UNIX 675LLVM_ON_WIN32 676ARCH 677ENDIAN 678GREP 679EGREP 680LLVM_CROSS_COMPILING 681BUILD_CC 682BUILD_EXEEXT 683BUILD_CXX 684CVSBUILD 685ENABLE_LIBCPP 686ENABLE_OPTIMIZED 687ENABLE_PROFILING 688DISABLE_ASSERTIONS 689ENABLE_EXPENSIVE_CHECKS 690EXPENSIVE_CHECKS 691DEBUG_RUNTIME 692DEBUG_SYMBOLS 693JIT 694TARGET_HAS_JIT 695ENABLE_DOCS 696ENABLE_DOXYGEN 697LLVM_ENABLE_THREADS 698ENABLE_PTHREADS 699ENABLE_PIC 700ENABLE_SHARED 701ENABLE_EMBED_STDCXX 702ENABLE_TIMESTAMPS 703TARGETS_TO_BUILD 704LLVM_ENUM_TARGETS 705LLVM_ENUM_ASM_PRINTERS 706LLVM_ENUM_ASM_PARSERS 707LLVM_ENUM_DISASSEMBLERS 708OPTIMIZE_OPTION 709EXTRA_OPTIONS 710EXTRA_LD_OPTIONS 711CLANG_SRC_ROOT 712BINUTILS_INCDIR 713INTERNAL_PREFIX 714NM 715ifGNUmake 716LN_S 717CMP 718CP 719DATE 720FIND 721MKDIR 722MV 723RANLIB 724AR 725RM 726SED 727TAR 728BINPWD 729GRAPHVIZ 730DOT 731FDP 732NEATO 733TWOPI 734CIRCO 735GV 736DOTTY 737XDOT_PY 738INSTALL_PROGRAM 739INSTALL_SCRIPT 740INSTALL_DATA 741BZIP2 742CAT 743DOXYGEN 744GROFF 745GZIPBIN 746POD2HTML 747POD2MAN 748PDFROFF 749RUNTEST 750TCLSH 751ZIP 752OCAMLC 753OCAMLOPT 754OCAMLDEP 755OCAMLDOC 756GAS 757HAVE_LINK_VERSION_SCRIPT 758INSTALL_LTDL_TRUE 759INSTALL_LTDL_FALSE 760CONVENIENCE_LTDL_TRUE 761CONVENIENCE_LTDL_FALSE 762LIBADD_DL 763NO_VARIADIC_MACROS 764NO_MISSING_FIELD_INITIALIZERS 765COVERED_SWITCH_DEFAULT 766USE_UDIS86 767USE_OPROFILE 768USE_INTEL_JITEVENTS 769INTEL_JITEVENTS_INCDIR 770INTEL_JITEVENTS_LIBDIR 771HAVE_PTHREAD 772HUGE_VAL_SANITY 773MMAP_FILE 774SHLIBEXT 775SHLIBPATH_VAR 776LLVM_PREFIX 777LLVM_BINDIR 778LLVM_LIBDIR 779LLVM_DATADIR 780LLVM_DOCSDIR 781LLVM_ETCDIR 782LLVM_INCLUDEDIR 783LLVM_INFODIR 784LLVM_MANDIR 785LLVM_CONFIGTIME 786BINDINGS_TO_BUILD 787ALL_BINDINGS 788OCAML_LIBDIR 789ENABLE_VISIBILITY_INLINES_HIDDEN 790RPATH 791RDYNAMIC 792LIBOBJS 793LTLIBOBJS' 794ac_subst_files='' 795 ac_precious_vars='build_alias 796host_alias 797target_alias 798CC 799CFLAGS 800LDFLAGS 801CPPFLAGS 802CXX 803CXXFLAGS 804CCC 805CPP' 806ac_subdirs_all='projects/llvm-gcc 807projects/test-suite 808projects/llvm-test 809projects/poolalloc 810projects/llvm-poolalloc 811projects/sample 812projects/privbracket 813projects/llvm-stacker 814projects/llvm-reopt 815projects/llvm-java 816projects/llvm-tv 817projects/safecode 818projects/llvm-kernel 819tools/polly' 820 821# Initialize some variables set by options. 822ac_init_help= 823ac_init_version=false 824# The variables have the same names as the options, with 825# dashes changed to underlines. 826cache_file=/dev/null 827exec_prefix=NONE 828no_create= 829no_recursion= 830prefix=NONE 831program_prefix=NONE 832program_suffix=NONE 833program_transform_name=s,x,x, 834silent= 835site= 836srcdir= 837verbose= 838x_includes=NONE 839x_libraries=NONE 840 841# Installation directory options. 842# These are left unexpanded so users can "make install exec_prefix=/foo" 843# and all the variables that are supposed to be based on exec_prefix 844# by default will actually change. 845# Use braces instead of parens because sh, perl, etc. also accept them. 846# (The list follows the same order as the GNU Coding Standards.) 847bindir='${exec_prefix}/bin' 848sbindir='${exec_prefix}/sbin' 849libexecdir='${exec_prefix}/libexec' 850datarootdir='${prefix}/share' 851datadir='${datarootdir}' 852sysconfdir='${prefix}/etc' 853sharedstatedir='${prefix}/com' 854localstatedir='${prefix}/var' 855includedir='${prefix}/include' 856oldincludedir='/usr/include' 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 858infodir='${datarootdir}/info' 859htmldir='${docdir}' 860dvidir='${docdir}' 861pdfdir='${docdir}' 862psdir='${docdir}' 863libdir='${exec_prefix}/lib' 864localedir='${datarootdir}/locale' 865mandir='${datarootdir}/man' 866 867ac_prev= 868ac_dashdash= 869for ac_option 870do 871 # If the previous option needs an argument, assign it. 872 if test -n "$ac_prev"; then 873 eval $ac_prev=\$ac_option 874 ac_prev= 875 continue 876 fi 877 878 case $ac_option in 879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 926 { (exit 1); exit 1; }; } 927 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 928 eval enable_$ac_feature=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 945 { (exit 1); exit 1; }; } 946 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 947 eval enable_$ac_feature=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1141 { echo "$as_me: error: invalid package name: $ac_package" >&2 1142 { (exit 1); exit 1; }; } 1143 ac_package=`echo $ac_package| sed 's/-/_/g'` 1144 eval with_$ac_package=\$ac_optarg ;; 1145 1146 -without-* | --without-*) 1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) { echo "$as_me: error: unrecognized option: $ac_option 1174Try \`$0 --help' for more information." >&2 1175 { (exit 1); exit 1; }; } 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1183 { (exit 1); exit 1; }; } 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 { echo "$as_me: error: missing argument to $ac_option" >&2 1201 { (exit 1); exit 1; }; } 1202fi 1203 1204# Be sure to have absolute directory names. 1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1206 datadir sysconfdir sharedstatedir localstatedir includedir \ 1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1208 libdir localedir mandir 1209do 1210 eval ac_val=\$$ac_var 1211 case $ac_val in 1212 [\\/$]* | ?:[\\/]* ) continue;; 1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1214 esac 1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1216 { (exit 1); exit 1; }; } 1217done 1218 1219# There might be people who depend on the old broken behavior: `$host' 1220# used to hold the argument of --host etc. 1221# FIXME: To remove some day. 1222build=$build_alias 1223host=$host_alias 1224target=$target_alias 1225 1226# FIXME: To remove some day. 1227if test "x$host_alias" != x; then 1228 if test "x$build_alias" = x; then 1229 cross_compiling=maybe 1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1231 If a cross compiler is detected then cross compile mode will be used." >&2 1232 elif test "x$build_alias" != "x$host_alias"; then 1233 cross_compiling=yes 1234 fi 1235fi 1236 1237ac_tool_prefix= 1238test -n "$host_alias" && ac_tool_prefix=$host_alias- 1239 1240test "$silent" = yes && exec 6>/dev/null 1241 1242 1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1244ac_ls_di=`ls -di .` && 1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1246 { echo "$as_me: error: Working directory cannot be determined" >&2 1247 { (exit 1); exit 1; }; } 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 { echo "$as_me: error: pwd does not report name of working directory" >&2 1250 { (exit 1); exit 1; }; } 1251 1252 1253# Find the source files, if location was not specified. 1254if test -z "$srcdir"; then 1255 ac_srcdir_defaulted=yes 1256 # Try the directory containing this script, then the parent directory. 1257 ac_confdir=`$as_dirname -- "$0" || 1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1259 X"$0" : 'X\(//\)[^/]' \| \ 1260 X"$0" : 'X\(//\)$' \| \ 1261 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1262echo X"$0" | 1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1264 s//\1/ 1265 q 1266 } 1267 /^X\(\/\/\)[^/].*/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\).*/{ 1276 s//\1/ 1277 q 1278 } 1279 s/.*/./; q'` 1280 srcdir=$ac_confdir 1281 if test ! -r "$srcdir/$ac_unique_file"; then 1282 srcdir=.. 1283 fi 1284else 1285 ac_srcdir_defaulted=no 1286fi 1287if test ! -r "$srcdir/$ac_unique_file"; then 1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1290 { (exit 1); exit 1; }; } 1291fi 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1295 { (exit 1); exit 1; }; } 1296 pwd)` 1297# When building in place, set srcdir=. 1298if test "$ac_abs_confdir" = "$ac_pwd"; then 1299 srcdir=. 1300fi 1301# Remove unnecessary trailing slashes from srcdir. 1302# Double slashes in file names in object file debugging info 1303# mess up M-x gdb in Emacs. 1304case $srcdir in 1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1306esac 1307for ac_var in $ac_precious_vars; do 1308 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1309 eval ac_env_${ac_var}_value=\$${ac_var} 1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1312done 1313 1314# 1315# Report the --help message. 1316# 1317if test "$ac_init_help" = "long"; then 1318 # Omit some internal or obsolete options to make the list less imposing. 1319 # This message is too long to be a string in the A/UX 3.1 sh. 1320 cat <<_ACEOF 1321\`configure' configures LLVM 3.1svn to adapt to many kinds of systems. 1322 1323Usage: $0 [OPTION]... [VAR=VALUE]... 1324 1325To assign environment variables (e.g., CC, CFLAGS...), specify them as 1326VAR=VALUE. See below for descriptions of some of the useful variables. 1327 1328Defaults for the options are specified in brackets. 1329 1330Configuration: 1331 -h, --help display this help and exit 1332 --help=short display options specific to this package 1333 --help=recursive display the short help of all the included packages 1334 -V, --version display version information and exit 1335 -q, --quiet, --silent do not print \`checking...' messages 1336 --cache-file=FILE cache test results in FILE [disabled] 1337 -C, --config-cache alias for \`--cache-file=config.cache' 1338 -n, --no-create do not create output files 1339 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1340 1341Installation directories: 1342 --prefix=PREFIX install architecture-independent files in PREFIX 1343 [$ac_default_prefix] 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1345 [PREFIX] 1346 1347By default, \`make install' will install all the files in 1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1349an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1350for instance \`--prefix=\$HOME'. 1351 1352For better control, use the options below. 1353 1354Fine tuning of the installation directories: 1355 --bindir=DIR user executables [EPREFIX/bin] 1356 --sbindir=DIR system admin executables [EPREFIX/sbin] 1357 --libexecdir=DIR program executables [EPREFIX/libexec] 1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1361 --libdir=DIR object code libraries [EPREFIX/lib] 1362 --includedir=DIR C header files [PREFIX/include] 1363 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1366 --infodir=DIR info documentation [DATAROOTDIR/info] 1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1368 --mandir=DIR man documentation [DATAROOTDIR/man] 1369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1370 --htmldir=DIR html documentation [DOCDIR] 1371 --dvidir=DIR dvi documentation [DOCDIR] 1372 --pdfdir=DIR pdf documentation [DOCDIR] 1373 --psdir=DIR ps documentation [DOCDIR] 1374_ACEOF 1375 1376 cat <<\_ACEOF 1377 1378System types: 1379 --build=BUILD configure for building on BUILD [guessed] 1380 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1381 --target=TARGET configure for building compilers for TARGET [HOST] 1382_ACEOF 1383fi 1384 1385if test -n "$ac_init_help"; then 1386 case $ac_init_help in 1387 short | recursive ) echo "Configuration of LLVM 3.1svn:";; 1388 esac 1389 cat <<\_ACEOF 1390 1391Optional Features: 1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1394 --enable-polly Use polly if available (default is YES) 1395 --enable-libcpp Use libc++ if available (default is NO) 1396 --enable-optimized Compile with optimizations enabled (default is NO) 1397 --enable-profiling Compile with profiling enabled (default is NO) 1398 --enable-assertions Compile with assertion checks enabled (default is 1399 YES) 1400 --enable-expensive-checks 1401 Compile with expensive debug checks enabled (default 1402 is NO) 1403 --enable-debug-runtime Build runtime libs with debug symbols (default is 1404 NO) 1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1406 optimization is on and YES if it's off) 1407 --enable-jit Enable Just In Time Compiling (default is YES) 1408 --enable-docs Build documents (default is YES) 1409 --enable-doxygen Build doxygen documentation (default is NO) 1410 --enable-threads Use threads if available (default is YES) 1411 --enable-pthreads Use pthreads if available (default is YES) 1412 --enable-pic Build LLVM with Position Independent Code (default 1413 is YES) 1414 --enable-shared Build a shared library and link tools against it 1415 (default is NO) 1416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1417 Win32 DLL (default is NO) 1418 --enable-timestamps Enable embedding timestamp information in build 1419 (default is YES) 1420 --enable-targets Build specific host targets: all or 1421 target1,target2,... Valid targets are: host, x86, 1422 x86_64, sparc, powerpc, arm, mips, spu, hexagon, 1423 xcore, msp430, ptx, and cpp (default=all) 1424 --enable-bindings Build specific language bindings: 1425 all,auto,none,{binding-name} (default=auto) 1426 --enable-libffi Check for the presence of libffi (default is NO) 1427 --enable-ltdl-install install libltdl 1428 1429Optional Packages: 1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1432 --with-optimize-option Select the compiler options to use for optimized 1433 builds 1434 --with-extra-options Specify additional options to compile LLVM with 1435 --with-extra-ld-options Specify additional options to link LLVM with 1436 --with-ocaml-libdir Specify install location for ocaml bindings (default 1437 is stdlib) 1438 --with-clang-srcdir Directory to the out-of-tree Clang source 1439 --with-clang-resource-dir 1440 Relative directory from the Clang binary for 1441 resource files 1442 --with-c-include-dirs Colon separated list of directories clang will 1443 search for headers 1444 --with-gcc-toolchain Directory where gcc is installed. 1445 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1446 --with-binutils-include Specify path to binutils/include/ containing 1447 plugin-api.h file for gold plugin. 1448 --with-bug-report-url Specify the URL where bug reports should be 1449 submitted (default=http://llvm.org/bugs/) 1450 --with-internal-prefix Installation directory for internal files 1451 --with-tclinclude directory where tcl headers are 1452 --with-udis86=<path> Use udis86 external x86 disassembler library 1453 --with-oprofile=<prefix> 1454 Tell OProfile >= 0.9.4 how to symbolize JIT output 1455 --with-intel-jitevents=<vtune-amplifier-dir> 1456 Specify location of run-time support library for 1457 Intel JIT API 1458 (default=/opt/intel/vtune_amplifier_xe_2011) 1459 1460Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1466 you have headers in a nonstandard directory <include dir> 1467 CXX C++ compiler command 1468 CXXFLAGS C++ compiler flags 1469 CPP C preprocessor 1470 1471Use these variables to override the choices made by `configure' or to help 1472it to find libraries and programs with nonstandard names/locations. 1473 1474Report bugs to <http://llvm.org/bugs/>. 1475_ACEOF 1476ac_status=$? 1477fi 1478 1479if test "$ac_init_help" = "recursive"; then 1480 # If there are subdirs, report their specific --help. 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1482 test -d "$ac_dir" || continue 1483 ac_builddir=. 1484 1485case "$ac_dir" in 1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487*) 1488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1489 # A ".." for each directory in $ac_dir_suffix. 1490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1491 case $ac_top_builddir_sub in 1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1494 esac ;; 1495esac 1496ac_abs_top_builddir=$ac_pwd 1497ac_abs_builddir=$ac_pwd$ac_dir_suffix 1498# for backward compatibility: 1499ac_top_builddir=$ac_top_build_prefix 1500 1501case $srcdir in 1502 .) # We are building in place. 1503 ac_srcdir=. 1504 ac_top_srcdir=$ac_top_builddir_sub 1505 ac_abs_top_srcdir=$ac_pwd ;; 1506 [\\/]* | ?:[\\/]* ) # Absolute name. 1507 ac_srcdir=$srcdir$ac_dir_suffix; 1508 ac_top_srcdir=$srcdir 1509 ac_abs_top_srcdir=$srcdir ;; 1510 *) # Relative name. 1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1512 ac_top_srcdir=$ac_top_build_prefix$srcdir 1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1514esac 1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1516 1517 cd "$ac_dir" || { ac_status=$?; continue; } 1518 # Check for guested configure. 1519 if test -f "$ac_srcdir/configure.gnu"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1522 elif test -f "$ac_srcdir/configure"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure" --help=recursive 1525 else 1526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1527 fi || ac_status=$? 1528 cd "$ac_pwd" || { ac_status=$?; break; } 1529 done 1530fi 1531 1532test -n "$ac_init_help" && exit $ac_status 1533if $ac_init_version; then 1534 cat <<\_ACEOF 1535LLVM configure 3.1svn 1536generated by GNU Autoconf 2.60 1537 1538Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15392002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1540This configure script is free software; the Free Software Foundation 1541gives unlimited permission to copy, distribute and modify it. 1542 1543Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. 1544_ACEOF 1545 exit 1546fi 1547cat >config.log <<_ACEOF 1548This file contains any messages produced by compilers while 1549running configure, to aid debugging if configure makes a mistake. 1550 1551It was created by LLVM $as_me 3.1svn, which was 1552generated by GNU Autoconf 2.60. Invocation command line was 1553 1554 $ $0 $@ 1555 1556_ACEOF 1557exec 5>>config.log 1558{ 1559cat <<_ASUNAME 1560## --------- ## 1561## Platform. ## 1562## --------- ## 1563 1564hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1565uname -m = `(uname -m) 2>/dev/null || echo unknown` 1566uname -r = `(uname -r) 2>/dev/null || echo unknown` 1567uname -s = `(uname -s) 2>/dev/null || echo unknown` 1568uname -v = `(uname -v) 2>/dev/null || echo unknown` 1569 1570/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1571/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1572 1573/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1574/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1575/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1576/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1577/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1578/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1579/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1580 1581_ASUNAME 1582 1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1584for as_dir in $PATH 1585do 1586 IFS=$as_save_IFS 1587 test -z "$as_dir" && as_dir=. 1588 echo "PATH: $as_dir" 1589done 1590IFS=$as_save_IFS 1591 1592} >&5 1593 1594cat >&5 <<_ACEOF 1595 1596 1597## ----------- ## 1598## Core tests. ## 1599## ----------- ## 1600 1601_ACEOF 1602 1603 1604# Keep a trace of the command line. 1605# Strip out --no-create and --no-recursion so they do not pile up. 1606# Strip out --silent because we don't want to record it for future runs. 1607# Also quote any args containing shell meta-characters. 1608# Make two passes to allow for proper duplicate-argument suppression. 1609ac_configure_args= 1610ac_configure_args0= 1611ac_configure_args1= 1612ac_must_keep_next=false 1613for ac_pass in 1 2 1614do 1615 for ac_arg 1616 do 1617 case $ac_arg in 1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1620 | -silent | --silent | --silen | --sile | --sil) 1621 continue ;; 1622 *\'*) 1623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1624 esac 1625 case $ac_pass in 1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1627 2) 1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1629 if test $ac_must_keep_next = true; then 1630 ac_must_keep_next=false # Got value, back to normal. 1631 else 1632 case $ac_arg in 1633 *=* | --config-cache | -C | -disable-* | --disable-* \ 1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1636 | -with-* | --with-* | -without-* | --without-* | --x) 1637 case "$ac_configure_args0 " in 1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1639 esac 1640 ;; 1641 -* ) ac_must_keep_next=true ;; 1642 esac 1643 fi 1644 ac_configure_args="$ac_configure_args '$ac_arg'" 1645 ;; 1646 esac 1647 done 1648done 1649$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1650$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1651 1652# When interrupted or exit'd, cleanup temporary files, and complete 1653# config.log. We remove comments because anyway the quotes in there 1654# would cause problems or look ugly. 1655# WARNING: Use '\'' to represent an apostrophe within the trap. 1656# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1657trap 'exit_status=$? 1658 # Save into config.log some information that might help in debugging. 1659 { 1660 echo 1661 1662 cat <<\_ASBOX 1663## ---------------- ## 1664## Cache variables. ## 1665## ---------------- ## 1666_ASBOX 1667 echo 1668 # The following way of writing the cache mishandles newlines in values, 1669( 1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1671 eval ac_val=\$$ac_var 1672 case $ac_val in #( 1673 *${as_nl}*) 1674 case $ac_var in #( 1675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1676echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1677 esac 1678 case $ac_var in #( 1679 _ | IFS | as_nl) ;; #( 1680 *) $as_unset $ac_var ;; 1681 esac ;; 1682 esac 1683 done 1684 (set) 2>&1 | 1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1686 *${as_nl}ac_space=\ *) 1687 sed -n \ 1688 "s/'\''/'\''\\\\'\'''\''/g; 1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1690 ;; #( 1691 *) 1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1693 ;; 1694 esac | 1695 sort 1696) 1697 echo 1698 1699 cat <<\_ASBOX 1700## ----------------- ## 1701## Output variables. ## 1702## ----------------- ## 1703_ASBOX 1704 echo 1705 for ac_var in $ac_subst_vars 1706 do 1707 eval ac_val=\$$ac_var 1708 case $ac_val in 1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1710 esac 1711 echo "$ac_var='\''$ac_val'\''" 1712 done | sort 1713 echo 1714 1715 if test -n "$ac_subst_files"; then 1716 cat <<\_ASBOX 1717## ------------------- ## 1718## File substitutions. ## 1719## ------------------- ## 1720_ASBOX 1721 echo 1722 for ac_var in $ac_subst_files 1723 do 1724 eval ac_val=\$$ac_var 1725 case $ac_val in 1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1727 esac 1728 echo "$ac_var='\''$ac_val'\''" 1729 done | sort 1730 echo 1731 fi 1732 1733 if test -s confdefs.h; then 1734 cat <<\_ASBOX 1735## ----------- ## 1736## confdefs.h. ## 1737## ----------- ## 1738_ASBOX 1739 echo 1740 cat confdefs.h 1741 echo 1742 fi 1743 test "$ac_signal" != 0 && 1744 echo "$as_me: caught signal $ac_signal" 1745 echo "$as_me: exit $exit_status" 1746 } >&5 1747 rm -f core *.core core.conftest.* && 1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1749 exit $exit_status 1750' 0 1751for ac_signal in 1 2 13 15; do 1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1753done 1754ac_signal=0 1755 1756# confdefs.h avoids OS command line length limits that DEFS can exceed. 1757rm -f -r conftest* confdefs.h 1758 1759# Predefined preprocessor variables. 1760 1761cat >>confdefs.h <<_ACEOF 1762#define PACKAGE_NAME "$PACKAGE_NAME" 1763_ACEOF 1764 1765 1766cat >>confdefs.h <<_ACEOF 1767#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1768_ACEOF 1769 1770 1771cat >>confdefs.h <<_ACEOF 1772#define PACKAGE_VERSION "$PACKAGE_VERSION" 1773_ACEOF 1774 1775 1776cat >>confdefs.h <<_ACEOF 1777#define PACKAGE_STRING "$PACKAGE_STRING" 1778_ACEOF 1779 1780 1781cat >>confdefs.h <<_ACEOF 1782#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1783_ACEOF 1784 1785 1786# Let the site file select an alternate cache file if it wants to. 1787# Prefer explicitly selected file to automatically selected ones. 1788if test -n "$CONFIG_SITE"; then 1789 set x "$CONFIG_SITE" 1790elif test "x$prefix" != xNONE; then 1791 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1792else 1793 set x "$ac_default_prefix/share/config.site" \ 1794 "$ac_default_prefix/etc/config.site" 1795fi 1796shift 1797for ac_site_file 1798do 1799 if test -r "$ac_site_file"; then 1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1801echo "$as_me: loading site script $ac_site_file" >&6;} 1802 sed 's/^/| /' "$ac_site_file" >&5 1803 . "$ac_site_file" 1804 fi 1805done 1806 1807if test -r "$cache_file"; then 1808 # Some versions of bash will fail to source /dev/null (special 1809 # files actually), so we avoid doing that. 1810 if test -f "$cache_file"; then 1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1812echo "$as_me: loading cache $cache_file" >&6;} 1813 case $cache_file in 1814 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1815 *) . "./$cache_file";; 1816 esac 1817 fi 1818else 1819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1820echo "$as_me: creating cache $cache_file" >&6;} 1821 >$cache_file 1822fi 1823 1824# Check that the precious variables saved in the cache have kept the same 1825# value. 1826ac_cache_corrupted=false 1827for ac_var in $ac_precious_vars; do 1828 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1829 eval ac_new_set=\$ac_env_${ac_var}_set 1830 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1831 eval ac_new_val=\$ac_env_${ac_var}_value 1832 case $ac_old_set,$ac_new_set in 1833 set,) 1834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1835echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1836 ac_cache_corrupted=: ;; 1837 ,set) 1838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1839echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1840 ac_cache_corrupted=: ;; 1841 ,);; 1842 *) 1843 if test "x$ac_old_val" != "x$ac_new_val"; then 1844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1845echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1847echo "$as_me: former value: $ac_old_val" >&2;} 1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1849echo "$as_me: current value: $ac_new_val" >&2;} 1850 ac_cache_corrupted=: 1851 fi;; 1852 esac 1853 # Pass precious variables to config.status. 1854 if test "$ac_new_set" = set; then 1855 case $ac_new_val in 1856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1857 *) ac_arg=$ac_var=$ac_new_val ;; 1858 esac 1859 case " $ac_configure_args " in 1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1862 esac 1863 fi 1864done 1865if $ac_cache_corrupted; then 1866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1867echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1869echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1870 { (exit 1); exit 1; }; } 1871fi 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897ac_ext=c 1898ac_cpp='$CPP $CPPFLAGS' 1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1901ac_compiler_gnu=$ac_cv_c_compiler_gnu 1902 1903 1904 1905cat >>confdefs.h <<\_ACEOF 1906#define LLVM_VERSION_MAJOR 3 1907_ACEOF 1908 1909 1910cat >>confdefs.h <<\_ACEOF 1911#define LLVM_VERSION_MINOR 1 1912_ACEOF 1913 1914 1915LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." 1916 1917 1918 1919 1920 1921 1922 1923ac_aux_dir= 1924for ac_dir in autoconf "$srcdir"/autoconf; do 1925 if test -f "$ac_dir/install-sh"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/install-sh -c" 1928 break 1929 elif test -f "$ac_dir/install.sh"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/install.sh -c" 1932 break 1933 elif test -f "$ac_dir/shtool"; then 1934 ac_aux_dir=$ac_dir 1935 ac_install_sh="$ac_aux_dir/shtool install -c" 1936 break 1937 fi 1938done 1939if test -z "$ac_aux_dir"; then 1940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1941echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1942 { (exit 1); exit 1; }; } 1943fi 1944 1945# These three variables are undocumented and unsupported, 1946# and are intended to be withdrawn in a future Autoconf release. 1947# They can cause serious problems if a builder's source tree is in a directory 1948# whose full name contains unusual characters. 1949ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1950ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1951ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1952 1953 1954 1955if test ${srcdir} != "." ; then 1956 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1957 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1958echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1959 { (exit 1); exit 1; }; } 1960 fi 1961fi 1962 1963ac_ext=c 1964ac_cpp='$CPP $CPPFLAGS' 1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1967ac_compiler_gnu=$ac_cv_c_compiler_gnu 1968if test -n "$ac_tool_prefix"; then 1969 for ac_prog in clang llvm-gcc gcc 1970 do 1971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1972set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1973{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1975if test "${ac_cv_prog_CC+set}" = set; then 1976 echo $ECHO_N "(cached) $ECHO_C" >&6 1977else 1978 if test -n "$CC"; then 1979 ac_cv_prog_CC="$CC" # Let the user override the test. 1980else 1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1982for as_dir in $PATH 1983do 1984 IFS=$as_save_IFS 1985 test -z "$as_dir" && as_dir=. 1986 for ac_exec_ext in '' $ac_executable_extensions; do 1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1990 break 2 1991 fi 1992done 1993done 1994IFS=$as_save_IFS 1995 1996fi 1997fi 1998CC=$ac_cv_prog_CC 1999if test -n "$CC"; then 2000 { echo "$as_me:$LINENO: result: $CC" >&5 2001echo "${ECHO_T}$CC" >&6; } 2002else 2003 { echo "$as_me:$LINENO: result: no" >&5 2004echo "${ECHO_T}no" >&6; } 2005fi 2006 2007 2008 test -n "$CC" && break 2009 done 2010fi 2011if test -z "$CC"; then 2012 ac_ct_CC=$CC 2013 for ac_prog in clang llvm-gcc gcc 2014do 2015 # Extract the first word of "$ac_prog", so it can be a program name with args. 2016set dummy $ac_prog; ac_word=$2 2017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2019if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2020 echo $ECHO_N "(cached) $ECHO_C" >&6 2021else 2022 if test -n "$ac_ct_CC"; then 2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2024else 2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2026for as_dir in $PATH 2027do 2028 IFS=$as_save_IFS 2029 test -z "$as_dir" && as_dir=. 2030 for ac_exec_ext in '' $ac_executable_extensions; do 2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2032 ac_cv_prog_ac_ct_CC="$ac_prog" 2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2034 break 2 2035 fi 2036done 2037done 2038IFS=$as_save_IFS 2039 2040fi 2041fi 2042ac_ct_CC=$ac_cv_prog_ac_ct_CC 2043if test -n "$ac_ct_CC"; then 2044 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2045echo "${ECHO_T}$ac_ct_CC" >&6; } 2046else 2047 { echo "$as_me:$LINENO: result: no" >&5 2048echo "${ECHO_T}no" >&6; } 2049fi 2050 2051 2052 test -n "$ac_ct_CC" && break 2053done 2054 2055 if test "x$ac_ct_CC" = x; then 2056 CC="" 2057 else 2058 case $cross_compiling:$ac_tool_warned in 2059yes:) 2060{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2061whose name does not start with the host triplet. If you think this 2062configuration is useful to you, please write to autoconf@gnu.org." >&5 2063echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2064whose name does not start with the host triplet. If you think this 2065configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2066ac_tool_warned=yes ;; 2067esac 2068 CC=$ac_ct_CC 2069 fi 2070fi 2071 2072 2073test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2074See \`config.log' for more details." >&5 2075echo "$as_me: error: no acceptable C compiler found in \$PATH 2076See \`config.log' for more details." >&2;} 2077 { (exit 1); exit 1; }; } 2078 2079# Provide some information about the compiler. 2080echo "$as_me:$LINENO: checking for C compiler version" >&5 2081ac_compiler=`set X $ac_compile; echo $2` 2082{ (ac_try="$ac_compiler --version >&5" 2083case "(($ac_try" in 2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2085 *) ac_try_echo=$ac_try;; 2086esac 2087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2088 (eval "$ac_compiler --version >&5") 2>&5 2089 ac_status=$? 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2091 (exit $ac_status); } 2092{ (ac_try="$ac_compiler -v >&5" 2093case "(($ac_try" in 2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2095 *) ac_try_echo=$ac_try;; 2096esac 2097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2098 (eval "$ac_compiler -v >&5") 2>&5 2099 ac_status=$? 2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2101 (exit $ac_status); } 2102{ (ac_try="$ac_compiler -V >&5" 2103case "(($ac_try" in 2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2105 *) ac_try_echo=$ac_try;; 2106esac 2107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2108 (eval "$ac_compiler -V >&5") 2>&5 2109 ac_status=$? 2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2111 (exit $ac_status); } 2112 2113cat >conftest.$ac_ext <<_ACEOF 2114/* confdefs.h. */ 2115_ACEOF 2116cat confdefs.h >>conftest.$ac_ext 2117cat >>conftest.$ac_ext <<_ACEOF 2118/* end confdefs.h. */ 2119 2120int 2121main () 2122{ 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128ac_clean_files_save=$ac_clean_files 2129ac_clean_files="$ac_clean_files a.out a.exe b.out" 2130# Try to create an executable without -o first, disregard a.out. 2131# It will help us diagnose broken compilers, and finding out an intuition 2132# of exeext. 2133{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2134echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2135ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2136# 2137# List of possible output files, starting from the most likely. 2138# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2139# only as a last resort. b.out is created by i960 compilers. 2140ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2141# 2142# The IRIX 6 linker writes into existing files which may not be 2143# executable, retaining their permissions. Remove them first so a 2144# subsequent execution test works. 2145ac_rmfiles= 2146for ac_file in $ac_files 2147do 2148 case $ac_file in 2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2150 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2151 esac 2152done 2153rm -f $ac_rmfiles 2154 2155if { (ac_try="$ac_link_default" 2156case "(($ac_try" in 2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2158 *) ac_try_echo=$ac_try;; 2159esac 2160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2161 (eval "$ac_link_default") 2>&5 2162 ac_status=$? 2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2164 (exit $ac_status); }; then 2165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2167# in a Makefile. We should not override ac_cv_exeext if it was cached, 2168# so that the user can short-circuit this test for compilers unknown to 2169# Autoconf. 2170for ac_file in $ac_files 2171do 2172 test -f "$ac_file" || continue 2173 case $ac_file in 2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2175 ;; 2176 [ab].out ) 2177 # We found the default executable, but exeext='' is most 2178 # certainly right. 2179 break;; 2180 *.* ) 2181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2182 then :; else 2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2184 fi 2185 # We set ac_cv_exeext here because the later test for it is not 2186 # safe: cross compilers may not add the suffix if given an `-o' 2187 # argument, so we may need to know it at that point already. 2188 # Even if this section looks crufty: it has the advantage of 2189 # actually working. 2190 break;; 2191 * ) 2192 break;; 2193 esac 2194done 2195test "$ac_cv_exeext" = no && ac_cv_exeext= 2196 2197else 2198 echo "$as_me: failed program was:" >&5 2199sed 's/^/| /' conftest.$ac_ext >&5 2200 2201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2202See \`config.log' for more details." >&5 2203echo "$as_me: error: C compiler cannot create executables 2204See \`config.log' for more details." >&2;} 2205 { (exit 77); exit 77; }; } 2206fi 2207 2208ac_exeext=$ac_cv_exeext 2209{ echo "$as_me:$LINENO: result: $ac_file" >&5 2210echo "${ECHO_T}$ac_file" >&6; } 2211 2212# Check that the compiler produces executables we can run. If not, either 2213# the compiler is broken, or we cross compile. 2214{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2217# If not cross compiling, check that we can run a simple program. 2218if test "$cross_compiling" != yes; then 2219 if { ac_try='./$ac_file' 2220 { (case "(($ac_try" in 2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2222 *) ac_try_echo=$ac_try;; 2223esac 2224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2225 (eval "$ac_try") 2>&5 2226 ac_status=$? 2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2228 (exit $ac_status); }; }; then 2229 cross_compiling=no 2230 else 2231 if test "$cross_compiling" = maybe; then 2232 cross_compiling=yes 2233 else 2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2235If you meant to cross compile, use \`--host'. 2236See \`config.log' for more details." >&5 2237echo "$as_me: error: cannot run C compiled programs. 2238If you meant to cross compile, use \`--host'. 2239See \`config.log' for more details." >&2;} 2240 { (exit 1); exit 1; }; } 2241 fi 2242 fi 2243fi 2244{ echo "$as_me:$LINENO: result: yes" >&5 2245echo "${ECHO_T}yes" >&6; } 2246 2247rm -f a.out a.exe conftest$ac_cv_exeext b.out 2248ac_clean_files=$ac_clean_files_save 2249# Check that the compiler produces executables we can run. If not, either 2250# the compiler is broken, or we cross compile. 2251{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2253{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2254echo "${ECHO_T}$cross_compiling" >&6; } 2255 2256{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2258if { (ac_try="$ac_link" 2259case "(($ac_try" in 2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2261 *) ac_try_echo=$ac_try;; 2262esac 2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2264 (eval "$ac_link") 2>&5 2265 ac_status=$? 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); }; then 2268 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2270# work properly (i.e., refer to `conftest.exe'), while it won't with 2271# `rm'. 2272for ac_file in conftest.exe conftest conftest.*; do 2273 test -f "$ac_file" || continue 2274 case $ac_file in 2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2277 break;; 2278 * ) break;; 2279 esac 2280done 2281else 2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2283See \`config.log' for more details." >&5 2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2285See \`config.log' for more details." >&2;} 2286 { (exit 1); exit 1; }; } 2287fi 2288 2289rm -f conftest$ac_cv_exeext 2290{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2291echo "${ECHO_T}$ac_cv_exeext" >&6; } 2292 2293rm -f conftest.$ac_ext 2294EXEEXT=$ac_cv_exeext 2295ac_exeext=$EXEEXT 2296{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2298if test "${ac_cv_objext+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300else 2301 cat >conftest.$ac_ext <<_ACEOF 2302/* confdefs.h. */ 2303_ACEOF 2304cat confdefs.h >>conftest.$ac_ext 2305cat >>conftest.$ac_ext <<_ACEOF 2306/* end confdefs.h. */ 2307 2308int 2309main () 2310{ 2311 2312 ; 2313 return 0; 2314} 2315_ACEOF 2316rm -f conftest.o conftest.obj 2317if { (ac_try="$ac_compile" 2318case "(($ac_try" in 2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2320 *) ac_try_echo=$ac_try;; 2321esac 2322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2323 (eval "$ac_compile") 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); }; then 2327 for ac_file in conftest.o conftest.obj conftest.*; do 2328 test -f "$ac_file" || continue; 2329 case $ac_file in 2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2332 break;; 2333 esac 2334done 2335else 2336 echo "$as_me: failed program was:" >&5 2337sed 's/^/| /' conftest.$ac_ext >&5 2338 2339{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2340See \`config.log' for more details." >&5 2341echo "$as_me: error: cannot compute suffix of object files: cannot compile 2342See \`config.log' for more details." >&2;} 2343 { (exit 1); exit 1; }; } 2344fi 2345 2346rm -f conftest.$ac_cv_objext conftest.$ac_ext 2347fi 2348{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2349echo "${ECHO_T}$ac_cv_objext" >&6; } 2350OBJEXT=$ac_cv_objext 2351ac_objext=$OBJEXT 2352{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2353echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2354if test "${ac_cv_c_compiler_gnu+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 cat >conftest.$ac_ext <<_ACEOF 2358/* confdefs.h. */ 2359_ACEOF 2360cat confdefs.h >>conftest.$ac_ext 2361cat >>conftest.$ac_ext <<_ACEOF 2362/* end confdefs.h. */ 2363 2364int 2365main () 2366{ 2367#ifndef __GNUC__ 2368 choke me 2369#endif 2370 2371 ; 2372 return 0; 2373} 2374_ACEOF 2375rm -f conftest.$ac_objext 2376if { (ac_try="$ac_compile" 2377case "(($ac_try" in 2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2379 *) ac_try_echo=$ac_try;; 2380esac 2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2382 (eval "$ac_compile") 2>conftest.er1 2383 ac_status=$? 2384 grep -v '^ *+' conftest.er1 >conftest.err 2385 rm -f conftest.er1 2386 cat conftest.err >&5 2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2388 (exit $ac_status); } && 2389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2390 { (case "(($ac_try" in 2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2392 *) ac_try_echo=$ac_try;; 2393esac 2394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2395 (eval "$ac_try") 2>&5 2396 ac_status=$? 2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2398 (exit $ac_status); }; } && 2399 { ac_try='test -s conftest.$ac_objext' 2400 { (case "(($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_try") 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 ac_compiler_gnu=yes 2410else 2411 echo "$as_me: failed program was:" >&5 2412sed 's/^/| /' conftest.$ac_ext >&5 2413 2414 ac_compiler_gnu=no 2415fi 2416 2417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2418ac_cv_c_compiler_gnu=$ac_compiler_gnu 2419 2420fi 2421{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2423GCC=`test $ac_compiler_gnu = yes && echo yes` 2424ac_test_CFLAGS=${CFLAGS+set} 2425ac_save_CFLAGS=$CFLAGS 2426{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2427echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2428if test "${ac_cv_prog_cc_g+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430else 2431 ac_save_c_werror_flag=$ac_c_werror_flag 2432 ac_c_werror_flag=yes 2433 ac_cv_prog_cc_g=no 2434 CFLAGS="-g" 2435 cat >conftest.$ac_ext <<_ACEOF 2436/* confdefs.h. */ 2437_ACEOF 2438cat confdefs.h >>conftest.$ac_ext 2439cat >>conftest.$ac_ext <<_ACEOF 2440/* end confdefs.h. */ 2441 2442int 2443main () 2444{ 2445 2446 ; 2447 return 0; 2448} 2449_ACEOF 2450rm -f conftest.$ac_objext 2451if { (ac_try="$ac_compile" 2452case "(($ac_try" in 2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454 *) ac_try_echo=$ac_try;; 2455esac 2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2457 (eval "$ac_compile") 2>conftest.er1 2458 ac_status=$? 2459 grep -v '^ *+' conftest.er1 >conftest.err 2460 rm -f conftest.er1 2461 cat conftest.err >&5 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); } && 2464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2465 { (case "(($ac_try" in 2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2467 *) ac_try_echo=$ac_try;; 2468esac 2469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2470 (eval "$ac_try") 2>&5 2471 ac_status=$? 2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2473 (exit $ac_status); }; } && 2474 { ac_try='test -s conftest.$ac_objext' 2475 { (case "(($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_try") 2>&5 2481 ac_status=$? 2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2483 (exit $ac_status); }; }; then 2484 ac_cv_prog_cc_g=yes 2485else 2486 echo "$as_me: failed program was:" >&5 2487sed 's/^/| /' conftest.$ac_ext >&5 2488 2489 CFLAGS="" 2490 cat >conftest.$ac_ext <<_ACEOF 2491/* confdefs.h. */ 2492_ACEOF 2493cat confdefs.h >>conftest.$ac_ext 2494cat >>conftest.$ac_ext <<_ACEOF 2495/* end confdefs.h. */ 2496 2497int 2498main () 2499{ 2500 2501 ; 2502 return 0; 2503} 2504_ACEOF 2505rm -f conftest.$ac_objext 2506if { (ac_try="$ac_compile" 2507case "(($ac_try" in 2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2509 *) ac_try_echo=$ac_try;; 2510esac 2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2512 (eval "$ac_compile") 2>conftest.er1 2513 ac_status=$? 2514 grep -v '^ *+' conftest.er1 >conftest.err 2515 rm -f conftest.er1 2516 cat conftest.err >&5 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } && 2519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2520 { (case "(($ac_try" in 2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2522 *) ac_try_echo=$ac_try;; 2523esac 2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2525 (eval "$ac_try") 2>&5 2526 ac_status=$? 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); }; } && 2529 { ac_try='test -s conftest.$ac_objext' 2530 { (case "(($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_try") 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; }; then 2539 : 2540else 2541 echo "$as_me: failed program was:" >&5 2542sed 's/^/| /' conftest.$ac_ext >&5 2543 2544 ac_c_werror_flag=$ac_save_c_werror_flag 2545 CFLAGS="-g" 2546 cat >conftest.$ac_ext <<_ACEOF 2547/* confdefs.h. */ 2548_ACEOF 2549cat confdefs.h >>conftest.$ac_ext 2550cat >>conftest.$ac_ext <<_ACEOF 2551/* end confdefs.h. */ 2552 2553int 2554main () 2555{ 2556 2557 ; 2558 return 0; 2559} 2560_ACEOF 2561rm -f conftest.$ac_objext 2562if { (ac_try="$ac_compile" 2563case "(($ac_try" in 2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2565 *) ac_try_echo=$ac_try;; 2566esac 2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2568 (eval "$ac_compile") 2>conftest.er1 2569 ac_status=$? 2570 grep -v '^ *+' conftest.er1 >conftest.err 2571 rm -f conftest.er1 2572 cat conftest.err >&5 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); } && 2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2576 { (case "(($ac_try" in 2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2578 *) ac_try_echo=$ac_try;; 2579esac 2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2581 (eval "$ac_try") 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; } && 2585 { ac_try='test -s conftest.$ac_objext' 2586 { (case "(($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_try") 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 ac_cv_prog_cc_g=yes 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600 2601fi 2602 2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2604fi 2605 2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607fi 2608 2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2610 ac_c_werror_flag=$ac_save_c_werror_flag 2611fi 2612{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2613echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2614if test "$ac_test_CFLAGS" = set; then 2615 CFLAGS=$ac_save_CFLAGS 2616elif test $ac_cv_prog_cc_g = yes; then 2617 if test "$GCC" = yes; then 2618 CFLAGS="-g -O2" 2619 else 2620 CFLAGS="-g" 2621 fi 2622else 2623 if test "$GCC" = yes; then 2624 CFLAGS="-O2" 2625 else 2626 CFLAGS= 2627 fi 2628fi 2629{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2630echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2631if test "${ac_cv_prog_cc_c89+set}" = set; then 2632 echo $ECHO_N "(cached) $ECHO_C" >&6 2633else 2634 ac_cv_prog_cc_c89=no 2635ac_save_CC=$CC 2636cat >conftest.$ac_ext <<_ACEOF 2637/* confdefs.h. */ 2638_ACEOF 2639cat confdefs.h >>conftest.$ac_ext 2640cat >>conftest.$ac_ext <<_ACEOF 2641/* end confdefs.h. */ 2642#include <stdarg.h> 2643#include <stdio.h> 2644#include <sys/types.h> 2645#include <sys/stat.h> 2646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2647struct buf { int x; }; 2648FILE * (*rcsopen) (struct buf *, struct stat *, int); 2649static char *e (p, i) 2650 char **p; 2651 int i; 2652{ 2653 return p[i]; 2654} 2655static char *f (char * (*g) (char **, int), char **p, ...) 2656{ 2657 char *s; 2658 va_list v; 2659 va_start (v,p); 2660 s = g (p, va_arg (v,int)); 2661 va_end (v); 2662 return s; 2663} 2664 2665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2666 function prototypes and stuff, but not '\xHH' hex character constants. 2667 These don't provoke an error unfortunately, instead are silently treated 2668 as 'x'. The following induces an error, until -std is added to get 2669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2670 array size at least. It's necessary to write '\x00'==0 to get something 2671 that's true only with -std. */ 2672int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2673 2674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2675 inside strings and character constants. */ 2676#define FOO(x) 'x' 2677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2678 2679int test (int i, double x); 2680struct s1 {int (*f) (int a);}; 2681struct s2 {int (*f) (double a);}; 2682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2683int argc; 2684char **argv; 2685int 2686main () 2687{ 2688return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2689 ; 2690 return 0; 2691} 2692_ACEOF 2693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2695do 2696 CC="$ac_save_CC $ac_arg" 2697 rm -f conftest.$ac_objext 2698if { (ac_try="$ac_compile" 2699case "(($ac_try" in 2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2701 *) ac_try_echo=$ac_try;; 2702esac 2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2704 (eval "$ac_compile") 2>conftest.er1 2705 ac_status=$? 2706 grep -v '^ *+' conftest.er1 >conftest.err 2707 rm -f conftest.er1 2708 cat conftest.err >&5 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); } && 2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2712 { (case "(($ac_try" in 2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2714 *) ac_try_echo=$ac_try;; 2715esac 2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2717 (eval "$ac_try") 2>&5 2718 ac_status=$? 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); }; } && 2721 { ac_try='test -s conftest.$ac_objext' 2722 { (case "(($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_try") 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); }; }; then 2731 ac_cv_prog_cc_c89=$ac_arg 2732else 2733 echo "$as_me: failed program was:" >&5 2734sed 's/^/| /' conftest.$ac_ext >&5 2735 2736 2737fi 2738 2739rm -f core conftest.err conftest.$ac_objext 2740 test "x$ac_cv_prog_cc_c89" != "xno" && break 2741done 2742rm -f conftest.$ac_ext 2743CC=$ac_save_CC 2744 2745fi 2746# AC_CACHE_VAL 2747case "x$ac_cv_prog_cc_c89" in 2748 x) 2749 { echo "$as_me:$LINENO: result: none needed" >&5 2750echo "${ECHO_T}none needed" >&6; } ;; 2751 xno) 2752 { echo "$as_me:$LINENO: result: unsupported" >&5 2753echo "${ECHO_T}unsupported" >&6; } ;; 2754 *) 2755 CC="$CC $ac_cv_prog_cc_c89" 2756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2757echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2758esac 2759 2760 2761ac_ext=c 2762ac_cpp='$CPP $CPPFLAGS' 2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2765ac_compiler_gnu=$ac_cv_c_compiler_gnu 2766 2767ac_ext=cpp 2768ac_cpp='$CXXCPP $CPPFLAGS' 2769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2772if test -z "$CXX"; then 2773 if test -n "$CCC"; then 2774 CXX=$CCC 2775 else 2776 if test -n "$ac_tool_prefix"; then 2777 for ac_prog in clang++ llvm-g++ g++ 2778 do 2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2780set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2781{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2783if test "${ac_cv_prog_CXX+set}" = set; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785else 2786 if test -n "$CXX"; then 2787 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2788else 2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2790for as_dir in $PATH 2791do 2792 IFS=$as_save_IFS 2793 test -z "$as_dir" && as_dir=. 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2798 break 2 2799 fi 2800done 2801done 2802IFS=$as_save_IFS 2803 2804fi 2805fi 2806CXX=$ac_cv_prog_CXX 2807if test -n "$CXX"; then 2808 { echo "$as_me:$LINENO: result: $CXX" >&5 2809echo "${ECHO_T}$CXX" >&6; } 2810else 2811 { echo "$as_me:$LINENO: result: no" >&5 2812echo "${ECHO_T}no" >&6; } 2813fi 2814 2815 2816 test -n "$CXX" && break 2817 done 2818fi 2819if test -z "$CXX"; then 2820 ac_ct_CXX=$CXX 2821 for ac_prog in clang++ llvm-g++ g++ 2822do 2823 # Extract the first word of "$ac_prog", so it can be a program name with args. 2824set dummy $ac_prog; ac_word=$2 2825{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2827if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 if test -n "$ac_ct_CXX"; then 2831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2832else 2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH 2835do 2836 IFS=$as_save_IFS 2837 test -z "$as_dir" && as_dir=. 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2840 ac_cv_prog_ac_ct_CXX="$ac_prog" 2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844done 2845done 2846IFS=$as_save_IFS 2847 2848fi 2849fi 2850ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2851if test -n "$ac_ct_CXX"; then 2852 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2853echo "${ECHO_T}$ac_ct_CXX" >&6; } 2854else 2855 { echo "$as_me:$LINENO: result: no" >&5 2856echo "${ECHO_T}no" >&6; } 2857fi 2858 2859 2860 test -n "$ac_ct_CXX" && break 2861done 2862 2863 if test "x$ac_ct_CXX" = x; then 2864 CXX="g++" 2865 else 2866 case $cross_compiling:$ac_tool_warned in 2867yes:) 2868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2869whose name does not start with the host triplet. If you think this 2870configuration is useful to you, please write to autoconf@gnu.org." >&5 2871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2872whose name does not start with the host triplet. If you think this 2873configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2874ac_tool_warned=yes ;; 2875esac 2876 CXX=$ac_ct_CXX 2877 fi 2878fi 2879 2880 fi 2881fi 2882# Provide some information about the compiler. 2883echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2884ac_compiler=`set X $ac_compile; echo $2` 2885{ (ac_try="$ac_compiler --version >&5" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2891 (eval "$ac_compiler --version >&5") 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); } 2895{ (ac_try="$ac_compiler -v >&5" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2901 (eval "$ac_compiler -v >&5") 2>&5 2902 ac_status=$? 2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2904 (exit $ac_status); } 2905{ (ac_try="$ac_compiler -V >&5" 2906case "(($ac_try" in 2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2908 *) ac_try_echo=$ac_try;; 2909esac 2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2911 (eval "$ac_compiler -V >&5") 2>&5 2912 ac_status=$? 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } 2915 2916{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2917echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2918if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2919 echo $ECHO_N "(cached) $ECHO_C" >&6 2920else 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931#ifndef __GNUC__ 2932 choke me 2933#endif 2934 2935 ; 2936 return 0; 2937} 2938_ACEOF 2939rm -f conftest.$ac_objext 2940if { (ac_try="$ac_compile" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_compile") 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } && 2953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2954 { (case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2959 (eval "$ac_try") 2>&5 2960 ac_status=$? 2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); }; } && 2963 { ac_try='test -s conftest.$ac_objext' 2964 { (case "(($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_try") 2>&5 2970 ac_status=$? 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; }; then 2973 ac_compiler_gnu=yes 2974else 2975 echo "$as_me: failed program was:" >&5 2976sed 's/^/| /' conftest.$ac_ext >&5 2977 2978 ac_compiler_gnu=no 2979fi 2980 2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2983 2984fi 2985{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2986echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2987GXX=`test $ac_compiler_gnu = yes && echo yes` 2988ac_test_CXXFLAGS=${CXXFLAGS+set} 2989ac_save_CXXFLAGS=$CXXFLAGS 2990{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2991echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2992if test "${ac_cv_prog_cxx_g+set}" = set; then 2993 echo $ECHO_N "(cached) $ECHO_C" >&6 2994else 2995 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2996 ac_cxx_werror_flag=yes 2997 ac_cv_prog_cxx_g=no 2998 CXXFLAGS="-g" 2999 cat >conftest.$ac_ext <<_ACEOF 3000/* confdefs.h. */ 3001_ACEOF 3002cat confdefs.h >>conftest.$ac_ext 3003cat >>conftest.$ac_ext <<_ACEOF 3004/* end confdefs.h. */ 3005 3006int 3007main () 3008{ 3009 3010 ; 3011 return 0; 3012} 3013_ACEOF 3014rm -f conftest.$ac_objext 3015if { (ac_try="$ac_compile" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_compile") 2>conftest.er1 3022 ac_status=$? 3023 grep -v '^ *+' conftest.er1 >conftest.err 3024 rm -f conftest.er1 3025 cat conftest.err >&5 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); } && 3028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3029 { (case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032esac 3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3034 (eval "$ac_try") 2>&5 3035 ac_status=$? 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); }; } && 3038 { ac_try='test -s conftest.$ac_objext' 3039 { (case "(($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_try") 2>&5 3045 ac_status=$? 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); }; }; then 3048 ac_cv_prog_cxx_g=yes 3049else 3050 echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053 CXXFLAGS="" 3054 cat >conftest.$ac_ext <<_ACEOF 3055/* confdefs.h. */ 3056_ACEOF 3057cat confdefs.h >>conftest.$ac_ext 3058cat >>conftest.$ac_ext <<_ACEOF 3059/* end confdefs.h. */ 3060 3061int 3062main () 3063{ 3064 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext 3070if { (ac_try="$ac_compile" 3071case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_compile") 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && 3083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3084 { (case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3089 (eval "$ac_try") 2>&5 3090 ac_status=$? 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); }; } && 3093 { ac_try='test -s conftest.$ac_objext' 3094 { (case "(($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_try") 2>&5 3100 ac_status=$? 3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3102 (exit $ac_status); }; }; then 3103 : 3104else 3105 echo "$as_me: failed program was:" >&5 3106sed 's/^/| /' conftest.$ac_ext >&5 3107 3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3109 CXXFLAGS="-g" 3110 cat >conftest.$ac_ext <<_ACEOF 3111/* confdefs.h. */ 3112_ACEOF 3113cat confdefs.h >>conftest.$ac_ext 3114cat >>conftest.$ac_ext <<_ACEOF 3115/* end confdefs.h. */ 3116 3117int 3118main () 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125rm -f conftest.$ac_objext 3126if { (ac_try="$ac_compile" 3127case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3132 (eval "$ac_compile") 2>conftest.er1 3133 ac_status=$? 3134 grep -v '^ *+' conftest.er1 >conftest.err 3135 rm -f conftest.er1 3136 cat conftest.err >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } && 3139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3140 { (case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3145 (eval "$ac_try") 2>&5 3146 ac_status=$? 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); }; } && 3149 { ac_try='test -s conftest.$ac_objext' 3150 { (case "(($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_try") 2>&5 3156 ac_status=$? 3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); }; }; then 3159 ac_cv_prog_cxx_g=yes 3160else 3161 echo "$as_me: failed program was:" >&5 3162sed 's/^/| /' conftest.$ac_ext >&5 3163 3164 3165fi 3166 3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168fi 3169 3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3171fi 3172 3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3175fi 3176{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3177echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3178if test "$ac_test_CXXFLAGS" = set; then 3179 CXXFLAGS=$ac_save_CXXFLAGS 3180elif test $ac_cv_prog_cxx_g = yes; then 3181 if test "$GXX" = yes; then 3182 CXXFLAGS="-g -O2" 3183 else 3184 CXXFLAGS="-g" 3185 fi 3186else 3187 if test "$GXX" = yes; then 3188 CXXFLAGS="-O2" 3189 else 3190 CXXFLAGS= 3191 fi 3192fi 3193ac_ext=c 3194ac_cpp='$CPP $CPPFLAGS' 3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197ac_compiler_gnu=$ac_cv_c_compiler_gnu 3198 3199ac_ext=c 3200ac_cpp='$CPP $CPPFLAGS' 3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3203ac_compiler_gnu=$ac_cv_c_compiler_gnu 3204{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3205echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3206# On Suns, sometimes $CPP names a directory. 3207if test -n "$CPP" && test -d "$CPP"; then 3208 CPP= 3209fi 3210if test -z "$CPP"; then 3211 if test "${ac_cv_prog_CPP+set}" = set; then 3212 echo $ECHO_N "(cached) $ECHO_C" >&6 3213else 3214 # Double quotes because CPP needs to be expanded 3215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3216 do 3217 ac_preproc_ok=false 3218for ac_c_preproc_warn_flag in '' yes 3219do 3220 # Use a header file that comes with gcc, so configuring glibc 3221 # with a fresh cross-compiler works. 3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3223 # <limits.h> exists even on freestanding compilers. 3224 # On the NeXT, cc -E runs the code through the compiler's parser, 3225 # not just through cpp. "Syntax error" is here to catch this case. 3226 cat >conftest.$ac_ext <<_ACEOF 3227/* confdefs.h. */ 3228_ACEOF 3229cat confdefs.h >>conftest.$ac_ext 3230cat >>conftest.$ac_ext <<_ACEOF 3231/* end confdefs.h. */ 3232#ifdef __STDC__ 3233# include <limits.h> 3234#else 3235# include <assert.h> 3236#endif 3237 Syntax error 3238_ACEOF 3239if { (ac_try="$ac_cpp conftest.$ac_ext" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3246 ac_status=$? 3247 grep -v '^ *+' conftest.er1 >conftest.err 3248 rm -f conftest.er1 3249 cat conftest.err >&5 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); } >/dev/null; then 3252 if test -s conftest.err; then 3253 ac_cpp_err=$ac_c_preproc_warn_flag 3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3255 else 3256 ac_cpp_err= 3257 fi 3258else 3259 ac_cpp_err=yes 3260fi 3261if test -z "$ac_cpp_err"; then 3262 : 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 # Broken: fails on valid input. 3268continue 3269fi 3270 3271rm -f conftest.err conftest.$ac_ext 3272 3273 # OK, works on sane cases. Now check whether nonexistent headers 3274 # can be detected and how. 3275 cat >conftest.$ac_ext <<_ACEOF 3276/* confdefs.h. */ 3277_ACEOF 3278cat confdefs.h >>conftest.$ac_ext 3279cat >>conftest.$ac_ext <<_ACEOF 3280/* end confdefs.h. */ 3281#include <ac_nonexistent.h> 3282_ACEOF 3283if { (ac_try="$ac_cpp conftest.$ac_ext" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } >/dev/null; then 3296 if test -s conftest.err; then 3297 ac_cpp_err=$ac_c_preproc_warn_flag 3298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3299 else 3300 ac_cpp_err= 3301 fi 3302else 3303 ac_cpp_err=yes 3304fi 3305if test -z "$ac_cpp_err"; then 3306 # Broken: success on invalid input. 3307continue 3308else 3309 echo "$as_me: failed program was:" >&5 3310sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 # Passes both tests. 3313ac_preproc_ok=: 3314break 3315fi 3316 3317rm -f conftest.err conftest.$ac_ext 3318 3319done 3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3321rm -f conftest.err conftest.$ac_ext 3322if $ac_preproc_ok; then 3323 break 3324fi 3325 3326 done 3327 ac_cv_prog_CPP=$CPP 3328 3329fi 3330 CPP=$ac_cv_prog_CPP 3331else 3332 ac_cv_prog_CPP=$CPP 3333fi 3334{ echo "$as_me:$LINENO: result: $CPP" >&5 3335echo "${ECHO_T}$CPP" >&6; } 3336ac_preproc_ok=false 3337for ac_c_preproc_warn_flag in '' yes 3338do 3339 # Use a header file that comes with gcc, so configuring glibc 3340 # with a fresh cross-compiler works. 3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3342 # <limits.h> exists even on freestanding compilers. 3343 # On the NeXT, cc -E runs the code through the compiler's parser, 3344 # not just through cpp. "Syntax error" is here to catch this case. 3345 cat >conftest.$ac_ext <<_ACEOF 3346/* confdefs.h. */ 3347_ACEOF 3348cat confdefs.h >>conftest.$ac_ext 3349cat >>conftest.$ac_ext <<_ACEOF 3350/* end confdefs.h. */ 3351#ifdef __STDC__ 3352# include <limits.h> 3353#else 3354# include <assert.h> 3355#endif 3356 Syntax error 3357_ACEOF 3358if { (ac_try="$ac_cpp conftest.$ac_ext" 3359case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362esac 3363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } >/dev/null; then 3371 if test -s conftest.err; then 3372 ac_cpp_err=$ac_c_preproc_warn_flag 3373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3374 else 3375 ac_cpp_err= 3376 fi 3377else 3378 ac_cpp_err=yes 3379fi 3380if test -z "$ac_cpp_err"; then 3381 : 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 # Broken: fails on valid input. 3387continue 3388fi 3389 3390rm -f conftest.err conftest.$ac_ext 3391 3392 # OK, works on sane cases. Now check whether nonexistent headers 3393 # can be detected and how. 3394 cat >conftest.$ac_ext <<_ACEOF 3395/* confdefs.h. */ 3396_ACEOF 3397cat confdefs.h >>conftest.$ac_ext 3398cat >>conftest.$ac_ext <<_ACEOF 3399/* end confdefs.h. */ 3400#include <ac_nonexistent.h> 3401_ACEOF 3402if { (ac_try="$ac_cpp conftest.$ac_ext" 3403case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3409 ac_status=$? 3410 grep -v '^ *+' conftest.er1 >conftest.err 3411 rm -f conftest.er1 3412 cat conftest.err >&5 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); } >/dev/null; then 3415 if test -s conftest.err; then 3416 ac_cpp_err=$ac_c_preproc_warn_flag 3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3418 else 3419 ac_cpp_err= 3420 fi 3421else 3422 ac_cpp_err=yes 3423fi 3424if test -z "$ac_cpp_err"; then 3425 # Broken: success on invalid input. 3426continue 3427else 3428 echo "$as_me: failed program was:" >&5 3429sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 # Passes both tests. 3432ac_preproc_ok=: 3433break 3434fi 3435 3436rm -f conftest.err conftest.$ac_ext 3437 3438done 3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3440rm -f conftest.err conftest.$ac_ext 3441if $ac_preproc_ok; then 3442 : 3443else 3444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3445See \`config.log' for more details." >&5 3446echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3447See \`config.log' for more details." >&2;} 3448 { (exit 1); exit 1; }; } 3449fi 3450 3451ac_ext=c 3452ac_cpp='$CPP $CPPFLAGS' 3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3455ac_compiler_gnu=$ac_cv_c_compiler_gnu 3456 3457 3458 3459 3460if test -d ${srcdir}/projects/llvm-gcc ; then 3461 subdirs="$subdirs projects/llvm-gcc" 3462 3463fi 3464 3465if test -d ${srcdir}/projects/test-suite ; then 3466 subdirs="$subdirs projects/test-suite" 3467 3468fi 3469 3470if test -d ${srcdir}/projects/llvm-test ; then 3471 subdirs="$subdirs projects/llvm-test" 3472 3473fi 3474 3475if test -d ${srcdir}/projects/poolalloc ; then 3476 subdirs="$subdirs projects/poolalloc" 3477 3478fi 3479 3480if test -d ${srcdir}/projects/llvm-poolalloc ; then 3481 subdirs="$subdirs projects/llvm-poolalloc" 3482 3483fi 3484 3485for i in `ls ${srcdir}/projects` 3486do 3487 if test -d ${srcdir}/projects/${i} ; then 3488 case ${i} in 3489 sample) subdirs="$subdirs projects/sample" 3490 ;; 3491 privbracket) subdirs="$subdirs projects/privbracket" 3492 ;; 3493 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3494 ;; 3495 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3496;; 3497 llvm-java) subdirs="$subdirs projects/llvm-java" 3498 ;; 3499 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3500 ;; 3501 safecode) subdirs="$subdirs projects/safecode" 3502 ;; 3503 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3504 ;; 3505 compiler-rt) ;; 3506 llvm-gcc) ;; 3507 test-suite) ;; 3508 llvm-test) ;; 3509 poolalloc) ;; 3510 llvm-poolalloc) ;; 3511 *) 3512 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3513echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3514 ;; 3515 esac 3516 fi 3517done 3518 3519# Check whether --enable-polly was given. 3520if test "${enable_polly+set}" = set; then 3521 enableval=$enable_polly; 3522else 3523 enableval=default 3524fi 3525 3526case "$enableval" in 3527 yes) ENABLE_POLLY=1 3528 ;; 3529 no) ENABLE_POLLY=0 3530 ;; 3531 default) ENABLE_POLLY=1 3532 ;; 3533 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3534echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3535 { (exit 1); exit 1; }; } ;; 3536esac 3537 3538 3539if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3540 LLVM_HAS_POLLY=1 3541 3542 subdirs="$subdirs tools/polly" 3543 3544fi 3545 3546 3547# Make sure we can run config.sub. 3548$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3549 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3550echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3551 { (exit 1); exit 1; }; } 3552 3553{ echo "$as_me:$LINENO: checking build system type" >&5 3554echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3555if test "${ac_cv_build+set}" = set; then 3556 echo $ECHO_N "(cached) $ECHO_C" >&6 3557else 3558 ac_build_alias=$build_alias 3559test "x$ac_build_alias" = x && 3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3561test "x$ac_build_alias" = x && 3562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3563echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3564 { (exit 1); exit 1; }; } 3565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3566 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3567echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3568 { (exit 1); exit 1; }; } 3569 3570fi 3571{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3572echo "${ECHO_T}$ac_cv_build" >&6; } 3573case $ac_cv_build in 3574*-*-*) ;; 3575*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3576echo "$as_me: error: invalid value of canonical build" >&2;} 3577 { (exit 1); exit 1; }; };; 3578esac 3579build=$ac_cv_build 3580ac_save_IFS=$IFS; IFS='-' 3581set x $ac_cv_build 3582shift 3583build_cpu=$1 3584build_vendor=$2 3585shift; shift 3586# Remember, the first character of IFS is used to create $*, 3587# except with old shells: 3588build_os=$* 3589IFS=$ac_save_IFS 3590case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3591 3592 3593{ echo "$as_me:$LINENO: checking host system type" >&5 3594echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3595if test "${ac_cv_host+set}" = set; then 3596 echo $ECHO_N "(cached) $ECHO_C" >&6 3597else 3598 if test "x$host_alias" = x; then 3599 ac_cv_host=$ac_cv_build 3600else 3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3602 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3603echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3604 { (exit 1); exit 1; }; } 3605fi 3606 3607fi 3608{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3609echo "${ECHO_T}$ac_cv_host" >&6; } 3610case $ac_cv_host in 3611*-*-*) ;; 3612*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3613echo "$as_me: error: invalid value of canonical host" >&2;} 3614 { (exit 1); exit 1; }; };; 3615esac 3616host=$ac_cv_host 3617ac_save_IFS=$IFS; IFS='-' 3618set x $ac_cv_host 3619shift 3620host_cpu=$1 3621host_vendor=$2 3622shift; shift 3623# Remember, the first character of IFS is used to create $*, 3624# except with old shells: 3625host_os=$* 3626IFS=$ac_save_IFS 3627case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3628 3629 3630{ echo "$as_me:$LINENO: checking target system type" >&5 3631echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3632if test "${ac_cv_target+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 if test "x$target_alias" = x; then 3636 ac_cv_target=$ac_cv_host 3637else 3638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3639 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3640echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3641 { (exit 1); exit 1; }; } 3642fi 3643 3644fi 3645{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3646echo "${ECHO_T}$ac_cv_target" >&6; } 3647case $ac_cv_target in 3648*-*-*) ;; 3649*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3650echo "$as_me: error: invalid value of canonical target" >&2;} 3651 { (exit 1); exit 1; }; };; 3652esac 3653target=$ac_cv_target 3654ac_save_IFS=$IFS; IFS='-' 3655set x $ac_cv_target 3656shift 3657target_cpu=$1 3658target_vendor=$2 3659shift; shift 3660# Remember, the first character of IFS is used to create $*, 3661# except with old shells: 3662target_os=$* 3663IFS=$ac_save_IFS 3664case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3665 3666 3667# The aliases save the names the user supplied, while $host etc. 3668# will get canonicalized. 3669test -n "$target_alias" && 3670 test "$program_prefix$program_suffix$program_transform_name" = \ 3671 NONENONEs,x,x, && 3672 program_prefix=${target_alias}- 3673 3674{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3675echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3676if test "${llvm_cv_os_type+set}" = set; then 3677 echo $ECHO_N "(cached) $ECHO_C" >&6 3678else 3679 case $host in 3680 *-*-aix*) 3681 llvm_cv_link_all_option="-Wl,--whole-archive" 3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3683 llvm_cv_os_type="AIX" 3684 llvm_cv_platform_type="Unix" ;; 3685 *-*-irix*) 3686 llvm_cv_link_all_option="-Wl,--whole-archive" 3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3688 llvm_cv_os_type="IRIX" 3689 llvm_cv_platform_type="Unix" ;; 3690 *-*-cygwin*) 3691 llvm_cv_link_all_option="-Wl,--whole-archive" 3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3693 llvm_cv_os_type="Cygwin" 3694 llvm_cv_platform_type="Unix" ;; 3695 *-*-darwin*) 3696 llvm_cv_link_all_option="-Wl,-all_load" 3697 llvm_cv_no_link_all_option="-Wl,-noall_load" 3698 llvm_cv_os_type="Darwin" 3699 llvm_cv_platform_type="Unix" ;; 3700 *-*-minix*) 3701 llvm_cv_link_all_option="-Wl,-all_load" 3702 llvm_cv_no_link_all_option="-Wl,-noall_load" 3703 llvm_cv_os_type="Minix" 3704 llvm_cv_platform_type="Unix" ;; 3705 *-*-freebsd* | *-*-kfreebsd-gnu) 3706 llvm_cv_link_all_option="-Wl,--whole-archive" 3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3708 llvm_cv_os_type="FreeBSD" 3709 llvm_cv_platform_type="Unix" ;; 3710 *-*-openbsd*) 3711 llvm_cv_link_all_option="-Wl,--whole-archive" 3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3713 llvm_cv_os_type="OpenBSD" 3714 llvm_cv_platform_type="Unix" ;; 3715 *-*-netbsd*) 3716 llvm_cv_link_all_option="-Wl,--whole-archive" 3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3718 llvm_cv_os_type="NetBSD" 3719 llvm_cv_platform_type="Unix" ;; 3720 *-*-dragonfly*) 3721 llvm_cv_link_all_option="-Wl,--whole-archive" 3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3723 llvm_cv_os_type="DragonFly" 3724 llvm_cv_platform_type="Unix" ;; 3725 *-*-hpux*) 3726 llvm_cv_link_all_option="-Wl,--whole-archive" 3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3728 llvm_cv_os_type="HP-UX" 3729 llvm_cv_platform_type="Unix" ;; 3730 *-*-interix*) 3731 llvm_cv_link_all_option="-Wl,--whole-archive" 3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3733 llvm_cv_os_type="Interix" 3734 llvm_cv_platform_type="Unix" ;; 3735 *-*-linux*) 3736 llvm_cv_link_all_option="-Wl,--whole-archive" 3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3738 llvm_cv_os_type="Linux" 3739 llvm_cv_platform_type="Unix" ;; 3740 *-*-gnu*) 3741 llvm_cv_link_all_option="-Wl,--whole-archive" 3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3743 llvm_cv_os_type="GNU" 3744 llvm_cv_platform_type="Unix" ;; 3745 *-*-solaris*) 3746 llvm_cv_link_all_option="-Wl,-z,allextract" 3747 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3748 llvm_cv_os_type="SunOS" 3749 llvm_cv_platform_type="Unix" ;; 3750 *-*-auroraux*) 3751 llvm_cv_link_all_option="-Wl,-z,allextract" 3752 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3753 llvm_cv_os_type="AuroraUX" 3754 llvm_cv_platform_type="Unix" ;; 3755 *-*-win32*) 3756 llvm_cv_link_all_option="-Wl,--whole-archive" 3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3758 llvm_cv_os_type="Win32" 3759 llvm_cv_platform_type="Win32" ;; 3760 *-*-mingw*) 3761 llvm_cv_link_all_option="-Wl,--whole-archive" 3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3763 llvm_cv_os_type="MingW" 3764 llvm_cv_platform_type="Win32" ;; 3765 *-*-haiku*) 3766 llvm_cv_link_all_option="-Wl,--whole-archive" 3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3768 llvm_cv_os_type="Haiku" 3769 llvm_cv_platform_type="Unix" ;; 3770 *-unknown-eabi*) 3771 llvm_cv_link_all_option="-Wl,--whole-archive" 3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3773 llvm_cv_os_type="Freestanding" 3774 llvm_cv_platform_type="Unix" ;; 3775 *-unknown-elf*) 3776 llvm_cv_link_all_option="-Wl,--whole-archive" 3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3778 llvm_cv_os_type="Freestanding" 3779 llvm_cv_platform_type="Unix" ;; 3780 *) 3781 llvm_cv_link_all_option="" 3782 llvm_cv_no_link_all_option="" 3783 llvm_cv_os_type="Unknown" 3784 llvm_cv_platform_type="Unknown" ;; 3785esac 3786fi 3787{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3788echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3789 3790{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3791echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3792if test "${llvm_cv_target_os_type+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 case $target in 3796 *-*-aix*) 3797 llvm_cv_target_os_type="AIX" ;; 3798 *-*-irix*) 3799 llvm_cv_target_os_type="IRIX" ;; 3800 *-*-cygwin*) 3801 llvm_cv_target_os_type="Cygwin" ;; 3802 *-*-darwin*) 3803 llvm_cv_target_os_type="Darwin" ;; 3804 *-*-minix*) 3805 llvm_cv_target_os_type="Minix" ;; 3806 *-*-freebsd* | *-*-kfreebsd-gnu) 3807 llvm_cv_target_os_type="FreeBSD" ;; 3808 *-*-openbsd*) 3809 llvm_cv_target_os_type="OpenBSD" ;; 3810 *-*-netbsd*) 3811 llvm_cv_target_os_type="NetBSD" ;; 3812 *-*-dragonfly*) 3813 llvm_cv_target_os_type="DragonFly" ;; 3814 *-*-hpux*) 3815 llvm_cv_target_os_type="HP-UX" ;; 3816 *-*-interix*) 3817 llvm_cv_target_os_type="Interix" ;; 3818 *-*-linux*) 3819 llvm_cv_target_os_type="Linux" ;; 3820 *-*-gnu*) 3821 llvm_cv_target_os_type="GNU" ;; 3822 *-*-solaris*) 3823 llvm_cv_target_os_type="SunOS" ;; 3824 *-*-auroraux*) 3825 llvm_cv_target_os_type="AuroraUX" ;; 3826 *-*-win32*) 3827 llvm_cv_target_os_type="Win32" ;; 3828 *-*-mingw*) 3829 llvm_cv_target_os_type="MingW" ;; 3830 *-*-haiku*) 3831 llvm_cv_target_os_type="Haiku" ;; 3832 *-*-rtems*) 3833 llvm_cv_target_os_type="RTEMS" ;; 3834 *-*-nacl*) 3835 llvm_cv_target_os_type="NativeClient" ;; 3836 *-unknown-eabi*) 3837 llvm_cv_target_os_type="Freestanding" ;; 3838 *) 3839 llvm_cv_target_os_type="Unknown" ;; 3840esac 3841fi 3842{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3843echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3844 3845if test "$llvm_cv_os_type" = "Unknown" ; then 3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3847echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3848 { (exit 1); exit 1; }; } 3849fi 3850 3851OS=$llvm_cv_os_type 3852 3853HOST_OS=$llvm_cv_os_type 3854 3855TARGET_OS=$llvm_cv_target_os_type 3856 3857 3858LINKALL=$llvm_cv_link_all_option 3859 3860NOLINKALL=$llvm_cv_no_link_all_option 3861 3862 3863case $llvm_cv_platform_type in 3864 Unix) 3865 3866cat >>confdefs.h <<\_ACEOF 3867#define LLVM_ON_UNIX 1 3868_ACEOF 3869 3870 LLVM_ON_UNIX=1 3871 3872 LLVM_ON_WIN32=0 3873 3874 ;; 3875 Win32) 3876 3877cat >>confdefs.h <<\_ACEOF 3878#define LLVM_ON_WIN32 1 3879_ACEOF 3880 3881 LLVM_ON_UNIX=0 3882 3883 LLVM_ON_WIN32=1 3884 3885 ;; 3886esac 3887 3888{ echo "$as_me:$LINENO: checking target architecture" >&5 3889echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3890if test "${llvm_cv_target_arch+set}" = set; then 3891 echo $ECHO_N "(cached) $ECHO_C" >&6 3892else 3893 case $target in 3894 i?86-*) llvm_cv_target_arch="x86" ;; 3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3896 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3898 arm*-*) llvm_cv_target_arch="ARM" ;; 3899 mips-*) llvm_cv_target_arch="Mips" ;; 3900 mipsel-*) llvm_cv_target_arch="Mips" ;; 3901 xcore-*) llvm_cv_target_arch="XCore" ;; 3902 msp430-*) llvm_cv_target_arch="MSP430" ;; 3903 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3904 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 3905 ptx-*) llvm_cv_target_arch="PTX" ;; 3906 *) llvm_cv_target_arch="Unknown" ;; 3907esac 3908fi 3909{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3910echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3911 3912if test "$llvm_cv_target_arch" = "Unknown" ; then 3913 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3914echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3915fi 3916 3917case "$llvm_cv_target_arch" in 3918 x86) LLVM_NATIVE_ARCH="X86" ;; 3919 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3920 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3921esac 3922 3923ARCH=$llvm_cv_target_arch 3924 3925 3926 3927 3928{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3929echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3930if test "${ac_cv_path_GREP+set}" = set; then 3931 echo $ECHO_N "(cached) $ECHO_C" >&6 3932else 3933 # Extract the first word of "grep ggrep" to use in msg output 3934if test -z "$GREP"; then 3935set dummy grep ggrep; ac_prog_name=$2 3936if test "${ac_cv_path_GREP+set}" = set; then 3937 echo $ECHO_N "(cached) $ECHO_C" >&6 3938else 3939 ac_path_GREP_found=false 3940# Loop through the user's path and test for each of PROGNAME-LIST 3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3943do 3944 IFS=$as_save_IFS 3945 test -z "$as_dir" && as_dir=. 3946 for ac_prog in grep ggrep; do 3947 for ac_exec_ext in '' $ac_executable_extensions; do 3948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3949 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3950 # Check for GNU ac_path_GREP and select it if it is found. 3951 # Check for GNU $ac_path_GREP 3952case `"$ac_path_GREP" --version 2>&1` in 3953*GNU*) 3954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3955*) 3956 ac_count=0 3957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3958 while : 3959 do 3960 cat "conftest.in" "conftest.in" >"conftest.tmp" 3961 mv "conftest.tmp" "conftest.in" 3962 cp "conftest.in" "conftest.nl" 3963 echo 'GREP' >> "conftest.nl" 3964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3966 ac_count=`expr $ac_count + 1` 3967 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3968 # Best one so far, save it but keep looking for a better one 3969 ac_cv_path_GREP="$ac_path_GREP" 3970 ac_path_GREP_max=$ac_count 3971 fi 3972 # 10*(2^10) chars as input seems more than enough 3973 test $ac_count -gt 10 && break 3974 done 3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3976esac 3977 3978 3979 $ac_path_GREP_found && break 3 3980 done 3981done 3982 3983done 3984IFS=$as_save_IFS 3985 3986 3987fi 3988 3989GREP="$ac_cv_path_GREP" 3990if test -z "$GREP"; then 3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3992echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3993 { (exit 1); exit 1; }; } 3994fi 3995 3996else 3997 ac_cv_path_GREP=$GREP 3998fi 3999 4000 4001fi 4002{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4003echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4004 GREP="$ac_cv_path_GREP" 4005 4006 4007{ echo "$as_me:$LINENO: checking for egrep" >&5 4008echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4009if test "${ac_cv_path_EGREP+set}" = set; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011else 4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4013 then ac_cv_path_EGREP="$GREP -E" 4014 else 4015 # Extract the first word of "egrep" to use in msg output 4016if test -z "$EGREP"; then 4017set dummy egrep; ac_prog_name=$2 4018if test "${ac_cv_path_EGREP+set}" = set; then 4019 echo $ECHO_N "(cached) $ECHO_C" >&6 4020else 4021 ac_path_EGREP_found=false 4022# Loop through the user's path and test for each of PROGNAME-LIST 4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4025do 4026 IFS=$as_save_IFS 4027 test -z "$as_dir" && as_dir=. 4028 for ac_prog in egrep; do 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4031 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4032 # Check for GNU ac_path_EGREP and select it if it is found. 4033 # Check for GNU $ac_path_EGREP 4034case `"$ac_path_EGREP" --version 2>&1` in 4035*GNU*) 4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4037*) 4038 ac_count=0 4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4040 while : 4041 do 4042 cat "conftest.in" "conftest.in" >"conftest.tmp" 4043 mv "conftest.tmp" "conftest.in" 4044 cp "conftest.in" "conftest.nl" 4045 echo 'EGREP' >> "conftest.nl" 4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4048 ac_count=`expr $ac_count + 1` 4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4050 # Best one so far, save it but keep looking for a better one 4051 ac_cv_path_EGREP="$ac_path_EGREP" 4052 ac_path_EGREP_max=$ac_count 4053 fi 4054 # 10*(2^10) chars as input seems more than enough 4055 test $ac_count -gt 10 && break 4056 done 4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4058esac 4059 4060 4061 $ac_path_EGREP_found && break 3 4062 done 4063done 4064 4065done 4066IFS=$as_save_IFS 4067 4068 4069fi 4070 4071EGREP="$ac_cv_path_EGREP" 4072if test -z "$EGREP"; then 4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4074echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4075 { (exit 1); exit 1; }; } 4076fi 4077 4078else 4079 ac_cv_path_EGREP=$EGREP 4080fi 4081 4082 4083 fi 4084fi 4085{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4086echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4087 EGREP="$ac_cv_path_EGREP" 4088 4089 4090{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4092if test "${ac_cv_header_stdc+set}" = set; then 4093 echo $ECHO_N "(cached) $ECHO_C" >&6 4094else 4095 cat >conftest.$ac_ext <<_ACEOF 4096/* confdefs.h. */ 4097_ACEOF 4098cat confdefs.h >>conftest.$ac_ext 4099cat >>conftest.$ac_ext <<_ACEOF 4100/* end confdefs.h. */ 4101#include <stdlib.h> 4102#include <stdarg.h> 4103#include <string.h> 4104#include <float.h> 4105 4106int 4107main () 4108{ 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114rm -f conftest.$ac_objext 4115if { (ac_try="$ac_compile" 4116case "(($ac_try" in 4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4118 *) ac_try_echo=$ac_try;; 4119esac 4120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4121 (eval "$ac_compile") 2>conftest.er1 4122 ac_status=$? 4123 grep -v '^ *+' conftest.er1 >conftest.err 4124 rm -f conftest.er1 4125 cat conftest.err >&5 4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4127 (exit $ac_status); } && 4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4129 { (case "(($ac_try" in 4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4131 *) ac_try_echo=$ac_try;; 4132esac 4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4137 (exit $ac_status); }; } && 4138 { ac_try='test -s conftest.$ac_objext' 4139 { (case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4144 (eval "$ac_try") 2>&5 4145 ac_status=$? 4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4147 (exit $ac_status); }; }; then 4148 ac_cv_header_stdc=yes 4149else 4150 echo "$as_me: failed program was:" >&5 4151sed 's/^/| /' conftest.$ac_ext >&5 4152 4153 ac_cv_header_stdc=no 4154fi 4155 4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4157 4158if test $ac_cv_header_stdc = yes; then 4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4160 cat >conftest.$ac_ext <<_ACEOF 4161/* confdefs.h. */ 4162_ACEOF 4163cat confdefs.h >>conftest.$ac_ext 4164cat >>conftest.$ac_ext <<_ACEOF 4165/* end confdefs.h. */ 4166#include <string.h> 4167 4168_ACEOF 4169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4170 $EGREP "memchr" >/dev/null 2>&1; then 4171 : 4172else 4173 ac_cv_header_stdc=no 4174fi 4175rm -f conftest* 4176 4177fi 4178 4179if test $ac_cv_header_stdc = yes; then 4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4181 cat >conftest.$ac_ext <<_ACEOF 4182/* confdefs.h. */ 4183_ACEOF 4184cat confdefs.h >>conftest.$ac_ext 4185cat >>conftest.$ac_ext <<_ACEOF 4186/* end confdefs.h. */ 4187#include <stdlib.h> 4188 4189_ACEOF 4190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4191 $EGREP "free" >/dev/null 2>&1; then 4192 : 4193else 4194 ac_cv_header_stdc=no 4195fi 4196rm -f conftest* 4197 4198fi 4199 4200if test $ac_cv_header_stdc = yes; then 4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4202 if test "$cross_compiling" = yes; then 4203 : 4204else 4205 cat >conftest.$ac_ext <<_ACEOF 4206/* confdefs.h. */ 4207_ACEOF 4208cat confdefs.h >>conftest.$ac_ext 4209cat >>conftest.$ac_ext <<_ACEOF 4210/* end confdefs.h. */ 4211#include <ctype.h> 4212#include <stdlib.h> 4213#if ((' ' & 0x0FF) == 0x020) 4214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4216#else 4217# define ISLOWER(c) \ 4218 (('a' <= (c) && (c) <= 'i') \ 4219 || ('j' <= (c) && (c) <= 'r') \ 4220 || ('s' <= (c) && (c) <= 'z')) 4221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4222#endif 4223 4224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4225int 4226main () 4227{ 4228 int i; 4229 for (i = 0; i < 256; i++) 4230 if (XOR (islower (i), ISLOWER (i)) 4231 || toupper (i) != TOUPPER (i)) 4232 return 2; 4233 return 0; 4234} 4235_ACEOF 4236rm -f conftest$ac_exeext 4237if { (ac_try="$ac_link" 4238case "(($ac_try" in 4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4240 *) ac_try_echo=$ac_try;; 4241esac 4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4243 (eval "$ac_link") 2>&5 4244 ac_status=$? 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4247 { (case "(($ac_try" in 4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4249 *) ac_try_echo=$ac_try;; 4250esac 4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4252 (eval "$ac_try") 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; }; then 4256 : 4257else 4258 echo "$as_me: program exited with status $ac_status" >&5 4259echo "$as_me: failed program was:" >&5 4260sed 's/^/| /' conftest.$ac_ext >&5 4261 4262( exit $ac_status ) 4263ac_cv_header_stdc=no 4264fi 4265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4266fi 4267 4268 4269fi 4270fi 4271{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4272echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4273if test $ac_cv_header_stdc = yes; then 4274 4275cat >>confdefs.h <<\_ACEOF 4276#define STDC_HEADERS 1 4277_ACEOF 4278 4279fi 4280 4281# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4292 inttypes.h stdint.h unistd.h 4293do 4294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4295{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4298 echo $ECHO_N "(cached) $ECHO_C" >&6 4299else 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$ac_includes_default 4307 4308#include <$ac_header> 4309_ACEOF 4310rm -f conftest.$ac_objext 4311if { (ac_try="$ac_compile" 4312case "(($ac_try" in 4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4314 *) ac_try_echo=$ac_try;; 4315esac 4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4317 (eval "$ac_compile") 2>conftest.er1 4318 ac_status=$? 4319 grep -v '^ *+' conftest.er1 >conftest.err 4320 rm -f conftest.er1 4321 cat conftest.err >&5 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); } && 4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4325 { (case "(($ac_try" in 4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4327 *) ac_try_echo=$ac_try;; 4328esac 4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4330 (eval "$ac_try") 2>&5 4331 ac_status=$? 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); }; } && 4334 { ac_try='test -s conftest.$ac_objext' 4335 { (case "(($ac_try" in 4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4337 *) ac_try_echo=$ac_try;; 4338esac 4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4340 (eval "$ac_try") 2>&5 4341 ac_status=$? 4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4343 (exit $ac_status); }; }; then 4344 eval "$as_ac_Header=yes" 4345else 4346 echo "$as_me: failed program was:" >&5 4347sed 's/^/| /' conftest.$ac_ext >&5 4348 4349 eval "$as_ac_Header=no" 4350fi 4351 4352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4353fi 4354ac_res=`eval echo '${'$as_ac_Header'}'` 4355 { echo "$as_me:$LINENO: result: $ac_res" >&5 4356echo "${ECHO_T}$ac_res" >&6; } 4357if test `eval echo '${'$as_ac_Header'}'` = yes; then 4358 cat >>confdefs.h <<_ACEOF 4359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4360_ACEOF 4361 4362fi 4363 4364done 4365 4366 4367{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4368echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4369if test "${ac_cv_c_bigendian+set}" = set; then 4370 echo $ECHO_N "(cached) $ECHO_C" >&6 4371else 4372 # See if sys/param.h defines the BYTE_ORDER macro. 4373cat >conftest.$ac_ext <<_ACEOF 4374/* confdefs.h. */ 4375_ACEOF 4376cat confdefs.h >>conftest.$ac_ext 4377cat >>conftest.$ac_ext <<_ACEOF 4378/* end confdefs.h. */ 4379#include <sys/types.h> 4380#include <sys/param.h> 4381 4382int 4383main () 4384{ 4385#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4386 bogus endian macros 4387#endif 4388 4389 ; 4390 return 0; 4391} 4392_ACEOF 4393rm -f conftest.$ac_objext 4394if { (ac_try="$ac_compile" 4395case "(($ac_try" in 4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4397 *) ac_try_echo=$ac_try;; 4398esac 4399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4400 (eval "$ac_compile") 2>conftest.er1 4401 ac_status=$? 4402 grep -v '^ *+' conftest.er1 >conftest.err 4403 rm -f conftest.er1 4404 cat conftest.err >&5 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); } && 4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4408 { (case "(($ac_try" in 4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4410 *) ac_try_echo=$ac_try;; 4411esac 4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4413 (eval "$ac_try") 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; } && 4417 { ac_try='test -s conftest.$ac_objext' 4418 { (case "(($ac_try" in 4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4420 *) ac_try_echo=$ac_try;; 4421esac 4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4423 (eval "$ac_try") 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); }; }; then 4427 # It does; now see whether it defined to BIG_ENDIAN or not. 4428cat >conftest.$ac_ext <<_ACEOF 4429/* confdefs.h. */ 4430_ACEOF 4431cat confdefs.h >>conftest.$ac_ext 4432cat >>conftest.$ac_ext <<_ACEOF 4433/* end confdefs.h. */ 4434#include <sys/types.h> 4435#include <sys/param.h> 4436 4437int 4438main () 4439{ 4440#if BYTE_ORDER != BIG_ENDIAN 4441 not big endian 4442#endif 4443 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448rm -f conftest.$ac_objext 4449if { (ac_try="$ac_compile" 4450case "(($ac_try" in 4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4452 *) ac_try_echo=$ac_try;; 4453esac 4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4455 (eval "$ac_compile") 2>conftest.er1 4456 ac_status=$? 4457 grep -v '^ *+' conftest.er1 >conftest.err 4458 rm -f conftest.er1 4459 cat conftest.err >&5 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } && 4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4463 { (case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466esac 4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4468 (eval "$ac_try") 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; } && 4472 { ac_try='test -s conftest.$ac_objext' 4473 { (case "(($ac_try" in 4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4475 *) ac_try_echo=$ac_try;; 4476esac 4477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4478 (eval "$ac_try") 2>&5 4479 ac_status=$? 4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); }; }; then 4482 ac_cv_c_bigendian=yes 4483else 4484 echo "$as_me: failed program was:" >&5 4485sed 's/^/| /' conftest.$ac_ext >&5 4486 4487 ac_cv_c_bigendian=no 4488fi 4489 4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4491else 4492 echo "$as_me: failed program was:" >&5 4493sed 's/^/| /' conftest.$ac_ext >&5 4494 4495 # It does not; compile a test program. 4496if test "$cross_compiling" = yes; then 4497 # try to guess the endianness by grepping values into an object file 4498 ac_cv_c_bigendian=unknown 4499 cat >conftest.$ac_ext <<_ACEOF 4500/* confdefs.h. */ 4501_ACEOF 4502cat confdefs.h >>conftest.$ac_ext 4503cat >>conftest.$ac_ext <<_ACEOF 4504/* end confdefs.h. */ 4505short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4506short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4507void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4508short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4509short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4510void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4511int 4512main () 4513{ 4514 _ascii (); _ebcdic (); 4515 ; 4516 return 0; 4517} 4518_ACEOF 4519rm -f conftest.$ac_objext 4520if { (ac_try="$ac_compile" 4521case "(($ac_try" in 4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4523 *) ac_try_echo=$ac_try;; 4524esac 4525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4526 (eval "$ac_compile") 2>conftest.er1 4527 ac_status=$? 4528 grep -v '^ *+' conftest.er1 >conftest.err 4529 rm -f conftest.er1 4530 cat conftest.err >&5 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); } && 4533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4534 { (case "(($ac_try" in 4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4536 *) ac_try_echo=$ac_try;; 4537esac 4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4539 (eval "$ac_try") 2>&5 4540 ac_status=$? 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); }; } && 4543 { ac_try='test -s conftest.$ac_objext' 4544 { (case "(($ac_try" in 4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4546 *) ac_try_echo=$ac_try;; 4547esac 4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4549 (eval "$ac_try") 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); }; }; then 4553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4554 ac_cv_c_bigendian=yes 4555fi 4556if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4557 if test "$ac_cv_c_bigendian" = unknown; then 4558 ac_cv_c_bigendian=no 4559 else 4560 # finding both strings is unlikely to happen, but who knows? 4561 ac_cv_c_bigendian=unknown 4562 fi 4563fi 4564else 4565 echo "$as_me: failed program was:" >&5 4566sed 's/^/| /' conftest.$ac_ext >&5 4567 4568 4569fi 4570 4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4572else 4573 cat >conftest.$ac_ext <<_ACEOF 4574/* confdefs.h. */ 4575_ACEOF 4576cat confdefs.h >>conftest.$ac_ext 4577cat >>conftest.$ac_ext <<_ACEOF 4578/* end confdefs.h. */ 4579$ac_includes_default 4580int 4581main () 4582{ 4583 4584 /* Are we little or big endian? From Harbison&Steele. */ 4585 union 4586 { 4587 long int l; 4588 char c[sizeof (long int)]; 4589 } u; 4590 u.l = 1; 4591 return u.c[sizeof (long int) - 1] == 1; 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597rm -f conftest$ac_exeext 4598if { (ac_try="$ac_link" 4599case "(($ac_try" in 4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4601 *) ac_try_echo=$ac_try;; 4602esac 4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4604 (eval "$ac_link") 2>&5 4605 ac_status=$? 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4608 { (case "(($ac_try" in 4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4610 *) ac_try_echo=$ac_try;; 4611esac 4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4613 (eval "$ac_try") 2>&5 4614 ac_status=$? 4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4616 (exit $ac_status); }; }; then 4617 ac_cv_c_bigendian=no 4618else 4619 echo "$as_me: program exited with status $ac_status" >&5 4620echo "$as_me: failed program was:" >&5 4621sed 's/^/| /' conftest.$ac_ext >&5 4622 4623( exit $ac_status ) 4624ac_cv_c_bigendian=yes 4625fi 4626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4627fi 4628 4629 4630fi 4631 4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4633fi 4634{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4635echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4636case $ac_cv_c_bigendian in 4637 yes) 4638 ENDIAN=big 4639 ;; 4640 no) 4641 ENDIAN=little 4642 ;; 4643 *) 4644 { { echo "$as_me:$LINENO: error: unknown endianness 4645presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4646echo "$as_me: error: unknown endianness 4647presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4648 { (exit 1); exit 1; }; } ;; 4649esac 4650 4651 4652if test "$cross_compiling" = yes; then 4653 LLVM_CROSS_COMPILING=1 4654 4655 4656{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4657echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4658if test "${ac_cv_build_exeext+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660else 4661 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4662 ac_cv_build_exeext=.exe 4663else 4664 ac_build_prefix=${build_alias}- 4665 4666 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4667set dummy ${ac_build_prefix}gcc; ac_word=$2 4668{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4670if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4671 echo $ECHO_N "(cached) $ECHO_C" >&6 4672else 4673 if test -n "$BUILD_CC"; then 4674 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4675else 4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677for as_dir in $PATH 4678do 4679 IFS=$as_save_IFS 4680 test -z "$as_dir" && as_dir=. 4681 for ac_exec_ext in '' $ac_executable_extensions; do 4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4683 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4685 break 2 4686 fi 4687done 4688done 4689IFS=$as_save_IFS 4690 4691fi 4692fi 4693BUILD_CC=$ac_cv_prog_BUILD_CC 4694if test -n "$BUILD_CC"; then 4695 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4696echo "${ECHO_T}$BUILD_CC" >&6; } 4697else 4698 { echo "$as_me:$LINENO: result: no" >&5 4699echo "${ECHO_T}no" >&6; } 4700fi 4701 4702 4703 if test -z "$BUILD_CC"; then 4704 # Extract the first word of "gcc", so it can be a program name with args. 4705set dummy gcc; ac_word=$2 4706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4708if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4709 echo $ECHO_N "(cached) $ECHO_C" >&6 4710else 4711 if test -n "$BUILD_CC"; then 4712 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4713else 4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_exec_ext in '' $ac_executable_extensions; do 4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4721 ac_cv_prog_BUILD_CC="gcc" 4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4723 break 2 4724 fi 4725done 4726done 4727IFS=$as_save_IFS 4728 4729fi 4730fi 4731BUILD_CC=$ac_cv_prog_BUILD_CC 4732if test -n "$BUILD_CC"; then 4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4734echo "${ECHO_T}$BUILD_CC" >&6; } 4735else 4736 { echo "$as_me:$LINENO: result: no" >&5 4737echo "${ECHO_T}no" >&6; } 4738fi 4739 4740 4741 if test -z "$BUILD_CC"; then 4742 # Extract the first word of "cc", so it can be a program name with args. 4743set dummy cc; ac_word=$2 4744{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4746if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4747 echo $ECHO_N "(cached) $ECHO_C" >&6 4748else 4749 if test -n "$BUILD_CC"; then 4750 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4751else 4752 ac_prog_rejected=no 4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4754for as_dir in $PATH 4755do 4756 IFS=$as_save_IFS 4757 test -z "$as_dir" && as_dir=. 4758 for ac_exec_ext in '' $ac_executable_extensions; do 4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4761 ac_prog_rejected=yes 4762 continue 4763 fi 4764 ac_cv_prog_BUILD_CC="cc" 4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769done 4770IFS=$as_save_IFS 4771 4772if test $ac_prog_rejected = yes; then 4773 # We found a bogon in the path, so make sure we never use it. 4774 set dummy $ac_cv_prog_BUILD_CC 4775 shift 4776 if test $# != 0; then 4777 # We chose a different compiler from the bogus one. 4778 # However, it has the same basename, so the bogon will be chosen 4779 # first if we set BUILD_CC to just the basename; use the full file name. 4780 shift 4781 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4782 fi 4783fi 4784fi 4785fi 4786BUILD_CC=$ac_cv_prog_BUILD_CC 4787if test -n "$BUILD_CC"; then 4788 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4789echo "${ECHO_T}$BUILD_CC" >&6; } 4790else 4791 { echo "$as_me:$LINENO: result: no" >&5 4792echo "${ECHO_T}no" >&6; } 4793fi 4794 4795 4796 fi 4797 fi 4798 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4799echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4800 { (exit 1); exit 1; }; } 4801 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4802 rm -f conftest* 4803 echo 'int main () { return 0; }' > conftest.$ac_ext 4804 ac_cv_build_exeext= 4805 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4806 (eval $ac_build_link) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; then 4810 for file in conftest.*; do 4811 case $file in 4812 *.c | *.o | *.obj | *.dSYM) ;; 4813 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4814 esac 4815 done 4816 else 4817 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4818echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4819 { (exit 1); exit 1; }; } 4820 fi 4821 rm -f conftest* 4822 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4823fi 4824fi 4825 4826BUILD_EXEEXT="" 4827test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4828{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4829echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4830ac_build_exeext=$BUILD_EXEEXT 4831 4832 ac_build_prefix=${build_alias}- 4833 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4834set dummy ${ac_build_prefix}g++; ac_word=$2 4835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4837if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4838 echo $ECHO_N "(cached) $ECHO_C" >&6 4839else 4840 if test -n "$BUILD_CXX"; then 4841 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4842else 4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4844for as_dir in $PATH 4845do 4846 IFS=$as_save_IFS 4847 test -z "$as_dir" && as_dir=. 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4850 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4852 break 2 4853 fi 4854done 4855done 4856IFS=$as_save_IFS 4857 4858fi 4859fi 4860BUILD_CXX=$ac_cv_prog_BUILD_CXX 4861if test -n "$BUILD_CXX"; then 4862 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4863echo "${ECHO_T}$BUILD_CXX" >&6; } 4864else 4865 { echo "$as_me:$LINENO: result: no" >&5 4866echo "${ECHO_T}no" >&6; } 4867fi 4868 4869 4870 if test -z "$BUILD_CXX"; then 4871 # Extract the first word of "g++", so it can be a program name with args. 4872set dummy g++; ac_word=$2 4873{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4875if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4876 echo $ECHO_N "(cached) $ECHO_C" >&6 4877else 4878 if test -n "$BUILD_CXX"; then 4879 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4880else 4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882for as_dir in $PATH 4883do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4888 ac_cv_prog_BUILD_CXX="g++" 4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4890 break 2 4891 fi 4892done 4893done 4894IFS=$as_save_IFS 4895 4896fi 4897fi 4898BUILD_CXX=$ac_cv_prog_BUILD_CXX 4899if test -n "$BUILD_CXX"; then 4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4901echo "${ECHO_T}$BUILD_CXX" >&6; } 4902else 4903 { echo "$as_me:$LINENO: result: no" >&5 4904echo "${ECHO_T}no" >&6; } 4905fi 4906 4907 4908 if test -z "$BUILD_CXX"; then 4909 # Extract the first word of "c++", so it can be a program name with args. 4910set dummy c++; ac_word=$2 4911{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4913if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915else 4916 if test -n "$BUILD_CXX"; then 4917 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4918else 4919 ac_prog_rejected=no 4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921for as_dir in $PATH 4922do 4923 IFS=$as_save_IFS 4924 test -z "$as_dir" && as_dir=. 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4928 ac_prog_rejected=yes 4929 continue 4930 fi 4931 ac_cv_prog_BUILD_CXX="c++" 4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4933 break 2 4934 fi 4935done 4936done 4937IFS=$as_save_IFS 4938 4939if test $ac_prog_rejected = yes; then 4940 # We found a bogon in the path, so make sure we never use it. 4941 set dummy $ac_cv_prog_BUILD_CXX 4942 shift 4943 if test $# != 0; then 4944 # We chose a different compiler from the bogus one. 4945 # However, it has the same basename, so the bogon will be chosen 4946 # first if we set BUILD_CXX to just the basename; use the full file name. 4947 shift 4948 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4949 fi 4950fi 4951fi 4952fi 4953BUILD_CXX=$ac_cv_prog_BUILD_CXX 4954if test -n "$BUILD_CXX"; then 4955 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4956echo "${ECHO_T}$BUILD_CXX" >&6; } 4957else 4958 { echo "$as_me:$LINENO: result: no" >&5 4959echo "${ECHO_T}no" >&6; } 4960fi 4961 4962 4963 fi 4964 fi 4965else 4966 LLVM_CROSS_COMPILING=0 4967 4968fi 4969 4970if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4971 cvsbuild="yes" 4972 optimize="no" 4973 CVSBUILD=CVSBUILD=1 4974 4975else 4976 cvsbuild="no" 4977 optimize="yes" 4978fi 4979 4980 4981# Check whether --enable-libcpp was given. 4982if test "${enable_libcpp+set}" = set; then 4983 enableval=$enable_libcpp; 4984else 4985 enableval=default 4986fi 4987 4988case "$enableval" in 4989 yes) ENABLE_LIBCPP=1 4990 ;; 4991 no) ENABLE_LIBCPP=0 4992 ;; 4993 default) ENABLE_LIBCPP=0 4994;; 4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4996echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4997 { (exit 1); exit 1; }; } ;; 4998esac 4999 5000# Check whether --enable-optimized was given. 5001if test "${enable_optimized+set}" = set; then 5002 enableval=$enable_optimized; 5003else 5004 enableval=$optimize 5005fi 5006 5007if test ${enableval} = "no" ; then 5008 ENABLE_OPTIMIZED= 5009 5010else 5011 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5012 5013fi 5014 5015# Check whether --enable-profiling was given. 5016if test "${enable_profiling+set}" = set; then 5017 enableval=$enable_profiling; 5018else 5019 enableval="no" 5020fi 5021 5022if test ${enableval} = "no" ; then 5023 ENABLE_PROFILING= 5024 5025else 5026 ENABLE_PROFILING=ENABLE_PROFILING=1 5027 5028fi 5029 5030# Check whether --enable-assertions was given. 5031if test "${enable_assertions+set}" = set; then 5032 enableval=$enable_assertions; 5033else 5034 enableval="yes" 5035fi 5036 5037if test ${enableval} = "yes" ; then 5038 DISABLE_ASSERTIONS= 5039 5040else 5041 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5042 5043fi 5044 5045# Check whether --enable-expensive-checks was given. 5046if test "${enable_expensive_checks+set}" = set; then 5047 enableval=$enable_expensive_checks; 5048else 5049 enableval="no" 5050fi 5051 5052if test ${enableval} = "yes" ; then 5053 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5054 5055 EXPENSIVE_CHECKS=yes 5056 5057else 5058 ENABLE_EXPENSIVE_CHECKS= 5059 5060 EXPENSIVE_CHECKS=no 5061 5062fi 5063 5064# Check whether --enable-debug-runtime was given. 5065if test "${enable_debug_runtime+set}" = set; then 5066 enableval=$enable_debug_runtime; 5067else 5068 enableval=no 5069fi 5070 5071if test ${enableval} = "no" ; then 5072 DEBUG_RUNTIME= 5073 5074else 5075 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5076 5077fi 5078 5079# Check whether --enable-debug-symbols was given. 5080if test "${enable_debug_symbols+set}" = set; then 5081 enableval=$enable_debug_symbols; 5082else 5083 enableval=no 5084fi 5085 5086if test ${enableval} = "no" ; then 5087 DEBUG_SYMBOLS= 5088 5089else 5090 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5091 5092fi 5093 5094# Check whether --enable-jit was given. 5095if test "${enable_jit+set}" = set; then 5096 enableval=$enable_jit; 5097else 5098 enableval=default 5099fi 5100 5101if test ${enableval} = "no" 5102then 5103 JIT= 5104 5105else 5106 case "$llvm_cv_target_arch" in 5107 x86) TARGET_HAS_JIT=1 5108 ;; 5109 Sparc) TARGET_HAS_JIT=0 5110 ;; 5111 PowerPC) TARGET_HAS_JIT=1 5112 ;; 5113 x86_64) TARGET_HAS_JIT=1 5114 ;; 5115 ARM) TARGET_HAS_JIT=1 5116 ;; 5117 Mips) TARGET_HAS_JIT=1 5118 ;; 5119 XCore) TARGET_HAS_JIT=0 5120 ;; 5121 MSP430) TARGET_HAS_JIT=0 5122 ;; 5123 Hexagon) TARGET_HAS_JIT=0 5124 ;; 5125 MBlaze) TARGET_HAS_JIT=0 5126 ;; 5127 PTX) TARGET_HAS_JIT=0 5128 ;; 5129 *) TARGET_HAS_JIT=0 5130 ;; 5131 esac 5132fi 5133 5134# Check whether --enable-docs was given. 5135if test "${enable_docs+set}" = set; then 5136 enableval=$enable_docs; 5137else 5138 enableval=default 5139fi 5140 5141case "$enableval" in 5142 yes) ENABLE_DOCS=1 5143 ;; 5144 no) ENABLE_DOCS=0 5145 ;; 5146 default) ENABLE_DOCS=1 5147 ;; 5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5149echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5150 { (exit 1); exit 1; }; } ;; 5151esac 5152 5153# Check whether --enable-doxygen was given. 5154if test "${enable_doxygen+set}" = set; then 5155 enableval=$enable_doxygen; 5156else 5157 enableval=default 5158fi 5159 5160case "$enableval" in 5161 yes) ENABLE_DOXYGEN=1 5162 ;; 5163 no) ENABLE_DOXYGEN=0 5164 ;; 5165 default) ENABLE_DOXYGEN=0 5166 ;; 5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5168echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5169 { (exit 1); exit 1; }; } ;; 5170esac 5171 5172# Check whether --enable-threads was given. 5173if test "${enable_threads+set}" = set; then 5174 enableval=$enable_threads; 5175else 5176 enableval=default 5177fi 5178 5179case "$enableval" in 5180 yes) LLVM_ENABLE_THREADS=1 5181 ;; 5182 no) LLVM_ENABLE_THREADS=0 5183 ;; 5184 default) LLVM_ENABLE_THREADS=1 5185 ;; 5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5187echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5188 { (exit 1); exit 1; }; } ;; 5189esac 5190 5191cat >>confdefs.h <<_ACEOF 5192#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5193_ACEOF 5194 5195 5196# Check whether --enable-pthreads was given. 5197if test "${enable_pthreads+set}" = set; then 5198 enableval=$enable_pthreads; 5199else 5200 enableval=default 5201fi 5202 5203case "$enableval" in 5204 yes) ENABLE_PTHREADS=1 5205 ;; 5206 no) ENABLE_PTHREADS=0 5207 ;; 5208 default) ENABLE_PTHREADS=1 5209 ;; 5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5211echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5212 { (exit 1); exit 1; }; } ;; 5213esac 5214 5215# Check whether --enable-pic was given. 5216if test "${enable_pic+set}" = set; then 5217 enableval=$enable_pic; 5218else 5219 enableval=default 5220fi 5221 5222case "$enableval" in 5223 yes) ENABLE_PIC=1 5224 ;; 5225 no) ENABLE_PIC=0 5226 ;; 5227 default) ENABLE_PIC=1 5228 ;; 5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5230echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5231 { (exit 1); exit 1; }; } ;; 5232esac 5233 5234cat >>confdefs.h <<_ACEOF 5235#define ENABLE_PIC $ENABLE_PIC 5236_ACEOF 5237 5238 5239# Check whether --enable-shared was given. 5240if test "${enable_shared+set}" = set; then 5241 enableval=$enable_shared; 5242else 5243 enableval=default 5244fi 5245 5246case "$enableval" in 5247 yes) ENABLE_SHARED=1 5248 ;; 5249 no) ENABLE_SHARED=0 5250 ;; 5251 default) ENABLE_SHARED=0 5252 ;; 5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5254echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5255 { (exit 1); exit 1; }; } ;; 5256esac 5257 5258# Check whether --enable-embed-stdcxx was given. 5259if test "${enable_embed_stdcxx+set}" = set; then 5260 enableval=$enable_embed_stdcxx; 5261else 5262 enableval=default 5263fi 5264 5265case "$enableval" in 5266 yes) ENABLE_EMBED_STDCXX=1 5267 ;; 5268 no) ENABLE_EMBED_STDCXX=0 5269 ;; 5270 default) ENABLE_EMBED_STDCXX=0 5271 ;; 5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5273echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5274 { (exit 1); exit 1; }; } ;; 5275esac 5276 5277# Check whether --enable-timestamps was given. 5278if test "${enable_timestamps+set}" = set; then 5279 enableval=$enable_timestamps; 5280else 5281 enableval=default 5282fi 5283 5284case "$enableval" in 5285 yes) ENABLE_TIMESTAMPS=1 5286 ;; 5287 no) ENABLE_TIMESTAMPS=0 5288 ;; 5289 default) ENABLE_TIMESTAMPS=1 5290 ;; 5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5292echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5293 { (exit 1); exit 1; }; } ;; 5294esac 5295 5296cat >>confdefs.h <<_ACEOF 5297#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5298_ACEOF 5299 5300 5301TARGETS_TO_BUILD="" 5302# Check whether --enable-targets was given. 5303if test "${enable_targets+set}" = set; then 5304 enableval=$enable_targets; 5305else 5306 enableval=all 5307fi 5308 5309if test "$enableval" = host-only ; then 5310 enableval=host 5311fi 5312case "$enableval" in 5313 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;; 5314 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5315 case "$a_target" in 5316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5318 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5319 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5320 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5321 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5322 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5323 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5324 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5325 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5326 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5327 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5328 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5329 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5330 host) case "$llvm_cv_target_arch" in 5331 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5332 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5333 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5334 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5335 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5336 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5337 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5338 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5339 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5340 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5341 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5342 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5343 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5344echo "$as_me: error: Can not set target to build" >&2;} 5345 { (exit 1); exit 1; }; } ;; 5346 esac ;; 5347 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5348echo "$as_me: error: Unrecognized target $a_target" >&2;} 5349 { (exit 1); exit 1; }; } ;; 5350 esac 5351 done 5352 ;; 5353esac 5354TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5355 5356 5357for a_target in $TARGETS_TO_BUILD; do 5358 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5359 5360cat >>confdefs.h <<_ACEOF 5361#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5362_ACEOF 5363 5364 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5365 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5366 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5367 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5368 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5369 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5370 fi 5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5372 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5373 fi 5374 5375cat >>confdefs.h <<_ACEOF 5376#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5377_ACEOF 5378 5379 5380cat >>confdefs.h <<_ACEOF 5381#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5382_ACEOF 5383 5384 5385cat >>confdefs.h <<_ACEOF 5386#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5387_ACEOF 5388 5389 5390cat >>confdefs.h <<_ACEOF 5391#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5392_ACEOF 5393 5394 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5395 5396cat >>confdefs.h <<_ACEOF 5397#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5398_ACEOF 5399 5400 fi 5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5402 5403cat >>confdefs.h <<_ACEOF 5404#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5405_ACEOF 5406 5407 fi 5408 fi 5409done 5410 5411LLVM_ENUM_TARGETS="" 5412LLVM_ENUM_ASM_PRINTERS="" 5413LLVM_ENUM_ASM_PARSERS="" 5414LLVM_ENUM_DISASSEMBLERS="" 5415for target_to_build in $TARGETS_TO_BUILD; do 5416 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5417 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5418 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5419 fi 5420 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5421 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5422 fi 5423 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5424 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5425 fi 5426done 5427 5428 5429 5430 5431 5432 5433# Check whether --with-optimize-option was given. 5434if test "${with_optimize_option+set}" = set; then 5435 withval=$with_optimize_option; 5436else 5437 withval=default 5438fi 5439 5440{ echo "$as_me:$LINENO: checking optimization flags" >&5 5441echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5442case "$withval" in 5443 default) 5444 case "$llvm_cv_os_type" in 5445 FreeBSD) optimize_option=-O2 ;; 5446 MingW) optimize_option=-O2 ;; 5447 *) optimize_option=-O3 ;; 5448 esac ;; 5449 *) optimize_option="$withval" ;; 5450esac 5451OPTIMIZE_OPTION=$optimize_option 5452 5453{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5454echo "${ECHO_T}$optimize_option" >&6; } 5455 5456 5457# Check whether --with-extra-options was given. 5458if test "${with_extra_options+set}" = set; then 5459 withval=$with_extra_options; 5460else 5461 withval=default 5462fi 5463 5464case "$withval" in 5465 default) EXTRA_OPTIONS= ;; 5466 *) EXTRA_OPTIONS=$withval ;; 5467esac 5468EXTRA_OPTIONS=$EXTRA_OPTIONS 5469 5470 5471 5472# Check whether --with-extra-ld-options was given. 5473if test "${with_extra_ld_options+set}" = set; then 5474 withval=$with_extra_ld_options; 5475else 5476 withval=default 5477fi 5478 5479case "$withval" in 5480 default) EXTRA_LD_OPTIONS= ;; 5481 *) EXTRA_LD_OPTIONS=$withval ;; 5482esac 5483EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5484 5485 5486# Check whether --enable-bindings was given. 5487if test "${enable_bindings+set}" = set; then 5488 enableval=$enable_bindings; 5489else 5490 enableval=default 5491fi 5492 5493BINDINGS_TO_BUILD="" 5494case "$enableval" in 5495 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5496 all ) BINDINGS_TO_BUILD="ocaml" ;; 5497 none | no) BINDINGS_TO_BUILD="" ;; 5498 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5499 case "$a_binding" in 5500 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5501 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5502echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5503 { (exit 1); exit 1; }; } ;; 5504 esac 5505 done 5506 ;; 5507esac 5508 5509 5510# Check whether --with-ocaml-libdir was given. 5511if test "${with_ocaml_libdir+set}" = set; then 5512 withval=$with_ocaml_libdir; 5513else 5514 withval=auto 5515fi 5516 5517case "$withval" in 5518 auto) with_ocaml_libdir="$withval" ;; 5519 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5520 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5521echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5522 { (exit 1); exit 1; }; } ;; 5523esac 5524 5525 5526# Check whether --with-clang-srcdir was given. 5527if test "${with_clang_srcdir+set}" = set; then 5528 withval=$with_clang_srcdir; 5529else 5530 withval="-" 5531fi 5532 5533case "$withval" in 5534 -) clang_src_root="" ;; 5535 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5536 *) clang_src_root="$ac_pwd/$withval" ;; 5537esac 5538CLANG_SRC_ROOT=$clang_src_root 5539 5540 5541 5542# Check whether --with-clang-resource-dir was given. 5543if test "${with_clang_resource_dir+set}" = set; then 5544 withval=$with_clang_resource_dir; 5545else 5546 withval="" 5547fi 5548 5549 5550cat >>confdefs.h <<_ACEOF 5551#define CLANG_RESOURCE_DIR "$withval" 5552_ACEOF 5553 5554 5555 5556# Check whether --with-c-include-dirs was given. 5557if test "${with_c_include_dirs+set}" = set; then 5558 withval=$with_c_include_dirs; 5559else 5560 withval="" 5561fi 5562 5563 5564cat >>confdefs.h <<_ACEOF 5565#define C_INCLUDE_DIRS "$withval" 5566_ACEOF 5567 5568 5569# Clang normally uses the system c++ headers and libraries. With this option, 5570# clang will use the ones provided by a gcc installation instead. This option should 5571# be passed the same value that was used with --prefix when configuring gcc. 5572 5573# Check whether --with-gcc-toolchain was given. 5574if test "${with_gcc_toolchain+set}" = set; then 5575 withval=$with_gcc_toolchain; 5576else 5577 withval="" 5578fi 5579 5580 5581cat >>confdefs.h <<_ACEOF 5582#define GCC_INSTALL_PREFIX "$withval" 5583_ACEOF 5584 5585 5586 5587# Check whether --with-sysroot was given. 5588if test "${with_sysroot+set}" = set; then 5589 withval=$with_sysroot; 5590else 5591 withval="" 5592fi 5593 5594 5595cat >>confdefs.h <<_ACEOF 5596#define DEFAULT_SYSROOT "$withval" 5597_ACEOF 5598 5599 5600 5601# Check whether --with-binutils-include was given. 5602if test "${with_binutils_include+set}" = set; then 5603 withval=$with_binutils_include; 5604else 5605 withval=default 5606fi 5607 5608case "$withval" in 5609 default) WITH_BINUTILS_INCDIR=default ;; 5610 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5611 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5612echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5613 { (exit 1); exit 1; }; } ;; 5614esac 5615if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5616 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5617 5618 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5619 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5620 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5621echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5622 { (exit 1); exit 1; }; }; 5623 fi 5624fi 5625 5626 5627# Check whether --with-bug-report-url was given. 5628if test "${with_bug_report_url+set}" = set; then 5629 withval=$with_bug_report_url; 5630else 5631 withval="http://llvm.org/bugs/" 5632fi 5633 5634 5635cat >>confdefs.h <<_ACEOF 5636#define BUG_REPORT_URL "$withval" 5637_ACEOF 5638 5639 5640# Check whether --enable-libffi was given. 5641if test "${enable_libffi+set}" = set; then 5642 enableval=$enable_libffi; case "$enableval" in 5643 yes) llvm_cv_enable_libffi="yes" ;; 5644 no) llvm_cv_enable_libffi="no" ;; 5645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5646echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5647 { (exit 1); exit 1; }; } ;; 5648 esac 5649else 5650 llvm_cv_enable_libffi=no 5651fi 5652 5653 5654 5655# Check whether --with-internal-prefix was given. 5656if test "${with_internal_prefix+set}" = set; then 5657 withval=$with_internal_prefix; 5658else 5659 withval="" 5660fi 5661 5662INTERNAL_PREFIX=$withval 5663 5664 5665 5666{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5667echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5668if test "${lt_cv_path_NM+set}" = set; then 5669 echo $ECHO_N "(cached) $ECHO_C" >&6 5670else 5671 if test -n "$NM"; then 5672 # Let the user override the test. 5673 lt_cv_path_NM="$NM" 5674else 5675 lt_nm_to_check="${ac_tool_prefix}nm" 5676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5677 lt_nm_to_check="$lt_nm_to_check nm" 5678 fi 5679 for lt_tmp_nm in $lt_nm_to_check; do 5680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5682 IFS="$lt_save_ifs" 5683 test -z "$ac_dir" && ac_dir=. 5684 tmp_nm="$ac_dir/$lt_tmp_nm" 5685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5686 # Check to see if the nm accepts a BSD-compat flag. 5687 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5688 # nm: unknown option "B" ignored 5689 # Tru64's nm complains that /dev/null is an invalid object file 5690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5691 */dev/null* | *'Invalid file or object type'*) 5692 lt_cv_path_NM="$tmp_nm -B" 5693 break 5694 ;; 5695 *) 5696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5697 */dev/null*) 5698 lt_cv_path_NM="$tmp_nm -p" 5699 break 5700 ;; 5701 *) 5702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5703 continue # so that we can try to find one that supports BSD flags 5704 ;; 5705 esac 5706 ;; 5707 esac 5708 fi 5709 done 5710 IFS="$lt_save_ifs" 5711 done 5712 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5713fi 5714fi 5715{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5716echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5717NM="$lt_cv_path_NM" 5718 5719 5720 5721{ echo "$as_me:$LINENO: checking for GNU make" >&5 5722echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5723if test "${llvm_cv_gnu_make_command+set}" = set; then 5724 echo $ECHO_N "(cached) $ECHO_C" >&6 5725else 5726 llvm_cv_gnu_make_command='' 5727 for a in "$MAKE" make gmake gnumake ; do 5728 if test -z "$a" ; then continue ; fi ; 5729 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5730 then 5731 llvm_cv_gnu_make_command=$a ; 5732 break; 5733 fi 5734 done 5735fi 5736{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5737echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5738 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5739 ifGNUmake='' ; 5740 else 5741 ifGNUmake='#' ; 5742 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5743echo "${ECHO_T}\"Not found\"" >&6; }; 5744 fi 5745 5746 5747{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5748echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5749LN_S=$as_ln_s 5750if test "$LN_S" = "ln -s"; then 5751 { echo "$as_me:$LINENO: result: yes" >&5 5752echo "${ECHO_T}yes" >&6; } 5753else 5754 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5755echo "${ECHO_T}no, using $LN_S" >&6; } 5756fi 5757 5758# Extract the first word of "cmp", so it can be a program name with args. 5759set dummy cmp; ac_word=$2 5760{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5762if test "${ac_cv_path_CMP+set}" = set; then 5763 echo $ECHO_N "(cached) $ECHO_C" >&6 5764else 5765 case $CMP in 5766 [\\/]* | ?:[\\/]*) 5767 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5768 ;; 5769 *) 5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5771for as_dir in $PATH 5772do 5773 IFS=$as_save_IFS 5774 test -z "$as_dir" && as_dir=. 5775 for ac_exec_ext in '' $ac_executable_extensions; do 5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5777 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5779 break 2 5780 fi 5781done 5782done 5783IFS=$as_save_IFS 5784 5785 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5786 ;; 5787esac 5788fi 5789CMP=$ac_cv_path_CMP 5790if test -n "$CMP"; then 5791 { echo "$as_me:$LINENO: result: $CMP" >&5 5792echo "${ECHO_T}$CMP" >&6; } 5793else 5794 { echo "$as_me:$LINENO: result: no" >&5 5795echo "${ECHO_T}no" >&6; } 5796fi 5797 5798 5799# Extract the first word of "cp", so it can be a program name with args. 5800set dummy cp; ac_word=$2 5801{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5803if test "${ac_cv_path_CP+set}" = set; then 5804 echo $ECHO_N "(cached) $ECHO_C" >&6 5805else 5806 case $CP in 5807 [\\/]* | ?:[\\/]*) 5808 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5809 ;; 5810 *) 5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812for as_dir in $PATH 5813do 5814 IFS=$as_save_IFS 5815 test -z "$as_dir" && as_dir=. 5816 for ac_exec_ext in '' $ac_executable_extensions; do 5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5818 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5820 break 2 5821 fi 5822done 5823done 5824IFS=$as_save_IFS 5825 5826 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5827 ;; 5828esac 5829fi 5830CP=$ac_cv_path_CP 5831if test -n "$CP"; then 5832 { echo "$as_me:$LINENO: result: $CP" >&5 5833echo "${ECHO_T}$CP" >&6; } 5834else 5835 { echo "$as_me:$LINENO: result: no" >&5 5836echo "${ECHO_T}no" >&6; } 5837fi 5838 5839 5840# Extract the first word of "date", so it can be a program name with args. 5841set dummy date; ac_word=$2 5842{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5844if test "${ac_cv_path_DATE+set}" = set; then 5845 echo $ECHO_N "(cached) $ECHO_C" >&6 5846else 5847 case $DATE in 5848 [\\/]* | ?:[\\/]*) 5849 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5850 ;; 5851 *) 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853for as_dir in $PATH 5854do 5855 IFS=$as_save_IFS 5856 test -z "$as_dir" && as_dir=. 5857 for ac_exec_ext in '' $ac_executable_extensions; do 5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5859 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5861 break 2 5862 fi 5863done 5864done 5865IFS=$as_save_IFS 5866 5867 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5868 ;; 5869esac 5870fi 5871DATE=$ac_cv_path_DATE 5872if test -n "$DATE"; then 5873 { echo "$as_me:$LINENO: result: $DATE" >&5 5874echo "${ECHO_T}$DATE" >&6; } 5875else 5876 { echo "$as_me:$LINENO: result: no" >&5 5877echo "${ECHO_T}no" >&6; } 5878fi 5879 5880 5881# Extract the first word of "find", so it can be a program name with args. 5882set dummy find; ac_word=$2 5883{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5885if test "${ac_cv_path_FIND+set}" = set; then 5886 echo $ECHO_N "(cached) $ECHO_C" >&6 5887else 5888 case $FIND in 5889 [\\/]* | ?:[\\/]*) 5890 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5891 ;; 5892 *) 5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5900 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905done 5906IFS=$as_save_IFS 5907 5908 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5909 ;; 5910esac 5911fi 5912FIND=$ac_cv_path_FIND 5913if test -n "$FIND"; then 5914 { echo "$as_me:$LINENO: result: $FIND" >&5 5915echo "${ECHO_T}$FIND" >&6; } 5916else 5917 { echo "$as_me:$LINENO: result: no" >&5 5918echo "${ECHO_T}no" >&6; } 5919fi 5920 5921 5922# Extract the first word of "grep", so it can be a program name with args. 5923set dummy grep; ac_word=$2 5924{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5926if test "${ac_cv_path_GREP+set}" = set; then 5927 echo $ECHO_N "(cached) $ECHO_C" >&6 5928else 5929 case $GREP in 5930 [\\/]* | ?:[\\/]*) 5931 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5932 ;; 5933 *) 5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5941 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946done 5947IFS=$as_save_IFS 5948 5949 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5950 ;; 5951esac 5952fi 5953GREP=$ac_cv_path_GREP 5954if test -n "$GREP"; then 5955 { echo "$as_me:$LINENO: result: $GREP" >&5 5956echo "${ECHO_T}$GREP" >&6; } 5957else 5958 { echo "$as_me:$LINENO: result: no" >&5 5959echo "${ECHO_T}no" >&6; } 5960fi 5961 5962 5963# Extract the first word of "mkdir", so it can be a program name with args. 5964set dummy mkdir; ac_word=$2 5965{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5967if test "${ac_cv_path_MKDIR+set}" = set; then 5968 echo $ECHO_N "(cached) $ECHO_C" >&6 5969else 5970 case $MKDIR in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5982 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987done 5988IFS=$as_save_IFS 5989 5990 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 5991 ;; 5992esac 5993fi 5994MKDIR=$ac_cv_path_MKDIR 5995if test -n "$MKDIR"; then 5996 { echo "$as_me:$LINENO: result: $MKDIR" >&5 5997echo "${ECHO_T}$MKDIR" >&6; } 5998else 5999 { echo "$as_me:$LINENO: result: no" >&5 6000echo "${ECHO_T}no" >&6; } 6001fi 6002 6003 6004# Extract the first word of "mv", so it can be a program name with args. 6005set dummy mv; ac_word=$2 6006{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6008if test "${ac_cv_path_MV+set}" = set; then 6009 echo $ECHO_N "(cached) $ECHO_C" >&6 6010else 6011 case $MV in 6012 [\\/]* | ?:[\\/]*) 6013 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6014 ;; 6015 *) 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017for as_dir in $PATH 6018do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6023 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027done 6028done 6029IFS=$as_save_IFS 6030 6031 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6032 ;; 6033esac 6034fi 6035MV=$ac_cv_path_MV 6036if test -n "$MV"; then 6037 { echo "$as_me:$LINENO: result: $MV" >&5 6038echo "${ECHO_T}$MV" >&6; } 6039else 6040 { echo "$as_me:$LINENO: result: no" >&5 6041echo "${ECHO_T}no" >&6; } 6042fi 6043 6044 6045if test -n "$ac_tool_prefix"; then 6046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6047set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6050if test "${ac_cv_prog_RANLIB+set}" = set; then 6051 echo $ECHO_N "(cached) $ECHO_C" >&6 6052else 6053 if test -n "$RANLIB"; then 6054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073RANLIB=$ac_cv_prog_RANLIB 6074if test -n "$RANLIB"; then 6075 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6076echo "${ECHO_T}$RANLIB" >&6; } 6077else 6078 { echo "$as_me:$LINENO: result: no" >&5 6079echo "${ECHO_T}no" >&6; } 6080fi 6081 6082 6083fi 6084if test -z "$ac_cv_prog_RANLIB"; then 6085 ac_ct_RANLIB=$RANLIB 6086 # Extract the first word of "ranlib", so it can be a program name with args. 6087set dummy ranlib; ac_word=$2 6088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6090if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6091 echo $ECHO_N "(cached) $ECHO_C" >&6 6092else 6093 if test -n "$ac_ct_RANLIB"; then 6094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6095else 6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6097for as_dir in $PATH 6098do 6099 IFS=$as_save_IFS 6100 test -z "$as_dir" && as_dir=. 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6103 ac_cv_prog_ac_ct_RANLIB="ranlib" 6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6105 break 2 6106 fi 6107done 6108done 6109IFS=$as_save_IFS 6110 6111fi 6112fi 6113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6114if test -n "$ac_ct_RANLIB"; then 6115 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6116echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6117else 6118 { echo "$as_me:$LINENO: result: no" >&5 6119echo "${ECHO_T}no" >&6; } 6120fi 6121 6122 if test "x$ac_ct_RANLIB" = x; then 6123 RANLIB=":" 6124 else 6125 case $cross_compiling:$ac_tool_warned in 6126yes:) 6127{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6128whose name does not start with the host triplet. If you think this 6129configuration is useful to you, please write to autoconf@gnu.org." >&5 6130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6131whose name does not start with the host triplet. If you think this 6132configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6133ac_tool_warned=yes ;; 6134esac 6135 RANLIB=$ac_ct_RANLIB 6136 fi 6137else 6138 RANLIB="$ac_cv_prog_RANLIB" 6139fi 6140 6141if test -n "$ac_tool_prefix"; then 6142 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6143set dummy ${ac_tool_prefix}ar; ac_word=$2 6144{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6146if test "${ac_cv_prog_AR+set}" = set; then 6147 echo $ECHO_N "(cached) $ECHO_C" >&6 6148else 6149 if test -n "$AR"; then 6150 ac_cv_prog_AR="$AR" # Let the user override the test. 6151else 6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6153for as_dir in $PATH 6154do 6155 IFS=$as_save_IFS 6156 test -z "$as_dir" && as_dir=. 6157 for ac_exec_ext in '' $ac_executable_extensions; do 6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6159 ac_cv_prog_AR="${ac_tool_prefix}ar" 6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6161 break 2 6162 fi 6163done 6164done 6165IFS=$as_save_IFS 6166 6167fi 6168fi 6169AR=$ac_cv_prog_AR 6170if test -n "$AR"; then 6171 { echo "$as_me:$LINENO: result: $AR" >&5 6172echo "${ECHO_T}$AR" >&6; } 6173else 6174 { echo "$as_me:$LINENO: result: no" >&5 6175echo "${ECHO_T}no" >&6; } 6176fi 6177 6178 6179fi 6180if test -z "$ac_cv_prog_AR"; then 6181 ac_ct_AR=$AR 6182 # Extract the first word of "ar", so it can be a program name with args. 6183set dummy ar; ac_word=$2 6184{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6186if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6187 echo $ECHO_N "(cached) $ECHO_C" >&6 6188else 6189 if test -n "$ac_ct_AR"; then 6190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6191else 6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6193for as_dir in $PATH 6194do 6195 IFS=$as_save_IFS 6196 test -z "$as_dir" && as_dir=. 6197 for ac_exec_ext in '' $ac_executable_extensions; do 6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6199 ac_cv_prog_ac_ct_AR="ar" 6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6201 break 2 6202 fi 6203done 6204done 6205IFS=$as_save_IFS 6206 6207fi 6208fi 6209ac_ct_AR=$ac_cv_prog_ac_ct_AR 6210if test -n "$ac_ct_AR"; then 6211 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6212echo "${ECHO_T}$ac_ct_AR" >&6; } 6213else 6214 { echo "$as_me:$LINENO: result: no" >&5 6215echo "${ECHO_T}no" >&6; } 6216fi 6217 6218 if test "x$ac_ct_AR" = x; then 6219 AR="false" 6220 else 6221 case $cross_compiling:$ac_tool_warned in 6222yes:) 6223{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6224whose name does not start with the host triplet. If you think this 6225configuration is useful to you, please write to autoconf@gnu.org." >&5 6226echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6227whose name does not start with the host triplet. If you think this 6228configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6229ac_tool_warned=yes ;; 6230esac 6231 AR=$ac_ct_AR 6232 fi 6233else 6234 AR="$ac_cv_prog_AR" 6235fi 6236 6237# Extract the first word of "rm", so it can be a program name with args. 6238set dummy rm; ac_word=$2 6239{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6241if test "${ac_cv_path_RM+set}" = set; then 6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6243else 6244 case $RM in 6245 [\\/]* | ?:[\\/]*) 6246 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6247 ;; 6248 *) 6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250for as_dir in $PATH 6251do 6252 IFS=$as_save_IFS 6253 test -z "$as_dir" && as_dir=. 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6256 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260done 6261done 6262IFS=$as_save_IFS 6263 6264 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6265 ;; 6266esac 6267fi 6268RM=$ac_cv_path_RM 6269if test -n "$RM"; then 6270 { echo "$as_me:$LINENO: result: $RM" >&5 6271echo "${ECHO_T}$RM" >&6; } 6272else 6273 { echo "$as_me:$LINENO: result: no" >&5 6274echo "${ECHO_T}no" >&6; } 6275fi 6276 6277 6278# Extract the first word of "sed", so it can be a program name with args. 6279set dummy sed; ac_word=$2 6280{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6282if test "${ac_cv_path_SED+set}" = set; then 6283 echo $ECHO_N "(cached) $ECHO_C" >&6 6284else 6285 case $SED in 6286 [\\/]* | ?:[\\/]*) 6287 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6288 ;; 6289 *) 6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6297 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302done 6303IFS=$as_save_IFS 6304 6305 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6306 ;; 6307esac 6308fi 6309SED=$ac_cv_path_SED 6310if test -n "$SED"; then 6311 { echo "$as_me:$LINENO: result: $SED" >&5 6312echo "${ECHO_T}$SED" >&6; } 6313else 6314 { echo "$as_me:$LINENO: result: no" >&5 6315echo "${ECHO_T}no" >&6; } 6316fi 6317 6318 6319# Extract the first word of "tar", so it can be a program name with args. 6320set dummy tar; ac_word=$2 6321{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6323if test "${ac_cv_path_TAR+set}" = set; then 6324 echo $ECHO_N "(cached) $ECHO_C" >&6 6325else 6326 case $TAR in 6327 [\\/]* | ?:[\\/]*) 6328 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6329 ;; 6330 *) 6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6338 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342done 6343done 6344IFS=$as_save_IFS 6345 6346 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6347 ;; 6348esac 6349fi 6350TAR=$ac_cv_path_TAR 6351if test -n "$TAR"; then 6352 { echo "$as_me:$LINENO: result: $TAR" >&5 6353echo "${ECHO_T}$TAR" >&6; } 6354else 6355 { echo "$as_me:$LINENO: result: no" >&5 6356echo "${ECHO_T}no" >&6; } 6357fi 6358 6359 6360# Extract the first word of "pwd", so it can be a program name with args. 6361set dummy pwd; ac_word=$2 6362{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6364if test "${ac_cv_path_BINPWD+set}" = set; then 6365 echo $ECHO_N "(cached) $ECHO_C" >&6 6366else 6367 case $BINPWD in 6368 [\\/]* | ?:[\\/]*) 6369 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6370 ;; 6371 *) 6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373for as_dir in $PATH 6374do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6379 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383done 6384done 6385IFS=$as_save_IFS 6386 6387 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6388 ;; 6389esac 6390fi 6391BINPWD=$ac_cv_path_BINPWD 6392if test -n "$BINPWD"; then 6393 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6394echo "${ECHO_T}$BINPWD" >&6; } 6395else 6396 { echo "$as_me:$LINENO: result: no" >&5 6397echo "${ECHO_T}no" >&6; } 6398fi 6399 6400 6401 6402# Extract the first word of "Graphviz", so it can be a program name with args. 6403set dummy Graphviz; ac_word=$2 6404{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6406if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6407 echo $ECHO_N "(cached) $ECHO_C" >&6 6408else 6409 case $GRAPHVIZ in 6410 [\\/]* | ?:[\\/]*) 6411 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6412 ;; 6413 *) 6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6421 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426done 6427IFS=$as_save_IFS 6428 6429 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6430 ;; 6431esac 6432fi 6433GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6434if test -n "$GRAPHVIZ"; then 6435 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6436echo "${ECHO_T}$GRAPHVIZ" >&6; } 6437else 6438 { echo "$as_me:$LINENO: result: no" >&5 6439echo "${ECHO_T}no" >&6; } 6440fi 6441 6442 6443if test "$GRAPHVIZ" != "echo Graphviz" ; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define HAVE_GRAPHVIZ 1 6447_ACEOF 6448 6449 if test "$llvm_cv_os_type" = "MingW" ; then 6450 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6451 fi 6452 6453cat >>confdefs.h <<_ACEOF 6454#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6455_ACEOF 6456 6457fi 6458# Extract the first word of "dot", so it can be a program name with args. 6459set dummy dot; ac_word=$2 6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6462if test "${ac_cv_path_DOT+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464else 6465 case $DOT in 6466 [\\/]* | ?:[\\/]*) 6467 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6468 ;; 6469 *) 6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482done 6483IFS=$as_save_IFS 6484 6485 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6486 ;; 6487esac 6488fi 6489DOT=$ac_cv_path_DOT 6490if test -n "$DOT"; then 6491 { echo "$as_me:$LINENO: result: $DOT" >&5 6492echo "${ECHO_T}$DOT" >&6; } 6493else 6494 { echo "$as_me:$LINENO: result: no" >&5 6495echo "${ECHO_T}no" >&6; } 6496fi 6497 6498 6499if test "$DOT" != "echo dot" ; then 6500 6501cat >>confdefs.h <<\_ACEOF 6502#define HAVE_DOT 1 6503_ACEOF 6504 6505 if test "$llvm_cv_os_type" = "MingW" ; then 6506 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6507 fi 6508 6509cat >>confdefs.h <<_ACEOF 6510#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6511_ACEOF 6512 6513fi 6514# Extract the first word of "fdp", so it can be a program name with args. 6515set dummy fdp; ac_word=$2 6516{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6518if test "${ac_cv_path_FDP+set}" = set; then 6519 echo $ECHO_N "(cached) $ECHO_C" >&6 6520else 6521 case $FDP in 6522 [\\/]* | ?:[\\/]*) 6523 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6524 ;; 6525 *) 6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6527for as_dir in $PATH 6528do 6529 IFS=$as_save_IFS 6530 test -z "$as_dir" && as_dir=. 6531 for ac_exec_ext in '' $ac_executable_extensions; do 6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6533 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6535 break 2 6536 fi 6537done 6538done 6539IFS=$as_save_IFS 6540 6541 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6542 ;; 6543esac 6544fi 6545FDP=$ac_cv_path_FDP 6546if test -n "$FDP"; then 6547 { echo "$as_me:$LINENO: result: $FDP" >&5 6548echo "${ECHO_T}$FDP" >&6; } 6549else 6550 { echo "$as_me:$LINENO: result: no" >&5 6551echo "${ECHO_T}no" >&6; } 6552fi 6553 6554 6555if test "$FDP" != "echo fdp" ; then 6556 6557cat >>confdefs.h <<\_ACEOF 6558#define HAVE_FDP 1 6559_ACEOF 6560 6561 if test "$llvm_cv_os_type" = "MingW" ; then 6562 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6563 fi 6564 6565cat >>confdefs.h <<_ACEOF 6566#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6567_ACEOF 6568 6569fi 6570# Extract the first word of "neato", so it can be a program name with args. 6571set dummy neato; ac_word=$2 6572{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6574if test "${ac_cv_path_NEATO+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576else 6577 case $NEATO in 6578 [\\/]* | ?:[\\/]*) 6579 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6580 ;; 6581 *) 6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6589 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593done 6594done 6595IFS=$as_save_IFS 6596 6597 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6598 ;; 6599esac 6600fi 6601NEATO=$ac_cv_path_NEATO 6602if test -n "$NEATO"; then 6603 { echo "$as_me:$LINENO: result: $NEATO" >&5 6604echo "${ECHO_T}$NEATO" >&6; } 6605else 6606 { echo "$as_me:$LINENO: result: no" >&5 6607echo "${ECHO_T}no" >&6; } 6608fi 6609 6610 6611if test "$NEATO" != "echo neato" ; then 6612 6613cat >>confdefs.h <<\_ACEOF 6614#define HAVE_NEATO 1 6615_ACEOF 6616 6617 if test "$llvm_cv_os_type" = "MingW" ; then 6618 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6619 fi 6620 6621cat >>confdefs.h <<_ACEOF 6622#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6623_ACEOF 6624 6625fi 6626# Extract the first word of "twopi", so it can be a program name with args. 6627set dummy twopi; ac_word=$2 6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6630if test "${ac_cv_path_TWOPI+set}" = set; then 6631 echo $ECHO_N "(cached) $ECHO_C" >&6 6632else 6633 case $TWOPI in 6634 [\\/]* | ?:[\\/]*) 6635 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6636 ;; 6637 *) 6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6639for as_dir in $PATH 6640do 6641 IFS=$as_save_IFS 6642 test -z "$as_dir" && as_dir=. 6643 for ac_exec_ext in '' $ac_executable_extensions; do 6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6645 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6647 break 2 6648 fi 6649done 6650done 6651IFS=$as_save_IFS 6652 6653 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6654 ;; 6655esac 6656fi 6657TWOPI=$ac_cv_path_TWOPI 6658if test -n "$TWOPI"; then 6659 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6660echo "${ECHO_T}$TWOPI" >&6; } 6661else 6662 { echo "$as_me:$LINENO: result: no" >&5 6663echo "${ECHO_T}no" >&6; } 6664fi 6665 6666 6667if test "$TWOPI" != "echo twopi" ; then 6668 6669cat >>confdefs.h <<\_ACEOF 6670#define HAVE_TWOPI 1 6671_ACEOF 6672 6673 if test "$llvm_cv_os_type" = "MingW" ; then 6674 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6675 fi 6676 6677cat >>confdefs.h <<_ACEOF 6678#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6679_ACEOF 6680 6681fi 6682# Extract the first word of "circo", so it can be a program name with args. 6683set dummy circo; ac_word=$2 6684{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6686if test "${ac_cv_path_CIRCO+set}" = set; then 6687 echo $ECHO_N "(cached) $ECHO_C" >&6 6688else 6689 case $CIRCO in 6690 [\\/]* | ?:[\\/]*) 6691 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6692 ;; 6693 *) 6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6701 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706done 6707IFS=$as_save_IFS 6708 6709 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6710 ;; 6711esac 6712fi 6713CIRCO=$ac_cv_path_CIRCO 6714if test -n "$CIRCO"; then 6715 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6716echo "${ECHO_T}$CIRCO" >&6; } 6717else 6718 { echo "$as_me:$LINENO: result: no" >&5 6719echo "${ECHO_T}no" >&6; } 6720fi 6721 6722 6723if test "$CIRCO" != "echo circo" ; then 6724 6725cat >>confdefs.h <<\_ACEOF 6726#define HAVE_CIRCO 1 6727_ACEOF 6728 6729 if test "$llvm_cv_os_type" = "MingW" ; then 6730 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6731 fi 6732 6733cat >>confdefs.h <<_ACEOF 6734#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6735_ACEOF 6736 6737fi 6738for ac_prog in gv gsview32 6739do 6740 # Extract the first word of "$ac_prog", so it can be a program name with args. 6741set dummy $ac_prog; ac_word=$2 6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6744if test "${ac_cv_path_GV+set}" = set; then 6745 echo $ECHO_N "(cached) $ECHO_C" >&6 6746else 6747 case $GV in 6748 [\\/]* | ?:[\\/]*) 6749 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6750 ;; 6751 *) 6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6759 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764done 6765IFS=$as_save_IFS 6766 6767 ;; 6768esac 6769fi 6770GV=$ac_cv_path_GV 6771if test -n "$GV"; then 6772 { echo "$as_me:$LINENO: result: $GV" >&5 6773echo "${ECHO_T}$GV" >&6; } 6774else 6775 { echo "$as_me:$LINENO: result: no" >&5 6776echo "${ECHO_T}no" >&6; } 6777fi 6778 6779 6780 test -n "$GV" && break 6781done 6782test -n "$GV" || GV="echo gv" 6783 6784if test "$GV" != "echo gv" ; then 6785 6786cat >>confdefs.h <<\_ACEOF 6787#define HAVE_GV 1 6788_ACEOF 6789 6790 if test "$llvm_cv_os_type" = "MingW" ; then 6791 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6792 fi 6793 6794cat >>confdefs.h <<_ACEOF 6795#define LLVM_PATH_GV "$GV${EXEEXT}" 6796_ACEOF 6797 6798fi 6799# Extract the first word of "dotty", so it can be a program name with args. 6800set dummy dotty; ac_word=$2 6801{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6803if test "${ac_cv_path_DOTTY+set}" = set; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 case $DOTTY in 6807 [\\/]* | ?:[\\/]*) 6808 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6809 ;; 6810 *) 6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 test -z "$as_dir" && as_dir=. 6816 for ac_exec_ext in '' $ac_executable_extensions; do 6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6818 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6820 break 2 6821 fi 6822done 6823done 6824IFS=$as_save_IFS 6825 6826 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6827 ;; 6828esac 6829fi 6830DOTTY=$ac_cv_path_DOTTY 6831if test -n "$DOTTY"; then 6832 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6833echo "${ECHO_T}$DOTTY" >&6; } 6834else 6835 { echo "$as_me:$LINENO: result: no" >&5 6836echo "${ECHO_T}no" >&6; } 6837fi 6838 6839 6840if test "$DOTTY" != "echo dotty" ; then 6841 6842cat >>confdefs.h <<\_ACEOF 6843#define HAVE_DOTTY 1 6844_ACEOF 6845 6846 if test "$llvm_cv_os_type" = "MingW" ; then 6847 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6848 fi 6849 6850cat >>confdefs.h <<_ACEOF 6851#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6852_ACEOF 6853 6854fi 6855# Extract the first word of "xdot.py", so it can be a program name with args. 6856set dummy xdot.py; ac_word=$2 6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6859if test "${ac_cv_path_XDOT_PY+set}" = set; then 6860 echo $ECHO_N "(cached) $ECHO_C" >&6 6861else 6862 case $XDOT_PY in 6863 [\\/]* | ?:[\\/]*) 6864 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6865 ;; 6866 *) 6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6874 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879done 6880IFS=$as_save_IFS 6881 6882 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6883 ;; 6884esac 6885fi 6886XDOT_PY=$ac_cv_path_XDOT_PY 6887if test -n "$XDOT_PY"; then 6888 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6889echo "${ECHO_T}$XDOT_PY" >&6; } 6890else 6891 { echo "$as_me:$LINENO: result: no" >&5 6892echo "${ECHO_T}no" >&6; } 6893fi 6894 6895 6896if test "$XDOT_PY" != "echo xdot.py" ; then 6897 6898cat >>confdefs.h <<\_ACEOF 6899#define HAVE_XDOT_PY 1 6900_ACEOF 6901 6902 if test "$llvm_cv_os_type" = "MingW" ; then 6903 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6904 fi 6905 6906cat >>confdefs.h <<_ACEOF 6907#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6908_ACEOF 6909 6910fi 6911 6912# Find a good install program. We prefer a C program (faster), 6913# so one script is as good as another. But avoid the broken or 6914# incompatible versions: 6915# SysV /etc/install, /usr/sbin/install 6916# SunOS /usr/etc/install 6917# IRIX /sbin/install 6918# AIX /bin/install 6919# AmigaOS /C/install, which installs bootblocks on floppy discs 6920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6921# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6923# OS/2's system install, which has a completely different semantic 6924# ./install, which can be erroneously created by make from ./install.sh. 6925{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6926echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6927if test -z "$INSTALL"; then 6928if test "${ac_cv_path_install+set}" = set; then 6929 echo $ECHO_N "(cached) $ECHO_C" >&6 6930else 6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932for as_dir in $PATH 6933do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 # Account for people who put trailing slashes in PATH elements. 6937case $as_dir/ in 6938 ./ | .// | /cC/* | \ 6939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6941 /usr/ucb/* ) ;; 6942 *) 6943 # OSF1 and SCO ODT 3.0 have their own names for install. 6944 # Don't use installbsd from OSF since it installs stuff as root 6945 # by default. 6946 for ac_prog in ginstall scoinst install; do 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6949 if test $ac_prog = install && 6950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6951 # AIX install. It has an incompatible calling convention. 6952 : 6953 elif test $ac_prog = install && 6954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6955 # program-specific install script used by HP pwplus--don't use. 6956 : 6957 else 6958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6959 break 3 6960 fi 6961 fi 6962 done 6963 done 6964 ;; 6965esac 6966done 6967IFS=$as_save_IFS 6968 6969 6970fi 6971 if test "${ac_cv_path_install+set}" = set; then 6972 INSTALL=$ac_cv_path_install 6973 else 6974 # As a last resort, use the slow shell script. Don't cache a 6975 # value for INSTALL within a source directory, because that will 6976 # break other packages using the cache if that directory is 6977 # removed, or if the value is a relative name. 6978 INSTALL=$ac_install_sh 6979 fi 6980fi 6981{ echo "$as_me:$LINENO: result: $INSTALL" >&5 6982echo "${ECHO_T}$INSTALL" >&6; } 6983 6984# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6985# It thinks the first close brace ends the variable substitution. 6986test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6987 6988test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6989 6990test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6991 6992case "$INSTALL" in 6993 [\\/$]* | ?:[\\/]* ) ;; 6994 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6995esac 6996 6997# Extract the first word of "bzip2", so it can be a program name with args. 6998set dummy bzip2; ac_word=$2 6999{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7001if test "${ac_cv_path_BZIP2+set}" = set; then 7002 echo $ECHO_N "(cached) $ECHO_C" >&6 7003else 7004 case $BZIP2 in 7005 [\\/]* | ?:[\\/]*) 7006 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7007 ;; 7008 *) 7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7010for as_dir in $PATH 7011do 7012 IFS=$as_save_IFS 7013 test -z "$as_dir" && as_dir=. 7014 for ac_exec_ext in '' $ac_executable_extensions; do 7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7016 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7018 break 2 7019 fi 7020done 7021done 7022IFS=$as_save_IFS 7023 7024 ;; 7025esac 7026fi 7027BZIP2=$ac_cv_path_BZIP2 7028if test -n "$BZIP2"; then 7029 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7030echo "${ECHO_T}$BZIP2" >&6; } 7031else 7032 { echo "$as_me:$LINENO: result: no" >&5 7033echo "${ECHO_T}no" >&6; } 7034fi 7035 7036 7037# Extract the first word of "cat", so it can be a program name with args. 7038set dummy cat; ac_word=$2 7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7041if test "${ac_cv_path_CAT+set}" = set; then 7042 echo $ECHO_N "(cached) $ECHO_C" >&6 7043else 7044 case $CAT in 7045 [\\/]* | ?:[\\/]*) 7046 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7047 ;; 7048 *) 7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7050for as_dir in $PATH 7051do 7052 IFS=$as_save_IFS 7053 test -z "$as_dir" && as_dir=. 7054 for ac_exec_ext in '' $ac_executable_extensions; do 7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7056 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7058 break 2 7059 fi 7060done 7061done 7062IFS=$as_save_IFS 7063 7064 ;; 7065esac 7066fi 7067CAT=$ac_cv_path_CAT 7068if test -n "$CAT"; then 7069 { echo "$as_me:$LINENO: result: $CAT" >&5 7070echo "${ECHO_T}$CAT" >&6; } 7071else 7072 { echo "$as_me:$LINENO: result: no" >&5 7073echo "${ECHO_T}no" >&6; } 7074fi 7075 7076 7077# Extract the first word of "doxygen", so it can be a program name with args. 7078set dummy doxygen; ac_word=$2 7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7081if test "${ac_cv_path_DOXYGEN+set}" = set; then 7082 echo $ECHO_N "(cached) $ECHO_C" >&6 7083else 7084 case $DOXYGEN in 7085 [\\/]* | ?:[\\/]*) 7086 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7087 ;; 7088 *) 7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7090for as_dir in $PATH 7091do 7092 IFS=$as_save_IFS 7093 test -z "$as_dir" && as_dir=. 7094 for ac_exec_ext in '' $ac_executable_extensions; do 7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7096 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7098 break 2 7099 fi 7100done 7101done 7102IFS=$as_save_IFS 7103 7104 ;; 7105esac 7106fi 7107DOXYGEN=$ac_cv_path_DOXYGEN 7108if test -n "$DOXYGEN"; then 7109 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7110echo "${ECHO_T}$DOXYGEN" >&6; } 7111else 7112 { echo "$as_me:$LINENO: result: no" >&5 7113echo "${ECHO_T}no" >&6; } 7114fi 7115 7116 7117# Extract the first word of "groff", so it can be a program name with args. 7118set dummy groff; ac_word=$2 7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7121if test "${ac_cv_path_GROFF+set}" = set; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 case $GROFF in 7125 [\\/]* | ?:[\\/]*) 7126 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7127 ;; 7128 *) 7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7136 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141done 7142IFS=$as_save_IFS 7143 7144 ;; 7145esac 7146fi 7147GROFF=$ac_cv_path_GROFF 7148if test -n "$GROFF"; then 7149 { echo "$as_me:$LINENO: result: $GROFF" >&5 7150echo "${ECHO_T}$GROFF" >&6; } 7151else 7152 { echo "$as_me:$LINENO: result: no" >&5 7153echo "${ECHO_T}no" >&6; } 7154fi 7155 7156 7157# Extract the first word of "gzip", so it can be a program name with args. 7158set dummy gzip; ac_word=$2 7159{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7161if test "${ac_cv_path_GZIPBIN+set}" = set; then 7162 echo $ECHO_N "(cached) $ECHO_C" >&6 7163else 7164 case $GZIPBIN in 7165 [\\/]* | ?:[\\/]*) 7166 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7167 ;; 7168 *) 7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170for as_dir in $PATH 7171do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7176 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180done 7181done 7182IFS=$as_save_IFS 7183 7184 ;; 7185esac 7186fi 7187GZIPBIN=$ac_cv_path_GZIPBIN 7188if test -n "$GZIPBIN"; then 7189 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7190echo "${ECHO_T}$GZIPBIN" >&6; } 7191else 7192 { echo "$as_me:$LINENO: result: no" >&5 7193echo "${ECHO_T}no" >&6; } 7194fi 7195 7196 7197# Extract the first word of "pod2html", so it can be a program name with args. 7198set dummy pod2html; ac_word=$2 7199{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7201if test "${ac_cv_path_POD2HTML+set}" = set; then 7202 echo $ECHO_N "(cached) $ECHO_C" >&6 7203else 7204 case $POD2HTML in 7205 [\\/]* | ?:[\\/]*) 7206 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 7207 ;; 7208 *) 7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7210for as_dir in $PATH 7211do 7212 IFS=$as_save_IFS 7213 test -z "$as_dir" && as_dir=. 7214 for ac_exec_ext in '' $ac_executable_extensions; do 7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7216 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7218 break 2 7219 fi 7220done 7221done 7222IFS=$as_save_IFS 7223 7224 ;; 7225esac 7226fi 7227POD2HTML=$ac_cv_path_POD2HTML 7228if test -n "$POD2HTML"; then 7229 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 7230echo "${ECHO_T}$POD2HTML" >&6; } 7231else 7232 { echo "$as_me:$LINENO: result: no" >&5 7233echo "${ECHO_T}no" >&6; } 7234fi 7235 7236 7237# Extract the first word of "pod2man", so it can be a program name with args. 7238set dummy pod2man; ac_word=$2 7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7241if test "${ac_cv_path_POD2MAN+set}" = set; then 7242 echo $ECHO_N "(cached) $ECHO_C" >&6 7243else 7244 case $POD2MAN in 7245 [\\/]* | ?:[\\/]*) 7246 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 7247 ;; 7248 *) 7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7256 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260done 7261done 7262IFS=$as_save_IFS 7263 7264 ;; 7265esac 7266fi 7267POD2MAN=$ac_cv_path_POD2MAN 7268if test -n "$POD2MAN"; then 7269 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 7270echo "${ECHO_T}$POD2MAN" >&6; } 7271else 7272 { echo "$as_me:$LINENO: result: no" >&5 7273echo "${ECHO_T}no" >&6; } 7274fi 7275 7276 7277# Extract the first word of "pdfroff", so it can be a program name with args. 7278set dummy pdfroff; ac_word=$2 7279{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7281if test "${ac_cv_path_PDFROFF+set}" = set; then 7282 echo $ECHO_N "(cached) $ECHO_C" >&6 7283else 7284 case $PDFROFF in 7285 [\\/]* | ?:[\\/]*) 7286 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7287 ;; 7288 *) 7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7296 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301done 7302IFS=$as_save_IFS 7303 7304 ;; 7305esac 7306fi 7307PDFROFF=$ac_cv_path_PDFROFF 7308if test -n "$PDFROFF"; then 7309 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7310echo "${ECHO_T}$PDFROFF" >&6; } 7311else 7312 { echo "$as_me:$LINENO: result: no" >&5 7313echo "${ECHO_T}no" >&6; } 7314fi 7315 7316 7317# Extract the first word of "runtest", so it can be a program name with args. 7318set dummy runtest; ac_word=$2 7319{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7321if test "${ac_cv_path_RUNTEST+set}" = set; then 7322 echo $ECHO_N "(cached) $ECHO_C" >&6 7323else 7324 case $RUNTEST in 7325 [\\/]* | ?:[\\/]*) 7326 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 7327 ;; 7328 *) 7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 test -z "$as_dir" && as_dir=. 7334 for ac_exec_ext in '' $ac_executable_extensions; do 7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7336 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7338 break 2 7339 fi 7340done 7341done 7342IFS=$as_save_IFS 7343 7344 ;; 7345esac 7346fi 7347RUNTEST=$ac_cv_path_RUNTEST 7348if test -n "$RUNTEST"; then 7349 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 7350echo "${ECHO_T}$RUNTEST" >&6; } 7351else 7352 { echo "$as_me:$LINENO: result: no" >&5 7353echo "${ECHO_T}no" >&6; } 7354fi 7355 7356 7357 7358no_itcl=true 7359{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 7360echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 7361 7362# Check whether --with-tclinclude was given. 7363if test "${with_tclinclude+set}" = set; then 7364 withval=$with_tclinclude; with_tclinclude=${withval} 7365else 7366 with_tclinclude='' 7367fi 7368 7369if test "${ac_cv_path_tclsh+set}" = set; then 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 7371else 7372 7373if test x"${with_tclinclude}" != x ; then 7374 if test -f ${with_tclinclude}/tclsh ; then 7375 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 7376 elif test -f ${with_tclinclude}/src/tclsh ; then 7377 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 7378 else 7379 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 7380echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 7381 { (exit 1); exit 1; }; } 7382 fi 7383fi 7384fi 7385 7386 7387if test x"${ac_cv_path_tclsh}" = x ; then 7388 { echo "$as_me:$LINENO: result: none" >&5 7389echo "${ECHO_T}none" >&6; } 7390 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh 7391do 7392 # Extract the first word of "$ac_prog", so it can be a program name with args. 7393set dummy $ac_prog; ac_word=$2 7394{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7396if test "${ac_cv_path_TCLSH+set}" = set; then 7397 echo $ECHO_N "(cached) $ECHO_C" >&6 7398else 7399 case $TCLSH in 7400 [\\/]* | ?:[\\/]*) 7401 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 7402 ;; 7403 *) 7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405for as_dir in $PATH 7406do 7407 IFS=$as_save_IFS 7408 test -z "$as_dir" && as_dir=. 7409 for ac_exec_ext in '' $ac_executable_extensions; do 7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7411 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7413 break 2 7414 fi 7415done 7416done 7417IFS=$as_save_IFS 7418 7419 ;; 7420esac 7421fi 7422TCLSH=$ac_cv_path_TCLSH 7423if test -n "$TCLSH"; then 7424 { echo "$as_me:$LINENO: result: $TCLSH" >&5 7425echo "${ECHO_T}$TCLSH" >&6; } 7426else 7427 { echo "$as_me:$LINENO: result: no" >&5 7428echo "${ECHO_T}no" >&6; } 7429fi 7430 7431 7432 test -n "$TCLSH" && break 7433done 7434 7435 if test x"${TCLSH}" = x ; then 7436 ac_cv_path_tclsh=''; 7437 else 7438 ac_cv_path_tclsh="${TCLSH}"; 7439 fi 7440else 7441 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 7442echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 7443 TCLSH="${ac_cv_path_tclsh}" 7444 7445fi 7446 7447# Extract the first word of "zip", so it can be a program name with args. 7448set dummy zip; ac_word=$2 7449{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7451if test "${ac_cv_path_ZIP+set}" = set; then 7452 echo $ECHO_N "(cached) $ECHO_C" >&6 7453else 7454 case $ZIP in 7455 [\\/]* | ?:[\\/]*) 7456 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7457 ;; 7458 *) 7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7460for as_dir in $PATH 7461do 7462 IFS=$as_save_IFS 7463 test -z "$as_dir" && as_dir=. 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7466 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7468 break 2 7469 fi 7470done 7471done 7472IFS=$as_save_IFS 7473 7474 ;; 7475esac 7476fi 7477ZIP=$ac_cv_path_ZIP 7478if test -n "$ZIP"; then 7479 { echo "$as_me:$LINENO: result: $ZIP" >&5 7480echo "${ECHO_T}$ZIP" >&6; } 7481else 7482 { echo "$as_me:$LINENO: result: no" >&5 7483echo "${ECHO_T}no" >&6; } 7484fi 7485 7486 7487for ac_prog in ocamlc 7488do 7489 # Extract the first word of "$ac_prog", so it can be a program name with args. 7490set dummy $ac_prog; ac_word=$2 7491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7493if test "${ac_cv_path_OCAMLC+set}" = set; then 7494 echo $ECHO_N "(cached) $ECHO_C" >&6 7495else 7496 case $OCAMLC in 7497 [\\/]* | ?:[\\/]*) 7498 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7499 ;; 7500 *) 7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7502for as_dir in $PATH 7503do 7504 IFS=$as_save_IFS 7505 test -z "$as_dir" && as_dir=. 7506 for ac_exec_ext in '' $ac_executable_extensions; do 7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7508 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7510 break 2 7511 fi 7512done 7513done 7514IFS=$as_save_IFS 7515 7516 ;; 7517esac 7518fi 7519OCAMLC=$ac_cv_path_OCAMLC 7520if test -n "$OCAMLC"; then 7521 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7522echo "${ECHO_T}$OCAMLC" >&6; } 7523else 7524 { echo "$as_me:$LINENO: result: no" >&5 7525echo "${ECHO_T}no" >&6; } 7526fi 7527 7528 7529 test -n "$OCAMLC" && break 7530done 7531 7532for ac_prog in ocamlopt 7533do 7534 # Extract the first word of "$ac_prog", so it can be a program name with args. 7535set dummy $ac_prog; ac_word=$2 7536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7538if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7539 echo $ECHO_N "(cached) $ECHO_C" >&6 7540else 7541 case $OCAMLOPT in 7542 [\\/]* | ?:[\\/]*) 7543 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7544 ;; 7545 *) 7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7547for as_dir in $PATH 7548do 7549 IFS=$as_save_IFS 7550 test -z "$as_dir" && as_dir=. 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7553 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7555 break 2 7556 fi 7557done 7558done 7559IFS=$as_save_IFS 7560 7561 ;; 7562esac 7563fi 7564OCAMLOPT=$ac_cv_path_OCAMLOPT 7565if test -n "$OCAMLOPT"; then 7566 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7567echo "${ECHO_T}$OCAMLOPT" >&6; } 7568else 7569 { echo "$as_me:$LINENO: result: no" >&5 7570echo "${ECHO_T}no" >&6; } 7571fi 7572 7573 7574 test -n "$OCAMLOPT" && break 7575done 7576 7577for ac_prog in ocamldep 7578do 7579 # Extract the first word of "$ac_prog", so it can be a program name with args. 7580set dummy $ac_prog; ac_word=$2 7581{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7583if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7584 echo $ECHO_N "(cached) $ECHO_C" >&6 7585else 7586 case $OCAMLDEP in 7587 [\\/]* | ?:[\\/]*) 7588 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7589 ;; 7590 *) 7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7592for as_dir in $PATH 7593do 7594 IFS=$as_save_IFS 7595 test -z "$as_dir" && as_dir=. 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7598 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602done 7603done 7604IFS=$as_save_IFS 7605 7606 ;; 7607esac 7608fi 7609OCAMLDEP=$ac_cv_path_OCAMLDEP 7610if test -n "$OCAMLDEP"; then 7611 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7612echo "${ECHO_T}$OCAMLDEP" >&6; } 7613else 7614 { echo "$as_me:$LINENO: result: no" >&5 7615echo "${ECHO_T}no" >&6; } 7616fi 7617 7618 7619 test -n "$OCAMLDEP" && break 7620done 7621 7622for ac_prog in ocamldoc 7623do 7624 # Extract the first word of "$ac_prog", so it can be a program name with args. 7625set dummy $ac_prog; ac_word=$2 7626{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7628if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7629 echo $ECHO_N "(cached) $ECHO_C" >&6 7630else 7631 case $OCAMLDOC in 7632 [\\/]* | ?:[\\/]*) 7633 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7634 ;; 7635 *) 7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637for as_dir in $PATH 7638do 7639 IFS=$as_save_IFS 7640 test -z "$as_dir" && as_dir=. 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7643 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7645 break 2 7646 fi 7647done 7648done 7649IFS=$as_save_IFS 7650 7651 ;; 7652esac 7653fi 7654OCAMLDOC=$ac_cv_path_OCAMLDOC 7655if test -n "$OCAMLDOC"; then 7656 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7657echo "${ECHO_T}$OCAMLDOC" >&6; } 7658else 7659 { echo "$as_me:$LINENO: result: no" >&5 7660echo "${ECHO_T}no" >&6; } 7661fi 7662 7663 7664 test -n "$OCAMLDOC" && break 7665done 7666 7667for ac_prog in gas as 7668do 7669 # Extract the first word of "$ac_prog", so it can be a program name with args. 7670set dummy $ac_prog; ac_word=$2 7671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7673if test "${ac_cv_path_GAS+set}" = set; then 7674 echo $ECHO_N "(cached) $ECHO_C" >&6 7675else 7676 case $GAS in 7677 [\\/]* | ?:[\\/]*) 7678 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7679 ;; 7680 *) 7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682for as_dir in $PATH 7683do 7684 IFS=$as_save_IFS 7685 test -z "$as_dir" && as_dir=. 7686 for ac_exec_ext in '' $ac_executable_extensions; do 7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7688 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7690 break 2 7691 fi 7692done 7693done 7694IFS=$as_save_IFS 7695 7696 ;; 7697esac 7698fi 7699GAS=$ac_cv_path_GAS 7700if test -n "$GAS"; then 7701 { echo "$as_me:$LINENO: result: $GAS" >&5 7702echo "${ECHO_T}$GAS" >&6; } 7703else 7704 { echo "$as_me:$LINENO: result: no" >&5 7705echo "${ECHO_T}no" >&6; } 7706fi 7707 7708 7709 test -n "$GAS" && break 7710done 7711 7712 7713{ echo "$as_me:$LINENO: checking for linker version" >&5 7714echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7715if test "${llvm_cv_link_version+set}" = set; then 7716 echo $ECHO_N "(cached) $ECHO_C" >&6 7717else 7718 7719 version_string="$(ld -v 2>&1 | head -1)" 7720 7721 # Check for ld64. 7722 if (echo "$version_string" | grep -q "ld64"); then 7723 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7724 else 7725 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7726 fi 7727 7728fi 7729{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7730echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7731 7732cat >>confdefs.h <<_ACEOF 7733#define HOST_LINK_VERSION "$llvm_cv_link_version" 7734_ACEOF 7735 7736 7737 7738{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7739echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7740if test "${llvm_cv_link_use_r+set}" = set; then 7741 echo $ECHO_N "(cached) $ECHO_C" >&6 7742else 7743 ac_ext=c 7744ac_cpp='$CPP $CPPFLAGS' 7745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7747ac_compiler_gnu=$ac_cv_c_compiler_gnu 7748 7749 oldcflags="$CFLAGS" 7750 CFLAGS="$CFLAGS -Wl,-R." 7751 cat >conftest.$ac_ext <<_ACEOF 7752/* confdefs.h. */ 7753_ACEOF 7754cat confdefs.h >>conftest.$ac_ext 7755cat >>conftest.$ac_ext <<_ACEOF 7756/* end confdefs.h. */ 7757 7758int 7759main () 7760{ 7761 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766rm -f conftest.$ac_objext conftest$ac_exeext 7767if { (ac_try="$ac_link" 7768case "(($ac_try" in 7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7770 *) ac_try_echo=$ac_try;; 7771esac 7772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7773 (eval "$ac_link") 2>conftest.er1 7774 ac_status=$? 7775 grep -v '^ *+' conftest.er1 >conftest.err 7776 rm -f conftest.er1 7777 cat conftest.err >&5 7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7779 (exit $ac_status); } && 7780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7781 { (case "(($ac_try" in 7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7783 *) ac_try_echo=$ac_try;; 7784esac 7785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7786 (eval "$ac_try") 2>&5 7787 ac_status=$? 7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7789 (exit $ac_status); }; } && 7790 { ac_try='test -s conftest$ac_exeext' 7791 { (case "(($ac_try" in 7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7793 *) ac_try_echo=$ac_try;; 7794esac 7795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7796 (eval "$ac_try") 2>&5 7797 ac_status=$? 7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7799 (exit $ac_status); }; }; then 7800 llvm_cv_link_use_r=yes 7801else 7802 echo "$as_me: failed program was:" >&5 7803sed 's/^/| /' conftest.$ac_ext >&5 7804 7805 llvm_cv_link_use_r=no 7806fi 7807 7808rm -f core conftest.err conftest.$ac_objext \ 7809 conftest$ac_exeext conftest.$ac_ext 7810 CFLAGS="$oldcflags" 7811 ac_ext=c 7812ac_cpp='$CPP $CPPFLAGS' 7813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7815ac_compiler_gnu=$ac_cv_c_compiler_gnu 7816 7817 7818fi 7819{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7820echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7821if test "$llvm_cv_link_use_r" = yes ; then 7822 7823cat >>confdefs.h <<\_ACEOF 7824#define HAVE_LINK_R 1 7825_ACEOF 7826 7827 fi 7828 7829 7830{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7831echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7832if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7833 echo $ECHO_N "(cached) $ECHO_C" >&6 7834else 7835 ac_ext=c 7836ac_cpp='$CPP $CPPFLAGS' 7837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7839ac_compiler_gnu=$ac_cv_c_compiler_gnu 7840 7841 oldcflags="$CFLAGS" 7842 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7843 cat >conftest.$ac_ext <<_ACEOF 7844/* confdefs.h. */ 7845_ACEOF 7846cat confdefs.h >>conftest.$ac_ext 7847cat >>conftest.$ac_ext <<_ACEOF 7848/* end confdefs.h. */ 7849 7850int 7851main () 7852{ 7853 7854 ; 7855 return 0; 7856} 7857_ACEOF 7858rm -f conftest.$ac_objext conftest$ac_exeext 7859if { (ac_try="$ac_link" 7860case "(($ac_try" in 7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7862 *) ac_try_echo=$ac_try;; 7863esac 7864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7865 (eval "$ac_link") 2>conftest.er1 7866 ac_status=$? 7867 grep -v '^ *+' conftest.er1 >conftest.err 7868 rm -f conftest.er1 7869 cat conftest.err >&5 7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7871 (exit $ac_status); } && 7872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7873 { (case "(($ac_try" in 7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7875 *) ac_try_echo=$ac_try;; 7876esac 7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7878 (eval "$ac_try") 2>&5 7879 ac_status=$? 7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7881 (exit $ac_status); }; } && 7882 { ac_try='test -s conftest$ac_exeext' 7883 { (case "(($ac_try" in 7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7885 *) ac_try_echo=$ac_try;; 7886esac 7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7888 (eval "$ac_try") 2>&5 7889 ac_status=$? 7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7891 (exit $ac_status); }; }; then 7892 llvm_cv_link_use_export_dynamic=yes 7893else 7894 echo "$as_me: failed program was:" >&5 7895sed 's/^/| /' conftest.$ac_ext >&5 7896 7897 llvm_cv_link_use_export_dynamic=no 7898fi 7899 7900rm -f core conftest.err conftest.$ac_objext \ 7901 conftest$ac_exeext conftest.$ac_ext 7902 CFLAGS="$oldcflags" 7903 ac_ext=c 7904ac_cpp='$CPP $CPPFLAGS' 7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7907ac_compiler_gnu=$ac_cv_c_compiler_gnu 7908 7909 7910fi 7911{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7912echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7913if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7914 7915cat >>confdefs.h <<\_ACEOF 7916#define HAVE_LINK_EXPORT_DYNAMIC 1 7917_ACEOF 7918 7919 fi 7920 7921 7922{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7923echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7924if test "${llvm_cv_link_use_version_script+set}" = set; then 7925 echo $ECHO_N "(cached) $ECHO_C" >&6 7926else 7927 ac_ext=c 7928ac_cpp='$CPP $CPPFLAGS' 7929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7931ac_compiler_gnu=$ac_cv_c_compiler_gnu 7932 7933 oldcflags="$CFLAGS" 7934 7935 # The following code is from the autoconf manual, 7936 # "11.13: Limitations of Usual Tools". 7937 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7938 # Use mktemp if possible; otherwise fall back on mkdir, 7939 # with $RANDOM to make collisions less likely. 7940 : ${TMPDIR=/tmp} 7941 { 7942 tmp=` 7943 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7944 ` && 7945 test -n "$tmp" && test -d "$tmp" 7946 } || { 7947 tmp=$TMPDIR/foo$$-$RANDOM 7948 (umask 077 && mkdir "$tmp") 7949 } || exit $? 7950 7951 echo "{" > "$tmp/export.map" 7952 echo " global: main;" >> "$tmp/export.map" 7953 echo " local: *;" >> "$tmp/export.map" 7954 echo "};" >> "$tmp/export.map" 7955 7956 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7957 cat >conftest.$ac_ext <<_ACEOF 7958/* confdefs.h. */ 7959_ACEOF 7960cat confdefs.h >>conftest.$ac_ext 7961cat >>conftest.$ac_ext <<_ACEOF 7962/* end confdefs.h. */ 7963 7964int 7965main () 7966{ 7967 7968 ; 7969 return 0; 7970} 7971_ACEOF 7972rm -f conftest.$ac_objext conftest$ac_exeext 7973if { (ac_try="$ac_link" 7974case "(($ac_try" in 7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7976 *) ac_try_echo=$ac_try;; 7977esac 7978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7979 (eval "$ac_link") 2>conftest.er1 7980 ac_status=$? 7981 grep -v '^ *+' conftest.er1 >conftest.err 7982 rm -f conftest.er1 7983 cat conftest.err >&5 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7985 (exit $ac_status); } && 7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7987 { (case "(($ac_try" in 7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7989 *) ac_try_echo=$ac_try;; 7990esac 7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7992 (eval "$ac_try") 2>&5 7993 ac_status=$? 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 (exit $ac_status); }; } && 7996 { ac_try='test -s conftest$ac_exeext' 7997 { (case "(($ac_try" in 7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7999 *) ac_try_echo=$ac_try;; 8000esac 8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8002 (eval "$ac_try") 2>&5 8003 ac_status=$? 8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 (exit $ac_status); }; }; then 8006 llvm_cv_link_use_version_script=yes 8007else 8008 echo "$as_me: failed program was:" >&5 8009sed 's/^/| /' conftest.$ac_ext >&5 8010 8011 llvm_cv_link_use_version_script=no 8012fi 8013 8014rm -f core conftest.err conftest.$ac_objext \ 8015 conftest$ac_exeext conftest.$ac_ext 8016 rm "$tmp/export.map" 8017 rmdir "$tmp" 8018 CFLAGS="$oldcflags" 8019 ac_ext=c 8020ac_cpp='$CPP $CPPFLAGS' 8021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8023ac_compiler_gnu=$ac_cv_c_compiler_gnu 8024 8025 8026fi 8027{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8028echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8029if test "$llvm_cv_link_use_version_script" = yes ; then 8030 HAVE_LINK_VERSION_SCRIPT=1 8031 8032 fi 8033 8034 8035 8036 8037{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8038echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8039if test "${ac_cv_c_const+set}" = set; then 8040 echo $ECHO_N "(cached) $ECHO_C" >&6 8041else 8042 cat >conftest.$ac_ext <<_ACEOF 8043/* confdefs.h. */ 8044_ACEOF 8045cat confdefs.h >>conftest.$ac_ext 8046cat >>conftest.$ac_ext <<_ACEOF 8047/* end confdefs.h. */ 8048 8049int 8050main () 8051{ 8052/* FIXME: Include the comments suggested by Paul. */ 8053#ifndef __cplusplus 8054 /* Ultrix mips cc rejects this. */ 8055 typedef int charset[2]; 8056 const charset x; 8057 /* SunOS 4.1.1 cc rejects this. */ 8058 char const *const *ccp; 8059 char **p; 8060 /* NEC SVR4.0.2 mips cc rejects this. */ 8061 struct point {int x, y;}; 8062 static struct point const zero = {0,0}; 8063 /* AIX XL C 1.02.0.0 rejects this. 8064 It does not let you subtract one const X* pointer from another in 8065 an arm of an if-expression whose if-part is not a constant 8066 expression */ 8067 const char *g = "string"; 8068 ccp = &g + (g ? g-g : 0); 8069 /* HPUX 7.0 cc rejects these. */ 8070 ++ccp; 8071 p = (char**) ccp; 8072 ccp = (char const *const *) p; 8073 { /* SCO 3.2v4 cc rejects this. */ 8074 char *t; 8075 char const *s = 0 ? (char *) 0 : (char const *) 0; 8076 8077 *t++ = 0; 8078 if (s) return 0; 8079 } 8080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8081 int x[] = {25, 17}; 8082 const int *foo = &x[0]; 8083 ++foo; 8084 } 8085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8086 typedef const int *iptr; 8087 iptr p = 0; 8088 ++p; 8089 } 8090 { /* AIX XL C 1.02.0.0 rejects this saying 8091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8092 struct s { int j; const int *ap[3]; }; 8093 struct s *b; b->j = 5; 8094 } 8095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8096 const int foo = 10; 8097 if (!foo) return 0; 8098 } 8099 return !x[0] && !zero.x; 8100#endif 8101 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106rm -f conftest.$ac_objext 8107if { (ac_try="$ac_compile" 8108case "(($ac_try" in 8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8110 *) ac_try_echo=$ac_try;; 8111esac 8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8113 (eval "$ac_compile") 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && 8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8121 { (case "(($ac_try" in 8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8123 *) ac_try_echo=$ac_try;; 8124esac 8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8126 (eval "$ac_try") 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); }; } && 8130 { ac_try='test -s conftest.$ac_objext' 8131 { (case "(($ac_try" in 8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8133 *) ac_try_echo=$ac_try;; 8134esac 8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8136 (eval "$ac_try") 2>&5 8137 ac_status=$? 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 (exit $ac_status); }; }; then 8140 ac_cv_c_const=yes 8141else 8142 echo "$as_me: failed program was:" >&5 8143sed 's/^/| /' conftest.$ac_ext >&5 8144 8145 ac_cv_c_const=no 8146fi 8147 8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8149fi 8150{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8151echo "${ECHO_T}$ac_cv_c_const" >&6; } 8152if test $ac_cv_c_const = no; then 8153 8154cat >>confdefs.h <<\_ACEOF 8155#define const 8156_ACEOF 8157 8158fi 8159 8160 8161 8162 8163 8164 8165ac_header_dirent=no 8166for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8167 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8168{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8169echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8171 echo $ECHO_N "(cached) $ECHO_C" >&6 8172else 8173 cat >conftest.$ac_ext <<_ACEOF 8174/* confdefs.h. */ 8175_ACEOF 8176cat confdefs.h >>conftest.$ac_ext 8177cat >>conftest.$ac_ext <<_ACEOF 8178/* end confdefs.h. */ 8179#include <sys/types.h> 8180#include <$ac_hdr> 8181 8182int 8183main () 8184{ 8185if ((DIR *) 0) 8186return 0; 8187 ; 8188 return 0; 8189} 8190_ACEOF 8191rm -f conftest.$ac_objext 8192if { (ac_try="$ac_compile" 8193case "(($ac_try" in 8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8195 *) ac_try_echo=$ac_try;; 8196esac 8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8198 (eval "$ac_compile") 2>conftest.er1 8199 ac_status=$? 8200 grep -v '^ *+' conftest.er1 >conftest.err 8201 rm -f conftest.er1 8202 cat conftest.err >&5 8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8204 (exit $ac_status); } && 8205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8206 { (case "(($ac_try" in 8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8208 *) ac_try_echo=$ac_try;; 8209esac 8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8211 (eval "$ac_try") 2>&5 8212 ac_status=$? 8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8214 (exit $ac_status); }; } && 8215 { ac_try='test -s conftest.$ac_objext' 8216 { (case "(($ac_try" in 8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8218 *) ac_try_echo=$ac_try;; 8219esac 8220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8221 (eval "$ac_try") 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); }; }; then 8225 eval "$as_ac_Header=yes" 8226else 8227 echo "$as_me: failed program was:" >&5 8228sed 's/^/| /' conftest.$ac_ext >&5 8229 8230 eval "$as_ac_Header=no" 8231fi 8232 8233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8234fi 8235ac_res=`eval echo '${'$as_ac_Header'}'` 8236 { echo "$as_me:$LINENO: result: $ac_res" >&5 8237echo "${ECHO_T}$ac_res" >&6; } 8238if test `eval echo '${'$as_ac_Header'}'` = yes; then 8239 cat >>confdefs.h <<_ACEOF 8240#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8241_ACEOF 8242 8243ac_header_dirent=$ac_hdr; break 8244fi 8245 8246done 8247# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8248if test $ac_header_dirent = dirent.h; then 8249 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8250echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8251if test "${ac_cv_search_opendir+set}" = set; then 8252 echo $ECHO_N "(cached) $ECHO_C" >&6 8253else 8254 ac_func_search_save_LIBS=$LIBS 8255cat >conftest.$ac_ext <<_ACEOF 8256/* confdefs.h. */ 8257_ACEOF 8258cat confdefs.h >>conftest.$ac_ext 8259cat >>conftest.$ac_ext <<_ACEOF 8260/* end confdefs.h. */ 8261 8262/* Override any GCC internal prototype to avoid an error. 8263 Use char because int might match the return type of a GCC 8264 builtin and then its argument prototype would still apply. */ 8265#ifdef __cplusplus 8266extern "C" 8267#endif 8268char opendir (); 8269int 8270main () 8271{ 8272return opendir (); 8273 ; 8274 return 0; 8275} 8276_ACEOF 8277for ac_lib in '' dir; do 8278 if test -z "$ac_lib"; then 8279 ac_res="none required" 8280 else 8281 ac_res=-l$ac_lib 8282 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8283 fi 8284 rm -f conftest.$ac_objext conftest$ac_exeext 8285if { (ac_try="$ac_link" 8286case "(($ac_try" in 8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8288 *) ac_try_echo=$ac_try;; 8289esac 8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8291 (eval "$ac_link") 2>conftest.er1 8292 ac_status=$? 8293 grep -v '^ *+' conftest.er1 >conftest.err 8294 rm -f conftest.er1 8295 cat conftest.err >&5 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); } && 8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8299 { (case "(($ac_try" in 8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8301 *) ac_try_echo=$ac_try;; 8302esac 8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8304 (eval "$ac_try") 2>&5 8305 ac_status=$? 8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 (exit $ac_status); }; } && 8308 { ac_try='test -s conftest$ac_exeext' 8309 { (case "(($ac_try" in 8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8311 *) ac_try_echo=$ac_try;; 8312esac 8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8314 (eval "$ac_try") 2>&5 8315 ac_status=$? 8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 (exit $ac_status); }; }; then 8318 ac_cv_search_opendir=$ac_res 8319else 8320 echo "$as_me: failed program was:" >&5 8321sed 's/^/| /' conftest.$ac_ext >&5 8322 8323 8324fi 8325 8326rm -f core conftest.err conftest.$ac_objext \ 8327 conftest$ac_exeext 8328 if test "${ac_cv_search_opendir+set}" = set; then 8329 break 8330fi 8331done 8332if test "${ac_cv_search_opendir+set}" = set; then 8333 : 8334else 8335 ac_cv_search_opendir=no 8336fi 8337rm conftest.$ac_ext 8338LIBS=$ac_func_search_save_LIBS 8339fi 8340{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8341echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8342ac_res=$ac_cv_search_opendir 8343if test "$ac_res" != no; then 8344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8345 8346fi 8347 8348else 8349 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8350echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8351if test "${ac_cv_search_opendir+set}" = set; then 8352 echo $ECHO_N "(cached) $ECHO_C" >&6 8353else 8354 ac_func_search_save_LIBS=$LIBS 8355cat >conftest.$ac_ext <<_ACEOF 8356/* confdefs.h. */ 8357_ACEOF 8358cat confdefs.h >>conftest.$ac_ext 8359cat >>conftest.$ac_ext <<_ACEOF 8360/* end confdefs.h. */ 8361 8362/* Override any GCC internal prototype to avoid an error. 8363 Use char because int might match the return type of a GCC 8364 builtin and then its argument prototype would still apply. */ 8365#ifdef __cplusplus 8366extern "C" 8367#endif 8368char opendir (); 8369int 8370main () 8371{ 8372return opendir (); 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377for ac_lib in '' x; do 8378 if test -z "$ac_lib"; then 8379 ac_res="none required" 8380 else 8381 ac_res=-l$ac_lib 8382 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8383 fi 8384 rm -f conftest.$ac_objext conftest$ac_exeext 8385if { (ac_try="$ac_link" 8386case "(($ac_try" in 8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8388 *) ac_try_echo=$ac_try;; 8389esac 8390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8391 (eval "$ac_link") 2>conftest.er1 8392 ac_status=$? 8393 grep -v '^ *+' conftest.er1 >conftest.err 8394 rm -f conftest.er1 8395 cat conftest.err >&5 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8397 (exit $ac_status); } && 8398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8399 { (case "(($ac_try" in 8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8401 *) ac_try_echo=$ac_try;; 8402esac 8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8404 (eval "$ac_try") 2>&5 8405 ac_status=$? 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); }; } && 8408 { ac_try='test -s conftest$ac_exeext' 8409 { (case "(($ac_try" in 8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8411 *) ac_try_echo=$ac_try;; 8412esac 8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8414 (eval "$ac_try") 2>&5 8415 ac_status=$? 8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8417 (exit $ac_status); }; }; then 8418 ac_cv_search_opendir=$ac_res 8419else 8420 echo "$as_me: failed program was:" >&5 8421sed 's/^/| /' conftest.$ac_ext >&5 8422 8423 8424fi 8425 8426rm -f core conftest.err conftest.$ac_objext \ 8427 conftest$ac_exeext 8428 if test "${ac_cv_search_opendir+set}" = set; then 8429 break 8430fi 8431done 8432if test "${ac_cv_search_opendir+set}" = set; then 8433 : 8434else 8435 ac_cv_search_opendir=no 8436fi 8437rm conftest.$ac_ext 8438LIBS=$ac_func_search_save_LIBS 8439fi 8440{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8441echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8442ac_res=$ac_cv_search_opendir 8443if test "$ac_res" != no; then 8444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8445 8446fi 8447 8448fi 8449 8450 8451for ac_header in dlfcn.h 8452do 8453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8455 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8458 echo $ECHO_N "(cached) $ECHO_C" >&6 8459fi 8460ac_res=`eval echo '${'$as_ac_Header'}'` 8461 { echo "$as_me:$LINENO: result: $ac_res" >&5 8462echo "${ECHO_T}$ac_res" >&6; } 8463else 8464 # Is the header compilable? 8465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8467cat >conftest.$ac_ext <<_ACEOF 8468/* confdefs.h. */ 8469_ACEOF 8470cat confdefs.h >>conftest.$ac_ext 8471cat >>conftest.$ac_ext <<_ACEOF 8472/* end confdefs.h. */ 8473$ac_includes_default 8474#include <$ac_header> 8475_ACEOF 8476rm -f conftest.$ac_objext 8477if { (ac_try="$ac_compile" 8478case "(($ac_try" in 8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8480 *) ac_try_echo=$ac_try;; 8481esac 8482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8483 (eval "$ac_compile") 2>conftest.er1 8484 ac_status=$? 8485 grep -v '^ *+' conftest.er1 >conftest.err 8486 rm -f conftest.er1 8487 cat conftest.err >&5 8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 (exit $ac_status); } && 8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8491 { (case "(($ac_try" in 8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8493 *) ac_try_echo=$ac_try;; 8494esac 8495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8496 (eval "$ac_try") 2>&5 8497 ac_status=$? 8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8499 (exit $ac_status); }; } && 8500 { ac_try='test -s conftest.$ac_objext' 8501 { (case "(($ac_try" in 8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8503 *) ac_try_echo=$ac_try;; 8504esac 8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8506 (eval "$ac_try") 2>&5 8507 ac_status=$? 8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); }; }; then 8510 ac_header_compiler=yes 8511else 8512 echo "$as_me: failed program was:" >&5 8513sed 's/^/| /' conftest.$ac_ext >&5 8514 8515 ac_header_compiler=no 8516fi 8517 8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8520echo "${ECHO_T}$ac_header_compiler" >&6; } 8521 8522# Is the header present? 8523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8525cat >conftest.$ac_ext <<_ACEOF 8526/* confdefs.h. */ 8527_ACEOF 8528cat confdefs.h >>conftest.$ac_ext 8529cat >>conftest.$ac_ext <<_ACEOF 8530/* end confdefs.h. */ 8531#include <$ac_header> 8532_ACEOF 8533if { (ac_try="$ac_cpp conftest.$ac_ext" 8534case "(($ac_try" in 8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8536 *) ac_try_echo=$ac_try;; 8537esac 8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8540 ac_status=$? 8541 grep -v '^ *+' conftest.er1 >conftest.err 8542 rm -f conftest.er1 8543 cat conftest.err >&5 8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8545 (exit $ac_status); } >/dev/null; then 8546 if test -s conftest.err; then 8547 ac_cpp_err=$ac_c_preproc_warn_flag 8548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8549 else 8550 ac_cpp_err= 8551 fi 8552else 8553 ac_cpp_err=yes 8554fi 8555if test -z "$ac_cpp_err"; then 8556 ac_header_preproc=yes 8557else 8558 echo "$as_me: failed program was:" >&5 8559sed 's/^/| /' conftest.$ac_ext >&5 8560 8561 ac_header_preproc=no 8562fi 8563 8564rm -f conftest.err conftest.$ac_ext 8565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8566echo "${ECHO_T}$ac_header_preproc" >&6; } 8567 8568# So? What about this header? 8569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8570 yes:no: ) 8571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8575 ac_header_preproc=yes 8576 ;; 8577 no:yes:* ) 8578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8590 ( cat <<\_ASBOX 8591## ------------------------------------ ## 8592## Report this to http://llvm.org/bugs/ ## 8593## ------------------------------------ ## 8594_ASBOX 8595 ) | sed "s/^/$as_me: WARNING: /" >&2 8596 ;; 8597esac 8598{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8601 echo $ECHO_N "(cached) $ECHO_C" >&6 8602else 8603 eval "$as_ac_Header=\$ac_header_preproc" 8604fi 8605ac_res=`eval echo '${'$as_ac_Header'}'` 8606 { echo "$as_me:$LINENO: result: $ac_res" >&5 8607echo "${ECHO_T}$ac_res" >&6; } 8608 8609fi 8610if test `eval echo '${'$as_ac_Header'}'` = yes; then 8611 cat >>confdefs.h <<_ACEOF 8612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8613_ACEOF 8614 8615fi 8616 8617done 8618 8619# Check whether --enable-ltdl-install was given. 8620if test "${enable_ltdl_install+set}" = set; then 8621 enableval=$enable_ltdl_install; 8622fi 8623 8624 8625 8626 8627if test x"${enable_ltdl_install-no}" != xno; then 8628 INSTALL_LTDL_TRUE= 8629 INSTALL_LTDL_FALSE='#' 8630else 8631 INSTALL_LTDL_TRUE='#' 8632 INSTALL_LTDL_FALSE= 8633fi 8634 8635 8636 8637if test x"${enable_ltdl_convenience-no}" != xno; then 8638 CONVENIENCE_LTDL_TRUE= 8639 CONVENIENCE_LTDL_FALSE='#' 8640else 8641 CONVENIENCE_LTDL_TRUE='#' 8642 CONVENIENCE_LTDL_FALSE= 8643fi 8644 8645 8646{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8647echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8648library_names_spec= 8649libname_spec='lib$name' 8650soname_spec= 8651shrext_cmds=".so" 8652postinstall_cmds= 8653postuninstall_cmds= 8654finish_cmds= 8655finish_eval= 8656shlibpath_var= 8657shlibpath_overrides_runpath=unknown 8658version_type=none 8659dynamic_linker="$host_os ld.so" 8660sys_lib_dlsearch_path_spec="/lib /usr/lib" 8661if test "$GCC" = yes; then 8662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8664 # if the path contains ";" then we assume it to be the separator 8665 # otherwise default to the standard path separator (i.e. ":") - it is 8666 # assumed that no part of a normal pathname contains ";" but that should 8667 # okay in the real world where ";" in dirpaths is itself problematic. 8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8669 else 8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8671 fi 8672else 8673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8674fi 8675need_lib_prefix=unknown 8676hardcode_into_libs=no 8677 8678# when you set need_version to no, make sure it does not cause -set_version 8679# flags to be left without arguments 8680need_version=unknown 8681 8682case $host_os in 8683aix3*) 8684 version_type=linux 8685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8686 shlibpath_var=LIBPATH 8687 8688 # AIX 3 has no versioning support, so we append a major version to the name. 8689 soname_spec='${libname}${release}${shared_ext}$major' 8690 ;; 8691 8692aix4* | aix5*) 8693 version_type=linux 8694 need_lib_prefix=no 8695 need_version=no 8696 hardcode_into_libs=yes 8697 if test "$host_cpu" = ia64; then 8698 # AIX 5 supports IA64 8699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8700 shlibpath_var=LD_LIBRARY_PATH 8701 else 8702 # With GCC up to 2.95.x, collect2 would create an import file 8703 # for dependence libraries. The import file would start with 8704 # the line `#! .'. This would cause the generated library to 8705 # depend on `.', always an invalid library. This was fixed in 8706 # development snapshots of GCC prior to 3.0. 8707 case $host_os in 8708 aix4 | aix4.[01] | aix4.[01].*) 8709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8710 echo ' yes ' 8711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8712 : 8713 else 8714 can_build_shared=no 8715 fi 8716 ;; 8717 esac 8718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8719 # soname into executable. Probably we can add versioning support to 8720 # collect2, so additional links can be useful in future. 8721 if test "$aix_use_runtimelinking" = yes; then 8722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8723 # instead of lib<name>.a to let people know that these are not 8724 # typical AIX shared libraries. 8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8726 else 8727 # We preserve .a as extension for shared libraries through AIX4.2 8728 # and later when we are not doing run time linking. 8729 library_names_spec='${libname}${release}.a $libname.a' 8730 soname_spec='${libname}${release}${shared_ext}$major' 8731 fi 8732 shlibpath_var=LIBPATH 8733 fi 8734 ;; 8735 8736amigaos*) 8737 library_names_spec='$libname.ixlibrary $libname.a' 8738 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8739 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' 8740 ;; 8741 8742beos*) 8743 library_names_spec='${libname}${shared_ext}' 8744 dynamic_linker="$host_os ld.so" 8745 shlibpath_var=LIBRARY_PATH 8746 ;; 8747 8748bsdi[45]*) 8749 version_type=linux 8750 need_version=no 8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8752 soname_spec='${libname}${release}${shared_ext}$major' 8753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8754 shlibpath_var=LD_LIBRARY_PATH 8755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8757 # the default ld.so.conf also contains /usr/contrib/lib and 8758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8759 # libtool to hard-code these into programs 8760 ;; 8761 8762cygwin* | mingw* | pw32*) 8763 version_type=windows 8764 shrext_cmds=".dll" 8765 need_version=no 8766 need_lib_prefix=no 8767 8768 case $GCC,$host_os in 8769 yes,cygwin* | yes,mingw* | yes,pw32*) 8770 library_names_spec='$libname.dll.a' 8771 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8772 postinstall_cmds='base_file=`basename \${file}`~ 8773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8774 dldir=$destdir/`dirname \$dlpath`~ 8775 test -d \$dldir || mkdir -p \$dldir~ 8776 $install_prog $dir/$dlname \$dldir/$dlname~ 8777 chmod a+x \$dldir/$dlname' 8778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8779 dlpath=$dir/\$dldll~ 8780 $rm \$dlpath' 8781 shlibpath_overrides_runpath=yes 8782 8783 case $host_os in 8784 cygwin*) 8785 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8788 ;; 8789 mingw*) 8790 # MinGW DLLs use traditional 'lib' prefix 8791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8794 # It is most probably a Windows format PATH printed by 8795 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8796 # path with ; separators, and with drive letters. We can handle the 8797 # drive letters (cygwin fileutils understands them), so leave them, 8798 # especially as we might pass files found there to a mingw objdump, 8799 # which wouldn't understand a cygwinified path. Ahh. 8800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8801 else 8802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8803 fi 8804 ;; 8805 pw32*) 8806 # pw32 DLLs use 'pw' prefix rather than 'lib' 8807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8808 ;; 8809 esac 8810 ;; 8811 8812 *) 8813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8814 ;; 8815 esac 8816 dynamic_linker='Win32 ld.exe' 8817 # FIXME: first we should search . and the directory the executable is in 8818 shlibpath_var=PATH 8819 ;; 8820 8821darwin* | rhapsody*) 8822 dynamic_linker="$host_os dyld" 8823 version_type=darwin 8824 need_lib_prefix=no 8825 need_version=no 8826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8827 soname_spec='${libname}${release}${major}$shared_ext' 8828 shlibpath_overrides_runpath=yes 8829 shlibpath_var=DYLD_LIBRARY_PATH 8830 shrext_cmds='.dylib' 8831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8832 if test "$GCC" = yes; then 8833 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"` 8834 else 8835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8836 fi 8837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8838 ;; 8839 8840dgux*) 8841 version_type=linux 8842 need_lib_prefix=no 8843 need_version=no 8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8845 soname_spec='${libname}${release}${shared_ext}$major' 8846 shlibpath_var=LD_LIBRARY_PATH 8847 ;; 8848 8849freebsd1.*) 8850 dynamic_linker=no 8851 ;; 8852 8853kfreebsd*-gnu) 8854 version_type=linux 8855 need_lib_prefix=no 8856 need_version=no 8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8858 soname_spec='${libname}${release}${shared_ext}$major' 8859 shlibpath_var=LD_LIBRARY_PATH 8860 shlibpath_overrides_runpath=no 8861 hardcode_into_libs=yes 8862 dynamic_linker='GNU ld.so' 8863 ;; 8864 8865freebsd* | dragonfly*) 8866 # DragonFly does not have aout. When/if they implement a new 8867 # versioning mechanism, adjust this. 8868 if test -x /usr/bin/objformat; then 8869 objformat=`/usr/bin/objformat` 8870 else 8871 case $host_os in 8872 freebsd[123].*) objformat=aout ;; 8873 *) objformat=elf ;; 8874 esac 8875 fi 8876 version_type=freebsd-$objformat 8877 case $version_type in 8878 freebsd-elf*) 8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8880 need_version=no 8881 need_lib_prefix=no 8882 ;; 8883 freebsd-*) 8884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8885 need_version=yes 8886 ;; 8887 esac 8888 shlibpath_var=LD_LIBRARY_PATH 8889 case $host_os in 8890 freebsd2.*) 8891 shlibpath_overrides_runpath=yes 8892 ;; 8893 freebsd3.[01]* | freebsdelf3.[01]*) 8894 shlibpath_overrides_runpath=yes 8895 hardcode_into_libs=yes 8896 ;; 8897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8899 shlibpath_overrides_runpath=no 8900 hardcode_into_libs=yes 8901 ;; 8902 freebsd*) # from 4.6 on 8903 shlibpath_overrides_runpath=yes 8904 hardcode_into_libs=yes 8905 ;; 8906 esac 8907 ;; 8908 8909gnu*) 8910 version_type=linux 8911 need_lib_prefix=no 8912 need_version=no 8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8914 soname_spec='${libname}${release}${shared_ext}$major' 8915 shlibpath_var=LD_LIBRARY_PATH 8916 hardcode_into_libs=yes 8917 ;; 8918 8919hpux9* | hpux10* | hpux11*) 8920 # Give a soname corresponding to the major version so that dld.sl refuses to 8921 # link against other versions. 8922 version_type=sunos 8923 need_lib_prefix=no 8924 need_version=no 8925 case $host_cpu in 8926 ia64*) 8927 shrext_cmds='.so' 8928 hardcode_into_libs=yes 8929 dynamic_linker="$host_os dld.so" 8930 shlibpath_var=LD_LIBRARY_PATH 8931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8933 soname_spec='${libname}${release}${shared_ext}$major' 8934 if test "X$HPUX_IA64_MODE" = X32; then 8935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8936 else 8937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8938 fi 8939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8940 ;; 8941 hppa*64*) 8942 shrext_cmds='.sl' 8943 hardcode_into_libs=yes 8944 dynamic_linker="$host_os dld.sl" 8945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8951 ;; 8952 *) 8953 shrext_cmds='.sl' 8954 dynamic_linker="$host_os dld.sl" 8955 shlibpath_var=SHLIB_PATH 8956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8958 soname_spec='${libname}${release}${shared_ext}$major' 8959 ;; 8960 esac 8961 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8962 postinstall_cmds='chmod 555 $lib' 8963 ;; 8964 8965interix3*) 8966 version_type=linux 8967 need_lib_prefix=no 8968 need_version=no 8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8970 soname_spec='${libname}${release}${shared_ext}$major' 8971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8972 shlibpath_var=LD_LIBRARY_PATH 8973 shlibpath_overrides_runpath=no 8974 hardcode_into_libs=yes 8975 ;; 8976 8977irix5* | irix6* | nonstopux*) 8978 case $host_os in 8979 nonstopux*) version_type=nonstopux ;; 8980 *) 8981 if test "$lt_cv_prog_gnu_ld" = yes; then 8982 version_type=linux 8983 else 8984 version_type=irix 8985 fi ;; 8986 esac 8987 need_lib_prefix=no 8988 need_version=no 8989 soname_spec='${libname}${release}${shared_ext}$major' 8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8991 case $host_os in 8992 irix5* | nonstopux*) 8993 libsuff= shlibsuff= 8994 ;; 8995 *) 8996 case $LD in # libtool.m4 will add one of these switches to LD 8997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8998 libsuff= shlibsuff= libmagic=32-bit;; 8999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9000 libsuff=32 shlibsuff=N32 libmagic=N32;; 9001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9002 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9003 *) libsuff= shlibsuff= libmagic=never-match;; 9004 esac 9005 ;; 9006 esac 9007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9008 shlibpath_overrides_runpath=no 9009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9011 hardcode_into_libs=yes 9012 ;; 9013 9014# No shared lib support for Linux oldld, aout, or coff. 9015linux*oldld* | linux*aout* | linux*coff*) 9016 dynamic_linker=no 9017 ;; 9018 9019# This must be Linux ELF. 9020linux*) 9021 version_type=linux 9022 need_lib_prefix=no 9023 need_version=no 9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9025 soname_spec='${libname}${release}${shared_ext}$major' 9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9027 shlibpath_var=LD_LIBRARY_PATH 9028 shlibpath_overrides_runpath=no 9029 # This implies no fast_install, which is unacceptable. 9030 # Some rework will be needed to allow for fast_install 9031 # before this can be enabled. 9032 hardcode_into_libs=yes 9033 9034 # Append ld.so.conf contents to the search path 9035 if test -f /etc/ld.so.conf; then 9036 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' ' '` 9037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9038 fi 9039 9040 # We used to test for /lib/ld.so.1 and disable shared libraries on 9041 # powerpc, because MkLinux only supported shared libraries with the 9042 # GNU dynamic linker. Since this was broken with cross compilers, 9043 # most powerpc-linux boxes support dynamic linking these days and 9044 # people can always --disable-shared, the test was removed, and we 9045 # assume the GNU/Linux dynamic linker is in use. 9046 dynamic_linker='GNU/Linux ld.so' 9047 ;; 9048 9049knetbsd*-gnu) 9050 version_type=linux 9051 need_lib_prefix=no 9052 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 9056 shlibpath_overrides_runpath=no 9057 hardcode_into_libs=yes 9058 dynamic_linker='GNU ld.so' 9059 ;; 9060 9061netbsd*) 9062 version_type=sunos 9063 need_lib_prefix=no 9064 need_version=no 9065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9068 dynamic_linker='NetBSD (a.out) ld.so' 9069 else 9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9071 soname_spec='${libname}${release}${shared_ext}$major' 9072 dynamic_linker='NetBSD ld.elf_so' 9073 fi 9074 shlibpath_var=LD_LIBRARY_PATH 9075 shlibpath_overrides_runpath=yes 9076 hardcode_into_libs=yes 9077 ;; 9078 9079newsos6) 9080 version_type=linux 9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9082 shlibpath_var=LD_LIBRARY_PATH 9083 shlibpath_overrides_runpath=yes 9084 ;; 9085 9086nto-qnx*) 9087 version_type=linux 9088 need_lib_prefix=no 9089 need_version=no 9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 shlibpath_var=LD_LIBRARY_PATH 9093 shlibpath_overrides_runpath=yes 9094 ;; 9095 9096openbsd*) 9097 version_type=sunos 9098 sys_lib_dlsearch_path_spec="/usr/lib" 9099 need_lib_prefix=no 9100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9101 case $host_os in 9102 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9103 *) need_version=no ;; 9104 esac 9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9107 shlibpath_var=LD_LIBRARY_PATH 9108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9109 case $host_os in 9110 openbsd2.[89] | openbsd2.[89].*) 9111 shlibpath_overrides_runpath=no 9112 ;; 9113 *) 9114 shlibpath_overrides_runpath=yes 9115 ;; 9116 esac 9117 else 9118 shlibpath_overrides_runpath=yes 9119 fi 9120 ;; 9121 9122os2*) 9123 libname_spec='$name' 9124 shrext_cmds=".dll" 9125 need_lib_prefix=no 9126 library_names_spec='$libname${shared_ext} $libname.a' 9127 dynamic_linker='OS/2 ld.exe' 9128 shlibpath_var=LIBPATH 9129 ;; 9130 9131osf3* | osf4* | osf5*) 9132 version_type=osf 9133 need_lib_prefix=no 9134 need_version=no 9135 soname_spec='${libname}${release}${shared_ext}$major' 9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9137 shlibpath_var=LD_LIBRARY_PATH 9138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9140 ;; 9141 9142solaris*) 9143 version_type=linux 9144 need_lib_prefix=no 9145 need_version=no 9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9147 soname_spec='${libname}${release}${shared_ext}$major' 9148 shlibpath_var=LD_LIBRARY_PATH 9149 shlibpath_overrides_runpath=yes 9150 hardcode_into_libs=yes 9151 # ldd complains unless libraries are executable 9152 postinstall_cmds='chmod +x $lib' 9153 ;; 9154 9155sunos4*) 9156 version_type=sunos 9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9159 shlibpath_var=LD_LIBRARY_PATH 9160 shlibpath_overrides_runpath=yes 9161 if test "$with_gnu_ld" = yes; then 9162 need_lib_prefix=no 9163 fi 9164 need_version=yes 9165 ;; 9166 9167sysv4 | sysv4.3*) 9168 version_type=linux 9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9170 soname_spec='${libname}${release}${shared_ext}$major' 9171 shlibpath_var=LD_LIBRARY_PATH 9172 case $host_vendor in 9173 sni) 9174 shlibpath_overrides_runpath=no 9175 need_lib_prefix=no 9176 export_dynamic_flag_spec='${wl}-Blargedynsym' 9177 runpath_var=LD_RUN_PATH 9178 ;; 9179 siemens) 9180 need_lib_prefix=no 9181 ;; 9182 motorola) 9183 need_lib_prefix=no 9184 need_version=no 9185 shlibpath_overrides_runpath=no 9186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9187 ;; 9188 esac 9189 ;; 9190 9191sysv4*MP*) 9192 if test -d /usr/nec ;then 9193 version_type=linux 9194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9195 soname_spec='$libname${shared_ext}.$major' 9196 shlibpath_var=LD_LIBRARY_PATH 9197 fi 9198 ;; 9199 9200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9201 version_type=freebsd-elf 9202 need_lib_prefix=no 9203 need_version=no 9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9205 soname_spec='${libname}${release}${shared_ext}$major' 9206 shlibpath_var=LD_LIBRARY_PATH 9207 hardcode_into_libs=yes 9208 if test "$with_gnu_ld" = yes; then 9209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9210 shlibpath_overrides_runpath=no 9211 else 9212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9213 shlibpath_overrides_runpath=yes 9214 case $host_os in 9215 sco3.2v5*) 9216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9217 ;; 9218 esac 9219 fi 9220 sys_lib_dlsearch_path_spec='/usr/lib' 9221 ;; 9222 9223uts4*) 9224 version_type=linux 9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9226 soname_spec='${libname}${release}${shared_ext}$major' 9227 shlibpath_var=LD_LIBRARY_PATH 9228 ;; 9229 9230*) 9231 dynamic_linker=no 9232 ;; 9233esac 9234{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9235echo "${ECHO_T}$dynamic_linker" >&6; } 9236test "$dynamic_linker" = no && can_build_shared=no 9237 9238variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9239if test "$GCC" = yes; then 9240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9241fi 9242 9243 9244{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9245echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9246if test "${libltdl_cv_shlibext+set}" = set; then 9247 echo $ECHO_N "(cached) $ECHO_C" >&6 9248else 9249 9250module=yes 9251eval libltdl_cv_shlibext=$shrext_cmds 9252 9253fi 9254{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9255echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9256if test -n "$libltdl_cv_shlibext"; then 9257 9258cat >>confdefs.h <<_ACEOF 9259#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9260_ACEOF 9261 9262fi 9263 9264 9265{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9266echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9267if test "${libltdl_cv_shlibpath_var+set}" = set; then 9268 echo $ECHO_N "(cached) $ECHO_C" >&6 9269else 9270 libltdl_cv_shlibpath_var="$shlibpath_var" 9271fi 9272{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9273echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9274if test -n "$libltdl_cv_shlibpath_var"; then 9275 9276cat >>confdefs.h <<_ACEOF 9277#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9278_ACEOF 9279 9280fi 9281 9282 9283{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9284echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9285if test "${libltdl_cv_sys_search_path+set}" = set; then 9286 echo $ECHO_N "(cached) $ECHO_C" >&6 9287else 9288 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9289fi 9290{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9291echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9292if test -n "$libltdl_cv_sys_search_path"; then 9293 sys_search_path= 9294 for dir in $libltdl_cv_sys_search_path; do 9295 if test -z "$sys_search_path"; then 9296 sys_search_path="$dir" 9297 else 9298 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9299 fi 9300 done 9301 9302cat >>confdefs.h <<_ACEOF 9303#define LTDL_SYSSEARCHPATH "$sys_search_path" 9304_ACEOF 9305 9306fi 9307 9308{ echo "$as_me:$LINENO: checking for objdir" >&5 9309echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9310if test "${libltdl_cv_objdir+set}" = set; then 9311 echo $ECHO_N "(cached) $ECHO_C" >&6 9312else 9313 libltdl_cv_objdir="$objdir" 9314 if test -n "$objdir"; then 9315 : 9316 else 9317 rm -f .libs 2>/dev/null 9318 mkdir .libs 2>/dev/null 9319 if test -d .libs; then 9320 libltdl_cv_objdir=.libs 9321 else 9322 # MS-DOS does not allow filenames that begin with a dot. 9323 libltdl_cv_objdir=_libs 9324 fi 9325 rmdir .libs 2>/dev/null 9326 fi 9327 9328fi 9329{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9330echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9331 9332cat >>confdefs.h <<_ACEOF 9333#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9334_ACEOF 9335 9336 9337 9338 9339 9340 9341# Check for command to grab the raw symbol name followed by C symbol from nm. 9342{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9343echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9344if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9345 echo $ECHO_N "(cached) $ECHO_C" >&6 9346else 9347 9348# These are sane defaults that work on at least a few old systems. 9349# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9350 9351# Character class describing NM global symbol codes. 9352symcode='[BCDEGRST]' 9353 9354# Regexp to match symbols that can be accessed directly from C. 9355sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9356 9357# Transform an extracted symbol line into a proper C declaration 9358lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9359 9360# Transform an extracted symbol line into symbol name and symbol address 9361lt_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'" 9362 9363# Define system-specific variables. 9364case $host_os in 9365aix*) 9366 symcode='[BCDT]' 9367 ;; 9368cygwin* | mingw* | pw32*) 9369 symcode='[ABCDGISTW]' 9370 ;; 9371hpux*) # Its linker distinguishes data from code symbols 9372 if test "$host_cpu" = ia64; then 9373 symcode='[ABCDEGRST]' 9374 fi 9375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9376 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'" 9377 ;; 9378linux*) 9379 if test "$host_cpu" = ia64; then 9380 symcode='[ABCDGIRSTW]' 9381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9382 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'" 9383 fi 9384 ;; 9385irix* | nonstopux*) 9386 symcode='[BCDEGRST]' 9387 ;; 9388osf*) 9389 symcode='[BCDEGQRST]' 9390 ;; 9391solaris*) 9392 symcode='[BDRT]' 9393 ;; 9394sco3.2v5*) 9395 symcode='[DT]' 9396 ;; 9397sysv4.2uw2*) 9398 symcode='[DT]' 9399 ;; 9400sysv5* | sco5v6* | unixware* | OpenUNIX*) 9401 symcode='[ABDT]' 9402 ;; 9403sysv4) 9404 symcode='[DFNSTU]' 9405 ;; 9406esac 9407 9408# Handle CRLF in mingw tool chain 9409opt_cr= 9410case $build_os in 9411mingw*) 9412 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9413 ;; 9414esac 9415 9416# If we're using GNU nm, then use its standard symbol codes. 9417case `$NM -V 2>&1` in 9418*GNU* | *'with BFD'*) 9419 symcode='[ABCDGIRSTW]' ;; 9420esac 9421 9422# Try without a prefix undercore, then with it. 9423for ac_symprfx in "" "_"; do 9424 9425 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9426 symxfrm="\\1 $ac_symprfx\\2 \\2" 9427 9428 # Write the raw and C identifiers. 9429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9430 9431 # Check to see that the pipe works correctly. 9432 pipe_works=no 9433 9434 rm -f conftest* 9435 cat > conftest.$ac_ext <<EOF 9436#ifdef __cplusplus 9437extern "C" { 9438#endif 9439char nm_test_var; 9440void nm_test_func(){} 9441#ifdef __cplusplus 9442} 9443#endif 9444int main(){nm_test_var='a';nm_test_func();return(0);} 9445EOF 9446 9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9448 (eval $ac_compile) 2>&5 9449 ac_status=$? 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); }; then 9452 # Now try to grab the symbols. 9453 nlist=conftest.nm 9454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9456 ac_status=$? 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 (exit $ac_status); } && test -s "$nlist"; then 9459 # Try sorting and uniquifying the output. 9460 if sort "$nlist" | uniq > "$nlist"T; then 9461 mv -f "$nlist"T "$nlist" 9462 else 9463 rm -f "$nlist"T 9464 fi 9465 9466 # Make sure that we snagged all the symbols we need. 9467 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9468 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9469 cat <<EOF > conftest.$ac_ext 9470#ifdef __cplusplus 9471extern "C" { 9472#endif 9473 9474EOF 9475 # Now generate the symbol file. 9476 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9477 9478 cat <<EOF >> conftest.$ac_ext 9479#if defined (__STDC__) && __STDC__ 9480# define lt_ptr_t void * 9481#else 9482# define lt_ptr_t char * 9483# define const 9484#endif 9485 9486/* The mapping between symbol names and symbols. */ 9487const struct { 9488 const char *name; 9489 lt_ptr_t address; 9490} 9491lt_preloaded_symbols[] = 9492{ 9493EOF 9494 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9495 cat <<\EOF >> conftest.$ac_ext 9496 {0, (lt_ptr_t) 0} 9497}; 9498 9499#ifdef __cplusplus 9500} 9501#endif 9502EOF 9503 # Now try linking the two files. 9504 mv conftest.$ac_objext conftstm.$ac_objext 9505 lt_save_LIBS="$LIBS" 9506 lt_save_CFLAGS="$CFLAGS" 9507 LIBS="conftstm.$ac_objext" 9508 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9510 (eval $ac_link) 2>&5 9511 ac_status=$? 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9513 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9514 pipe_works=yes 9515 fi 9516 LIBS="$lt_save_LIBS" 9517 CFLAGS="$lt_save_CFLAGS" 9518 else 9519 echo "cannot find nm_test_func in $nlist" >&5 9520 fi 9521 else 9522 echo "cannot find nm_test_var in $nlist" >&5 9523 fi 9524 else 9525 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9526 fi 9527 else 9528 echo "$progname: failed program was:" >&5 9529 cat conftest.$ac_ext >&5 9530 fi 9531 rm -f conftest* conftst* 9532 9533 # Do not use the global_symbol_pipe unless it works. 9534 if test "$pipe_works" = yes; then 9535 break 9536 else 9537 lt_cv_sys_global_symbol_pipe= 9538 fi 9539done 9540 9541fi 9542 9543if test -z "$lt_cv_sys_global_symbol_pipe"; then 9544 lt_cv_sys_global_symbol_to_cdecl= 9545fi 9546if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9547 { echo "$as_me:$LINENO: result: failed" >&5 9548echo "${ECHO_T}failed" >&6; } 9549else 9550 { echo "$as_me:$LINENO: result: ok" >&5 9551echo "${ECHO_T}ok" >&6; } 9552fi 9553 9554 9555{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9556echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9557if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9558 echo $ECHO_N "(cached) $ECHO_C" >&6 9559else 9560 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9561 libltdl_cv_preloaded_symbols=yes 9562 else 9563 libltdl_cv_preloaded_symbols=no 9564 fi 9565 9566fi 9567{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9568echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9569if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9570 9571cat >>confdefs.h <<\_ACEOF 9572#define HAVE_PRELOADED_SYMBOLS 1 9573_ACEOF 9574 9575fi 9576 9577LIBADD_DL= 9578 9579ac_ext=c 9580ac_cpp='$CPP $CPPFLAGS' 9581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9583ac_compiler_gnu=$ac_cv_c_compiler_gnu 9584 9585 9586{ echo "$as_me:$LINENO: checking for shl_load" >&5 9587echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9588if test "${ac_cv_func_shl_load+set}" = set; then 9589 echo $ECHO_N "(cached) $ECHO_C" >&6 9590else 9591 cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9598 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9599#define shl_load innocuous_shl_load 9600 9601/* System header to define __stub macros and hopefully few prototypes, 9602 which can conflict with char shl_load (); below. 9603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9604 <limits.h> exists even on freestanding compilers. */ 9605 9606#ifdef __STDC__ 9607# include <limits.h> 9608#else 9609# include <assert.h> 9610#endif 9611 9612#undef shl_load 9613 9614/* Override any GCC internal prototype to avoid an error. 9615 Use char because int might match the return type of a GCC 9616 builtin and then its argument prototype would still apply. */ 9617#ifdef __cplusplus 9618extern "C" 9619#endif 9620char shl_load (); 9621/* The GNU C library defines this for functions which it implements 9622 to always fail with ENOSYS. Some functions are actually named 9623 something starting with __ and the normal name is an alias. */ 9624#if defined __stub_shl_load || defined __stub___shl_load 9625choke me 9626#endif 9627 9628int 9629main () 9630{ 9631return shl_load (); 9632 ; 9633 return 0; 9634} 9635_ACEOF 9636rm -f conftest.$ac_objext conftest$ac_exeext 9637if { (ac_try="$ac_link" 9638case "(($ac_try" in 9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9640 *) ac_try_echo=$ac_try;; 9641esac 9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9643 (eval "$ac_link") 2>conftest.er1 9644 ac_status=$? 9645 grep -v '^ *+' conftest.er1 >conftest.err 9646 rm -f conftest.er1 9647 cat conftest.err >&5 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); } && 9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9651 { (case "(($ac_try" in 9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9653 *) ac_try_echo=$ac_try;; 9654esac 9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9656 (eval "$ac_try") 2>&5 9657 ac_status=$? 9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9659 (exit $ac_status); }; } && 9660 { ac_try='test -s conftest$ac_exeext' 9661 { (case "(($ac_try" in 9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9663 *) ac_try_echo=$ac_try;; 9664esac 9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9666 (eval "$ac_try") 2>&5 9667 ac_status=$? 9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9669 (exit $ac_status); }; }; then 9670 ac_cv_func_shl_load=yes 9671else 9672 echo "$as_me: failed program was:" >&5 9673sed 's/^/| /' conftest.$ac_ext >&5 9674 9675 ac_cv_func_shl_load=no 9676fi 9677 9678rm -f core conftest.err conftest.$ac_objext \ 9679 conftest$ac_exeext conftest.$ac_ext 9680fi 9681{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9682echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9683if test $ac_cv_func_shl_load = yes; then 9684 9685cat >>confdefs.h <<\_ACEOF 9686#define HAVE_SHL_LOAD 1 9687_ACEOF 9688 9689else 9690 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9691echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9692if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9693 echo $ECHO_N "(cached) $ECHO_C" >&6 9694else 9695 ac_check_lib_save_LIBS=$LIBS 9696LIBS="-ldld $LIBS" 9697cat >conftest.$ac_ext <<_ACEOF 9698/* confdefs.h. */ 9699_ACEOF 9700cat confdefs.h >>conftest.$ac_ext 9701cat >>conftest.$ac_ext <<_ACEOF 9702/* end confdefs.h. */ 9703 9704/* Override any GCC internal prototype to avoid an error. 9705 Use char because int might match the return type of a GCC 9706 builtin and then its argument prototype would still apply. */ 9707#ifdef __cplusplus 9708extern "C" 9709#endif 9710char shl_load (); 9711int 9712main () 9713{ 9714return shl_load (); 9715 ; 9716 return 0; 9717} 9718_ACEOF 9719rm -f conftest.$ac_objext conftest$ac_exeext 9720if { (ac_try="$ac_link" 9721case "(($ac_try" in 9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9723 *) ac_try_echo=$ac_try;; 9724esac 9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9726 (eval "$ac_link") 2>conftest.er1 9727 ac_status=$? 9728 grep -v '^ *+' conftest.er1 >conftest.err 9729 rm -f conftest.er1 9730 cat conftest.err >&5 9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9732 (exit $ac_status); } && 9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9734 { (case "(($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_try") 2>&5 9740 ac_status=$? 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 (exit $ac_status); }; } && 9743 { ac_try='test -s conftest$ac_exeext' 9744 { (case "(($ac_try" in 9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9746 *) ac_try_echo=$ac_try;; 9747esac 9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9749 (eval "$ac_try") 2>&5 9750 ac_status=$? 9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9752 (exit $ac_status); }; }; then 9753 ac_cv_lib_dld_shl_load=yes 9754else 9755 echo "$as_me: failed program was:" >&5 9756sed 's/^/| /' conftest.$ac_ext >&5 9757 9758 ac_cv_lib_dld_shl_load=no 9759fi 9760 9761rm -f core conftest.err conftest.$ac_objext \ 9762 conftest$ac_exeext conftest.$ac_ext 9763LIBS=$ac_check_lib_save_LIBS 9764fi 9765{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9766echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9767if test $ac_cv_lib_dld_shl_load = yes; then 9768 9769cat >>confdefs.h <<\_ACEOF 9770#define HAVE_SHL_LOAD 1 9771_ACEOF 9772 9773 LIBADD_DL="$LIBADD_DL -ldld" 9774else 9775 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9776echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9777if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9778 echo $ECHO_N "(cached) $ECHO_C" >&6 9779else 9780 ac_check_lib_save_LIBS=$LIBS 9781LIBS="-ldl $LIBS" 9782cat >conftest.$ac_ext <<_ACEOF 9783/* confdefs.h. */ 9784_ACEOF 9785cat confdefs.h >>conftest.$ac_ext 9786cat >>conftest.$ac_ext <<_ACEOF 9787/* end confdefs.h. */ 9788 9789/* Override any GCC internal prototype to avoid an error. 9790 Use char because int might match the return type of a GCC 9791 builtin and then its argument prototype would still apply. */ 9792#ifdef __cplusplus 9793extern "C" 9794#endif 9795char dlopen (); 9796int 9797main () 9798{ 9799return dlopen (); 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804rm -f conftest.$ac_objext conftest$ac_exeext 9805if { (ac_try="$ac_link" 9806case "(($ac_try" in 9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9808 *) ac_try_echo=$ac_try;; 9809esac 9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9811 (eval "$ac_link") 2>conftest.er1 9812 ac_status=$? 9813 grep -v '^ *+' conftest.er1 >conftest.err 9814 rm -f conftest.er1 9815 cat conftest.err >&5 9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9817 (exit $ac_status); } && 9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9819 { (case "(($ac_try" in 9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9821 *) ac_try_echo=$ac_try;; 9822esac 9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9824 (eval "$ac_try") 2>&5 9825 ac_status=$? 9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9827 (exit $ac_status); }; } && 9828 { ac_try='test -s conftest$ac_exeext' 9829 { (case "(($ac_try" in 9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9831 *) ac_try_echo=$ac_try;; 9832esac 9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9834 (eval "$ac_try") 2>&5 9835 ac_status=$? 9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9837 (exit $ac_status); }; }; then 9838 ac_cv_lib_dl_dlopen=yes 9839else 9840 echo "$as_me: failed program was:" >&5 9841sed 's/^/| /' conftest.$ac_ext >&5 9842 9843 ac_cv_lib_dl_dlopen=no 9844fi 9845 9846rm -f core conftest.err conftest.$ac_objext \ 9847 conftest$ac_exeext conftest.$ac_ext 9848LIBS=$ac_check_lib_save_LIBS 9849fi 9850{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9852if test $ac_cv_lib_dl_dlopen = yes; then 9853 9854cat >>confdefs.h <<\_ACEOF 9855#define HAVE_LIBDL 1 9856_ACEOF 9857 9858 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9859else 9860 cat >conftest.$ac_ext <<_ACEOF 9861/* confdefs.h. */ 9862_ACEOF 9863cat confdefs.h >>conftest.$ac_ext 9864cat >>conftest.$ac_ext <<_ACEOF 9865/* end confdefs.h. */ 9866#if HAVE_DLFCN_H 9867# include <dlfcn.h> 9868#endif 9869 9870int 9871main () 9872{ 9873dlopen(0, 0); 9874 ; 9875 return 0; 9876} 9877_ACEOF 9878rm -f conftest.$ac_objext conftest$ac_exeext 9879if { (ac_try="$ac_link" 9880case "(($ac_try" in 9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9882 *) ac_try_echo=$ac_try;; 9883esac 9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9885 (eval "$ac_link") 2>conftest.er1 9886 ac_status=$? 9887 grep -v '^ *+' conftest.er1 >conftest.err 9888 rm -f conftest.er1 9889 cat conftest.err >&5 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); } && 9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9893 { (case "(($ac_try" in 9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9895 *) ac_try_echo=$ac_try;; 9896esac 9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9898 (eval "$ac_try") 2>&5 9899 ac_status=$? 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); }; } && 9902 { ac_try='test -s conftest$ac_exeext' 9903 { (case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906esac 9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_try") 2>&5 9909 ac_status=$? 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); }; }; then 9912 9913cat >>confdefs.h <<\_ACEOF 9914#define HAVE_LIBDL 1 9915_ACEOF 9916 libltdl_cv_func_dlopen="yes" 9917else 9918 echo "$as_me: failed program was:" >&5 9919sed 's/^/| /' conftest.$ac_ext >&5 9920 9921 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9922echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9923if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9924 echo $ECHO_N "(cached) $ECHO_C" >&6 9925else 9926 ac_check_lib_save_LIBS=$LIBS 9927LIBS="-lsvld $LIBS" 9928cat >conftest.$ac_ext <<_ACEOF 9929/* confdefs.h. */ 9930_ACEOF 9931cat confdefs.h >>conftest.$ac_ext 9932cat >>conftest.$ac_ext <<_ACEOF 9933/* end confdefs.h. */ 9934 9935/* Override any GCC internal prototype to avoid an error. 9936 Use char because int might match the return type of a GCC 9937 builtin and then its argument prototype would still apply. */ 9938#ifdef __cplusplus 9939extern "C" 9940#endif 9941char dlopen (); 9942int 9943main () 9944{ 9945return dlopen (); 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9957 (eval "$ac_link") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && 9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9965 { (case "(($ac_try" in 9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9967 *) ac_try_echo=$ac_try;; 9968esac 9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9970 (eval "$ac_try") 2>&5 9971 ac_status=$? 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); }; } && 9974 { ac_try='test -s conftest$ac_exeext' 9975 { (case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978esac 9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_try") 2>&5 9981 ac_status=$? 9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9983 (exit $ac_status); }; }; then 9984 ac_cv_lib_svld_dlopen=yes 9985else 9986 echo "$as_me: failed program was:" >&5 9987sed 's/^/| /' conftest.$ac_ext >&5 9988 9989 ac_cv_lib_svld_dlopen=no 9990fi 9991 9992rm -f core conftest.err conftest.$ac_objext \ 9993 conftest$ac_exeext conftest.$ac_ext 9994LIBS=$ac_check_lib_save_LIBS 9995fi 9996{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9997echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9998if test $ac_cv_lib_svld_dlopen = yes; then 9999 10000cat >>confdefs.h <<\_ACEOF 10001#define HAVE_LIBDL 1 10002_ACEOF 10003 10004 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10005else 10006 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10007echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10008if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10009 echo $ECHO_N "(cached) $ECHO_C" >&6 10010else 10011 ac_check_lib_save_LIBS=$LIBS 10012LIBS="-ldld $LIBS" 10013cat >conftest.$ac_ext <<_ACEOF 10014/* confdefs.h. */ 10015_ACEOF 10016cat confdefs.h >>conftest.$ac_ext 10017cat >>conftest.$ac_ext <<_ACEOF 10018/* end confdefs.h. */ 10019 10020/* Override any GCC internal prototype to avoid an error. 10021 Use char because int might match the return type of a GCC 10022 builtin and then its argument prototype would still apply. */ 10023#ifdef __cplusplus 10024extern "C" 10025#endif 10026char dld_link (); 10027int 10028main () 10029{ 10030return dld_link (); 10031 ; 10032 return 0; 10033} 10034_ACEOF 10035rm -f conftest.$ac_objext conftest$ac_exeext 10036if { (ac_try="$ac_link" 10037case "(($ac_try" in 10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10039 *) ac_try_echo=$ac_try;; 10040esac 10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10042 (eval "$ac_link") 2>conftest.er1 10043 ac_status=$? 10044 grep -v '^ *+' conftest.er1 >conftest.err 10045 rm -f conftest.er1 10046 cat conftest.err >&5 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); } && 10049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10050 { (case "(($ac_try" in 10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10052 *) ac_try_echo=$ac_try;; 10053esac 10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10055 (eval "$ac_try") 2>&5 10056 ac_status=$? 10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10058 (exit $ac_status); }; } && 10059 { ac_try='test -s conftest$ac_exeext' 10060 { (case "(($ac_try" in 10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10062 *) ac_try_echo=$ac_try;; 10063esac 10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10065 (eval "$ac_try") 2>&5 10066 ac_status=$? 10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10068 (exit $ac_status); }; }; then 10069 ac_cv_lib_dld_dld_link=yes 10070else 10071 echo "$as_me: failed program was:" >&5 10072sed 's/^/| /' conftest.$ac_ext >&5 10073 10074 ac_cv_lib_dld_dld_link=no 10075fi 10076 10077rm -f core conftest.err conftest.$ac_objext \ 10078 conftest$ac_exeext conftest.$ac_ext 10079LIBS=$ac_check_lib_save_LIBS 10080fi 10081{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10083if test $ac_cv_lib_dld_dld_link = yes; then 10084 10085cat >>confdefs.h <<\_ACEOF 10086#define HAVE_DLD 1 10087_ACEOF 10088 10089 LIBADD_DL="$LIBADD_DL -ldld" 10090else 10091 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10092echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10093if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10094 echo $ECHO_N "(cached) $ECHO_C" >&6 10095else 10096 cat >conftest.$ac_ext <<_ACEOF 10097/* confdefs.h. */ 10098_ACEOF 10099cat confdefs.h >>conftest.$ac_ext 10100cat >>conftest.$ac_ext <<_ACEOF 10101/* end confdefs.h. */ 10102/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10103 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10104#define _dyld_func_lookup innocuous__dyld_func_lookup 10105 10106/* System header to define __stub macros and hopefully few prototypes, 10107 which can conflict with char _dyld_func_lookup (); below. 10108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10109 <limits.h> exists even on freestanding compilers. */ 10110 10111#ifdef __STDC__ 10112# include <limits.h> 10113#else 10114# include <assert.h> 10115#endif 10116 10117#undef _dyld_func_lookup 10118 10119/* Override any GCC internal prototype to avoid an error. 10120 Use char because int might match the return type of a GCC 10121 builtin and then its argument prototype would still apply. */ 10122#ifdef __cplusplus 10123extern "C" 10124#endif 10125char _dyld_func_lookup (); 10126/* The GNU C library defines this for functions which it implements 10127 to always fail with ENOSYS. Some functions are actually named 10128 something starting with __ and the normal name is an alias. */ 10129#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10130choke me 10131#endif 10132 10133int 10134main () 10135{ 10136return _dyld_func_lookup (); 10137 ; 10138 return 0; 10139} 10140_ACEOF 10141rm -f conftest.$ac_objext conftest$ac_exeext 10142if { (ac_try="$ac_link" 10143case "(($ac_try" in 10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10145 *) ac_try_echo=$ac_try;; 10146esac 10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10148 (eval "$ac_link") 2>conftest.er1 10149 ac_status=$? 10150 grep -v '^ *+' conftest.er1 >conftest.err 10151 rm -f conftest.er1 10152 cat conftest.err >&5 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); } && 10155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 10165 { ac_try='test -s conftest$ac_exeext' 10166 { (case "(($ac_try" in 10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10168 *) ac_try_echo=$ac_try;; 10169esac 10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10171 (eval "$ac_try") 2>&5 10172 ac_status=$? 10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10174 (exit $ac_status); }; }; then 10175 ac_cv_func__dyld_func_lookup=yes 10176else 10177 echo "$as_me: failed program was:" >&5 10178sed 's/^/| /' conftest.$ac_ext >&5 10179 10180 ac_cv_func__dyld_func_lookup=no 10181fi 10182 10183rm -f core conftest.err conftest.$ac_objext \ 10184 conftest$ac_exeext conftest.$ac_ext 10185fi 10186{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10187echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10188if test $ac_cv_func__dyld_func_lookup = yes; then 10189 10190cat >>confdefs.h <<\_ACEOF 10191#define HAVE_DYLD 1 10192_ACEOF 10193 10194fi 10195 10196 10197fi 10198 10199 10200fi 10201 10202 10203fi 10204 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207 10208fi 10209 10210 10211fi 10212 10213 10214fi 10215 10216 10217if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10218then 10219 lt_save_LIBS="$LIBS" 10220 LIBS="$LIBS $LIBADD_DL" 10221 10222for ac_func in dlerror 10223do 10224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10225{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10227if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10228 echo $ECHO_N "(cached) $ECHO_C" >&6 10229else 10230 cat >conftest.$ac_ext <<_ACEOF 10231/* confdefs.h. */ 10232_ACEOF 10233cat confdefs.h >>conftest.$ac_ext 10234cat >>conftest.$ac_ext <<_ACEOF 10235/* end confdefs.h. */ 10236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10237 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10238#define $ac_func innocuous_$ac_func 10239 10240/* System header to define __stub macros and hopefully few prototypes, 10241 which can conflict with char $ac_func (); below. 10242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10243 <limits.h> exists even on freestanding compilers. */ 10244 10245#ifdef __STDC__ 10246# include <limits.h> 10247#else 10248# include <assert.h> 10249#endif 10250 10251#undef $ac_func 10252 10253/* Override any GCC internal prototype to avoid an error. 10254 Use char because int might match the return type of a GCC 10255 builtin and then its argument prototype would still apply. */ 10256#ifdef __cplusplus 10257extern "C" 10258#endif 10259char $ac_func (); 10260/* The GNU C library defines this for functions which it implements 10261 to always fail with ENOSYS. Some functions are actually named 10262 something starting with __ and the normal name is an alias. */ 10263#if defined __stub_$ac_func || defined __stub___$ac_func 10264choke me 10265#endif 10266 10267int 10268main () 10269{ 10270return $ac_func (); 10271 ; 10272 return 0; 10273} 10274_ACEOF 10275rm -f conftest.$ac_objext conftest$ac_exeext 10276if { (ac_try="$ac_link" 10277case "(($ac_try" in 10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10279 *) ac_try_echo=$ac_try;; 10280esac 10281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10282 (eval "$ac_link") 2>conftest.er1 10283 ac_status=$? 10284 grep -v '^ *+' conftest.er1 >conftest.err 10285 rm -f conftest.er1 10286 cat conftest.err >&5 10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10288 (exit $ac_status); } && 10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10290 { (case "(($ac_try" in 10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10292 *) ac_try_echo=$ac_try;; 10293esac 10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10295 (eval "$ac_try") 2>&5 10296 ac_status=$? 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); }; } && 10299 { ac_try='test -s conftest$ac_exeext' 10300 { (case "(($ac_try" in 10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10302 *) ac_try_echo=$ac_try;; 10303esac 10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10305 (eval "$ac_try") 2>&5 10306 ac_status=$? 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); }; }; then 10309 eval "$as_ac_var=yes" 10310else 10311 echo "$as_me: failed program was:" >&5 10312sed 's/^/| /' conftest.$ac_ext >&5 10313 10314 eval "$as_ac_var=no" 10315fi 10316 10317rm -f core conftest.err conftest.$ac_objext \ 10318 conftest$ac_exeext conftest.$ac_ext 10319fi 10320ac_res=`eval echo '${'$as_ac_var'}'` 10321 { echo "$as_me:$LINENO: result: $ac_res" >&5 10322echo "${ECHO_T}$ac_res" >&6; } 10323if test `eval echo '${'$as_ac_var'}'` = yes; then 10324 cat >>confdefs.h <<_ACEOF 10325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10326_ACEOF 10327 10328fi 10329done 10330 10331 LIBS="$lt_save_LIBS" 10332fi 10333ac_ext=c 10334ac_cpp='$CPP $CPPFLAGS' 10335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10337ac_compiler_gnu=$ac_cv_c_compiler_gnu 10338 10339 10340 10341{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10342echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10343if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10344 echo $ECHO_N "(cached) $ECHO_C" >&6 10345else 10346 ac_cv_sys_symbol_underscore=no 10347 cat > conftest.$ac_ext <<EOF 10348void nm_test_func(){} 10349int main(){nm_test_func;return 0;} 10350EOF 10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10352 (eval $ac_compile) 2>&5 10353 ac_status=$? 10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10355 (exit $ac_status); }; then 10356 # Now try to grab the symbols. 10357 ac_nlist=conftest.nm 10358 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10359 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10360 ac_status=$? 10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10362 (exit $ac_status); } && test -s "$ac_nlist"; then 10363 # See whether the symbols have a leading underscore. 10364 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10365 ac_cv_sys_symbol_underscore=yes 10366 else 10367 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10368 : 10369 else 10370 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10371 fi 10372 fi 10373 else 10374 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10375 fi 10376 else 10377 echo "configure: failed program was:" >&5 10378 cat conftest.c >&5 10379 fi 10380 rm -rf conftest* 10381 10382fi 10383{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10384echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10385 10386 10387if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10388 if test x"$libltdl_cv_func_dlopen" = xyes || 10389 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10390 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10391echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10392if test "${libltdl_cv_need_uscore+set}" = set; then 10393 echo $ECHO_N "(cached) $ECHO_C" >&6 10394else 10395 libltdl_cv_need_uscore=unknown 10396 save_LIBS="$LIBS" 10397 LIBS="$LIBS $LIBADD_DL" 10398 if test "$cross_compiling" = yes; then : 10399 libltdl_cv_need_uscore=cross 10400else 10401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10402 lt_status=$lt_dlunknown 10403 cat > conftest.$ac_ext <<EOF 10404#line 10404 "configure" 10405#include "confdefs.h" 10406 10407#if HAVE_DLFCN_H 10408#include <dlfcn.h> 10409#endif 10410 10411#include <stdio.h> 10412 10413#ifdef RTLD_GLOBAL 10414# define LT_DLGLOBAL RTLD_GLOBAL 10415#else 10416# ifdef DL_GLOBAL 10417# define LT_DLGLOBAL DL_GLOBAL 10418# else 10419# define LT_DLGLOBAL 0 10420# endif 10421#endif 10422 10423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10424 find out it does not work in some platform. */ 10425#ifndef LT_DLLAZY_OR_NOW 10426# ifdef RTLD_LAZY 10427# define LT_DLLAZY_OR_NOW RTLD_LAZY 10428# else 10429# ifdef DL_LAZY 10430# define LT_DLLAZY_OR_NOW DL_LAZY 10431# else 10432# ifdef RTLD_NOW 10433# define LT_DLLAZY_OR_NOW RTLD_NOW 10434# else 10435# ifdef DL_NOW 10436# define LT_DLLAZY_OR_NOW DL_NOW 10437# else 10438# define LT_DLLAZY_OR_NOW 0 10439# endif 10440# endif 10441# endif 10442# endif 10443#endif 10444 10445#ifdef __cplusplus 10446extern "C" void exit (int); 10447#endif 10448 10449void fnord() { int i=42;} 10450int main () 10451{ 10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10453 int status = $lt_dlunknown; 10454 10455 if (self) 10456 { 10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10459 /* dlclose (self); */ 10460 } 10461 else 10462 puts (dlerror ()); 10463 10464 exit (status); 10465} 10466EOF 10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10468 (eval $ac_link) 2>&5 10469 ac_status=$? 10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10472 (./conftest; exit; ) >&5 2>/dev/null 10473 lt_status=$? 10474 case x$lt_status in 10475 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10476 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10477 x$lt_dlunknown|x*) ;; 10478 esac 10479 else : 10480 # compilation failed 10481 10482 fi 10483fi 10484rm -fr conftest* 10485 10486 LIBS="$save_LIBS" 10487 10488fi 10489{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10490echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10491 fi 10492fi 10493 10494if test x"$libltdl_cv_need_uscore" = xyes; then 10495 10496cat >>confdefs.h <<\_ACEOF 10497#define NEED_USCORE 1 10498_ACEOF 10499 10500fi 10501 10502 10503{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10504echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10505if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10506 echo $ECHO_N "(cached) $ECHO_C" >&6 10507else 10508 # PORTME does your system automatically load deplibs for dlopen? 10509 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10510 # For now, we just catch OSes we know something about -- in the 10511 # future, we'll try test this programmatically. 10512 libltdl_cv_sys_dlopen_deplibs=unknown 10513 case "$host_os" in 10514 aix3*|aix4.1.*|aix4.2.*) 10515 # Unknown whether this is true for these versions of AIX, but 10516 # we want this `case' here to explicitly catch those versions. 10517 libltdl_cv_sys_dlopen_deplibs=unknown 10518 ;; 10519 aix[45]*) 10520 libltdl_cv_sys_dlopen_deplibs=yes 10521 ;; 10522 darwin*) 10523 # Assuming the user has installed a libdl from somewhere, this is true 10524 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10525 libltdl_cv_sys_dlopen_deplibs=yes 10526 ;; 10527 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10528 # GNU and its variants, using gnu ld.so (Glibc) 10529 libltdl_cv_sys_dlopen_deplibs=yes 10530 ;; 10531 hpux10*|hpux11*) 10532 libltdl_cv_sys_dlopen_deplibs=yes 10533 ;; 10534 interix*) 10535 libltdl_cv_sys_dlopen_deplibs=yes 10536 ;; 10537 irix[12345]*|irix6.[01]*) 10538 # Catch all versions of IRIX before 6.2, and indicate that we don't 10539 # know how it worked for any of those versions. 10540 libltdl_cv_sys_dlopen_deplibs=unknown 10541 ;; 10542 irix*) 10543 # The case above catches anything before 6.2, and it's known that 10544 # at 6.2 and later dlopen does load deplibs. 10545 libltdl_cv_sys_dlopen_deplibs=yes 10546 ;; 10547 netbsd*) 10548 libltdl_cv_sys_dlopen_deplibs=yes 10549 ;; 10550 openbsd*) 10551 libltdl_cv_sys_dlopen_deplibs=yes 10552 ;; 10553 osf[1234]*) 10554 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10555 # it did *not* use an RPATH in a shared library to find objects the 10556 # library depends on, so we explicitly say `no'. 10557 libltdl_cv_sys_dlopen_deplibs=no 10558 ;; 10559 osf5.0|osf5.0a|osf5.1) 10560 # dlopen *does* load deplibs and with the right loader patch applied 10561 # it even uses RPATH in a shared library to search for shared objects 10562 # that the library depends on, but there's no easy way to know if that 10563 # patch is installed. Since this is the case, all we can really 10564 # say is unknown -- it depends on the patch being installed. If 10565 # it is, this changes to `yes'. Without it, it would be `no'. 10566 libltdl_cv_sys_dlopen_deplibs=unknown 10567 ;; 10568 osf*) 10569 # the two cases above should catch all versions of osf <= 5.1. Read 10570 # the comments above for what we know about them. 10571 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10572 # is used to find them so we can finally say `yes'. 10573 libltdl_cv_sys_dlopen_deplibs=yes 10574 ;; 10575 solaris*) 10576 libltdl_cv_sys_dlopen_deplibs=yes 10577 ;; 10578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10579 libltdl_cv_sys_dlopen_deplibs=yes 10580 ;; 10581 esac 10582 10583fi 10584{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10585echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10586if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10587 10588cat >>confdefs.h <<\_ACEOF 10589#define LTDL_DLOPEN_DEPLIBS 1 10590_ACEOF 10591 10592fi 10593 10594 10595for ac_header in argz.h 10596do 10597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10599 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10602 echo $ECHO_N "(cached) $ECHO_C" >&6 10603fi 10604ac_res=`eval echo '${'$as_ac_Header'}'` 10605 { echo "$as_me:$LINENO: result: $ac_res" >&5 10606echo "${ECHO_T}$ac_res" >&6; } 10607else 10608 # Is the header compilable? 10609{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10611cat >conftest.$ac_ext <<_ACEOF 10612/* confdefs.h. */ 10613_ACEOF 10614cat confdefs.h >>conftest.$ac_ext 10615cat >>conftest.$ac_ext <<_ACEOF 10616/* end confdefs.h. */ 10617$ac_includes_default 10618#include <$ac_header> 10619_ACEOF 10620rm -f conftest.$ac_objext 10621if { (ac_try="$ac_compile" 10622case "(($ac_try" in 10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10624 *) ac_try_echo=$ac_try;; 10625esac 10626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10627 (eval "$ac_compile") 2>conftest.er1 10628 ac_status=$? 10629 grep -v '^ *+' conftest.er1 >conftest.err 10630 rm -f conftest.er1 10631 cat conftest.err >&5 10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10633 (exit $ac_status); } && 10634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10635 { (case "(($ac_try" in 10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10637 *) ac_try_echo=$ac_try;; 10638esac 10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10640 (eval "$ac_try") 2>&5 10641 ac_status=$? 10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10643 (exit $ac_status); }; } && 10644 { ac_try='test -s conftest.$ac_objext' 10645 { (case "(($ac_try" in 10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10647 *) ac_try_echo=$ac_try;; 10648esac 10649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10650 (eval "$ac_try") 2>&5 10651 ac_status=$? 10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10653 (exit $ac_status); }; }; then 10654 ac_header_compiler=yes 10655else 10656 echo "$as_me: failed program was:" >&5 10657sed 's/^/| /' conftest.$ac_ext >&5 10658 10659 ac_header_compiler=no 10660fi 10661 10662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10664echo "${ECHO_T}$ac_header_compiler" >&6; } 10665 10666# Is the header present? 10667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10669cat >conftest.$ac_ext <<_ACEOF 10670/* confdefs.h. */ 10671_ACEOF 10672cat confdefs.h >>conftest.$ac_ext 10673cat >>conftest.$ac_ext <<_ACEOF 10674/* end confdefs.h. */ 10675#include <$ac_header> 10676_ACEOF 10677if { (ac_try="$ac_cpp conftest.$ac_ext" 10678case "(($ac_try" in 10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10680 *) ac_try_echo=$ac_try;; 10681esac 10682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10684 ac_status=$? 10685 grep -v '^ *+' conftest.er1 >conftest.err 10686 rm -f conftest.er1 10687 cat conftest.err >&5 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); } >/dev/null; then 10690 if test -s conftest.err; then 10691 ac_cpp_err=$ac_c_preproc_warn_flag 10692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10693 else 10694 ac_cpp_err= 10695 fi 10696else 10697 ac_cpp_err=yes 10698fi 10699if test -z "$ac_cpp_err"; then 10700 ac_header_preproc=yes 10701else 10702 echo "$as_me: failed program was:" >&5 10703sed 's/^/| /' conftest.$ac_ext >&5 10704 10705 ac_header_preproc=no 10706fi 10707 10708rm -f conftest.err conftest.$ac_ext 10709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10710echo "${ECHO_T}$ac_header_preproc" >&6; } 10711 10712# So? What about this header? 10713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10714 yes:no: ) 10715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10719 ac_header_preproc=yes 10720 ;; 10721 no:yes:* ) 10722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10734 ( cat <<\_ASBOX 10735## ------------------------------------ ## 10736## Report this to http://llvm.org/bugs/ ## 10737## ------------------------------------ ## 10738_ASBOX 10739 ) | sed "s/^/$as_me: WARNING: /" >&2 10740 ;; 10741esac 10742{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10745 echo $ECHO_N "(cached) $ECHO_C" >&6 10746else 10747 eval "$as_ac_Header=\$ac_header_preproc" 10748fi 10749ac_res=`eval echo '${'$as_ac_Header'}'` 10750 { echo "$as_me:$LINENO: result: $ac_res" >&5 10751echo "${ECHO_T}$ac_res" >&6; } 10752 10753fi 10754if test `eval echo '${'$as_ac_Header'}'` = yes; then 10755 cat >>confdefs.h <<_ACEOF 10756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10757_ACEOF 10758 10759fi 10760 10761done 10762 10763 10764{ echo "$as_me:$LINENO: checking for error_t" >&5 10765echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10766if test "${ac_cv_type_error_t+set}" = set; then 10767 echo $ECHO_N "(cached) $ECHO_C" >&6 10768else 10769 cat >conftest.$ac_ext <<_ACEOF 10770/* confdefs.h. */ 10771_ACEOF 10772cat confdefs.h >>conftest.$ac_ext 10773cat >>conftest.$ac_ext <<_ACEOF 10774/* end confdefs.h. */ 10775#if HAVE_ARGZ_H 10776# include <argz.h> 10777#endif 10778 10779typedef error_t ac__type_new_; 10780int 10781main () 10782{ 10783if ((ac__type_new_ *) 0) 10784 return 0; 10785if (sizeof (ac__type_new_)) 10786 return 0; 10787 ; 10788 return 0; 10789} 10790_ACEOF 10791rm -f conftest.$ac_objext 10792if { (ac_try="$ac_compile" 10793case "(($ac_try" in 10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10795 *) ac_try_echo=$ac_try;; 10796esac 10797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10798 (eval "$ac_compile") 2>conftest.er1 10799 ac_status=$? 10800 grep -v '^ *+' conftest.er1 >conftest.err 10801 rm -f conftest.er1 10802 cat conftest.err >&5 10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10804 (exit $ac_status); } && 10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10806 { (case "(($ac_try" in 10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10808 *) ac_try_echo=$ac_try;; 10809esac 10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10811 (eval "$ac_try") 2>&5 10812 ac_status=$? 10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10814 (exit $ac_status); }; } && 10815 { ac_try='test -s conftest.$ac_objext' 10816 { (case "(($ac_try" in 10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10818 *) ac_try_echo=$ac_try;; 10819esac 10820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10821 (eval "$ac_try") 2>&5 10822 ac_status=$? 10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10824 (exit $ac_status); }; }; then 10825 ac_cv_type_error_t=yes 10826else 10827 echo "$as_me: failed program was:" >&5 10828sed 's/^/| /' conftest.$ac_ext >&5 10829 10830 ac_cv_type_error_t=no 10831fi 10832 10833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10834fi 10835{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10836echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10837if test $ac_cv_type_error_t = yes; then 10838 10839cat >>confdefs.h <<_ACEOF 10840#define HAVE_ERROR_T 1 10841_ACEOF 10842 10843 10844else 10845 10846cat >>confdefs.h <<\_ACEOF 10847#define error_t int 10848_ACEOF 10849 10850fi 10851 10852 10853 10854 10855 10856 10857 10858for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10859do 10860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10861{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10864 echo $ECHO_N "(cached) $ECHO_C" >&6 10865else 10866 cat >conftest.$ac_ext <<_ACEOF 10867/* confdefs.h. */ 10868_ACEOF 10869cat confdefs.h >>conftest.$ac_ext 10870cat >>conftest.$ac_ext <<_ACEOF 10871/* end confdefs.h. */ 10872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10874#define $ac_func innocuous_$ac_func 10875 10876/* System header to define __stub macros and hopefully few prototypes, 10877 which can conflict with char $ac_func (); below. 10878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10879 <limits.h> exists even on freestanding compilers. */ 10880 10881#ifdef __STDC__ 10882# include <limits.h> 10883#else 10884# include <assert.h> 10885#endif 10886 10887#undef $ac_func 10888 10889/* Override any GCC internal prototype to avoid an error. 10890 Use char because int might match the return type of a GCC 10891 builtin and then its argument prototype would still apply. */ 10892#ifdef __cplusplus 10893extern "C" 10894#endif 10895char $ac_func (); 10896/* The GNU C library defines this for functions which it implements 10897 to always fail with ENOSYS. Some functions are actually named 10898 something starting with __ and the normal name is an alias. */ 10899#if defined __stub_$ac_func || defined __stub___$ac_func 10900choke me 10901#endif 10902 10903int 10904main () 10905{ 10906return $ac_func (); 10907 ; 10908 return 0; 10909} 10910_ACEOF 10911rm -f conftest.$ac_objext conftest$ac_exeext 10912if { (ac_try="$ac_link" 10913case "(($ac_try" in 10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10915 *) ac_try_echo=$ac_try;; 10916esac 10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10918 (eval "$ac_link") 2>conftest.er1 10919 ac_status=$? 10920 grep -v '^ *+' conftest.er1 >conftest.err 10921 rm -f conftest.er1 10922 cat conftest.err >&5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10924 (exit $ac_status); } && 10925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10926 { (case "(($ac_try" in 10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10928 *) ac_try_echo=$ac_try;; 10929esac 10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10931 (eval "$ac_try") 2>&5 10932 ac_status=$? 10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10934 (exit $ac_status); }; } && 10935 { ac_try='test -s conftest$ac_exeext' 10936 { (case "(($ac_try" in 10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10938 *) ac_try_echo=$ac_try;; 10939esac 10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10941 (eval "$ac_try") 2>&5 10942 ac_status=$? 10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10944 (exit $ac_status); }; }; then 10945 eval "$as_ac_var=yes" 10946else 10947 echo "$as_me: failed program was:" >&5 10948sed 's/^/| /' conftest.$ac_ext >&5 10949 10950 eval "$as_ac_var=no" 10951fi 10952 10953rm -f core conftest.err conftest.$ac_objext \ 10954 conftest$ac_exeext conftest.$ac_ext 10955fi 10956ac_res=`eval echo '${'$as_ac_var'}'` 10957 { echo "$as_me:$LINENO: result: $ac_res" >&5 10958echo "${ECHO_T}$ac_res" >&6; } 10959if test `eval echo '${'$as_ac_var'}'` = yes; then 10960 cat >>confdefs.h <<_ACEOF 10961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10962_ACEOF 10963 10964fi 10965done 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10995 stdio.h unistd.h 10996do 10997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10999 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11002 echo $ECHO_N "(cached) $ECHO_C" >&6 11003fi 11004ac_res=`eval echo '${'$as_ac_Header'}'` 11005 { echo "$as_me:$LINENO: result: $ac_res" >&5 11006echo "${ECHO_T}$ac_res" >&6; } 11007else 11008 # Is the header compilable? 11009{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11011cat >conftest.$ac_ext <<_ACEOF 11012/* confdefs.h. */ 11013_ACEOF 11014cat confdefs.h >>conftest.$ac_ext 11015cat >>conftest.$ac_ext <<_ACEOF 11016/* end confdefs.h. */ 11017$ac_includes_default 11018#include <$ac_header> 11019_ACEOF 11020rm -f conftest.$ac_objext 11021if { (ac_try="$ac_compile" 11022case "(($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_compile") 2>conftest.er1 11028 ac_status=$? 11029 grep -v '^ *+' conftest.er1 >conftest.err 11030 rm -f conftest.er1 11031 cat conftest.err >&5 11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11033 (exit $ac_status); } && 11034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11035 { (case "(($ac_try" in 11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11037 *) ac_try_echo=$ac_try;; 11038esac 11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11040 (eval "$ac_try") 2>&5 11041 ac_status=$? 11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11043 (exit $ac_status); }; } && 11044 { ac_try='test -s conftest.$ac_objext' 11045 { (case "(($ac_try" in 11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11047 *) ac_try_echo=$ac_try;; 11048esac 11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11050 (eval "$ac_try") 2>&5 11051 ac_status=$? 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); }; }; then 11054 ac_header_compiler=yes 11055else 11056 echo "$as_me: failed program was:" >&5 11057sed 's/^/| /' conftest.$ac_ext >&5 11058 11059 ac_header_compiler=no 11060fi 11061 11062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11064echo "${ECHO_T}$ac_header_compiler" >&6; } 11065 11066# Is the header present? 11067{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11069cat >conftest.$ac_ext <<_ACEOF 11070/* confdefs.h. */ 11071_ACEOF 11072cat confdefs.h >>conftest.$ac_ext 11073cat >>conftest.$ac_ext <<_ACEOF 11074/* end confdefs.h. */ 11075#include <$ac_header> 11076_ACEOF 11077if { (ac_try="$ac_cpp conftest.$ac_ext" 11078case "(($ac_try" in 11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11080 *) ac_try_echo=$ac_try;; 11081esac 11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11084 ac_status=$? 11085 grep -v '^ *+' conftest.er1 >conftest.err 11086 rm -f conftest.er1 11087 cat conftest.err >&5 11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11089 (exit $ac_status); } >/dev/null; then 11090 if test -s conftest.err; then 11091 ac_cpp_err=$ac_c_preproc_warn_flag 11092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11093 else 11094 ac_cpp_err= 11095 fi 11096else 11097 ac_cpp_err=yes 11098fi 11099if test -z "$ac_cpp_err"; then 11100 ac_header_preproc=yes 11101else 11102 echo "$as_me: failed program was:" >&5 11103sed 's/^/| /' conftest.$ac_ext >&5 11104 11105 ac_header_preproc=no 11106fi 11107 11108rm -f conftest.err conftest.$ac_ext 11109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11110echo "${ECHO_T}$ac_header_preproc" >&6; } 11111 11112# So? What about this header? 11113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11114 yes:no: ) 11115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11119 ac_header_preproc=yes 11120 ;; 11121 no:yes:* ) 11122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11134 ( cat <<\_ASBOX 11135## ------------------------------------ ## 11136## Report this to http://llvm.org/bugs/ ## 11137## ------------------------------------ ## 11138_ASBOX 11139 ) | sed "s/^/$as_me: WARNING: /" >&2 11140 ;; 11141esac 11142{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11145 echo $ECHO_N "(cached) $ECHO_C" >&6 11146else 11147 eval "$as_ac_Header=\$ac_header_preproc" 11148fi 11149ac_res=`eval echo '${'$as_ac_Header'}'` 11150 { echo "$as_me:$LINENO: result: $ac_res" >&5 11151echo "${ECHO_T}$ac_res" >&6; } 11152 11153fi 11154if test `eval echo '${'$as_ac_Header'}'` = yes; then 11155 cat >>confdefs.h <<_ACEOF 11156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11157_ACEOF 11158 11159fi 11160 11161done 11162 11163 11164 11165 11166 11167for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11168do 11169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11174 echo $ECHO_N "(cached) $ECHO_C" >&6 11175fi 11176ac_res=`eval echo '${'$as_ac_Header'}'` 11177 { echo "$as_me:$LINENO: result: $ac_res" >&5 11178echo "${ECHO_T}$ac_res" >&6; } 11179else 11180 # Is the header compilable? 11181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11183cat >conftest.$ac_ext <<_ACEOF 11184/* confdefs.h. */ 11185_ACEOF 11186cat confdefs.h >>conftest.$ac_ext 11187cat >>conftest.$ac_ext <<_ACEOF 11188/* end confdefs.h. */ 11189$ac_includes_default 11190#include <$ac_header> 11191_ACEOF 11192rm -f conftest.$ac_objext 11193if { (ac_try="$ac_compile" 11194case "(($ac_try" in 11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11196 *) ac_try_echo=$ac_try;; 11197esac 11198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11199 (eval "$ac_compile") 2>conftest.er1 11200 ac_status=$? 11201 grep -v '^ *+' conftest.er1 >conftest.err 11202 rm -f conftest.er1 11203 cat conftest.err >&5 11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11205 (exit $ac_status); } && 11206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11207 { (case "(($ac_try" in 11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11209 *) ac_try_echo=$ac_try;; 11210esac 11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11212 (eval "$ac_try") 2>&5 11213 ac_status=$? 11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11215 (exit $ac_status); }; } && 11216 { ac_try='test -s conftest.$ac_objext' 11217 { (case "(($ac_try" in 11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11219 *) ac_try_echo=$ac_try;; 11220esac 11221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11222 (eval "$ac_try") 2>&5 11223 ac_status=$? 11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11225 (exit $ac_status); }; }; then 11226 ac_header_compiler=yes 11227else 11228 echo "$as_me: failed program was:" >&5 11229sed 's/^/| /' conftest.$ac_ext >&5 11230 11231 ac_header_compiler=no 11232fi 11233 11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11236echo "${ECHO_T}$ac_header_compiler" >&6; } 11237 11238# Is the header present? 11239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11241cat >conftest.$ac_ext <<_ACEOF 11242/* confdefs.h. */ 11243_ACEOF 11244cat confdefs.h >>conftest.$ac_ext 11245cat >>conftest.$ac_ext <<_ACEOF 11246/* end confdefs.h. */ 11247#include <$ac_header> 11248_ACEOF 11249if { (ac_try="$ac_cpp conftest.$ac_ext" 11250case "(($ac_try" in 11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11252 *) ac_try_echo=$ac_try;; 11253esac 11254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11256 ac_status=$? 11257 grep -v '^ *+' conftest.er1 >conftest.err 11258 rm -f conftest.er1 11259 cat conftest.err >&5 11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11261 (exit $ac_status); } >/dev/null; then 11262 if test -s conftest.err; then 11263 ac_cpp_err=$ac_c_preproc_warn_flag 11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11265 else 11266 ac_cpp_err= 11267 fi 11268else 11269 ac_cpp_err=yes 11270fi 11271if test -z "$ac_cpp_err"; then 11272 ac_header_preproc=yes 11273else 11274 echo "$as_me: failed program was:" >&5 11275sed 's/^/| /' conftest.$ac_ext >&5 11276 11277 ac_header_preproc=no 11278fi 11279 11280rm -f conftest.err conftest.$ac_ext 11281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11282echo "${ECHO_T}$ac_header_preproc" >&6; } 11283 11284# So? What about this header? 11285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11286 yes:no: ) 11287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11291 ac_header_preproc=yes 11292 ;; 11293 no:yes:* ) 11294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11306 ( cat <<\_ASBOX 11307## ------------------------------------ ## 11308## Report this to http://llvm.org/bugs/ ## 11309## ------------------------------------ ## 11310_ASBOX 11311 ) | sed "s/^/$as_me: WARNING: /" >&2 11312 ;; 11313esac 11314{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11317 echo $ECHO_N "(cached) $ECHO_C" >&6 11318else 11319 eval "$as_ac_Header=\$ac_header_preproc" 11320fi 11321ac_res=`eval echo '${'$as_ac_Header'}'` 11322 { echo "$as_me:$LINENO: result: $ac_res" >&5 11323echo "${ECHO_T}$ac_res" >&6; } 11324 11325fi 11326if test `eval echo '${'$as_ac_Header'}'` = yes; then 11327 cat >>confdefs.h <<_ACEOF 11328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11329_ACEOF 11330 11331fi 11332 11333done 11334 11335 11336 11337for ac_header in string.h strings.h 11338do 11339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11341 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11344 echo $ECHO_N "(cached) $ECHO_C" >&6 11345fi 11346ac_res=`eval echo '${'$as_ac_Header'}'` 11347 { echo "$as_me:$LINENO: result: $ac_res" >&5 11348echo "${ECHO_T}$ac_res" >&6; } 11349else 11350 # Is the header compilable? 11351{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11353cat >conftest.$ac_ext <<_ACEOF 11354/* confdefs.h. */ 11355_ACEOF 11356cat confdefs.h >>conftest.$ac_ext 11357cat >>conftest.$ac_ext <<_ACEOF 11358/* end confdefs.h. */ 11359$ac_includes_default 11360#include <$ac_header> 11361_ACEOF 11362rm -f conftest.$ac_objext 11363if { (ac_try="$ac_compile" 11364case "(($ac_try" in 11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11366 *) ac_try_echo=$ac_try;; 11367esac 11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11369 (eval "$ac_compile") 2>conftest.er1 11370 ac_status=$? 11371 grep -v '^ *+' conftest.er1 >conftest.err 11372 rm -f conftest.er1 11373 cat conftest.err >&5 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); } && 11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11377 { (case "(($ac_try" in 11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11379 *) ac_try_echo=$ac_try;; 11380esac 11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11382 (eval "$ac_try") 2>&5 11383 ac_status=$? 11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11385 (exit $ac_status); }; } && 11386 { ac_try='test -s conftest.$ac_objext' 11387 { (case "(($ac_try" in 11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11389 *) ac_try_echo=$ac_try;; 11390esac 11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11392 (eval "$ac_try") 2>&5 11393 ac_status=$? 11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11395 (exit $ac_status); }; }; then 11396 ac_header_compiler=yes 11397else 11398 echo "$as_me: failed program was:" >&5 11399sed 's/^/| /' conftest.$ac_ext >&5 11400 11401 ac_header_compiler=no 11402fi 11403 11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11405{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11406echo "${ECHO_T}$ac_header_compiler" >&6; } 11407 11408# Is the header present? 11409{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11411cat >conftest.$ac_ext <<_ACEOF 11412/* confdefs.h. */ 11413_ACEOF 11414cat confdefs.h >>conftest.$ac_ext 11415cat >>conftest.$ac_ext <<_ACEOF 11416/* end confdefs.h. */ 11417#include <$ac_header> 11418_ACEOF 11419if { (ac_try="$ac_cpp conftest.$ac_ext" 11420case "(($ac_try" in 11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11422 *) ac_try_echo=$ac_try;; 11423esac 11424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11426 ac_status=$? 11427 grep -v '^ *+' conftest.er1 >conftest.err 11428 rm -f conftest.er1 11429 cat conftest.err >&5 11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11431 (exit $ac_status); } >/dev/null; then 11432 if test -s conftest.err; then 11433 ac_cpp_err=$ac_c_preproc_warn_flag 11434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11435 else 11436 ac_cpp_err= 11437 fi 11438else 11439 ac_cpp_err=yes 11440fi 11441if test -z "$ac_cpp_err"; then 11442 ac_header_preproc=yes 11443else 11444 echo "$as_me: failed program was:" >&5 11445sed 's/^/| /' conftest.$ac_ext >&5 11446 11447 ac_header_preproc=no 11448fi 11449 11450rm -f conftest.err conftest.$ac_ext 11451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11452echo "${ECHO_T}$ac_header_preproc" >&6; } 11453 11454# So? What about this header? 11455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11456 yes:no: ) 11457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11461 ac_header_preproc=yes 11462 ;; 11463 no:yes:* ) 11464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11476 ( cat <<\_ASBOX 11477## ------------------------------------ ## 11478## Report this to http://llvm.org/bugs/ ## 11479## ------------------------------------ ## 11480_ASBOX 11481 ) | sed "s/^/$as_me: WARNING: /" >&2 11482 ;; 11483esac 11484{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11487 echo $ECHO_N "(cached) $ECHO_C" >&6 11488else 11489 eval "$as_ac_Header=\$ac_header_preproc" 11490fi 11491ac_res=`eval echo '${'$as_ac_Header'}'` 11492 { echo "$as_me:$LINENO: result: $ac_res" >&5 11493echo "${ECHO_T}$ac_res" >&6; } 11494 11495fi 11496if test `eval echo '${'$as_ac_Header'}'` = yes; then 11497 cat >>confdefs.h <<_ACEOF 11498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11499_ACEOF 11500 break 11501fi 11502 11503done 11504 11505 11506 11507 11508for ac_func in strchr index 11509do 11510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11511{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11514 echo $ECHO_N "(cached) $ECHO_C" >&6 11515else 11516 cat >conftest.$ac_ext <<_ACEOF 11517/* confdefs.h. */ 11518_ACEOF 11519cat confdefs.h >>conftest.$ac_ext 11520cat >>conftest.$ac_ext <<_ACEOF 11521/* end confdefs.h. */ 11522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11523 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11524#define $ac_func innocuous_$ac_func 11525 11526/* System header to define __stub macros and hopefully few prototypes, 11527 which can conflict with char $ac_func (); below. 11528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11529 <limits.h> exists even on freestanding compilers. */ 11530 11531#ifdef __STDC__ 11532# include <limits.h> 11533#else 11534# include <assert.h> 11535#endif 11536 11537#undef $ac_func 11538 11539/* Override any GCC internal prototype to avoid an error. 11540 Use char because int might match the return type of a GCC 11541 builtin and then its argument prototype would still apply. */ 11542#ifdef __cplusplus 11543extern "C" 11544#endif 11545char $ac_func (); 11546/* The GNU C library defines this for functions which it implements 11547 to always fail with ENOSYS. Some functions are actually named 11548 something starting with __ and the normal name is an alias. */ 11549#if defined __stub_$ac_func || defined __stub___$ac_func 11550choke me 11551#endif 11552 11553int 11554main () 11555{ 11556return $ac_func (); 11557 ; 11558 return 0; 11559} 11560_ACEOF 11561rm -f conftest.$ac_objext conftest$ac_exeext 11562if { (ac_try="$ac_link" 11563case "(($ac_try" in 11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11565 *) ac_try_echo=$ac_try;; 11566esac 11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11568 (eval "$ac_link") 2>conftest.er1 11569 ac_status=$? 11570 grep -v '^ *+' conftest.er1 >conftest.err 11571 rm -f conftest.er1 11572 cat conftest.err >&5 11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11574 (exit $ac_status); } && 11575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11576 { (case "(($ac_try" in 11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11578 *) ac_try_echo=$ac_try;; 11579esac 11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11581 (eval "$ac_try") 2>&5 11582 ac_status=$? 11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11584 (exit $ac_status); }; } && 11585 { ac_try='test -s conftest$ac_exeext' 11586 { (case "(($ac_try" in 11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11588 *) ac_try_echo=$ac_try;; 11589esac 11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11591 (eval "$ac_try") 2>&5 11592 ac_status=$? 11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11594 (exit $ac_status); }; }; then 11595 eval "$as_ac_var=yes" 11596else 11597 echo "$as_me: failed program was:" >&5 11598sed 's/^/| /' conftest.$ac_ext >&5 11599 11600 eval "$as_ac_var=no" 11601fi 11602 11603rm -f core conftest.err conftest.$ac_objext \ 11604 conftest$ac_exeext conftest.$ac_ext 11605fi 11606ac_res=`eval echo '${'$as_ac_var'}'` 11607 { echo "$as_me:$LINENO: result: $ac_res" >&5 11608echo "${ECHO_T}$ac_res" >&6; } 11609if test `eval echo '${'$as_ac_var'}'` = yes; then 11610 cat >>confdefs.h <<_ACEOF 11611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11612_ACEOF 11613 break 11614fi 11615done 11616 11617 11618 11619for ac_func in strrchr rindex 11620do 11621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11622{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11625 echo $ECHO_N "(cached) $ECHO_C" >&6 11626else 11627 cat >conftest.$ac_ext <<_ACEOF 11628/* confdefs.h. */ 11629_ACEOF 11630cat confdefs.h >>conftest.$ac_ext 11631cat >>conftest.$ac_ext <<_ACEOF 11632/* end confdefs.h. */ 11633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11634 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11635#define $ac_func innocuous_$ac_func 11636 11637/* System header to define __stub macros and hopefully few prototypes, 11638 which can conflict with char $ac_func (); below. 11639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11640 <limits.h> exists even on freestanding compilers. */ 11641 11642#ifdef __STDC__ 11643# include <limits.h> 11644#else 11645# include <assert.h> 11646#endif 11647 11648#undef $ac_func 11649 11650/* Override any GCC internal prototype to avoid an error. 11651 Use char because int might match the return type of a GCC 11652 builtin and then its argument prototype would still apply. */ 11653#ifdef __cplusplus 11654extern "C" 11655#endif 11656char $ac_func (); 11657/* The GNU C library defines this for functions which it implements 11658 to always fail with ENOSYS. Some functions are actually named 11659 something starting with __ and the normal name is an alias. */ 11660#if defined __stub_$ac_func || defined __stub___$ac_func 11661choke me 11662#endif 11663 11664int 11665main () 11666{ 11667return $ac_func (); 11668 ; 11669 return 0; 11670} 11671_ACEOF 11672rm -f conftest.$ac_objext conftest$ac_exeext 11673if { (ac_try="$ac_link" 11674case "(($ac_try" in 11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11676 *) ac_try_echo=$ac_try;; 11677esac 11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11679 (eval "$ac_link") 2>conftest.er1 11680 ac_status=$? 11681 grep -v '^ *+' conftest.er1 >conftest.err 11682 rm -f conftest.er1 11683 cat conftest.err >&5 11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11685 (exit $ac_status); } && 11686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11687 { (case "(($ac_try" in 11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11689 *) ac_try_echo=$ac_try;; 11690esac 11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11692 (eval "$ac_try") 2>&5 11693 ac_status=$? 11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11695 (exit $ac_status); }; } && 11696 { ac_try='test -s conftest$ac_exeext' 11697 { (case "(($ac_try" in 11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11699 *) ac_try_echo=$ac_try;; 11700esac 11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11702 (eval "$ac_try") 2>&5 11703 ac_status=$? 11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11705 (exit $ac_status); }; }; then 11706 eval "$as_ac_var=yes" 11707else 11708 echo "$as_me: failed program was:" >&5 11709sed 's/^/| /' conftest.$ac_ext >&5 11710 11711 eval "$as_ac_var=no" 11712fi 11713 11714rm -f core conftest.err conftest.$ac_objext \ 11715 conftest$ac_exeext conftest.$ac_ext 11716fi 11717ac_res=`eval echo '${'$as_ac_var'}'` 11718 { echo "$as_me:$LINENO: result: $ac_res" >&5 11719echo "${ECHO_T}$ac_res" >&6; } 11720if test `eval echo '${'$as_ac_var'}'` = yes; then 11721 cat >>confdefs.h <<_ACEOF 11722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11723_ACEOF 11724 break 11725fi 11726done 11727 11728 11729 11730for ac_func in memcpy bcopy 11731do 11732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11733{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11736 echo $ECHO_N "(cached) $ECHO_C" >&6 11737else 11738 cat >conftest.$ac_ext <<_ACEOF 11739/* confdefs.h. */ 11740_ACEOF 11741cat confdefs.h >>conftest.$ac_ext 11742cat >>conftest.$ac_ext <<_ACEOF 11743/* end confdefs.h. */ 11744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11746#define $ac_func innocuous_$ac_func 11747 11748/* System header to define __stub macros and hopefully few prototypes, 11749 which can conflict with char $ac_func (); below. 11750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11751 <limits.h> exists even on freestanding compilers. */ 11752 11753#ifdef __STDC__ 11754# include <limits.h> 11755#else 11756# include <assert.h> 11757#endif 11758 11759#undef $ac_func 11760 11761/* Override any GCC internal prototype to avoid an error. 11762 Use char because int might match the return type of a GCC 11763 builtin and then its argument prototype would still apply. */ 11764#ifdef __cplusplus 11765extern "C" 11766#endif 11767char $ac_func (); 11768/* The GNU C library defines this for functions which it implements 11769 to always fail with ENOSYS. Some functions are actually named 11770 something starting with __ and the normal name is an alias. */ 11771#if defined __stub_$ac_func || defined __stub___$ac_func 11772choke me 11773#endif 11774 11775int 11776main () 11777{ 11778return $ac_func (); 11779 ; 11780 return 0; 11781} 11782_ACEOF 11783rm -f conftest.$ac_objext conftest$ac_exeext 11784if { (ac_try="$ac_link" 11785case "(($ac_try" in 11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11787 *) ac_try_echo=$ac_try;; 11788esac 11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11790 (eval "$ac_link") 2>conftest.er1 11791 ac_status=$? 11792 grep -v '^ *+' conftest.er1 >conftest.err 11793 rm -f conftest.er1 11794 cat conftest.err >&5 11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11796 (exit $ac_status); } && 11797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11798 { (case "(($ac_try" in 11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11800 *) ac_try_echo=$ac_try;; 11801esac 11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11803 (eval "$ac_try") 2>&5 11804 ac_status=$? 11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 (exit $ac_status); }; } && 11807 { ac_try='test -s conftest$ac_exeext' 11808 { (case "(($ac_try" in 11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11810 *) ac_try_echo=$ac_try;; 11811esac 11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11813 (eval "$ac_try") 2>&5 11814 ac_status=$? 11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11816 (exit $ac_status); }; }; then 11817 eval "$as_ac_var=yes" 11818else 11819 echo "$as_me: failed program was:" >&5 11820sed 's/^/| /' conftest.$ac_ext >&5 11821 11822 eval "$as_ac_var=no" 11823fi 11824 11825rm -f core conftest.err conftest.$ac_objext \ 11826 conftest$ac_exeext conftest.$ac_ext 11827fi 11828ac_res=`eval echo '${'$as_ac_var'}'` 11829 { echo "$as_me:$LINENO: result: $ac_res" >&5 11830echo "${ECHO_T}$ac_res" >&6; } 11831if test `eval echo '${'$as_ac_var'}'` = yes; then 11832 cat >>confdefs.h <<_ACEOF 11833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11834_ACEOF 11835 break 11836fi 11837done 11838 11839 11840 11841for ac_func in memmove strcmp 11842do 11843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11844{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11846if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11847 echo $ECHO_N "(cached) $ECHO_C" >&6 11848else 11849 cat >conftest.$ac_ext <<_ACEOF 11850/* confdefs.h. */ 11851_ACEOF 11852cat confdefs.h >>conftest.$ac_ext 11853cat >>conftest.$ac_ext <<_ACEOF 11854/* end confdefs.h. */ 11855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11857#define $ac_func innocuous_$ac_func 11858 11859/* System header to define __stub macros and hopefully few prototypes, 11860 which can conflict with char $ac_func (); below. 11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11862 <limits.h> exists even on freestanding compilers. */ 11863 11864#ifdef __STDC__ 11865# include <limits.h> 11866#else 11867# include <assert.h> 11868#endif 11869 11870#undef $ac_func 11871 11872/* Override any GCC internal prototype to avoid an error. 11873 Use char because int might match the return type of a GCC 11874 builtin and then its argument prototype would still apply. */ 11875#ifdef __cplusplus 11876extern "C" 11877#endif 11878char $ac_func (); 11879/* The GNU C library defines this for functions which it implements 11880 to always fail with ENOSYS. Some functions are actually named 11881 something starting with __ and the normal name is an alias. */ 11882#if defined __stub_$ac_func || defined __stub___$ac_func 11883choke me 11884#endif 11885 11886int 11887main () 11888{ 11889return $ac_func (); 11890 ; 11891 return 0; 11892} 11893_ACEOF 11894rm -f conftest.$ac_objext conftest$ac_exeext 11895if { (ac_try="$ac_link" 11896case "(($ac_try" in 11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11898 *) ac_try_echo=$ac_try;; 11899esac 11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11901 (eval "$ac_link") 2>conftest.er1 11902 ac_status=$? 11903 grep -v '^ *+' conftest.er1 >conftest.err 11904 rm -f conftest.er1 11905 cat conftest.err >&5 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); } && 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11909 { (case "(($ac_try" in 11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11911 *) ac_try_echo=$ac_try;; 11912esac 11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11914 (eval "$ac_try") 2>&5 11915 ac_status=$? 11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11917 (exit $ac_status); }; } && 11918 { ac_try='test -s conftest$ac_exeext' 11919 { (case "(($ac_try" in 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11921 *) ac_try_echo=$ac_try;; 11922esac 11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11924 (eval "$ac_try") 2>&5 11925 ac_status=$? 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); }; }; then 11928 eval "$as_ac_var=yes" 11929else 11930 echo "$as_me: failed program was:" >&5 11931sed 's/^/| /' conftest.$ac_ext >&5 11932 11933 eval "$as_ac_var=no" 11934fi 11935 11936rm -f core conftest.err conftest.$ac_objext \ 11937 conftest$ac_exeext conftest.$ac_ext 11938fi 11939ac_res=`eval echo '${'$as_ac_var'}'` 11940 { echo "$as_me:$LINENO: result: $ac_res" >&5 11941echo "${ECHO_T}$ac_res" >&6; } 11942if test `eval echo '${'$as_ac_var'}'` = yes; then 11943 cat >>confdefs.h <<_ACEOF 11944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11945_ACEOF 11946 11947fi 11948done 11949 11950 11951 11952 11953for ac_func in closedir opendir readdir 11954do 11955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11956{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11959 echo $ECHO_N "(cached) $ECHO_C" >&6 11960else 11961 cat >conftest.$ac_ext <<_ACEOF 11962/* confdefs.h. */ 11963_ACEOF 11964cat confdefs.h >>conftest.$ac_ext 11965cat >>conftest.$ac_ext <<_ACEOF 11966/* end confdefs.h. */ 11967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11969#define $ac_func innocuous_$ac_func 11970 11971/* System header to define __stub macros and hopefully few prototypes, 11972 which can conflict with char $ac_func (); below. 11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11974 <limits.h> exists even on freestanding compilers. */ 11975 11976#ifdef __STDC__ 11977# include <limits.h> 11978#else 11979# include <assert.h> 11980#endif 11981 11982#undef $ac_func 11983 11984/* Override any GCC internal prototype to avoid an error. 11985 Use char because int might match the return type of a GCC 11986 builtin and then its argument prototype would still apply. */ 11987#ifdef __cplusplus 11988extern "C" 11989#endif 11990char $ac_func (); 11991/* The GNU C library defines this for functions which it implements 11992 to always fail with ENOSYS. Some functions are actually named 11993 something starting with __ and the normal name is an alias. */ 11994#if defined __stub_$ac_func || defined __stub___$ac_func 11995choke me 11996#endif 11997 11998int 11999main () 12000{ 12001return $ac_func (); 12002 ; 12003 return 0; 12004} 12005_ACEOF 12006rm -f conftest.$ac_objext conftest$ac_exeext 12007if { (ac_try="$ac_link" 12008case "(($ac_try" in 12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12010 *) ac_try_echo=$ac_try;; 12011esac 12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12013 (eval "$ac_link") 2>conftest.er1 12014 ac_status=$? 12015 grep -v '^ *+' conftest.er1 >conftest.err 12016 rm -f conftest.er1 12017 cat conftest.err >&5 12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12019 (exit $ac_status); } && 12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12021 { (case "(($ac_try" in 12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12023 *) ac_try_echo=$ac_try;; 12024esac 12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12026 (eval "$ac_try") 2>&5 12027 ac_status=$? 12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12029 (exit $ac_status); }; } && 12030 { ac_try='test -s conftest$ac_exeext' 12031 { (case "(($ac_try" in 12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12033 *) ac_try_echo=$ac_try;; 12034esac 12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12036 (eval "$ac_try") 2>&5 12037 ac_status=$? 12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12039 (exit $ac_status); }; }; then 12040 eval "$as_ac_var=yes" 12041else 12042 echo "$as_me: failed program was:" >&5 12043sed 's/^/| /' conftest.$ac_ext >&5 12044 12045 eval "$as_ac_var=no" 12046fi 12047 12048rm -f core conftest.err conftest.$ac_objext \ 12049 conftest$ac_exeext conftest.$ac_ext 12050fi 12051ac_res=`eval echo '${'$as_ac_var'}'` 12052 { echo "$as_me:$LINENO: result: $ac_res" >&5 12053echo "${ECHO_T}$ac_res" >&6; } 12054if test `eval echo '${'$as_ac_var'}'` = yes; then 12055 cat >>confdefs.h <<_ACEOF 12056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12057_ACEOF 12058 12059fi 12060done 12061 12062 12063 12064{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12065echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12066 12067ICC=no 12068IXX=no 12069case $CC in 12070 icc*|icpc*) 12071 ICC=yes 12072 IXX=yes 12073 ;; 12074 *) 12075 ;; 12076esac 12077 12078if test "$GCC" != "yes" && test "$ICC" != "yes" 12079then 12080 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12081echo "$as_me: error: gcc|icc required but not found" >&2;} 12082 { (exit 1); exit 1; }; } 12083fi 12084 12085if test "$GXX" != "yes" && test "$IXX" != "yes" 12086then 12087 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12088echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12089 { (exit 1); exit 1; }; } 12090fi 12091 12092if test "$GCC" = "yes" 12093then 12094 cat >conftest.$ac_ext <<_ACEOF 12095#if !defined(__GNUC__) || __GNUC__ < 3 12096#error Unsupported GCC version 12097#endif 12098 12099_ACEOF 12100rm -f conftest.$ac_objext 12101if { (ac_try="$ac_compile" 12102case "(($ac_try" in 12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12104 *) ac_try_echo=$ac_try;; 12105esac 12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12107 (eval "$ac_compile") 2>conftest.er1 12108 ac_status=$? 12109 grep -v '^ *+' conftest.er1 >conftest.err 12110 rm -f conftest.er1 12111 cat conftest.err >&5 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); } && 12114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12115 { (case "(($ac_try" in 12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12117 *) ac_try_echo=$ac_try;; 12118esac 12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12120 (eval "$ac_try") 2>&5 12121 ac_status=$? 12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12123 (exit $ac_status); }; } && 12124 { ac_try='test -s conftest.$ac_objext' 12125 { (case "(($ac_try" in 12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12127 *) ac_try_echo=$ac_try;; 12128esac 12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12130 (eval "$ac_try") 2>&5 12131 ac_status=$? 12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12133 (exit $ac_status); }; }; then 12134 : 12135else 12136 echo "$as_me: failed program was:" >&5 12137sed 's/^/| /' conftest.$ac_ext >&5 12138 12139 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12140echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12141 { (exit 1); exit 1; }; } 12142fi 12143 12144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12145fi 12146 12147if test -z "$llvm_cv_gnu_make_command" 12148then 12149 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12150echo "$as_me: error: GNU Make required but not found" >&2;} 12151 { (exit 1); exit 1; }; } 12152fi 12153 12154{ echo "$as_me:$LINENO: result: ok" >&5 12155echo "${ECHO_T}ok" >&6; } 12156 12157{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12158echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12159NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12160 12161NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12162 12163COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12164 12165{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 12166echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 12167 12168 12169 12170{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12171echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12172if test "${ac_cv_lib_m_sin+set}" = set; then 12173 echo $ECHO_N "(cached) $ECHO_C" >&6 12174else 12175 ac_check_lib_save_LIBS=$LIBS 12176LIBS="-lm $LIBS" 12177cat >conftest.$ac_ext <<_ACEOF 12178/* confdefs.h. */ 12179_ACEOF 12180cat confdefs.h >>conftest.$ac_ext 12181cat >>conftest.$ac_ext <<_ACEOF 12182/* end confdefs.h. */ 12183 12184/* Override any GCC internal prototype to avoid an error. 12185 Use char because int might match the return type of a GCC 12186 builtin and then its argument prototype would still apply. */ 12187#ifdef __cplusplus 12188extern "C" 12189#endif 12190char sin (); 12191int 12192main () 12193{ 12194return sin (); 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199rm -f conftest.$ac_objext conftest$ac_exeext 12200if { (ac_try="$ac_link" 12201case "(($ac_try" in 12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12203 *) ac_try_echo=$ac_try;; 12204esac 12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12206 (eval "$ac_link") 2>conftest.er1 12207 ac_status=$? 12208 grep -v '^ *+' conftest.er1 >conftest.err 12209 rm -f conftest.er1 12210 cat conftest.err >&5 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12212 (exit $ac_status); } && 12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12214 { (case "(($ac_try" in 12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12216 *) ac_try_echo=$ac_try;; 12217esac 12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12219 (eval "$ac_try") 2>&5 12220 ac_status=$? 12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12222 (exit $ac_status); }; } && 12223 { ac_try='test -s conftest$ac_exeext' 12224 { (case "(($ac_try" in 12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12226 *) ac_try_echo=$ac_try;; 12227esac 12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12229 (eval "$ac_try") 2>&5 12230 ac_status=$? 12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12232 (exit $ac_status); }; }; then 12233 ac_cv_lib_m_sin=yes 12234else 12235 echo "$as_me: failed program was:" >&5 12236sed 's/^/| /' conftest.$ac_ext >&5 12237 12238 ac_cv_lib_m_sin=no 12239fi 12240 12241rm -f core conftest.err conftest.$ac_objext \ 12242 conftest$ac_exeext conftest.$ac_ext 12243LIBS=$ac_check_lib_save_LIBS 12244fi 12245{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12246echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12247if test $ac_cv_lib_m_sin = yes; then 12248 cat >>confdefs.h <<_ACEOF 12249#define HAVE_LIBM 1 12250_ACEOF 12251 12252 LIBS="-lm $LIBS" 12253 12254fi 12255 12256if test "$llvm_cv_os_type" = "MingW" ; then 12257 12258{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12259echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12260if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12261 echo $ECHO_N "(cached) $ECHO_C" >&6 12262else 12263 ac_check_lib_save_LIBS=$LIBS 12264LIBS="-limagehlp $LIBS" 12265cat >conftest.$ac_ext <<_ACEOF 12266/* confdefs.h. */ 12267_ACEOF 12268cat confdefs.h >>conftest.$ac_ext 12269cat >>conftest.$ac_ext <<_ACEOF 12270/* end confdefs.h. */ 12271 12272 12273int 12274main () 12275{ 12276return main (); 12277 ; 12278 return 0; 12279} 12280_ACEOF 12281rm -f conftest.$ac_objext conftest$ac_exeext 12282if { (ac_try="$ac_link" 12283case "(($ac_try" in 12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12285 *) ac_try_echo=$ac_try;; 12286esac 12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12288 (eval "$ac_link") 2>conftest.er1 12289 ac_status=$? 12290 grep -v '^ *+' conftest.er1 >conftest.err 12291 rm -f conftest.er1 12292 cat conftest.err >&5 12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12294 (exit $ac_status); } && 12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12296 { (case "(($ac_try" in 12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12298 *) ac_try_echo=$ac_try;; 12299esac 12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12301 (eval "$ac_try") 2>&5 12302 ac_status=$? 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); }; } && 12305 { ac_try='test -s conftest$ac_exeext' 12306 { (case "(($ac_try" in 12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12308 *) ac_try_echo=$ac_try;; 12309esac 12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12311 (eval "$ac_try") 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); }; }; then 12315 ac_cv_lib_imagehlp_main=yes 12316else 12317 echo "$as_me: failed program was:" >&5 12318sed 's/^/| /' conftest.$ac_ext >&5 12319 12320 ac_cv_lib_imagehlp_main=no 12321fi 12322 12323rm -f core conftest.err conftest.$ac_objext \ 12324 conftest$ac_exeext conftest.$ac_ext 12325LIBS=$ac_check_lib_save_LIBS 12326fi 12327{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12328echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12329if test $ac_cv_lib_imagehlp_main = yes; then 12330 cat >>confdefs.h <<_ACEOF 12331#define HAVE_LIBIMAGEHLP 1 12332_ACEOF 12333 12334 LIBS="-limagehlp $LIBS" 12335 12336fi 12337 12338 12339{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12340echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12341if test "${ac_cv_lib_psapi_main+set}" = set; then 12342 echo $ECHO_N "(cached) $ECHO_C" >&6 12343else 12344 ac_check_lib_save_LIBS=$LIBS 12345LIBS="-lpsapi $LIBS" 12346cat >conftest.$ac_ext <<_ACEOF 12347/* confdefs.h. */ 12348_ACEOF 12349cat confdefs.h >>conftest.$ac_ext 12350cat >>conftest.$ac_ext <<_ACEOF 12351/* end confdefs.h. */ 12352 12353 12354int 12355main () 12356{ 12357return main (); 12358 ; 12359 return 0; 12360} 12361_ACEOF 12362rm -f conftest.$ac_objext conftest$ac_exeext 12363if { (ac_try="$ac_link" 12364case "(($ac_try" in 12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12366 *) ac_try_echo=$ac_try;; 12367esac 12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12369 (eval "$ac_link") 2>conftest.er1 12370 ac_status=$? 12371 grep -v '^ *+' conftest.er1 >conftest.err 12372 rm -f conftest.er1 12373 cat conftest.err >&5 12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12375 (exit $ac_status); } && 12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12377 { (case "(($ac_try" in 12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12379 *) ac_try_echo=$ac_try;; 12380esac 12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12382 (eval "$ac_try") 2>&5 12383 ac_status=$? 12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12385 (exit $ac_status); }; } && 12386 { ac_try='test -s conftest$ac_exeext' 12387 { (case "(($ac_try" in 12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12389 *) ac_try_echo=$ac_try;; 12390esac 12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12392 (eval "$ac_try") 2>&5 12393 ac_status=$? 12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12395 (exit $ac_status); }; }; then 12396 ac_cv_lib_psapi_main=yes 12397else 12398 echo "$as_me: failed program was:" >&5 12399sed 's/^/| /' conftest.$ac_ext >&5 12400 12401 ac_cv_lib_psapi_main=no 12402fi 12403 12404rm -f core conftest.err conftest.$ac_objext \ 12405 conftest$ac_exeext conftest.$ac_ext 12406LIBS=$ac_check_lib_save_LIBS 12407fi 12408{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12409echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12410if test $ac_cv_lib_psapi_main = yes; then 12411 cat >>confdefs.h <<_ACEOF 12412#define HAVE_LIBPSAPI 1 12413_ACEOF 12414 12415 LIBS="-lpsapi $LIBS" 12416 12417fi 12418 12419fi 12420 12421{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12422echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12423if test "${ac_cv_search_dlopen+set}" = set; then 12424 echo $ECHO_N "(cached) $ECHO_C" >&6 12425else 12426 ac_func_search_save_LIBS=$LIBS 12427cat >conftest.$ac_ext <<_ACEOF 12428/* confdefs.h. */ 12429_ACEOF 12430cat confdefs.h >>conftest.$ac_ext 12431cat >>conftest.$ac_ext <<_ACEOF 12432/* end confdefs.h. */ 12433 12434/* Override any GCC internal prototype to avoid an error. 12435 Use char because int might match the return type of a GCC 12436 builtin and then its argument prototype would still apply. */ 12437#ifdef __cplusplus 12438extern "C" 12439#endif 12440char dlopen (); 12441int 12442main () 12443{ 12444return dlopen (); 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449for ac_lib in '' dl; do 12450 if test -z "$ac_lib"; then 12451 ac_res="none required" 12452 else 12453 ac_res=-l$ac_lib 12454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12455 fi 12456 rm -f conftest.$ac_objext conftest$ac_exeext 12457if { (ac_try="$ac_link" 12458case "(($ac_try" in 12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12460 *) ac_try_echo=$ac_try;; 12461esac 12462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12463 (eval "$ac_link") 2>conftest.er1 12464 ac_status=$? 12465 grep -v '^ *+' conftest.er1 >conftest.err 12466 rm -f conftest.er1 12467 cat conftest.err >&5 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12469 (exit $ac_status); } && 12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12471 { (case "(($ac_try" in 12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12473 *) ac_try_echo=$ac_try;; 12474esac 12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12476 (eval "$ac_try") 2>&5 12477 ac_status=$? 12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12479 (exit $ac_status); }; } && 12480 { ac_try='test -s conftest$ac_exeext' 12481 { (case "(($ac_try" in 12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12483 *) ac_try_echo=$ac_try;; 12484esac 12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12486 (eval "$ac_try") 2>&5 12487 ac_status=$? 12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12489 (exit $ac_status); }; }; then 12490 ac_cv_search_dlopen=$ac_res 12491else 12492 echo "$as_me: failed program was:" >&5 12493sed 's/^/| /' conftest.$ac_ext >&5 12494 12495 12496fi 12497 12498rm -f core conftest.err conftest.$ac_objext \ 12499 conftest$ac_exeext 12500 if test "${ac_cv_search_dlopen+set}" = set; then 12501 break 12502fi 12503done 12504if test "${ac_cv_search_dlopen+set}" = set; then 12505 : 12506else 12507 ac_cv_search_dlopen=no 12508fi 12509rm conftest.$ac_ext 12510LIBS=$ac_func_search_save_LIBS 12511fi 12512{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12513echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12514ac_res=$ac_cv_search_dlopen 12515if test "$ac_res" != no; then 12516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12517 12518cat >>confdefs.h <<\_ACEOF 12519#define HAVE_DLOPEN 1 12520_ACEOF 12521 12522else 12523 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12524echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12525fi 12526 12527 12528if test "$llvm_cv_enable_libffi" = "yes" ; then 12529 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12530echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12531if test "${ac_cv_search_ffi_call+set}" = set; then 12532 echo $ECHO_N "(cached) $ECHO_C" >&6 12533else 12534 ac_func_search_save_LIBS=$LIBS 12535cat >conftest.$ac_ext <<_ACEOF 12536/* confdefs.h. */ 12537_ACEOF 12538cat confdefs.h >>conftest.$ac_ext 12539cat >>conftest.$ac_ext <<_ACEOF 12540/* end confdefs.h. */ 12541 12542/* Override any GCC internal prototype to avoid an error. 12543 Use char because int might match the return type of a GCC 12544 builtin and then its argument prototype would still apply. */ 12545#ifdef __cplusplus 12546extern "C" 12547#endif 12548char ffi_call (); 12549int 12550main () 12551{ 12552return ffi_call (); 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557for ac_lib in '' ffi; do 12558 if test -z "$ac_lib"; then 12559 ac_res="none required" 12560 else 12561 ac_res=-l$ac_lib 12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12563 fi 12564 rm -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_search_ffi_call=$ac_res 12599else 12600 echo "$as_me: failed program was:" >&5 12601sed 's/^/| /' conftest.$ac_ext >&5 12602 12603 12604fi 12605 12606rm -f core conftest.err conftest.$ac_objext \ 12607 conftest$ac_exeext 12608 if test "${ac_cv_search_ffi_call+set}" = set; then 12609 break 12610fi 12611done 12612if test "${ac_cv_search_ffi_call+set}" = set; then 12613 : 12614else 12615 ac_cv_search_ffi_call=no 12616fi 12617rm conftest.$ac_ext 12618LIBS=$ac_func_search_save_LIBS 12619fi 12620{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12621echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12622ac_res=$ac_cv_search_ffi_call 12623if test "$ac_res" != no; then 12624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12625 12626cat >>confdefs.h <<\_ACEOF 12627#define HAVE_FFI_CALL 1 12628_ACEOF 12629 12630else 12631 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12632echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12633 { (exit 1); exit 1; }; } 12634fi 12635 12636fi 12637 12638{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12639echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12640if test "${ac_cv_search_mallinfo+set}" = set; then 12641 echo $ECHO_N "(cached) $ECHO_C" >&6 12642else 12643 ac_func_search_save_LIBS=$LIBS 12644cat >conftest.$ac_ext <<_ACEOF 12645/* confdefs.h. */ 12646_ACEOF 12647cat confdefs.h >>conftest.$ac_ext 12648cat >>conftest.$ac_ext <<_ACEOF 12649/* end confdefs.h. */ 12650 12651/* Override any GCC internal prototype to avoid an error. 12652 Use char because int might match the return type of a GCC 12653 builtin and then its argument prototype would still apply. */ 12654#ifdef __cplusplus 12655extern "C" 12656#endif 12657char mallinfo (); 12658int 12659main () 12660{ 12661return mallinfo (); 12662 ; 12663 return 0; 12664} 12665_ACEOF 12666for ac_lib in '' malloc; do 12667 if test -z "$ac_lib"; then 12668 ac_res="none required" 12669 else 12670 ac_res=-l$ac_lib 12671 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12672 fi 12673 rm -f conftest.$ac_objext conftest$ac_exeext 12674if { (ac_try="$ac_link" 12675case "(($ac_try" in 12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12677 *) ac_try_echo=$ac_try;; 12678esac 12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12680 (eval "$ac_link") 2>conftest.er1 12681 ac_status=$? 12682 grep -v '^ *+' conftest.er1 >conftest.err 12683 rm -f conftest.er1 12684 cat conftest.err >&5 12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 (exit $ac_status); } && 12687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12688 { (case "(($ac_try" in 12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12690 *) ac_try_echo=$ac_try;; 12691esac 12692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12693 (eval "$ac_try") 2>&5 12694 ac_status=$? 12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12696 (exit $ac_status); }; } && 12697 { ac_try='test -s conftest$ac_exeext' 12698 { (case "(($ac_try" in 12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12700 *) ac_try_echo=$ac_try;; 12701esac 12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12703 (eval "$ac_try") 2>&5 12704 ac_status=$? 12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12706 (exit $ac_status); }; }; then 12707 ac_cv_search_mallinfo=$ac_res 12708else 12709 echo "$as_me: failed program was:" >&5 12710sed 's/^/| /' conftest.$ac_ext >&5 12711 12712 12713fi 12714 12715rm -f core conftest.err conftest.$ac_objext \ 12716 conftest$ac_exeext 12717 if test "${ac_cv_search_mallinfo+set}" = set; then 12718 break 12719fi 12720done 12721if test "${ac_cv_search_mallinfo+set}" = set; then 12722 : 12723else 12724 ac_cv_search_mallinfo=no 12725fi 12726rm conftest.$ac_ext 12727LIBS=$ac_func_search_save_LIBS 12728fi 12729{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12730echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12731ac_res=$ac_cv_search_mallinfo 12732if test "$ac_res" != no; then 12733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12734 12735cat >>confdefs.h <<\_ACEOF 12736#define HAVE_MALLINFO 1 12737_ACEOF 12738 12739fi 12740 12741 12742if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12743 12744{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12745echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12746if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12747 echo $ECHO_N "(cached) $ECHO_C" >&6 12748else 12749 ac_check_lib_save_LIBS=$LIBS 12750LIBS="-lpthread $LIBS" 12751cat >conftest.$ac_ext <<_ACEOF 12752/* confdefs.h. */ 12753_ACEOF 12754cat confdefs.h >>conftest.$ac_ext 12755cat >>conftest.$ac_ext <<_ACEOF 12756/* end confdefs.h. */ 12757 12758/* Override any GCC internal prototype to avoid an error. 12759 Use char because int might match the return type of a GCC 12760 builtin and then its argument prototype would still apply. */ 12761#ifdef __cplusplus 12762extern "C" 12763#endif 12764char pthread_mutex_init (); 12765int 12766main () 12767{ 12768return pthread_mutex_init (); 12769 ; 12770 return 0; 12771} 12772_ACEOF 12773rm -f conftest.$ac_objext conftest$ac_exeext 12774if { (ac_try="$ac_link" 12775case "(($ac_try" in 12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12777 *) ac_try_echo=$ac_try;; 12778esac 12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12780 (eval "$ac_link") 2>conftest.er1 12781 ac_status=$? 12782 grep -v '^ *+' conftest.er1 >conftest.err 12783 rm -f conftest.er1 12784 cat conftest.err >&5 12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12786 (exit $ac_status); } && 12787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12788 { (case "(($ac_try" in 12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12790 *) ac_try_echo=$ac_try;; 12791esac 12792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12793 (eval "$ac_try") 2>&5 12794 ac_status=$? 12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12796 (exit $ac_status); }; } && 12797 { ac_try='test -s conftest$ac_exeext' 12798 { (case "(($ac_try" in 12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12800 *) ac_try_echo=$ac_try;; 12801esac 12802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12803 (eval "$ac_try") 2>&5 12804 ac_status=$? 12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12806 (exit $ac_status); }; }; then 12807 ac_cv_lib_pthread_pthread_mutex_init=yes 12808else 12809 echo "$as_me: failed program was:" >&5 12810sed 's/^/| /' conftest.$ac_ext >&5 12811 12812 ac_cv_lib_pthread_pthread_mutex_init=no 12813fi 12814 12815rm -f core conftest.err conftest.$ac_objext \ 12816 conftest$ac_exeext conftest.$ac_ext 12817LIBS=$ac_check_lib_save_LIBS 12818fi 12819{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12820echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12821if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12822 cat >>confdefs.h <<_ACEOF 12823#define HAVE_LIBPTHREAD 1 12824_ACEOF 12825 12826 LIBS="-lpthread $LIBS" 12827 12828fi 12829 12830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12831echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12832if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12833 echo $ECHO_N "(cached) $ECHO_C" >&6 12834else 12835 ac_func_search_save_LIBS=$LIBS 12836cat >conftest.$ac_ext <<_ACEOF 12837/* confdefs.h. */ 12838_ACEOF 12839cat confdefs.h >>conftest.$ac_ext 12840cat >>conftest.$ac_ext <<_ACEOF 12841/* end confdefs.h. */ 12842 12843/* Override any GCC internal prototype to avoid an error. 12844 Use char because int might match the return type of a GCC 12845 builtin and then its argument prototype would still apply. */ 12846#ifdef __cplusplus 12847extern "C" 12848#endif 12849char pthread_mutex_lock (); 12850int 12851main () 12852{ 12853return pthread_mutex_lock (); 12854 ; 12855 return 0; 12856} 12857_ACEOF 12858for ac_lib in '' pthread; do 12859 if test -z "$ac_lib"; then 12860 ac_res="none required" 12861 else 12862 ac_res=-l$ac_lib 12863 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12864 fi 12865 rm -f conftest.$ac_objext conftest$ac_exeext 12866if { (ac_try="$ac_link" 12867case "(($ac_try" in 12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12869 *) ac_try_echo=$ac_try;; 12870esac 12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12872 (eval "$ac_link") 2>conftest.er1 12873 ac_status=$? 12874 grep -v '^ *+' conftest.er1 >conftest.err 12875 rm -f conftest.er1 12876 cat conftest.err >&5 12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12878 (exit $ac_status); } && 12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12880 { (case "(($ac_try" in 12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12882 *) ac_try_echo=$ac_try;; 12883esac 12884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12885 (eval "$ac_try") 2>&5 12886 ac_status=$? 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); }; } && 12889 { ac_try='test -s conftest$ac_exeext' 12890 { (case "(($ac_try" in 12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12892 *) ac_try_echo=$ac_try;; 12893esac 12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12895 (eval "$ac_try") 2>&5 12896 ac_status=$? 12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12898 (exit $ac_status); }; }; then 12899 ac_cv_search_pthread_mutex_lock=$ac_res 12900else 12901 echo "$as_me: failed program was:" >&5 12902sed 's/^/| /' conftest.$ac_ext >&5 12903 12904 12905fi 12906 12907rm -f core conftest.err conftest.$ac_objext \ 12908 conftest$ac_exeext 12909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12910 break 12911fi 12912done 12913if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12914 : 12915else 12916 ac_cv_search_pthread_mutex_lock=no 12917fi 12918rm conftest.$ac_ext 12919LIBS=$ac_func_search_save_LIBS 12920fi 12921{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12922echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12923ac_res=$ac_cv_search_pthread_mutex_lock 12924if test "$ac_res" != no; then 12925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12926 12927cat >>confdefs.h <<\_ACEOF 12928#define HAVE_PTHREAD_MUTEX_LOCK 1 12929_ACEOF 12930 12931fi 12932 12933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12934echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12935if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12936 echo $ECHO_N "(cached) $ECHO_C" >&6 12937else 12938 ac_func_search_save_LIBS=$LIBS 12939cat >conftest.$ac_ext <<_ACEOF 12940/* confdefs.h. */ 12941_ACEOF 12942cat confdefs.h >>conftest.$ac_ext 12943cat >>conftest.$ac_ext <<_ACEOF 12944/* end confdefs.h. */ 12945 12946/* Override any GCC internal prototype to avoid an error. 12947 Use char because int might match the return type of a GCC 12948 builtin and then its argument prototype would still apply. */ 12949#ifdef __cplusplus 12950extern "C" 12951#endif 12952char pthread_rwlock_init (); 12953int 12954main () 12955{ 12956return pthread_rwlock_init (); 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961for ac_lib in '' pthread; do 12962 if test -z "$ac_lib"; then 12963 ac_res="none required" 12964 else 12965 ac_res=-l$ac_lib 12966 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12967 fi 12968 rm -f conftest.$ac_objext conftest$ac_exeext 12969if { (ac_try="$ac_link" 12970case "(($ac_try" in 12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12972 *) ac_try_echo=$ac_try;; 12973esac 12974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12975 (eval "$ac_link") 2>conftest.er1 12976 ac_status=$? 12977 grep -v '^ *+' conftest.er1 >conftest.err 12978 rm -f conftest.er1 12979 cat conftest.err >&5 12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12981 (exit $ac_status); } && 12982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12983 { (case "(($ac_try" in 12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12985 *) ac_try_echo=$ac_try;; 12986esac 12987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12988 (eval "$ac_try") 2>&5 12989 ac_status=$? 12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12991 (exit $ac_status); }; } && 12992 { ac_try='test -s conftest$ac_exeext' 12993 { (case "(($ac_try" in 12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12995 *) ac_try_echo=$ac_try;; 12996esac 12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12998 (eval "$ac_try") 2>&5 12999 ac_status=$? 13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13001 (exit $ac_status); }; }; then 13002 ac_cv_search_pthread_rwlock_init=$ac_res 13003else 13004 echo "$as_me: failed program was:" >&5 13005sed 's/^/| /' conftest.$ac_ext >&5 13006 13007 13008fi 13009 13010rm -f core conftest.err conftest.$ac_objext \ 13011 conftest$ac_exeext 13012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13013 break 13014fi 13015done 13016if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13017 : 13018else 13019 ac_cv_search_pthread_rwlock_init=no 13020fi 13021rm conftest.$ac_ext 13022LIBS=$ac_func_search_save_LIBS 13023fi 13024{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13025echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13026ac_res=$ac_cv_search_pthread_rwlock_init 13027if test "$ac_res" != no; then 13028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13029 13030cat >>confdefs.h <<\_ACEOF 13031#define HAVE_PTHREAD_RWLOCK_INIT 1 13032_ACEOF 13033 13034fi 13035 13036 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13037echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13038if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13039 echo $ECHO_N "(cached) $ECHO_C" >&6 13040else 13041 ac_func_search_save_LIBS=$LIBS 13042cat >conftest.$ac_ext <<_ACEOF 13043/* confdefs.h. */ 13044_ACEOF 13045cat confdefs.h >>conftest.$ac_ext 13046cat >>conftest.$ac_ext <<_ACEOF 13047/* end confdefs.h. */ 13048 13049/* Override any GCC internal prototype to avoid an error. 13050 Use char because int might match the return type of a GCC 13051 builtin and then its argument prototype would still apply. */ 13052#ifdef __cplusplus 13053extern "C" 13054#endif 13055char pthread_getspecific (); 13056int 13057main () 13058{ 13059return pthread_getspecific (); 13060 ; 13061 return 0; 13062} 13063_ACEOF 13064for ac_lib in '' pthread; do 13065 if test -z "$ac_lib"; then 13066 ac_res="none required" 13067 else 13068 ac_res=-l$ac_lib 13069 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13070 fi 13071 rm -f conftest.$ac_objext conftest$ac_exeext 13072if { (ac_try="$ac_link" 13073case "(($ac_try" in 13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13075 *) ac_try_echo=$ac_try;; 13076esac 13077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13078 (eval "$ac_link") 2>conftest.er1 13079 ac_status=$? 13080 grep -v '^ *+' conftest.er1 >conftest.err 13081 rm -f conftest.er1 13082 cat conftest.err >&5 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); } && 13085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13086 { (case "(($ac_try" in 13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13088 *) ac_try_echo=$ac_try;; 13089esac 13090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13091 (eval "$ac_try") 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; } && 13095 { ac_try='test -s conftest$ac_exeext' 13096 { (case "(($ac_try" in 13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13098 *) ac_try_echo=$ac_try;; 13099esac 13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13101 (eval "$ac_try") 2>&5 13102 ac_status=$? 13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13104 (exit $ac_status); }; }; then 13105 ac_cv_search_pthread_getspecific=$ac_res 13106else 13107 echo "$as_me: failed program was:" >&5 13108sed 's/^/| /' conftest.$ac_ext >&5 13109 13110 13111fi 13112 13113rm -f core conftest.err conftest.$ac_objext \ 13114 conftest$ac_exeext 13115 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13116 break 13117fi 13118done 13119if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13120 : 13121else 13122 ac_cv_search_pthread_getspecific=no 13123fi 13124rm conftest.$ac_ext 13125LIBS=$ac_func_search_save_LIBS 13126fi 13127{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13128echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13129ac_res=$ac_cv_search_pthread_getspecific 13130if test "$ac_res" != no; then 13131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13132 13133cat >>confdefs.h <<\_ACEOF 13134#define HAVE_PTHREAD_GETSPECIFIC 1 13135_ACEOF 13136 13137fi 13138 13139fi 13140 13141 13142# Check whether --with-udis86 was given. 13143if test "${with_udis86+set}" = set; then 13144 withval=$with_udis86; 13145 USE_UDIS86=1 13146 13147 case "$withval" in 13148 /usr/lib|yes) ;; 13149 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13150 esac 13151 13152{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13153echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13154if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13155 echo $ECHO_N "(cached) $ECHO_C" >&6 13156else 13157 ac_check_lib_save_LIBS=$LIBS 13158LIBS="-ludis86 $LIBS" 13159cat >conftest.$ac_ext <<_ACEOF 13160/* confdefs.h. */ 13161_ACEOF 13162cat confdefs.h >>conftest.$ac_ext 13163cat >>conftest.$ac_ext <<_ACEOF 13164/* end confdefs.h. */ 13165 13166/* Override any GCC internal prototype to avoid an error. 13167 Use char because int might match the return type of a GCC 13168 builtin and then its argument prototype would still apply. */ 13169#ifdef __cplusplus 13170extern "C" 13171#endif 13172char ud_init (); 13173int 13174main () 13175{ 13176return ud_init (); 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181rm -f conftest.$ac_objext conftest$ac_exeext 13182if { (ac_try="$ac_link" 13183case "(($ac_try" in 13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13185 *) ac_try_echo=$ac_try;; 13186esac 13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13188 (eval "$ac_link") 2>conftest.er1 13189 ac_status=$? 13190 grep -v '^ *+' conftest.er1 >conftest.err 13191 rm -f conftest.er1 13192 cat conftest.err >&5 13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13194 (exit $ac_status); } && 13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13196 { (case "(($ac_try" in 13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13198 *) ac_try_echo=$ac_try;; 13199esac 13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13201 (eval "$ac_try") 2>&5 13202 ac_status=$? 13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13204 (exit $ac_status); }; } && 13205 { ac_try='test -s conftest$ac_exeext' 13206 { (case "(($ac_try" in 13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13208 *) ac_try_echo=$ac_try;; 13209esac 13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13211 (eval "$ac_try") 2>&5 13212 ac_status=$? 13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13214 (exit $ac_status); }; }; then 13215 ac_cv_lib_udis86_ud_init=yes 13216else 13217 echo "$as_me: failed program was:" >&5 13218sed 's/^/| /' conftest.$ac_ext >&5 13219 13220 ac_cv_lib_udis86_ud_init=no 13221fi 13222 13223rm -f core conftest.err conftest.$ac_objext \ 13224 conftest$ac_exeext conftest.$ac_ext 13225LIBS=$ac_check_lib_save_LIBS 13226fi 13227{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13228echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13229if test $ac_cv_lib_udis86_ud_init = yes; then 13230 cat >>confdefs.h <<_ACEOF 13231#define HAVE_LIBUDIS86 1 13232_ACEOF 13233 13234 LIBS="-ludis86 $LIBS" 13235 13236else 13237 13238 echo "Error! You need to have libudis86 around." 13239 exit -1 13240 13241fi 13242 13243 13244else 13245 USE_UDIS86=0 13246 13247fi 13248 13249 13250cat >>confdefs.h <<_ACEOF 13251#define USE_UDIS86 $USE_UDIS86 13252_ACEOF 13253 13254 13255 13256# Check whether --with-oprofile was given. 13257if test "${with_oprofile+set}" = set; then 13258 withval=$with_oprofile; 13259 USE_OPROFILE=1 13260 13261 case "$withval" in 13262 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13263 no) llvm_cv_oppath= 13264 USE_OPROFILE=0 13265 ;; 13266 *) llvm_cv_oppath="${withval}/lib/oprofile" 13267 CPPFLAGS="-I${withval}/include";; 13268 esac 13269 case $llvm_cv_os_type in 13270 Linux) 13271 if test -n "$llvm_cv_oppath" ; then 13272 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13273 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13274echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13275if test "${ac_cv_search_bfd_init+set}" = set; then 13276 echo $ECHO_N "(cached) $ECHO_C" >&6 13277else 13278 ac_func_search_save_LIBS=$LIBS 13279cat >conftest.$ac_ext <<_ACEOF 13280/* confdefs.h. */ 13281_ACEOF 13282cat confdefs.h >>conftest.$ac_ext 13283cat >>conftest.$ac_ext <<_ACEOF 13284/* end confdefs.h. */ 13285 13286/* Override any GCC internal prototype to avoid an error. 13287 Use char because int might match the return type of a GCC 13288 builtin and then its argument prototype would still apply. */ 13289#ifdef __cplusplus 13290extern "C" 13291#endif 13292char bfd_init (); 13293int 13294main () 13295{ 13296return bfd_init (); 13297 ; 13298 return 0; 13299} 13300_ACEOF 13301for ac_lib in '' bfd; do 13302 if test -z "$ac_lib"; then 13303 ac_res="none required" 13304 else 13305 ac_res=-l$ac_lib 13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13307 fi 13308 rm -f conftest.$ac_objext conftest$ac_exeext 13309if { (ac_try="$ac_link" 13310case "(($ac_try" in 13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13312 *) ac_try_echo=$ac_try;; 13313esac 13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13315 (eval "$ac_link") 2>conftest.er1 13316 ac_status=$? 13317 grep -v '^ *+' conftest.er1 >conftest.err 13318 rm -f conftest.er1 13319 cat conftest.err >&5 13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 (exit $ac_status); } && 13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13323 { (case "(($ac_try" in 13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13325 *) ac_try_echo=$ac_try;; 13326esac 13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13328 (eval "$ac_try") 2>&5 13329 ac_status=$? 13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13331 (exit $ac_status); }; } && 13332 { ac_try='test -s conftest$ac_exeext' 13333 { (case "(($ac_try" in 13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13335 *) ac_try_echo=$ac_try;; 13336esac 13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13338 (eval "$ac_try") 2>&5 13339 ac_status=$? 13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13341 (exit $ac_status); }; }; then 13342 ac_cv_search_bfd_init=$ac_res 13343else 13344 echo "$as_me: failed program was:" >&5 13345sed 's/^/| /' conftest.$ac_ext >&5 13346 13347 13348fi 13349 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext 13352 if test "${ac_cv_search_bfd_init+set}" = set; then 13353 break 13354fi 13355done 13356if test "${ac_cv_search_bfd_init+set}" = set; then 13357 : 13358else 13359 ac_cv_search_bfd_init=no 13360fi 13361rm conftest.$ac_ext 13362LIBS=$ac_func_search_save_LIBS 13363fi 13364{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13365echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13366ac_res=$ac_cv_search_bfd_init 13367if test "$ac_res" != no; then 13368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13369 13370fi 13371 13372 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13373echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13374if test "${ac_cv_search_op_open_agent+set}" = set; then 13375 echo $ECHO_N "(cached) $ECHO_C" >&6 13376else 13377 ac_func_search_save_LIBS=$LIBS 13378cat >conftest.$ac_ext <<_ACEOF 13379/* confdefs.h. */ 13380_ACEOF 13381cat confdefs.h >>conftest.$ac_ext 13382cat >>conftest.$ac_ext <<_ACEOF 13383/* end confdefs.h. */ 13384 13385/* Override any GCC internal prototype to avoid an error. 13386 Use char because int might match the return type of a GCC 13387 builtin and then its argument prototype would still apply. */ 13388#ifdef __cplusplus 13389extern "C" 13390#endif 13391char op_open_agent (); 13392int 13393main () 13394{ 13395return op_open_agent (); 13396 ; 13397 return 0; 13398} 13399_ACEOF 13400for ac_lib in '' opagent; do 13401 if test -z "$ac_lib"; then 13402 ac_res="none required" 13403 else 13404 ac_res=-l$ac_lib 13405 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13406 fi 13407 rm -f conftest.$ac_objext conftest$ac_exeext 13408if { (ac_try="$ac_link" 13409case "(($ac_try" in 13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13411 *) ac_try_echo=$ac_try;; 13412esac 13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13414 (eval "$ac_link") 2>conftest.er1 13415 ac_status=$? 13416 grep -v '^ *+' conftest.er1 >conftest.err 13417 rm -f conftest.er1 13418 cat conftest.err >&5 13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13420 (exit $ac_status); } && 13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13422 { (case "(($ac_try" in 13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13424 *) ac_try_echo=$ac_try;; 13425esac 13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13427 (eval "$ac_try") 2>&5 13428 ac_status=$? 13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13430 (exit $ac_status); }; } && 13431 { ac_try='test -s conftest$ac_exeext' 13432 { (case "(($ac_try" in 13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13434 *) ac_try_echo=$ac_try;; 13435esac 13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13437 (eval "$ac_try") 2>&5 13438 ac_status=$? 13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13440 (exit $ac_status); }; }; then 13441 ac_cv_search_op_open_agent=$ac_res 13442else 13443 echo "$as_me: failed program was:" >&5 13444sed 's/^/| /' conftest.$ac_ext >&5 13445 13446 13447fi 13448 13449rm -f core conftest.err conftest.$ac_objext \ 13450 conftest$ac_exeext 13451 if test "${ac_cv_search_op_open_agent+set}" = set; then 13452 break 13453fi 13454done 13455if test "${ac_cv_search_op_open_agent+set}" = set; then 13456 : 13457else 13458 ac_cv_search_op_open_agent=no 13459fi 13460rm conftest.$ac_ext 13461LIBS=$ac_func_search_save_LIBS 13462fi 13463{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13464echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13465ac_res=$ac_cv_search_op_open_agent 13466if test "$ac_res" != no; then 13467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13468 13469else 13470 13471 echo "Error! You need to have libopagent around." 13472 exit -1 13473 13474fi 13475 13476 if test "${ac_cv_header_opagent_h+set}" = set; then 13477 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13478echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13479if test "${ac_cv_header_opagent_h+set}" = set; then 13480 echo $ECHO_N "(cached) $ECHO_C" >&6 13481fi 13482{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13483echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13484else 13485 # Is the header compilable? 13486{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13487echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13488cat >conftest.$ac_ext <<_ACEOF 13489/* confdefs.h. */ 13490_ACEOF 13491cat confdefs.h >>conftest.$ac_ext 13492cat >>conftest.$ac_ext <<_ACEOF 13493/* end confdefs.h. */ 13494$ac_includes_default 13495#include <opagent.h> 13496_ACEOF 13497rm -f conftest.$ac_objext 13498if { (ac_try="$ac_compile" 13499case "(($ac_try" in 13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13501 *) ac_try_echo=$ac_try;; 13502esac 13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13504 (eval "$ac_compile") 2>conftest.er1 13505 ac_status=$? 13506 grep -v '^ *+' conftest.er1 >conftest.err 13507 rm -f conftest.er1 13508 cat conftest.err >&5 13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13510 (exit $ac_status); } && 13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13512 { (case "(($ac_try" in 13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13514 *) ac_try_echo=$ac_try;; 13515esac 13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13517 (eval "$ac_try") 2>&5 13518 ac_status=$? 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 (exit $ac_status); }; } && 13521 { ac_try='test -s conftest.$ac_objext' 13522 { (case "(($ac_try" in 13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13524 *) ac_try_echo=$ac_try;; 13525esac 13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13527 (eval "$ac_try") 2>&5 13528 ac_status=$? 13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13530 (exit $ac_status); }; }; then 13531 ac_header_compiler=yes 13532else 13533 echo "$as_me: failed program was:" >&5 13534sed 's/^/| /' conftest.$ac_ext >&5 13535 13536 ac_header_compiler=no 13537fi 13538 13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13541echo "${ECHO_T}$ac_header_compiler" >&6; } 13542 13543# Is the header present? 13544{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13545echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13546cat >conftest.$ac_ext <<_ACEOF 13547/* confdefs.h. */ 13548_ACEOF 13549cat confdefs.h >>conftest.$ac_ext 13550cat >>conftest.$ac_ext <<_ACEOF 13551/* end confdefs.h. */ 13552#include <opagent.h> 13553_ACEOF 13554if { (ac_try="$ac_cpp conftest.$ac_ext" 13555case "(($ac_try" in 13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13557 *) ac_try_echo=$ac_try;; 13558esac 13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13561 ac_status=$? 13562 grep -v '^ *+' conftest.er1 >conftest.err 13563 rm -f conftest.er1 13564 cat conftest.err >&5 13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13566 (exit $ac_status); } >/dev/null; then 13567 if test -s conftest.err; then 13568 ac_cpp_err=$ac_c_preproc_warn_flag 13569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13570 else 13571 ac_cpp_err= 13572 fi 13573else 13574 ac_cpp_err=yes 13575fi 13576if test -z "$ac_cpp_err"; then 13577 ac_header_preproc=yes 13578else 13579 echo "$as_me: failed program was:" >&5 13580sed 's/^/| /' conftest.$ac_ext >&5 13581 13582 ac_header_preproc=no 13583fi 13584 13585rm -f conftest.err conftest.$ac_ext 13586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13587echo "${ECHO_T}$ac_header_preproc" >&6; } 13588 13589# So? What about this header? 13590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13591 yes:no: ) 13592 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13593echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13594 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13595echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13596 ac_header_preproc=yes 13597 ;; 13598 no:yes:* ) 13599 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13600echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13601 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13602echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13603 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13604echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13605 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13606echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13607 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13608echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13609 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13610echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13611 ( cat <<\_ASBOX 13612## ------------------------------------ ## 13613## Report this to http://llvm.org/bugs/ ## 13614## ------------------------------------ ## 13615_ASBOX 13616 ) | sed "s/^/$as_me: WARNING: /" >&2 13617 ;; 13618esac 13619{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13620echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13621if test "${ac_cv_header_opagent_h+set}" = set; then 13622 echo $ECHO_N "(cached) $ECHO_C" >&6 13623else 13624 ac_cv_header_opagent_h=$ac_header_preproc 13625fi 13626{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13627echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13628 13629fi 13630if test $ac_cv_header_opagent_h = yes; then 13631 : 13632else 13633 13634 echo "Error! You need to have opagent.h around." 13635 exit -1 13636 13637fi 13638 13639 13640 fi ;; 13641 *) 13642 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13643echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13644 { (exit 1); exit 1; }; } ;; 13645 esac 13646 13647else 13648 13649 USE_OPROFILE=0 13650 13651 13652fi 13653 13654 13655cat >>confdefs.h <<_ACEOF 13656#define LLVM_USE_OPROFILE $USE_OPROFILE 13657_ACEOF 13658 13659 13660 13661# Check whether --with-intel-jitevents was given. 13662if test "${with_intel_jitevents+set}" = set; then 13663 withval=$with_intel_jitevents; 13664 case $llvm_cv_os_type in 13665 Linux|Win32|Cygwin|MingW) ;; 13666 *) 13667 { { echo "$as_me:$LINENO: error: 13668 Intel JIT API support is available on Linux and Windows only.\"" >&5 13669echo "$as_me: error: 13670 Intel JIT API support is available on Linux and Windows only.\"" >&2;} 13671 { (exit 1); exit 1; }; } ;; 13672 esac 13673 13674 USE_INTEL_JITEVENTS=1 13675 13676 case "$llvm_cv_target_arch" in 13677 x86) llvm_intel_jitevents_archdir="lib32";; 13678 x86_64) llvm_intel_jitevents_archdir="lib64";; 13679 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" 13680 exit -1;; 13681 esac 13682 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" 13683 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" 13684 case "$withval" in 13685 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include 13686 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; 13687 *) ;; 13688 esac 13689 13690 13691 13692 13693 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" 13694 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" 13695 13696 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 13697echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } 13698if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13699 echo $ECHO_N "(cached) $ECHO_C" >&6 13700else 13701 ac_func_search_save_LIBS=$LIBS 13702cat >conftest.$ac_ext <<_ACEOF 13703/* confdefs.h. */ 13704_ACEOF 13705cat confdefs.h >>conftest.$ac_ext 13706cat >>conftest.$ac_ext <<_ACEOF 13707/* end confdefs.h. */ 13708 13709/* Override any GCC internal prototype to avoid an error. 13710 Use char because int might match the return type of a GCC 13711 builtin and then its argument prototype would still apply. */ 13712#ifdef __cplusplus 13713extern "C" 13714#endif 13715char iJIT_IsProfilingActive (); 13716int 13717main () 13718{ 13719return iJIT_IsProfilingActive (); 13720 ; 13721 return 0; 13722} 13723_ACEOF 13724for ac_lib in '' jitprofiling; do 13725 if test -z "$ac_lib"; then 13726 ac_res="none required" 13727 else 13728 ac_res=-l$ac_lib 13729 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13730 fi 13731 rm -f conftest.$ac_objext conftest$ac_exeext 13732if { (ac_try="$ac_link" 13733case "(($ac_try" in 13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13735 *) ac_try_echo=$ac_try;; 13736esac 13737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13738 (eval "$ac_link") 2>conftest.er1 13739 ac_status=$? 13740 grep -v '^ *+' conftest.er1 >conftest.err 13741 rm -f conftest.er1 13742 cat conftest.err >&5 13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13744 (exit $ac_status); } && 13745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13746 { (case "(($ac_try" in 13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13748 *) ac_try_echo=$ac_try;; 13749esac 13750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13751 (eval "$ac_try") 2>&5 13752 ac_status=$? 13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13754 (exit $ac_status); }; } && 13755 { ac_try='test -s conftest$ac_exeext' 13756 { (case "(($ac_try" in 13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13758 *) ac_try_echo=$ac_try;; 13759esac 13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13761 (eval "$ac_try") 2>&5 13762 ac_status=$? 13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13764 (exit $ac_status); }; }; then 13765 ac_cv_search_iJIT_IsProfilingActive=$ac_res 13766else 13767 echo "$as_me: failed program was:" >&5 13768sed 's/^/| /' conftest.$ac_ext >&5 13769 13770 13771fi 13772 13773rm -f core conftest.err conftest.$ac_objext \ 13774 conftest$ac_exeext 13775 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13776 break 13777fi 13778done 13779if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13780 : 13781else 13782 ac_cv_search_iJIT_IsProfilingActive=no 13783fi 13784rm conftest.$ac_ext 13785LIBS=$ac_func_search_save_LIBS 13786fi 13787{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 13788echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } 13789ac_res=$ac_cv_search_iJIT_IsProfilingActive 13790if test "$ac_res" != no; then 13791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13792 13793else 13794 13795 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" 13796 exit -1 13797 13798fi 13799 13800 if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13801 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13802echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13803if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13804 echo $ECHO_N "(cached) $ECHO_C" >&6 13805fi 13806{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13807echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13808else 13809 # Is the header compilable? 13810{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 13811echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } 13812cat >conftest.$ac_ext <<_ACEOF 13813/* confdefs.h. */ 13814_ACEOF 13815cat confdefs.h >>conftest.$ac_ext 13816cat >>conftest.$ac_ext <<_ACEOF 13817/* end confdefs.h. */ 13818$ac_includes_default 13819#include <jitprofiling.h> 13820_ACEOF 13821rm -f conftest.$ac_objext 13822if { (ac_try="$ac_compile" 13823case "(($ac_try" in 13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13825 *) ac_try_echo=$ac_try;; 13826esac 13827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13828 (eval "$ac_compile") 2>conftest.er1 13829 ac_status=$? 13830 grep -v '^ *+' conftest.er1 >conftest.err 13831 rm -f conftest.er1 13832 cat conftest.err >&5 13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13834 (exit $ac_status); } && 13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13836 { (case "(($ac_try" in 13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13838 *) ac_try_echo=$ac_try;; 13839esac 13840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13841 (eval "$ac_try") 2>&5 13842 ac_status=$? 13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13844 (exit $ac_status); }; } && 13845 { ac_try='test -s conftest.$ac_objext' 13846 { (case "(($ac_try" in 13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13848 *) ac_try_echo=$ac_try;; 13849esac 13850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13851 (eval "$ac_try") 2>&5 13852 ac_status=$? 13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13854 (exit $ac_status); }; }; then 13855 ac_header_compiler=yes 13856else 13857 echo "$as_me: failed program was:" >&5 13858sed 's/^/| /' conftest.$ac_ext >&5 13859 13860 ac_header_compiler=no 13861fi 13862 13863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13865echo "${ECHO_T}$ac_header_compiler" >&6; } 13866 13867# Is the header present? 13868{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 13869echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } 13870cat >conftest.$ac_ext <<_ACEOF 13871/* confdefs.h. */ 13872_ACEOF 13873cat confdefs.h >>conftest.$ac_ext 13874cat >>conftest.$ac_ext <<_ACEOF 13875/* end confdefs.h. */ 13876#include <jitprofiling.h> 13877_ACEOF 13878if { (ac_try="$ac_cpp conftest.$ac_ext" 13879case "(($ac_try" in 13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13881 *) ac_try_echo=$ac_try;; 13882esac 13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13885 ac_status=$? 13886 grep -v '^ *+' conftest.er1 >conftest.err 13887 rm -f conftest.er1 13888 cat conftest.err >&5 13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13890 (exit $ac_status); } >/dev/null; then 13891 if test -s conftest.err; then 13892 ac_cpp_err=$ac_c_preproc_warn_flag 13893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13894 else 13895 ac_cpp_err= 13896 fi 13897else 13898 ac_cpp_err=yes 13899fi 13900if test -z "$ac_cpp_err"; then 13901 ac_header_preproc=yes 13902else 13903 echo "$as_me: failed program was:" >&5 13904sed 's/^/| /' conftest.$ac_ext >&5 13905 13906 ac_header_preproc=no 13907fi 13908 13909rm -f conftest.err conftest.$ac_ext 13910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13911echo "${ECHO_T}$ac_header_preproc" >&6; } 13912 13913# So? What about this header? 13914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13915 yes:no: ) 13916 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 13917echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 13919echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} 13920 ac_header_preproc=yes 13921 ;; 13922 no:yes:* ) 13923 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 13924echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} 13925 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5 13926echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;} 13927 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 13928echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} 13929 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5 13930echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;} 13931 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 13932echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} 13933 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 13934echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} 13935 ( cat <<\_ASBOX 13936## ------------------------------------ ## 13937## Report this to http://llvm.org/bugs/ ## 13938## ------------------------------------ ## 13939_ASBOX 13940 ) | sed "s/^/$as_me: WARNING: /" >&2 13941 ;; 13942esac 13943{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13944echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13945if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13946 echo $ECHO_N "(cached) $ECHO_C" >&6 13947else 13948 ac_cv_header_jitprofiling_h=$ac_header_preproc 13949fi 13950{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13951echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13952 13953fi 13954if test $ac_cv_header_jitprofiling_h = yes; then 13955 : 13956else 13957 13958 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" 13959 exit -1 13960 13961fi 13962 13963 13964 13965 13966else 13967 13968 USE_INTEL_JITEVENTS=0 13969 13970 13971fi 13972 13973 13974cat >>confdefs.h <<_ACEOF 13975#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 13976_ACEOF 13977 13978 13979 13980 13981 13982 13983 13984 13985ac_header_dirent=no 13986for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13987 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13988{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13989echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13991 echo $ECHO_N "(cached) $ECHO_C" >&6 13992else 13993 cat >conftest.$ac_ext <<_ACEOF 13994/* confdefs.h. */ 13995_ACEOF 13996cat confdefs.h >>conftest.$ac_ext 13997cat >>conftest.$ac_ext <<_ACEOF 13998/* end confdefs.h. */ 13999#include <sys/types.h> 14000#include <$ac_hdr> 14001 14002int 14003main () 14004{ 14005if ((DIR *) 0) 14006return 0; 14007 ; 14008 return 0; 14009} 14010_ACEOF 14011rm -f conftest.$ac_objext 14012if { (ac_try="$ac_compile" 14013case "(($ac_try" in 14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14015 *) ac_try_echo=$ac_try;; 14016esac 14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14018 (eval "$ac_compile") 2>conftest.er1 14019 ac_status=$? 14020 grep -v '^ *+' conftest.er1 >conftest.err 14021 rm -f conftest.er1 14022 cat conftest.err >&5 14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14024 (exit $ac_status); } && 14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14026 { (case "(($ac_try" in 14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14028 *) ac_try_echo=$ac_try;; 14029esac 14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14031 (eval "$ac_try") 2>&5 14032 ac_status=$? 14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14034 (exit $ac_status); }; } && 14035 { ac_try='test -s conftest.$ac_objext' 14036 { (case "(($ac_try" in 14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14038 *) ac_try_echo=$ac_try;; 14039esac 14040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14041 (eval "$ac_try") 2>&5 14042 ac_status=$? 14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14044 (exit $ac_status); }; }; then 14045 eval "$as_ac_Header=yes" 14046else 14047 echo "$as_me: failed program was:" >&5 14048sed 's/^/| /' conftest.$ac_ext >&5 14049 14050 eval "$as_ac_Header=no" 14051fi 14052 14053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14054fi 14055ac_res=`eval echo '${'$as_ac_Header'}'` 14056 { echo "$as_me:$LINENO: result: $ac_res" >&5 14057echo "${ECHO_T}$ac_res" >&6; } 14058if test `eval echo '${'$as_ac_Header'}'` = yes; then 14059 cat >>confdefs.h <<_ACEOF 14060#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14061_ACEOF 14062 14063ac_header_dirent=$ac_hdr; break 14064fi 14065 14066done 14067# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14068if test $ac_header_dirent = dirent.h; then 14069 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14070echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14071if test "${ac_cv_search_opendir+set}" = set; then 14072 echo $ECHO_N "(cached) $ECHO_C" >&6 14073else 14074 ac_func_search_save_LIBS=$LIBS 14075cat >conftest.$ac_ext <<_ACEOF 14076/* confdefs.h. */ 14077_ACEOF 14078cat confdefs.h >>conftest.$ac_ext 14079cat >>conftest.$ac_ext <<_ACEOF 14080/* end confdefs.h. */ 14081 14082/* Override any GCC internal prototype to avoid an error. 14083 Use char because int might match the return type of a GCC 14084 builtin and then its argument prototype would still apply. */ 14085#ifdef __cplusplus 14086extern "C" 14087#endif 14088char opendir (); 14089int 14090main () 14091{ 14092return opendir (); 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097for ac_lib in '' dir; do 14098 if test -z "$ac_lib"; then 14099 ac_res="none required" 14100 else 14101 ac_res=-l$ac_lib 14102 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14103 fi 14104 rm -f conftest.$ac_objext conftest$ac_exeext 14105if { (ac_try="$ac_link" 14106case "(($ac_try" in 14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14108 *) ac_try_echo=$ac_try;; 14109esac 14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14111 (eval "$ac_link") 2>conftest.er1 14112 ac_status=$? 14113 grep -v '^ *+' conftest.er1 >conftest.err 14114 rm -f conftest.er1 14115 cat conftest.err >&5 14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14117 (exit $ac_status); } && 14118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14119 { (case "(($ac_try" in 14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14121 *) ac_try_echo=$ac_try;; 14122esac 14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14124 (eval "$ac_try") 2>&5 14125 ac_status=$? 14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14127 (exit $ac_status); }; } && 14128 { ac_try='test -s conftest$ac_exeext' 14129 { (case "(($ac_try" in 14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14131 *) ac_try_echo=$ac_try;; 14132esac 14133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14134 (eval "$ac_try") 2>&5 14135 ac_status=$? 14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14137 (exit $ac_status); }; }; then 14138 ac_cv_search_opendir=$ac_res 14139else 14140 echo "$as_me: failed program was:" >&5 14141sed 's/^/| /' conftest.$ac_ext >&5 14142 14143 14144fi 14145 14146rm -f core conftest.err conftest.$ac_objext \ 14147 conftest$ac_exeext 14148 if test "${ac_cv_search_opendir+set}" = set; then 14149 break 14150fi 14151done 14152if test "${ac_cv_search_opendir+set}" = set; then 14153 : 14154else 14155 ac_cv_search_opendir=no 14156fi 14157rm conftest.$ac_ext 14158LIBS=$ac_func_search_save_LIBS 14159fi 14160{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14161echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14162ac_res=$ac_cv_search_opendir 14163if test "$ac_res" != no; then 14164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14165 14166fi 14167 14168else 14169 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14170echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14171if test "${ac_cv_search_opendir+set}" = set; then 14172 echo $ECHO_N "(cached) $ECHO_C" >&6 14173else 14174 ac_func_search_save_LIBS=$LIBS 14175cat >conftest.$ac_ext <<_ACEOF 14176/* confdefs.h. */ 14177_ACEOF 14178cat confdefs.h >>conftest.$ac_ext 14179cat >>conftest.$ac_ext <<_ACEOF 14180/* end confdefs.h. */ 14181 14182/* Override any GCC internal prototype to avoid an error. 14183 Use char because int might match the return type of a GCC 14184 builtin and then its argument prototype would still apply. */ 14185#ifdef __cplusplus 14186extern "C" 14187#endif 14188char opendir (); 14189int 14190main () 14191{ 14192return opendir (); 14193 ; 14194 return 0; 14195} 14196_ACEOF 14197for ac_lib in '' x; do 14198 if test -z "$ac_lib"; then 14199 ac_res="none required" 14200 else 14201 ac_res=-l$ac_lib 14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14203 fi 14204 rm -f conftest.$ac_objext conftest$ac_exeext 14205if { (ac_try="$ac_link" 14206case "(($ac_try" in 14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14208 *) ac_try_echo=$ac_try;; 14209esac 14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14211 (eval "$ac_link") 2>conftest.er1 14212 ac_status=$? 14213 grep -v '^ *+' conftest.er1 >conftest.err 14214 rm -f conftest.er1 14215 cat conftest.err >&5 14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14217 (exit $ac_status); } && 14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14219 { (case "(($ac_try" in 14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14221 *) ac_try_echo=$ac_try;; 14222esac 14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14224 (eval "$ac_try") 2>&5 14225 ac_status=$? 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); }; } && 14228 { ac_try='test -s conftest$ac_exeext' 14229 { (case "(($ac_try" in 14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14231 *) ac_try_echo=$ac_try;; 14232esac 14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14234 (eval "$ac_try") 2>&5 14235 ac_status=$? 14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14237 (exit $ac_status); }; }; then 14238 ac_cv_search_opendir=$ac_res 14239else 14240 echo "$as_me: failed program was:" >&5 14241sed 's/^/| /' conftest.$ac_ext >&5 14242 14243 14244fi 14245 14246rm -f core conftest.err conftest.$ac_objext \ 14247 conftest$ac_exeext 14248 if test "${ac_cv_search_opendir+set}" = set; then 14249 break 14250fi 14251done 14252if test "${ac_cv_search_opendir+set}" = set; then 14253 : 14254else 14255 ac_cv_search_opendir=no 14256fi 14257rm conftest.$ac_ext 14258LIBS=$ac_func_search_save_LIBS 14259fi 14260{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14261echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14262ac_res=$ac_cv_search_opendir 14263if test "$ac_res" != no; then 14264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14265 14266fi 14267 14268fi 14269 14270{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14271echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14272if test "${ac_cv_header_mmap_anon+set}" = set; then 14273 echo $ECHO_N "(cached) $ECHO_C" >&6 14274else 14275 ac_ext=c 14276ac_cpp='$CPP $CPPFLAGS' 14277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14279ac_compiler_gnu=$ac_cv_c_compiler_gnu 14280 14281 cat >conftest.$ac_ext <<_ACEOF 14282/* confdefs.h. */ 14283_ACEOF 14284cat confdefs.h >>conftest.$ac_ext 14285cat >>conftest.$ac_ext <<_ACEOF 14286/* end confdefs.h. */ 14287#include <sys/mman.h> 14288#include <unistd.h> 14289#include <fcntl.h> 14290int 14291main () 14292{ 14293mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14294 ; 14295 return 0; 14296} 14297_ACEOF 14298rm -f conftest.$ac_objext 14299if { (ac_try="$ac_compile" 14300case "(($ac_try" in 14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14302 *) ac_try_echo=$ac_try;; 14303esac 14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14305 (eval "$ac_compile") 2>conftest.er1 14306 ac_status=$? 14307 grep -v '^ *+' conftest.er1 >conftest.err 14308 rm -f conftest.er1 14309 cat conftest.err >&5 14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14311 (exit $ac_status); } && 14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14313 { (case "(($ac_try" in 14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14315 *) ac_try_echo=$ac_try;; 14316esac 14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14318 (eval "$ac_try") 2>&5 14319 ac_status=$? 14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14321 (exit $ac_status); }; } && 14322 { ac_try='test -s conftest.$ac_objext' 14323 { (case "(($ac_try" in 14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14325 *) ac_try_echo=$ac_try;; 14326esac 14327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14328 (eval "$ac_try") 2>&5 14329 ac_status=$? 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14331 (exit $ac_status); }; }; then 14332 ac_cv_header_mmap_anon=yes 14333else 14334 echo "$as_me: failed program was:" >&5 14335sed 's/^/| /' conftest.$ac_ext >&5 14336 14337 ac_cv_header_mmap_anon=no 14338fi 14339 14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14341 ac_ext=c 14342ac_cpp='$CPP $CPPFLAGS' 14343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14345ac_compiler_gnu=$ac_cv_c_compiler_gnu 14346 14347 14348fi 14349{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14350echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14351if test "$ac_cv_header_mmap_anon" = yes; then 14352 14353cat >>confdefs.h <<\_ACEOF 14354#define HAVE_MMAP_ANONYMOUS 1 14355_ACEOF 14356 14357fi 14358 14359{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14360echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14361if test "${ac_cv_header_stat_broken+set}" = set; then 14362 echo $ECHO_N "(cached) $ECHO_C" >&6 14363else 14364 cat >conftest.$ac_ext <<_ACEOF 14365/* confdefs.h. */ 14366_ACEOF 14367cat confdefs.h >>conftest.$ac_ext 14368cat >>conftest.$ac_ext <<_ACEOF 14369/* end confdefs.h. */ 14370#include <sys/types.h> 14371#include <sys/stat.h> 14372 14373#if defined S_ISBLK && defined S_IFDIR 14374# if S_ISBLK (S_IFDIR) 14375You lose. 14376# endif 14377#endif 14378 14379#if defined S_ISBLK && defined S_IFCHR 14380# if S_ISBLK (S_IFCHR) 14381You lose. 14382# endif 14383#endif 14384 14385#if defined S_ISLNK && defined S_IFREG 14386# if S_ISLNK (S_IFREG) 14387You lose. 14388# endif 14389#endif 14390 14391#if defined S_ISSOCK && defined S_IFREG 14392# if S_ISSOCK (S_IFREG) 14393You lose. 14394# endif 14395#endif 14396 14397_ACEOF 14398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14399 $EGREP "You lose" >/dev/null 2>&1; then 14400 ac_cv_header_stat_broken=yes 14401else 14402 ac_cv_header_stat_broken=no 14403fi 14404rm -f conftest* 14405 14406fi 14407{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14408echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14409if test $ac_cv_header_stat_broken = yes; then 14410 14411cat >>confdefs.h <<\_ACEOF 14412#define STAT_MACROS_BROKEN 1 14413_ACEOF 14414 14415fi 14416 14417{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14418echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14419if test "${ac_cv_header_sys_wait_h+set}" = set; then 14420 echo $ECHO_N "(cached) $ECHO_C" >&6 14421else 14422 cat >conftest.$ac_ext <<_ACEOF 14423/* confdefs.h. */ 14424_ACEOF 14425cat confdefs.h >>conftest.$ac_ext 14426cat >>conftest.$ac_ext <<_ACEOF 14427/* end confdefs.h. */ 14428#include <sys/types.h> 14429#include <sys/wait.h> 14430#ifndef WEXITSTATUS 14431# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14432#endif 14433#ifndef WIFEXITED 14434# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14435#endif 14436 14437int 14438main () 14439{ 14440 int s; 14441 wait (&s); 14442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14443 ; 14444 return 0; 14445} 14446_ACEOF 14447rm -f conftest.$ac_objext 14448if { (ac_try="$ac_compile" 14449case "(($ac_try" in 14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14451 *) ac_try_echo=$ac_try;; 14452esac 14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14454 (eval "$ac_compile") 2>conftest.er1 14455 ac_status=$? 14456 grep -v '^ *+' conftest.er1 >conftest.err 14457 rm -f conftest.er1 14458 cat conftest.err >&5 14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14460 (exit $ac_status); } && 14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14462 { (case "(($ac_try" in 14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14464 *) ac_try_echo=$ac_try;; 14465esac 14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14467 (eval "$ac_try") 2>&5 14468 ac_status=$? 14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14470 (exit $ac_status); }; } && 14471 { ac_try='test -s conftest.$ac_objext' 14472 { (case "(($ac_try" in 14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14474 *) ac_try_echo=$ac_try;; 14475esac 14476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14477 (eval "$ac_try") 2>&5 14478 ac_status=$? 14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14480 (exit $ac_status); }; }; then 14481 ac_cv_header_sys_wait_h=yes 14482else 14483 echo "$as_me: failed program was:" >&5 14484sed 's/^/| /' conftest.$ac_ext >&5 14485 14486 ac_cv_header_sys_wait_h=no 14487fi 14488 14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14490fi 14491{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14492echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14493if test $ac_cv_header_sys_wait_h = yes; then 14494 14495cat >>confdefs.h <<\_ACEOF 14496#define HAVE_SYS_WAIT_H 1 14497_ACEOF 14498 14499fi 14500 14501{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14502echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14503if test "${ac_cv_header_time+set}" = set; then 14504 echo $ECHO_N "(cached) $ECHO_C" >&6 14505else 14506 cat >conftest.$ac_ext <<_ACEOF 14507/* confdefs.h. */ 14508_ACEOF 14509cat confdefs.h >>conftest.$ac_ext 14510cat >>conftest.$ac_ext <<_ACEOF 14511/* end confdefs.h. */ 14512#include <sys/types.h> 14513#include <sys/time.h> 14514#include <time.h> 14515 14516int 14517main () 14518{ 14519if ((struct tm *) 0) 14520return 0; 14521 ; 14522 return 0; 14523} 14524_ACEOF 14525rm -f conftest.$ac_objext 14526if { (ac_try="$ac_compile" 14527case "(($ac_try" in 14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14529 *) ac_try_echo=$ac_try;; 14530esac 14531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14532 (eval "$ac_compile") 2>conftest.er1 14533 ac_status=$? 14534 grep -v '^ *+' conftest.er1 >conftest.err 14535 rm -f conftest.er1 14536 cat conftest.err >&5 14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14538 (exit $ac_status); } && 14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14540 { (case "(($ac_try" in 14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14542 *) ac_try_echo=$ac_try;; 14543esac 14544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14545 (eval "$ac_try") 2>&5 14546 ac_status=$? 14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14548 (exit $ac_status); }; } && 14549 { ac_try='test -s conftest.$ac_objext' 14550 { (case "(($ac_try" in 14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14552 *) ac_try_echo=$ac_try;; 14553esac 14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14555 (eval "$ac_try") 2>&5 14556 ac_status=$? 14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14558 (exit $ac_status); }; }; then 14559 ac_cv_header_time=yes 14560else 14561 echo "$as_me: failed program was:" >&5 14562sed 's/^/| /' conftest.$ac_ext >&5 14563 14564 ac_cv_header_time=no 14565fi 14566 14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14568fi 14569{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14570echo "${ECHO_T}$ac_cv_header_time" >&6; } 14571if test $ac_cv_header_time = yes; then 14572 14573cat >>confdefs.h <<\_ACEOF 14574#define TIME_WITH_SYS_TIME 1 14575_ACEOF 14576 14577fi 14578 14579 14580 14581 14582 14583 14584 14585 14586for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14587do 14588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14590 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14593 echo $ECHO_N "(cached) $ECHO_C" >&6 14594fi 14595ac_res=`eval echo '${'$as_ac_Header'}'` 14596 { echo "$as_me:$LINENO: result: $ac_res" >&5 14597echo "${ECHO_T}$ac_res" >&6; } 14598else 14599 # Is the header compilable? 14600{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14602cat >conftest.$ac_ext <<_ACEOF 14603/* confdefs.h. */ 14604_ACEOF 14605cat confdefs.h >>conftest.$ac_ext 14606cat >>conftest.$ac_ext <<_ACEOF 14607/* end confdefs.h. */ 14608$ac_includes_default 14609#include <$ac_header> 14610_ACEOF 14611rm -f conftest.$ac_objext 14612if { (ac_try="$ac_compile" 14613case "(($ac_try" in 14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14615 *) ac_try_echo=$ac_try;; 14616esac 14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14618 (eval "$ac_compile") 2>conftest.er1 14619 ac_status=$? 14620 grep -v '^ *+' conftest.er1 >conftest.err 14621 rm -f conftest.er1 14622 cat conftest.err >&5 14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14624 (exit $ac_status); } && 14625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14626 { (case "(($ac_try" in 14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14628 *) ac_try_echo=$ac_try;; 14629esac 14630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14631 (eval "$ac_try") 2>&5 14632 ac_status=$? 14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634 (exit $ac_status); }; } && 14635 { ac_try='test -s conftest.$ac_objext' 14636 { (case "(($ac_try" in 14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14638 *) ac_try_echo=$ac_try;; 14639esac 14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14641 (eval "$ac_try") 2>&5 14642 ac_status=$? 14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14644 (exit $ac_status); }; }; then 14645 ac_header_compiler=yes 14646else 14647 echo "$as_me: failed program was:" >&5 14648sed 's/^/| /' conftest.$ac_ext >&5 14649 14650 ac_header_compiler=no 14651fi 14652 14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14654{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14655echo "${ECHO_T}$ac_header_compiler" >&6; } 14656 14657# Is the header present? 14658{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14660cat >conftest.$ac_ext <<_ACEOF 14661/* confdefs.h. */ 14662_ACEOF 14663cat confdefs.h >>conftest.$ac_ext 14664cat >>conftest.$ac_ext <<_ACEOF 14665/* end confdefs.h. */ 14666#include <$ac_header> 14667_ACEOF 14668if { (ac_try="$ac_cpp conftest.$ac_ext" 14669case "(($ac_try" in 14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14671 *) ac_try_echo=$ac_try;; 14672esac 14673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14675 ac_status=$? 14676 grep -v '^ *+' conftest.er1 >conftest.err 14677 rm -f conftest.er1 14678 cat conftest.err >&5 14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); } >/dev/null; then 14681 if test -s conftest.err; then 14682 ac_cpp_err=$ac_c_preproc_warn_flag 14683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14684 else 14685 ac_cpp_err= 14686 fi 14687else 14688 ac_cpp_err=yes 14689fi 14690if test -z "$ac_cpp_err"; then 14691 ac_header_preproc=yes 14692else 14693 echo "$as_me: failed program was:" >&5 14694sed 's/^/| /' conftest.$ac_ext >&5 14695 14696 ac_header_preproc=no 14697fi 14698 14699rm -f conftest.err conftest.$ac_ext 14700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14701echo "${ECHO_T}$ac_header_preproc" >&6; } 14702 14703# So? What about this header? 14704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14705 yes:no: ) 14706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14710 ac_header_preproc=yes 14711 ;; 14712 no:yes:* ) 14713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14725 ( cat <<\_ASBOX 14726## ------------------------------------ ## 14727## Report this to http://llvm.org/bugs/ ## 14728## ------------------------------------ ## 14729_ASBOX 14730 ) | sed "s/^/$as_me: WARNING: /" >&2 14731 ;; 14732esac 14733{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14736 echo $ECHO_N "(cached) $ECHO_C" >&6 14737else 14738 eval "$as_ac_Header=\$ac_header_preproc" 14739fi 14740ac_res=`eval echo '${'$as_ac_Header'}'` 14741 { echo "$as_me:$LINENO: result: $ac_res" >&5 14742echo "${ECHO_T}$ac_res" >&6; } 14743 14744fi 14745if test `eval echo '${'$as_ac_Header'}'` = yes; then 14746 cat >>confdefs.h <<_ACEOF 14747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14748_ACEOF 14749 14750fi 14751 14752done 14753 14754 14755 14756 14757 14758 14759 14760for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14761do 14762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14767 echo $ECHO_N "(cached) $ECHO_C" >&6 14768fi 14769ac_res=`eval echo '${'$as_ac_Header'}'` 14770 { echo "$as_me:$LINENO: result: $ac_res" >&5 14771echo "${ECHO_T}$ac_res" >&6; } 14772else 14773 # Is the header compilable? 14774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14776cat >conftest.$ac_ext <<_ACEOF 14777/* confdefs.h. */ 14778_ACEOF 14779cat confdefs.h >>conftest.$ac_ext 14780cat >>conftest.$ac_ext <<_ACEOF 14781/* end confdefs.h. */ 14782$ac_includes_default 14783#include <$ac_header> 14784_ACEOF 14785rm -f conftest.$ac_objext 14786if { (ac_try="$ac_compile" 14787case "(($ac_try" in 14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14789 *) ac_try_echo=$ac_try;; 14790esac 14791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14792 (eval "$ac_compile") 2>conftest.er1 14793 ac_status=$? 14794 grep -v '^ *+' conftest.er1 >conftest.err 14795 rm -f conftest.er1 14796 cat conftest.err >&5 14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14798 (exit $ac_status); } && 14799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14800 { (case "(($ac_try" in 14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14802 *) ac_try_echo=$ac_try;; 14803esac 14804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14805 (eval "$ac_try") 2>&5 14806 ac_status=$? 14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14808 (exit $ac_status); }; } && 14809 { ac_try='test -s conftest.$ac_objext' 14810 { (case "(($ac_try" in 14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14812 *) ac_try_echo=$ac_try;; 14813esac 14814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14815 (eval "$ac_try") 2>&5 14816 ac_status=$? 14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14818 (exit $ac_status); }; }; then 14819 ac_header_compiler=yes 14820else 14821 echo "$as_me: failed program was:" >&5 14822sed 's/^/| /' conftest.$ac_ext >&5 14823 14824 ac_header_compiler=no 14825fi 14826 14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14829echo "${ECHO_T}$ac_header_compiler" >&6; } 14830 14831# Is the header present? 14832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14834cat >conftest.$ac_ext <<_ACEOF 14835/* confdefs.h. */ 14836_ACEOF 14837cat confdefs.h >>conftest.$ac_ext 14838cat >>conftest.$ac_ext <<_ACEOF 14839/* end confdefs.h. */ 14840#include <$ac_header> 14841_ACEOF 14842if { (ac_try="$ac_cpp conftest.$ac_ext" 14843case "(($ac_try" in 14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14845 *) ac_try_echo=$ac_try;; 14846esac 14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14849 ac_status=$? 14850 grep -v '^ *+' conftest.er1 >conftest.err 14851 rm -f conftest.er1 14852 cat conftest.err >&5 14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14854 (exit $ac_status); } >/dev/null; then 14855 if test -s conftest.err; then 14856 ac_cpp_err=$ac_c_preproc_warn_flag 14857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14858 else 14859 ac_cpp_err= 14860 fi 14861else 14862 ac_cpp_err=yes 14863fi 14864if test -z "$ac_cpp_err"; then 14865 ac_header_preproc=yes 14866else 14867 echo "$as_me: failed program was:" >&5 14868sed 's/^/| /' conftest.$ac_ext >&5 14869 14870 ac_header_preproc=no 14871fi 14872 14873rm -f conftest.err conftest.$ac_ext 14874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14875echo "${ECHO_T}$ac_header_preproc" >&6; } 14876 14877# So? What about this header? 14878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14879 yes:no: ) 14880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14884 ac_header_preproc=yes 14885 ;; 14886 no:yes:* ) 14887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14899 ( cat <<\_ASBOX 14900## ------------------------------------ ## 14901## Report this to http://llvm.org/bugs/ ## 14902## ------------------------------------ ## 14903_ASBOX 14904 ) | sed "s/^/$as_me: WARNING: /" >&2 14905 ;; 14906esac 14907{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14910 echo $ECHO_N "(cached) $ECHO_C" >&6 14911else 14912 eval "$as_ac_Header=\$ac_header_preproc" 14913fi 14914ac_res=`eval echo '${'$as_ac_Header'}'` 14915 { echo "$as_me:$LINENO: result: $ac_res" >&5 14916echo "${ECHO_T}$ac_res" >&6; } 14917 14918fi 14919if test `eval echo '${'$as_ac_Header'}'` = yes; then 14920 cat >>confdefs.h <<_ACEOF 14921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14922_ACEOF 14923 14924fi 14925 14926done 14927 14928 14929 14930for ac_header in utime.h windows.h 14931do 14932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14934 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14937 echo $ECHO_N "(cached) $ECHO_C" >&6 14938fi 14939ac_res=`eval echo '${'$as_ac_Header'}'` 14940 { echo "$as_me:$LINENO: result: $ac_res" >&5 14941echo "${ECHO_T}$ac_res" >&6; } 14942else 14943 # Is the header compilable? 14944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14946cat >conftest.$ac_ext <<_ACEOF 14947/* confdefs.h. */ 14948_ACEOF 14949cat confdefs.h >>conftest.$ac_ext 14950cat >>conftest.$ac_ext <<_ACEOF 14951/* end confdefs.h. */ 14952$ac_includes_default 14953#include <$ac_header> 14954_ACEOF 14955rm -f conftest.$ac_objext 14956if { (ac_try="$ac_compile" 14957case "(($ac_try" in 14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14959 *) ac_try_echo=$ac_try;; 14960esac 14961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14962 (eval "$ac_compile") 2>conftest.er1 14963 ac_status=$? 14964 grep -v '^ *+' conftest.er1 >conftest.err 14965 rm -f conftest.er1 14966 cat conftest.err >&5 14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14968 (exit $ac_status); } && 14969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14970 { (case "(($ac_try" in 14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14972 *) ac_try_echo=$ac_try;; 14973esac 14974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14975 (eval "$ac_try") 2>&5 14976 ac_status=$? 14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14978 (exit $ac_status); }; } && 14979 { ac_try='test -s conftest.$ac_objext' 14980 { (case "(($ac_try" in 14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14982 *) ac_try_echo=$ac_try;; 14983esac 14984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14985 (eval "$ac_try") 2>&5 14986 ac_status=$? 14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14988 (exit $ac_status); }; }; then 14989 ac_header_compiler=yes 14990else 14991 echo "$as_me: failed program was:" >&5 14992sed 's/^/| /' conftest.$ac_ext >&5 14993 14994 ac_header_compiler=no 14995fi 14996 14997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14998{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14999echo "${ECHO_T}$ac_header_compiler" >&6; } 15000 15001# Is the header present? 15002{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15004cat >conftest.$ac_ext <<_ACEOF 15005/* confdefs.h. */ 15006_ACEOF 15007cat confdefs.h >>conftest.$ac_ext 15008cat >>conftest.$ac_ext <<_ACEOF 15009/* end confdefs.h. */ 15010#include <$ac_header> 15011_ACEOF 15012if { (ac_try="$ac_cpp conftest.$ac_ext" 15013case "(($ac_try" in 15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15015 *) ac_try_echo=$ac_try;; 15016esac 15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15019 ac_status=$? 15020 grep -v '^ *+' conftest.er1 >conftest.err 15021 rm -f conftest.er1 15022 cat conftest.err >&5 15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15024 (exit $ac_status); } >/dev/null; then 15025 if test -s conftest.err; then 15026 ac_cpp_err=$ac_c_preproc_warn_flag 15027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15028 else 15029 ac_cpp_err= 15030 fi 15031else 15032 ac_cpp_err=yes 15033fi 15034if test -z "$ac_cpp_err"; then 15035 ac_header_preproc=yes 15036else 15037 echo "$as_me: failed program was:" >&5 15038sed 's/^/| /' conftest.$ac_ext >&5 15039 15040 ac_header_preproc=no 15041fi 15042 15043rm -f conftest.err conftest.$ac_ext 15044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15045echo "${ECHO_T}$ac_header_preproc" >&6; } 15046 15047# So? What about this header? 15048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15049 yes:no: ) 15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15054 ac_header_preproc=yes 15055 ;; 15056 no:yes:* ) 15057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15069 ( cat <<\_ASBOX 15070## ------------------------------------ ## 15071## Report this to http://llvm.org/bugs/ ## 15072## ------------------------------------ ## 15073_ASBOX 15074 ) | sed "s/^/$as_me: WARNING: /" >&2 15075 ;; 15076esac 15077{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15080 echo $ECHO_N "(cached) $ECHO_C" >&6 15081else 15082 eval "$as_ac_Header=\$ac_header_preproc" 15083fi 15084ac_res=`eval echo '${'$as_ac_Header'}'` 15085 { echo "$as_me:$LINENO: result: $ac_res" >&5 15086echo "${ECHO_T}$ac_res" >&6; } 15087 15088fi 15089if test `eval echo '${'$as_ac_Header'}'` = yes; then 15090 cat >>confdefs.h <<_ACEOF 15091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15092_ACEOF 15093 15094fi 15095 15096done 15097 15098 15099 15100 15101 15102 15103for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15104do 15105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15110 echo $ECHO_N "(cached) $ECHO_C" >&6 15111fi 15112ac_res=`eval echo '${'$as_ac_Header'}'` 15113 { echo "$as_me:$LINENO: result: $ac_res" >&5 15114echo "${ECHO_T}$ac_res" >&6; } 15115else 15116 # Is the header compilable? 15117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15119cat >conftest.$ac_ext <<_ACEOF 15120/* confdefs.h. */ 15121_ACEOF 15122cat confdefs.h >>conftest.$ac_ext 15123cat >>conftest.$ac_ext <<_ACEOF 15124/* end confdefs.h. */ 15125$ac_includes_default 15126#include <$ac_header> 15127_ACEOF 15128rm -f conftest.$ac_objext 15129if { (ac_try="$ac_compile" 15130case "(($ac_try" in 15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15132 *) ac_try_echo=$ac_try;; 15133esac 15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15135 (eval "$ac_compile") 2>conftest.er1 15136 ac_status=$? 15137 grep -v '^ *+' conftest.er1 >conftest.err 15138 rm -f conftest.er1 15139 cat conftest.err >&5 15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15141 (exit $ac_status); } && 15142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15143 { (case "(($ac_try" in 15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15145 *) ac_try_echo=$ac_try;; 15146esac 15147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15148 (eval "$ac_try") 2>&5 15149 ac_status=$? 15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15151 (exit $ac_status); }; } && 15152 { ac_try='test -s conftest.$ac_objext' 15153 { (case "(($ac_try" in 15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15155 *) ac_try_echo=$ac_try;; 15156esac 15157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15158 (eval "$ac_try") 2>&5 15159 ac_status=$? 15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15161 (exit $ac_status); }; }; then 15162 ac_header_compiler=yes 15163else 15164 echo "$as_me: failed program was:" >&5 15165sed 's/^/| /' conftest.$ac_ext >&5 15166 15167 ac_header_compiler=no 15168fi 15169 15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15172echo "${ECHO_T}$ac_header_compiler" >&6; } 15173 15174# Is the header present? 15175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15177cat >conftest.$ac_ext <<_ACEOF 15178/* confdefs.h. */ 15179_ACEOF 15180cat confdefs.h >>conftest.$ac_ext 15181cat >>conftest.$ac_ext <<_ACEOF 15182/* end confdefs.h. */ 15183#include <$ac_header> 15184_ACEOF 15185if { (ac_try="$ac_cpp conftest.$ac_ext" 15186case "(($ac_try" in 15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15188 *) ac_try_echo=$ac_try;; 15189esac 15190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15192 ac_status=$? 15193 grep -v '^ *+' conftest.er1 >conftest.err 15194 rm -f conftest.er1 15195 cat conftest.err >&5 15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15197 (exit $ac_status); } >/dev/null; then 15198 if test -s conftest.err; then 15199 ac_cpp_err=$ac_c_preproc_warn_flag 15200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15201 else 15202 ac_cpp_err= 15203 fi 15204else 15205 ac_cpp_err=yes 15206fi 15207if test -z "$ac_cpp_err"; then 15208 ac_header_preproc=yes 15209else 15210 echo "$as_me: failed program was:" >&5 15211sed 's/^/| /' conftest.$ac_ext >&5 15212 15213 ac_header_preproc=no 15214fi 15215 15216rm -f conftest.err conftest.$ac_ext 15217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15218echo "${ECHO_T}$ac_header_preproc" >&6; } 15219 15220# So? What about this header? 15221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15222 yes:no: ) 15223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15227 ac_header_preproc=yes 15228 ;; 15229 no:yes:* ) 15230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15242 ( cat <<\_ASBOX 15243## ------------------------------------ ## 15244## Report this to http://llvm.org/bugs/ ## 15245## ------------------------------------ ## 15246_ASBOX 15247 ) | sed "s/^/$as_me: WARNING: /" >&2 15248 ;; 15249esac 15250{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15253 echo $ECHO_N "(cached) $ECHO_C" >&6 15254else 15255 eval "$as_ac_Header=\$ac_header_preproc" 15256fi 15257ac_res=`eval echo '${'$as_ac_Header'}'` 15258 { echo "$as_me:$LINENO: result: $ac_res" >&5 15259echo "${ECHO_T}$ac_res" >&6; } 15260 15261fi 15262if test `eval echo '${'$as_ac_Header'}'` = yes; then 15263 cat >>confdefs.h <<_ACEOF 15264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15265_ACEOF 15266 15267fi 15268 15269done 15270 15271 15272 15273 15274 15275for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15276do 15277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15279 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15282 echo $ECHO_N "(cached) $ECHO_C" >&6 15283fi 15284ac_res=`eval echo '${'$as_ac_Header'}'` 15285 { echo "$as_me:$LINENO: result: $ac_res" >&5 15286echo "${ECHO_T}$ac_res" >&6; } 15287else 15288 # Is the header compilable? 15289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15291cat >conftest.$ac_ext <<_ACEOF 15292/* confdefs.h. */ 15293_ACEOF 15294cat confdefs.h >>conftest.$ac_ext 15295cat >>conftest.$ac_ext <<_ACEOF 15296/* end confdefs.h. */ 15297$ac_includes_default 15298#include <$ac_header> 15299_ACEOF 15300rm -f conftest.$ac_objext 15301if { (ac_try="$ac_compile" 15302case "(($ac_try" in 15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15304 *) ac_try_echo=$ac_try;; 15305esac 15306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15307 (eval "$ac_compile") 2>conftest.er1 15308 ac_status=$? 15309 grep -v '^ *+' conftest.er1 >conftest.err 15310 rm -f conftest.er1 15311 cat conftest.err >&5 15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15313 (exit $ac_status); } && 15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15315 { (case "(($ac_try" in 15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15317 *) ac_try_echo=$ac_try;; 15318esac 15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15320 (eval "$ac_try") 2>&5 15321 ac_status=$? 15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15323 (exit $ac_status); }; } && 15324 { ac_try='test -s conftest.$ac_objext' 15325 { (case "(($ac_try" in 15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15327 *) ac_try_echo=$ac_try;; 15328esac 15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15330 (eval "$ac_try") 2>&5 15331 ac_status=$? 15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15333 (exit $ac_status); }; }; then 15334 ac_header_compiler=yes 15335else 15336 echo "$as_me: failed program was:" >&5 15337sed 's/^/| /' conftest.$ac_ext >&5 15338 15339 ac_header_compiler=no 15340fi 15341 15342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15343{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15344echo "${ECHO_T}$ac_header_compiler" >&6; } 15345 15346# Is the header present? 15347{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15349cat >conftest.$ac_ext <<_ACEOF 15350/* confdefs.h. */ 15351_ACEOF 15352cat confdefs.h >>conftest.$ac_ext 15353cat >>conftest.$ac_ext <<_ACEOF 15354/* end confdefs.h. */ 15355#include <$ac_header> 15356_ACEOF 15357if { (ac_try="$ac_cpp conftest.$ac_ext" 15358case "(($ac_try" in 15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15360 *) ac_try_echo=$ac_try;; 15361esac 15362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15364 ac_status=$? 15365 grep -v '^ *+' conftest.er1 >conftest.err 15366 rm -f conftest.er1 15367 cat conftest.err >&5 15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15369 (exit $ac_status); } >/dev/null; then 15370 if test -s conftest.err; then 15371 ac_cpp_err=$ac_c_preproc_warn_flag 15372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15373 else 15374 ac_cpp_err= 15375 fi 15376else 15377 ac_cpp_err=yes 15378fi 15379if test -z "$ac_cpp_err"; then 15380 ac_header_preproc=yes 15381else 15382 echo "$as_me: failed program was:" >&5 15383sed 's/^/| /' conftest.$ac_ext >&5 15384 15385 ac_header_preproc=no 15386fi 15387 15388rm -f conftest.err conftest.$ac_ext 15389{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15390echo "${ECHO_T}$ac_header_preproc" >&6; } 15391 15392# So? What about this header? 15393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15394 yes:no: ) 15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15399 ac_header_preproc=yes 15400 ;; 15401 no:yes:* ) 15402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15414 ( cat <<\_ASBOX 15415## ------------------------------------ ## 15416## Report this to http://llvm.org/bugs/ ## 15417## ------------------------------------ ## 15418_ASBOX 15419 ) | sed "s/^/$as_me: WARNING: /" >&2 15420 ;; 15421esac 15422{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15425 echo $ECHO_N "(cached) $ECHO_C" >&6 15426else 15427 eval "$as_ac_Header=\$ac_header_preproc" 15428fi 15429ac_res=`eval echo '${'$as_ac_Header'}'` 15430 { echo "$as_me:$LINENO: result: $ac_res" >&5 15431echo "${ECHO_T}$ac_res" >&6; } 15432 15433fi 15434if test `eval echo '${'$as_ac_Header'}'` = yes; then 15435 cat >>confdefs.h <<_ACEOF 15436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15437_ACEOF 15438 15439fi 15440 15441done 15442 15443 15444for ac_header in valgrind/valgrind.h 15445do 15446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15451 echo $ECHO_N "(cached) $ECHO_C" >&6 15452fi 15453ac_res=`eval echo '${'$as_ac_Header'}'` 15454 { echo "$as_me:$LINENO: result: $ac_res" >&5 15455echo "${ECHO_T}$ac_res" >&6; } 15456else 15457 # Is the header compilable? 15458{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15460cat >conftest.$ac_ext <<_ACEOF 15461/* confdefs.h. */ 15462_ACEOF 15463cat confdefs.h >>conftest.$ac_ext 15464cat >>conftest.$ac_ext <<_ACEOF 15465/* end confdefs.h. */ 15466$ac_includes_default 15467#include <$ac_header> 15468_ACEOF 15469rm -f conftest.$ac_objext 15470if { (ac_try="$ac_compile" 15471case "(($ac_try" in 15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15473 *) ac_try_echo=$ac_try;; 15474esac 15475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15476 (eval "$ac_compile") 2>conftest.er1 15477 ac_status=$? 15478 grep -v '^ *+' conftest.er1 >conftest.err 15479 rm -f conftest.er1 15480 cat conftest.err >&5 15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15482 (exit $ac_status); } && 15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15484 { (case "(($ac_try" in 15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15486 *) ac_try_echo=$ac_try;; 15487esac 15488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15489 (eval "$ac_try") 2>&5 15490 ac_status=$? 15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15492 (exit $ac_status); }; } && 15493 { ac_try='test -s conftest.$ac_objext' 15494 { (case "(($ac_try" in 15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15496 *) ac_try_echo=$ac_try;; 15497esac 15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15499 (eval "$ac_try") 2>&5 15500 ac_status=$? 15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15502 (exit $ac_status); }; }; then 15503 ac_header_compiler=yes 15504else 15505 echo "$as_me: failed program was:" >&5 15506sed 's/^/| /' conftest.$ac_ext >&5 15507 15508 ac_header_compiler=no 15509fi 15510 15511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15513echo "${ECHO_T}$ac_header_compiler" >&6; } 15514 15515# Is the header present? 15516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15518cat >conftest.$ac_ext <<_ACEOF 15519/* confdefs.h. */ 15520_ACEOF 15521cat confdefs.h >>conftest.$ac_ext 15522cat >>conftest.$ac_ext <<_ACEOF 15523/* end confdefs.h. */ 15524#include <$ac_header> 15525_ACEOF 15526if { (ac_try="$ac_cpp conftest.$ac_ext" 15527case "(($ac_try" in 15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15529 *) ac_try_echo=$ac_try;; 15530esac 15531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15533 ac_status=$? 15534 grep -v '^ *+' conftest.er1 >conftest.err 15535 rm -f conftest.er1 15536 cat conftest.err >&5 15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15538 (exit $ac_status); } >/dev/null; then 15539 if test -s conftest.err; then 15540 ac_cpp_err=$ac_c_preproc_warn_flag 15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15542 else 15543 ac_cpp_err= 15544 fi 15545else 15546 ac_cpp_err=yes 15547fi 15548if test -z "$ac_cpp_err"; then 15549 ac_header_preproc=yes 15550else 15551 echo "$as_me: failed program was:" >&5 15552sed 's/^/| /' conftest.$ac_ext >&5 15553 15554 ac_header_preproc=no 15555fi 15556 15557rm -f conftest.err conftest.$ac_ext 15558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15559echo "${ECHO_T}$ac_header_preproc" >&6; } 15560 15561# So? What about this header? 15562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15563 yes:no: ) 15564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15568 ac_header_preproc=yes 15569 ;; 15570 no:yes:* ) 15571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15583 ( cat <<\_ASBOX 15584## ------------------------------------ ## 15585## Report this to http://llvm.org/bugs/ ## 15586## ------------------------------------ ## 15587_ASBOX 15588 ) | sed "s/^/$as_me: WARNING: /" >&2 15589 ;; 15590esac 15591{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15594 echo $ECHO_N "(cached) $ECHO_C" >&6 15595else 15596 eval "$as_ac_Header=\$ac_header_preproc" 15597fi 15598ac_res=`eval echo '${'$as_ac_Header'}'` 15599 { echo "$as_me:$LINENO: result: $ac_res" >&5 15600echo "${ECHO_T}$ac_res" >&6; } 15601 15602fi 15603if test `eval echo '${'$as_ac_Header'}'` = yes; then 15604 cat >>confdefs.h <<_ACEOF 15605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15606_ACEOF 15607 15608fi 15609 15610done 15611 15612 15613for ac_header in fenv.h 15614do 15615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15620 echo $ECHO_N "(cached) $ECHO_C" >&6 15621fi 15622ac_res=`eval echo '${'$as_ac_Header'}'` 15623 { echo "$as_me:$LINENO: result: $ac_res" >&5 15624echo "${ECHO_T}$ac_res" >&6; } 15625else 15626 # Is the header compilable? 15627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15629cat >conftest.$ac_ext <<_ACEOF 15630/* confdefs.h. */ 15631_ACEOF 15632cat confdefs.h >>conftest.$ac_ext 15633cat >>conftest.$ac_ext <<_ACEOF 15634/* end confdefs.h. */ 15635$ac_includes_default 15636#include <$ac_header> 15637_ACEOF 15638rm -f conftest.$ac_objext 15639if { (ac_try="$ac_compile" 15640case "(($ac_try" in 15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15642 *) ac_try_echo=$ac_try;; 15643esac 15644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15645 (eval "$ac_compile") 2>conftest.er1 15646 ac_status=$? 15647 grep -v '^ *+' conftest.er1 >conftest.err 15648 rm -f conftest.er1 15649 cat conftest.err >&5 15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15651 (exit $ac_status); } && 15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15653 { (case "(($ac_try" in 15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15655 *) ac_try_echo=$ac_try;; 15656esac 15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15658 (eval "$ac_try") 2>&5 15659 ac_status=$? 15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15661 (exit $ac_status); }; } && 15662 { ac_try='test -s conftest.$ac_objext' 15663 { (case "(($ac_try" in 15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15665 *) ac_try_echo=$ac_try;; 15666esac 15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15668 (eval "$ac_try") 2>&5 15669 ac_status=$? 15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15671 (exit $ac_status); }; }; then 15672 ac_header_compiler=yes 15673else 15674 echo "$as_me: failed program was:" >&5 15675sed 's/^/| /' conftest.$ac_ext >&5 15676 15677 ac_header_compiler=no 15678fi 15679 15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15682echo "${ECHO_T}$ac_header_compiler" >&6; } 15683 15684# Is the header present? 15685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15687cat >conftest.$ac_ext <<_ACEOF 15688/* confdefs.h. */ 15689_ACEOF 15690cat confdefs.h >>conftest.$ac_ext 15691cat >>conftest.$ac_ext <<_ACEOF 15692/* end confdefs.h. */ 15693#include <$ac_header> 15694_ACEOF 15695if { (ac_try="$ac_cpp conftest.$ac_ext" 15696case "(($ac_try" in 15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15698 *) ac_try_echo=$ac_try;; 15699esac 15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15702 ac_status=$? 15703 grep -v '^ *+' conftest.er1 >conftest.err 15704 rm -f conftest.er1 15705 cat conftest.err >&5 15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15707 (exit $ac_status); } >/dev/null; then 15708 if test -s conftest.err; then 15709 ac_cpp_err=$ac_c_preproc_warn_flag 15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15711 else 15712 ac_cpp_err= 15713 fi 15714else 15715 ac_cpp_err=yes 15716fi 15717if test -z "$ac_cpp_err"; then 15718 ac_header_preproc=yes 15719else 15720 echo "$as_me: failed program was:" >&5 15721sed 's/^/| /' conftest.$ac_ext >&5 15722 15723 ac_header_preproc=no 15724fi 15725 15726rm -f conftest.err conftest.$ac_ext 15727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15728echo "${ECHO_T}$ac_header_preproc" >&6; } 15729 15730# So? What about this header? 15731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15732 yes:no: ) 15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15737 ac_header_preproc=yes 15738 ;; 15739 no:yes:* ) 15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15752 ( cat <<\_ASBOX 15753## ------------------------------------ ## 15754## Report this to http://llvm.org/bugs/ ## 15755## ------------------------------------ ## 15756_ASBOX 15757 ) | sed "s/^/$as_me: WARNING: /" >&2 15758 ;; 15759esac 15760{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15763 echo $ECHO_N "(cached) $ECHO_C" >&6 15764else 15765 eval "$as_ac_Header=\$ac_header_preproc" 15766fi 15767ac_res=`eval echo '${'$as_ac_Header'}'` 15768 { echo "$as_me:$LINENO: result: $ac_res" >&5 15769echo "${ECHO_T}$ac_res" >&6; } 15770 15771fi 15772if test `eval echo '${'$as_ac_Header'}'` = yes; then 15773 cat >>confdefs.h <<_ACEOF 15774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15775_ACEOF 15776 15777fi 15778 15779done 15780 15781if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15782 15783for ac_header in pthread.h 15784do 15785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15787 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15790 echo $ECHO_N "(cached) $ECHO_C" >&6 15791fi 15792ac_res=`eval echo '${'$as_ac_Header'}'` 15793 { echo "$as_me:$LINENO: result: $ac_res" >&5 15794echo "${ECHO_T}$ac_res" >&6; } 15795else 15796 # Is the header compilable? 15797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15799cat >conftest.$ac_ext <<_ACEOF 15800/* confdefs.h. */ 15801_ACEOF 15802cat confdefs.h >>conftest.$ac_ext 15803cat >>conftest.$ac_ext <<_ACEOF 15804/* end confdefs.h. */ 15805$ac_includes_default 15806#include <$ac_header> 15807_ACEOF 15808rm -f conftest.$ac_objext 15809if { (ac_try="$ac_compile" 15810case "(($ac_try" in 15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15812 *) ac_try_echo=$ac_try;; 15813esac 15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15815 (eval "$ac_compile") 2>conftest.er1 15816 ac_status=$? 15817 grep -v '^ *+' conftest.er1 >conftest.err 15818 rm -f conftest.er1 15819 cat conftest.err >&5 15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15821 (exit $ac_status); } && 15822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15823 { (case "(($ac_try" in 15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15825 *) ac_try_echo=$ac_try;; 15826esac 15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15828 (eval "$ac_try") 2>&5 15829 ac_status=$? 15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15831 (exit $ac_status); }; } && 15832 { ac_try='test -s conftest.$ac_objext' 15833 { (case "(($ac_try" in 15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15835 *) ac_try_echo=$ac_try;; 15836esac 15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15838 (eval "$ac_try") 2>&5 15839 ac_status=$? 15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15841 (exit $ac_status); }; }; then 15842 ac_header_compiler=yes 15843else 15844 echo "$as_me: failed program was:" >&5 15845sed 's/^/| /' conftest.$ac_ext >&5 15846 15847 ac_header_compiler=no 15848fi 15849 15850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15852echo "${ECHO_T}$ac_header_compiler" >&6; } 15853 15854# Is the header present? 15855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15857cat >conftest.$ac_ext <<_ACEOF 15858/* confdefs.h. */ 15859_ACEOF 15860cat confdefs.h >>conftest.$ac_ext 15861cat >>conftest.$ac_ext <<_ACEOF 15862/* end confdefs.h. */ 15863#include <$ac_header> 15864_ACEOF 15865if { (ac_try="$ac_cpp conftest.$ac_ext" 15866case "(($ac_try" in 15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15868 *) ac_try_echo=$ac_try;; 15869esac 15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15872 ac_status=$? 15873 grep -v '^ *+' conftest.er1 >conftest.err 15874 rm -f conftest.er1 15875 cat conftest.err >&5 15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15877 (exit $ac_status); } >/dev/null; then 15878 if test -s conftest.err; then 15879 ac_cpp_err=$ac_c_preproc_warn_flag 15880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15881 else 15882 ac_cpp_err= 15883 fi 15884else 15885 ac_cpp_err=yes 15886fi 15887if test -z "$ac_cpp_err"; then 15888 ac_header_preproc=yes 15889else 15890 echo "$as_me: failed program was:" >&5 15891sed 's/^/| /' conftest.$ac_ext >&5 15892 15893 ac_header_preproc=no 15894fi 15895 15896rm -f conftest.err conftest.$ac_ext 15897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15898echo "${ECHO_T}$ac_header_preproc" >&6; } 15899 15900# So? What about this header? 15901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15902 yes:no: ) 15903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15907 ac_header_preproc=yes 15908 ;; 15909 no:yes:* ) 15910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15922 ( cat <<\_ASBOX 15923## ------------------------------------ ## 15924## Report this to http://llvm.org/bugs/ ## 15925## ------------------------------------ ## 15926_ASBOX 15927 ) | sed "s/^/$as_me: WARNING: /" >&2 15928 ;; 15929esac 15930{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15933 echo $ECHO_N "(cached) $ECHO_C" >&6 15934else 15935 eval "$as_ac_Header=\$ac_header_preproc" 15936fi 15937ac_res=`eval echo '${'$as_ac_Header'}'` 15938 { echo "$as_me:$LINENO: result: $ac_res" >&5 15939echo "${ECHO_T}$ac_res" >&6; } 15940 15941fi 15942if test `eval echo '${'$as_ac_Header'}'` = yes; then 15943 cat >>confdefs.h <<_ACEOF 15944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15945_ACEOF 15946 HAVE_PTHREAD=1 15947 15948else 15949 HAVE_PTHREAD=0 15950 15951fi 15952 15953done 15954 15955else 15956 HAVE_PTHREAD=0 15957 15958fi 15959 15960if test "$llvm_cv_enable_libffi" = "yes" ; then 15961 15962 15963for ac_header in ffi.h ffi/ffi.h 15964do 15965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15967 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15970 echo $ECHO_N "(cached) $ECHO_C" >&6 15971fi 15972ac_res=`eval echo '${'$as_ac_Header'}'` 15973 { echo "$as_me:$LINENO: result: $ac_res" >&5 15974echo "${ECHO_T}$ac_res" >&6; } 15975else 15976 # Is the header compilable? 15977{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15979cat >conftest.$ac_ext <<_ACEOF 15980/* confdefs.h. */ 15981_ACEOF 15982cat confdefs.h >>conftest.$ac_ext 15983cat >>conftest.$ac_ext <<_ACEOF 15984/* end confdefs.h. */ 15985$ac_includes_default 15986#include <$ac_header> 15987_ACEOF 15988rm -f conftest.$ac_objext 15989if { (ac_try="$ac_compile" 15990case "(($ac_try" in 15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15992 *) ac_try_echo=$ac_try;; 15993esac 15994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15995 (eval "$ac_compile") 2>conftest.er1 15996 ac_status=$? 15997 grep -v '^ *+' conftest.er1 >conftest.err 15998 rm -f conftest.er1 15999 cat conftest.err >&5 16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16001 (exit $ac_status); } && 16002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16003 { (case "(($ac_try" in 16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16005 *) ac_try_echo=$ac_try;; 16006esac 16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16008 (eval "$ac_try") 2>&5 16009 ac_status=$? 16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16011 (exit $ac_status); }; } && 16012 { ac_try='test -s conftest.$ac_objext' 16013 { (case "(($ac_try" in 16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16015 *) ac_try_echo=$ac_try;; 16016esac 16017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16018 (eval "$ac_try") 2>&5 16019 ac_status=$? 16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16021 (exit $ac_status); }; }; then 16022 ac_header_compiler=yes 16023else 16024 echo "$as_me: failed program was:" >&5 16025sed 's/^/| /' conftest.$ac_ext >&5 16026 16027 ac_header_compiler=no 16028fi 16029 16030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16032echo "${ECHO_T}$ac_header_compiler" >&6; } 16033 16034# Is the header present? 16035{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16037cat >conftest.$ac_ext <<_ACEOF 16038/* confdefs.h. */ 16039_ACEOF 16040cat confdefs.h >>conftest.$ac_ext 16041cat >>conftest.$ac_ext <<_ACEOF 16042/* end confdefs.h. */ 16043#include <$ac_header> 16044_ACEOF 16045if { (ac_try="$ac_cpp conftest.$ac_ext" 16046case "(($ac_try" in 16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16048 *) ac_try_echo=$ac_try;; 16049esac 16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16052 ac_status=$? 16053 grep -v '^ *+' conftest.er1 >conftest.err 16054 rm -f conftest.er1 16055 cat conftest.err >&5 16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16057 (exit $ac_status); } >/dev/null; then 16058 if test -s conftest.err; then 16059 ac_cpp_err=$ac_c_preproc_warn_flag 16060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16061 else 16062 ac_cpp_err= 16063 fi 16064else 16065 ac_cpp_err=yes 16066fi 16067if test -z "$ac_cpp_err"; then 16068 ac_header_preproc=yes 16069else 16070 echo "$as_me: failed program was:" >&5 16071sed 's/^/| /' conftest.$ac_ext >&5 16072 16073 ac_header_preproc=no 16074fi 16075 16076rm -f conftest.err conftest.$ac_ext 16077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16078echo "${ECHO_T}$ac_header_preproc" >&6; } 16079 16080# So? What about this header? 16081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16082 yes:no: ) 16083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16087 ac_header_preproc=yes 16088 ;; 16089 no:yes:* ) 16090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16102 ( cat <<\_ASBOX 16103## ------------------------------------ ## 16104## Report this to http://llvm.org/bugs/ ## 16105## ------------------------------------ ## 16106_ASBOX 16107 ) | sed "s/^/$as_me: WARNING: /" >&2 16108 ;; 16109esac 16110{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16113 echo $ECHO_N "(cached) $ECHO_C" >&6 16114else 16115 eval "$as_ac_Header=\$ac_header_preproc" 16116fi 16117ac_res=`eval echo '${'$as_ac_Header'}'` 16118 { echo "$as_me:$LINENO: result: $ac_res" >&5 16119echo "${ECHO_T}$ac_res" >&6; } 16120 16121fi 16122if test `eval echo '${'$as_ac_Header'}'` = yes; then 16123 cat >>confdefs.h <<_ACEOF 16124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16125_ACEOF 16126 16127fi 16128 16129done 16130 16131fi 16132 16133 16134for ac_header in CrashReporterClient.h 16135do 16136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16141 echo $ECHO_N "(cached) $ECHO_C" >&6 16142fi 16143ac_res=`eval echo '${'$as_ac_Header'}'` 16144 { echo "$as_me:$LINENO: result: $ac_res" >&5 16145echo "${ECHO_T}$ac_res" >&6; } 16146else 16147 # Is the header compilable? 16148{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16150cat >conftest.$ac_ext <<_ACEOF 16151/* confdefs.h. */ 16152_ACEOF 16153cat confdefs.h >>conftest.$ac_ext 16154cat >>conftest.$ac_ext <<_ACEOF 16155/* end confdefs.h. */ 16156$ac_includes_default 16157#include <$ac_header> 16158_ACEOF 16159rm -f conftest.$ac_objext 16160if { (ac_try="$ac_compile" 16161case "(($ac_try" in 16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16163 *) ac_try_echo=$ac_try;; 16164esac 16165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16166 (eval "$ac_compile") 2>conftest.er1 16167 ac_status=$? 16168 grep -v '^ *+' conftest.er1 >conftest.err 16169 rm -f conftest.er1 16170 cat conftest.err >&5 16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16172 (exit $ac_status); } && 16173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16174 { (case "(($ac_try" in 16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16176 *) ac_try_echo=$ac_try;; 16177esac 16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16179 (eval "$ac_try") 2>&5 16180 ac_status=$? 16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16182 (exit $ac_status); }; } && 16183 { ac_try='test -s conftest.$ac_objext' 16184 { (case "(($ac_try" in 16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16186 *) ac_try_echo=$ac_try;; 16187esac 16188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16189 (eval "$ac_try") 2>&5 16190 ac_status=$? 16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16192 (exit $ac_status); }; }; then 16193 ac_header_compiler=yes 16194else 16195 echo "$as_me: failed program was:" >&5 16196sed 's/^/| /' conftest.$ac_ext >&5 16197 16198 ac_header_compiler=no 16199fi 16200 16201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16203echo "${ECHO_T}$ac_header_compiler" >&6; } 16204 16205# Is the header present? 16206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16208cat >conftest.$ac_ext <<_ACEOF 16209/* confdefs.h. */ 16210_ACEOF 16211cat confdefs.h >>conftest.$ac_ext 16212cat >>conftest.$ac_ext <<_ACEOF 16213/* end confdefs.h. */ 16214#include <$ac_header> 16215_ACEOF 16216if { (ac_try="$ac_cpp conftest.$ac_ext" 16217case "(($ac_try" in 16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16219 *) ac_try_echo=$ac_try;; 16220esac 16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16223 ac_status=$? 16224 grep -v '^ *+' conftest.er1 >conftest.err 16225 rm -f conftest.er1 16226 cat conftest.err >&5 16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16228 (exit $ac_status); } >/dev/null; then 16229 if test -s conftest.err; then 16230 ac_cpp_err=$ac_c_preproc_warn_flag 16231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16232 else 16233 ac_cpp_err= 16234 fi 16235else 16236 ac_cpp_err=yes 16237fi 16238if test -z "$ac_cpp_err"; then 16239 ac_header_preproc=yes 16240else 16241 echo "$as_me: failed program was:" >&5 16242sed 's/^/| /' conftest.$ac_ext >&5 16243 16244 ac_header_preproc=no 16245fi 16246 16247rm -f conftest.err conftest.$ac_ext 16248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16249echo "${ECHO_T}$ac_header_preproc" >&6; } 16250 16251# So? What about this header? 16252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16253 yes:no: ) 16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16258 ac_header_preproc=yes 16259 ;; 16260 no:yes:* ) 16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16273 ( cat <<\_ASBOX 16274## ------------------------------------ ## 16275## Report this to http://llvm.org/bugs/ ## 16276## ------------------------------------ ## 16277_ASBOX 16278 ) | sed "s/^/$as_me: WARNING: /" >&2 16279 ;; 16280esac 16281{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16284 echo $ECHO_N "(cached) $ECHO_C" >&6 16285else 16286 eval "$as_ac_Header=\$ac_header_preproc" 16287fi 16288ac_res=`eval echo '${'$as_ac_Header'}'` 16289 { echo "$as_me:$LINENO: result: $ac_res" >&5 16290echo "${ECHO_T}$ac_res" >&6; } 16291 16292fi 16293if test `eval echo '${'$as_ac_Header'}'` = yes; then 16294 cat >>confdefs.h <<_ACEOF 16295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16296_ACEOF 16297 16298fi 16299 16300done 16301 16302 16303{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16304echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16305cat >conftest.$ac_ext <<_ACEOF 16306/* confdefs.h. */ 16307_ACEOF 16308cat confdefs.h >>conftest.$ac_ext 16309cat >>conftest.$ac_ext <<_ACEOF 16310/* end confdefs.h. */ 16311extern const char *__crashreporter_info__; 16312 int main() { 16313 __crashreporter_info__ = "test"; 16314 return 0; 16315 } 16316 16317_ACEOF 16318rm -f conftest.$ac_objext conftest$ac_exeext 16319if { (ac_try="$ac_link" 16320case "(($ac_try" in 16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16322 *) ac_try_echo=$ac_try;; 16323esac 16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16325 (eval "$ac_link") 2>conftest.er1 16326 ac_status=$? 16327 grep -v '^ *+' conftest.er1 >conftest.err 16328 rm -f conftest.er1 16329 cat conftest.err >&5 16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16331 (exit $ac_status); } && 16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16333 { (case "(($ac_try" in 16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16335 *) ac_try_echo=$ac_try;; 16336esac 16337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16338 (eval "$ac_try") 2>&5 16339 ac_status=$? 16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16341 (exit $ac_status); }; } && 16342 { ac_try='test -s conftest$ac_exeext' 16343 { (case "(($ac_try" in 16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16345 *) ac_try_echo=$ac_try;; 16346esac 16347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16348 (eval "$ac_try") 2>&5 16349 ac_status=$? 16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16351 (exit $ac_status); }; }; then 16352 { echo "$as_me:$LINENO: result: yes" >&5 16353echo "${ECHO_T}yes" >&6; } 16354 16355cat >>confdefs.h <<\_ACEOF 16356#define HAVE_CRASHREPORTER_INFO 1 16357_ACEOF 16358 16359else 16360 echo "$as_me: failed program was:" >&5 16361sed 's/^/| /' conftest.$ac_ext >&5 16362 16363 { echo "$as_me:$LINENO: result: no" >&5 16364echo "${ECHO_T}no" >&6; } 16365 16366cat >>confdefs.h <<\_ACEOF 16367#define HAVE_CRASHREPORTER_INFO 0 16368_ACEOF 16369 16370fi 16371 16372rm -f core conftest.err conftest.$ac_objext \ 16373 conftest$ac_exeext conftest.$ac_ext 16374 16375 16376 16377 16378 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16379echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16380if test "${ac_cv_huge_val_sanity+set}" = set; then 16381 echo $ECHO_N "(cached) $ECHO_C" >&6 16382else 16383 16384 ac_ext=cpp 16385ac_cpp='$CXXCPP $CPPFLAGS' 16386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16389 16390 ac_save_CXXFLAGS=$CXXFLAGS 16391 CXXFLAGS="$CXXFLAGS -pedantic" 16392 if test "$cross_compiling" = yes; then 16393 ac_cv_huge_val_sanity=yes 16394else 16395 cat >conftest.$ac_ext <<_ACEOF 16396/* confdefs.h. */ 16397_ACEOF 16398cat confdefs.h >>conftest.$ac_ext 16399cat >>conftest.$ac_ext <<_ACEOF 16400/* end confdefs.h. */ 16401#include <math.h> 16402int 16403main () 16404{ 16405double x = HUGE_VAL; return x != x; 16406 ; 16407 return 0; 16408} 16409_ACEOF 16410rm -f conftest$ac_exeext 16411if { (ac_try="$ac_link" 16412case "(($ac_try" in 16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16414 *) ac_try_echo=$ac_try;; 16415esac 16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16417 (eval "$ac_link") 2>&5 16418 ac_status=$? 16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16421 { (case "(($ac_try" in 16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16423 *) ac_try_echo=$ac_try;; 16424esac 16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16426 (eval "$ac_try") 2>&5 16427 ac_status=$? 16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16429 (exit $ac_status); }; }; then 16430 ac_cv_huge_val_sanity=yes 16431else 16432 echo "$as_me: program exited with status $ac_status" >&5 16433echo "$as_me: failed program was:" >&5 16434sed 's/^/| /' conftest.$ac_ext >&5 16435 16436( exit $ac_status ) 16437ac_cv_huge_val_sanity=no 16438fi 16439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16440fi 16441 16442 16443 CXXFLAGS=$ac_save_CXXFLAGS 16444 ac_ext=c 16445ac_cpp='$CPP $CPPFLAGS' 16446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16448ac_compiler_gnu=$ac_cv_c_compiler_gnu 16449 16450 16451fi 16452{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16453echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16454 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16455 16456 16457{ echo "$as_me:$LINENO: checking for pid_t" >&5 16458echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16459if test "${ac_cv_type_pid_t+set}" = set; then 16460 echo $ECHO_N "(cached) $ECHO_C" >&6 16461else 16462 cat >conftest.$ac_ext <<_ACEOF 16463/* confdefs.h. */ 16464_ACEOF 16465cat confdefs.h >>conftest.$ac_ext 16466cat >>conftest.$ac_ext <<_ACEOF 16467/* end confdefs.h. */ 16468$ac_includes_default 16469typedef pid_t ac__type_new_; 16470int 16471main () 16472{ 16473if ((ac__type_new_ *) 0) 16474 return 0; 16475if (sizeof (ac__type_new_)) 16476 return 0; 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481rm -f conftest.$ac_objext 16482if { (ac_try="$ac_compile" 16483case "(($ac_try" in 16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16485 *) ac_try_echo=$ac_try;; 16486esac 16487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16488 (eval "$ac_compile") 2>conftest.er1 16489 ac_status=$? 16490 grep -v '^ *+' conftest.er1 >conftest.err 16491 rm -f conftest.er1 16492 cat conftest.err >&5 16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16494 (exit $ac_status); } && 16495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16496 { (case "(($ac_try" in 16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16498 *) ac_try_echo=$ac_try;; 16499esac 16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16501 (eval "$ac_try") 2>&5 16502 ac_status=$? 16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16504 (exit $ac_status); }; } && 16505 { ac_try='test -s conftest.$ac_objext' 16506 { (case "(($ac_try" in 16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16508 *) ac_try_echo=$ac_try;; 16509esac 16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16511 (eval "$ac_try") 2>&5 16512 ac_status=$? 16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16514 (exit $ac_status); }; }; then 16515 ac_cv_type_pid_t=yes 16516else 16517 echo "$as_me: failed program was:" >&5 16518sed 's/^/| /' conftest.$ac_ext >&5 16519 16520 ac_cv_type_pid_t=no 16521fi 16522 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524fi 16525{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16526echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16527if test $ac_cv_type_pid_t = yes; then 16528 : 16529else 16530 16531cat >>confdefs.h <<_ACEOF 16532#define pid_t int 16533_ACEOF 16534 16535fi 16536 16537{ echo "$as_me:$LINENO: checking for size_t" >&5 16538echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16539if test "${ac_cv_type_size_t+set}" = set; then 16540 echo $ECHO_N "(cached) $ECHO_C" >&6 16541else 16542 cat >conftest.$ac_ext <<_ACEOF 16543/* confdefs.h. */ 16544_ACEOF 16545cat confdefs.h >>conftest.$ac_ext 16546cat >>conftest.$ac_ext <<_ACEOF 16547/* end confdefs.h. */ 16548$ac_includes_default 16549typedef size_t ac__type_new_; 16550int 16551main () 16552{ 16553if ((ac__type_new_ *) 0) 16554 return 0; 16555if (sizeof (ac__type_new_)) 16556 return 0; 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561rm -f conftest.$ac_objext 16562if { (ac_try="$ac_compile" 16563case "(($ac_try" in 16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16565 *) ac_try_echo=$ac_try;; 16566esac 16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16568 (eval "$ac_compile") 2>conftest.er1 16569 ac_status=$? 16570 grep -v '^ *+' conftest.er1 >conftest.err 16571 rm -f conftest.er1 16572 cat conftest.err >&5 16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16574 (exit $ac_status); } && 16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16576 { (case "(($ac_try" in 16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16578 *) ac_try_echo=$ac_try;; 16579esac 16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16581 (eval "$ac_try") 2>&5 16582 ac_status=$? 16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16584 (exit $ac_status); }; } && 16585 { ac_try='test -s conftest.$ac_objext' 16586 { (case "(($ac_try" in 16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16588 *) ac_try_echo=$ac_try;; 16589esac 16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16591 (eval "$ac_try") 2>&5 16592 ac_status=$? 16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16594 (exit $ac_status); }; }; then 16595 ac_cv_type_size_t=yes 16596else 16597 echo "$as_me: failed program was:" >&5 16598sed 's/^/| /' conftest.$ac_ext >&5 16599 16600 ac_cv_type_size_t=no 16601fi 16602 16603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16604fi 16605{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16606echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16607if test $ac_cv_type_size_t = yes; then 16608 : 16609else 16610 16611cat >>confdefs.h <<_ACEOF 16612#define size_t unsigned int 16613_ACEOF 16614 16615fi 16616 16617 16618cat >>confdefs.h <<_ACEOF 16619#define RETSIGTYPE void 16620_ACEOF 16621 16622{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16623echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16624if test "${ac_cv_struct_tm+set}" = set; then 16625 echo $ECHO_N "(cached) $ECHO_C" >&6 16626else 16627 cat >conftest.$ac_ext <<_ACEOF 16628/* confdefs.h. */ 16629_ACEOF 16630cat confdefs.h >>conftest.$ac_ext 16631cat >>conftest.$ac_ext <<_ACEOF 16632/* end confdefs.h. */ 16633#include <sys/types.h> 16634#include <time.h> 16635 16636int 16637main () 16638{ 16639struct tm *tp; tp->tm_sec; 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644rm -f conftest.$ac_objext 16645if { (ac_try="$ac_compile" 16646case "(($ac_try" in 16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16648 *) ac_try_echo=$ac_try;; 16649esac 16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16651 (eval "$ac_compile") 2>conftest.er1 16652 ac_status=$? 16653 grep -v '^ *+' conftest.er1 >conftest.err 16654 rm -f conftest.er1 16655 cat conftest.err >&5 16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16657 (exit $ac_status); } && 16658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16659 { (case "(($ac_try" in 16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16661 *) ac_try_echo=$ac_try;; 16662esac 16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16664 (eval "$ac_try") 2>&5 16665 ac_status=$? 16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16667 (exit $ac_status); }; } && 16668 { ac_try='test -s conftest.$ac_objext' 16669 { (case "(($ac_try" in 16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16671 *) ac_try_echo=$ac_try;; 16672esac 16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16674 (eval "$ac_try") 2>&5 16675 ac_status=$? 16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16677 (exit $ac_status); }; }; then 16678 ac_cv_struct_tm=time.h 16679else 16680 echo "$as_me: failed program was:" >&5 16681sed 's/^/| /' conftest.$ac_ext >&5 16682 16683 ac_cv_struct_tm=sys/time.h 16684fi 16685 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16687fi 16688{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16689echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16690if test $ac_cv_struct_tm = sys/time.h; then 16691 16692cat >>confdefs.h <<\_ACEOF 16693#define TM_IN_SYS_TIME 1 16694_ACEOF 16695 16696fi 16697 16698{ echo "$as_me:$LINENO: checking for int64_t" >&5 16699echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16700if test "${ac_cv_type_int64_t+set}" = set; then 16701 echo $ECHO_N "(cached) $ECHO_C" >&6 16702else 16703 cat >conftest.$ac_ext <<_ACEOF 16704/* confdefs.h. */ 16705_ACEOF 16706cat confdefs.h >>conftest.$ac_ext 16707cat >>conftest.$ac_ext <<_ACEOF 16708/* end confdefs.h. */ 16709$ac_includes_default 16710typedef int64_t ac__type_new_; 16711int 16712main () 16713{ 16714if ((ac__type_new_ *) 0) 16715 return 0; 16716if (sizeof (ac__type_new_)) 16717 return 0; 16718 ; 16719 return 0; 16720} 16721_ACEOF 16722rm -f conftest.$ac_objext 16723if { (ac_try="$ac_compile" 16724case "(($ac_try" in 16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16726 *) ac_try_echo=$ac_try;; 16727esac 16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16729 (eval "$ac_compile") 2>conftest.er1 16730 ac_status=$? 16731 grep -v '^ *+' conftest.er1 >conftest.err 16732 rm -f conftest.er1 16733 cat conftest.err >&5 16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16735 (exit $ac_status); } && 16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16737 { (case "(($ac_try" in 16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16739 *) ac_try_echo=$ac_try;; 16740esac 16741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16742 (eval "$ac_try") 2>&5 16743 ac_status=$? 16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16745 (exit $ac_status); }; } && 16746 { ac_try='test -s conftest.$ac_objext' 16747 { (case "(($ac_try" in 16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16749 *) ac_try_echo=$ac_try;; 16750esac 16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16752 (eval "$ac_try") 2>&5 16753 ac_status=$? 16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16755 (exit $ac_status); }; }; then 16756 ac_cv_type_int64_t=yes 16757else 16758 echo "$as_me: failed program was:" >&5 16759sed 's/^/| /' conftest.$ac_ext >&5 16760 16761 ac_cv_type_int64_t=no 16762fi 16763 16764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16765fi 16766{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16767echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16768if test $ac_cv_type_int64_t = yes; then 16769 16770cat >>confdefs.h <<_ACEOF 16771#define HAVE_INT64_T 1 16772_ACEOF 16773 16774 16775else 16776 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16777echo "$as_me: error: Type int64_t required but not found" >&2;} 16778 { (exit 1); exit 1; }; } 16779fi 16780 16781{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16782echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16783if test "${ac_cv_type_uint64_t+set}" = set; then 16784 echo $ECHO_N "(cached) $ECHO_C" >&6 16785else 16786 cat >conftest.$ac_ext <<_ACEOF 16787/* confdefs.h. */ 16788_ACEOF 16789cat confdefs.h >>conftest.$ac_ext 16790cat >>conftest.$ac_ext <<_ACEOF 16791/* end confdefs.h. */ 16792$ac_includes_default 16793typedef uint64_t ac__type_new_; 16794int 16795main () 16796{ 16797if ((ac__type_new_ *) 0) 16798 return 0; 16799if (sizeof (ac__type_new_)) 16800 return 0; 16801 ; 16802 return 0; 16803} 16804_ACEOF 16805rm -f conftest.$ac_objext 16806if { (ac_try="$ac_compile" 16807case "(($ac_try" in 16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16809 *) ac_try_echo=$ac_try;; 16810esac 16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16812 (eval "$ac_compile") 2>conftest.er1 16813 ac_status=$? 16814 grep -v '^ *+' conftest.er1 >conftest.err 16815 rm -f conftest.er1 16816 cat conftest.err >&5 16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16818 (exit $ac_status); } && 16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16820 { (case "(($ac_try" in 16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16822 *) ac_try_echo=$ac_try;; 16823esac 16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16825 (eval "$ac_try") 2>&5 16826 ac_status=$? 16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16828 (exit $ac_status); }; } && 16829 { ac_try='test -s conftest.$ac_objext' 16830 { (case "(($ac_try" in 16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16832 *) ac_try_echo=$ac_try;; 16833esac 16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16835 (eval "$ac_try") 2>&5 16836 ac_status=$? 16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16838 (exit $ac_status); }; }; then 16839 ac_cv_type_uint64_t=yes 16840else 16841 echo "$as_me: failed program was:" >&5 16842sed 's/^/| /' conftest.$ac_ext >&5 16843 16844 ac_cv_type_uint64_t=no 16845fi 16846 16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16848fi 16849{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16850echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16851if test $ac_cv_type_uint64_t = yes; then 16852 16853cat >>confdefs.h <<_ACEOF 16854#define HAVE_UINT64_T 1 16855_ACEOF 16856 16857 16858else 16859 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16860echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16861if test "${ac_cv_type_u_int64_t+set}" = set; then 16862 echo $ECHO_N "(cached) $ECHO_C" >&6 16863else 16864 cat >conftest.$ac_ext <<_ACEOF 16865/* confdefs.h. */ 16866_ACEOF 16867cat confdefs.h >>conftest.$ac_ext 16868cat >>conftest.$ac_ext <<_ACEOF 16869/* end confdefs.h. */ 16870$ac_includes_default 16871typedef u_int64_t ac__type_new_; 16872int 16873main () 16874{ 16875if ((ac__type_new_ *) 0) 16876 return 0; 16877if (sizeof (ac__type_new_)) 16878 return 0; 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883rm -f conftest.$ac_objext 16884if { (ac_try="$ac_compile" 16885case "(($ac_try" in 16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16887 *) ac_try_echo=$ac_try;; 16888esac 16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16890 (eval "$ac_compile") 2>conftest.er1 16891 ac_status=$? 16892 grep -v '^ *+' conftest.er1 >conftest.err 16893 rm -f conftest.er1 16894 cat conftest.err >&5 16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16896 (exit $ac_status); } && 16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16898 { (case "(($ac_try" in 16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16900 *) ac_try_echo=$ac_try;; 16901esac 16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16903 (eval "$ac_try") 2>&5 16904 ac_status=$? 16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16906 (exit $ac_status); }; } && 16907 { ac_try='test -s conftest.$ac_objext' 16908 { (case "(($ac_try" in 16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16910 *) ac_try_echo=$ac_try;; 16911esac 16912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16913 (eval "$ac_try") 2>&5 16914 ac_status=$? 16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16916 (exit $ac_status); }; }; then 16917 ac_cv_type_u_int64_t=yes 16918else 16919 echo "$as_me: failed program was:" >&5 16920sed 's/^/| /' conftest.$ac_ext >&5 16921 16922 ac_cv_type_u_int64_t=no 16923fi 16924 16925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16926fi 16927{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16928echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16929if test $ac_cv_type_u_int64_t = yes; then 16930 16931cat >>confdefs.h <<_ACEOF 16932#define HAVE_U_INT64_T 1 16933_ACEOF 16934 16935 16936else 16937 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16938echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16939 { (exit 1); exit 1; }; } 16940fi 16941 16942fi 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16954do 16955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16956{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16959 echo $ECHO_N "(cached) $ECHO_C" >&6 16960else 16961 cat >conftest.$ac_ext <<_ACEOF 16962/* confdefs.h. */ 16963_ACEOF 16964cat confdefs.h >>conftest.$ac_ext 16965cat >>conftest.$ac_ext <<_ACEOF 16966/* end confdefs.h. */ 16967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16969#define $ac_func innocuous_$ac_func 16970 16971/* System header to define __stub macros and hopefully few prototypes, 16972 which can conflict with char $ac_func (); below. 16973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16974 <limits.h> exists even on freestanding compilers. */ 16975 16976#ifdef __STDC__ 16977# include <limits.h> 16978#else 16979# include <assert.h> 16980#endif 16981 16982#undef $ac_func 16983 16984/* Override any GCC internal prototype to avoid an error. 16985 Use char because int might match the return type of a GCC 16986 builtin and then its argument prototype would still apply. */ 16987#ifdef __cplusplus 16988extern "C" 16989#endif 16990char $ac_func (); 16991/* The GNU C library defines this for functions which it implements 16992 to always fail with ENOSYS. Some functions are actually named 16993 something starting with __ and the normal name is an alias. */ 16994#if defined __stub_$ac_func || defined __stub___$ac_func 16995choke me 16996#endif 16997 16998int 16999main () 17000{ 17001return $ac_func (); 17002 ; 17003 return 0; 17004} 17005_ACEOF 17006rm -f conftest.$ac_objext conftest$ac_exeext 17007if { (ac_try="$ac_link" 17008case "(($ac_try" in 17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17010 *) ac_try_echo=$ac_try;; 17011esac 17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17013 (eval "$ac_link") 2>conftest.er1 17014 ac_status=$? 17015 grep -v '^ *+' conftest.er1 >conftest.err 17016 rm -f conftest.er1 17017 cat conftest.err >&5 17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17019 (exit $ac_status); } && 17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17021 { (case "(($ac_try" in 17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17023 *) ac_try_echo=$ac_try;; 17024esac 17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17026 (eval "$ac_try") 2>&5 17027 ac_status=$? 17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17029 (exit $ac_status); }; } && 17030 { ac_try='test -s conftest$ac_exeext' 17031 { (case "(($ac_try" in 17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17033 *) ac_try_echo=$ac_try;; 17034esac 17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17036 (eval "$ac_try") 2>&5 17037 ac_status=$? 17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17039 (exit $ac_status); }; }; then 17040 eval "$as_ac_var=yes" 17041else 17042 echo "$as_me: failed program was:" >&5 17043sed 's/^/| /' conftest.$ac_ext >&5 17044 17045 eval "$as_ac_var=no" 17046fi 17047 17048rm -f core conftest.err conftest.$ac_objext \ 17049 conftest$ac_exeext conftest.$ac_ext 17050fi 17051ac_res=`eval echo '${'$as_ac_var'}'` 17052 { echo "$as_me:$LINENO: result: $ac_res" >&5 17053echo "${ECHO_T}$ac_res" >&6; } 17054if test `eval echo '${'$as_ac_var'}'` = yes; then 17055 cat >>confdefs.h <<_ACEOF 17056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17057_ACEOF 17058 17059fi 17060done 17061 17062 17063 17064 17065 17066for ac_func in powf fmodf strtof round 17067do 17068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17069{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17072 echo $ECHO_N "(cached) $ECHO_C" >&6 17073else 17074 cat >conftest.$ac_ext <<_ACEOF 17075/* confdefs.h. */ 17076_ACEOF 17077cat confdefs.h >>conftest.$ac_ext 17078cat >>conftest.$ac_ext <<_ACEOF 17079/* end confdefs.h. */ 17080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17081 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17082#define $ac_func innocuous_$ac_func 17083 17084/* System header to define __stub macros and hopefully few prototypes, 17085 which can conflict with char $ac_func (); below. 17086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17087 <limits.h> exists even on freestanding compilers. */ 17088 17089#ifdef __STDC__ 17090# include <limits.h> 17091#else 17092# include <assert.h> 17093#endif 17094 17095#undef $ac_func 17096 17097/* Override any GCC internal prototype to avoid an error. 17098 Use char because int might match the return type of a GCC 17099 builtin and then its argument prototype would still apply. */ 17100#ifdef __cplusplus 17101extern "C" 17102#endif 17103char $ac_func (); 17104/* The GNU C library defines this for functions which it implements 17105 to always fail with ENOSYS. Some functions are actually named 17106 something starting with __ and the normal name is an alias. */ 17107#if defined __stub_$ac_func || defined __stub___$ac_func 17108choke me 17109#endif 17110 17111int 17112main () 17113{ 17114return $ac_func (); 17115 ; 17116 return 0; 17117} 17118_ACEOF 17119rm -f conftest.$ac_objext conftest$ac_exeext 17120if { (ac_try="$ac_link" 17121case "(($ac_try" in 17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17123 *) ac_try_echo=$ac_try;; 17124esac 17125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17126 (eval "$ac_link") 2>conftest.er1 17127 ac_status=$? 17128 grep -v '^ *+' conftest.er1 >conftest.err 17129 rm -f conftest.er1 17130 cat conftest.err >&5 17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17132 (exit $ac_status); } && 17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17134 { (case "(($ac_try" in 17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17136 *) ac_try_echo=$ac_try;; 17137esac 17138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17139 (eval "$ac_try") 2>&5 17140 ac_status=$? 17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17142 (exit $ac_status); }; } && 17143 { ac_try='test -s conftest$ac_exeext' 17144 { (case "(($ac_try" in 17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17146 *) ac_try_echo=$ac_try;; 17147esac 17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17149 (eval "$ac_try") 2>&5 17150 ac_status=$? 17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17152 (exit $ac_status); }; }; then 17153 eval "$as_ac_var=yes" 17154else 17155 echo "$as_me: failed program was:" >&5 17156sed 's/^/| /' conftest.$ac_ext >&5 17157 17158 eval "$as_ac_var=no" 17159fi 17160 17161rm -f core conftest.err conftest.$ac_objext \ 17162 conftest$ac_exeext conftest.$ac_ext 17163fi 17164ac_res=`eval echo '${'$as_ac_var'}'` 17165 { echo "$as_me:$LINENO: result: $ac_res" >&5 17166echo "${ECHO_T}$ac_res" >&6; } 17167if test `eval echo '${'$as_ac_var'}'` = yes; then 17168 cat >>confdefs.h <<_ACEOF 17169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17170_ACEOF 17171 17172fi 17173done 17174 17175 17176 17177 17178 17179 17180for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17181do 17182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17183{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17186 echo $ECHO_N "(cached) $ECHO_C" >&6 17187else 17188 cat >conftest.$ac_ext <<_ACEOF 17189/* confdefs.h. */ 17190_ACEOF 17191cat confdefs.h >>conftest.$ac_ext 17192cat >>conftest.$ac_ext <<_ACEOF 17193/* end confdefs.h. */ 17194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17196#define $ac_func innocuous_$ac_func 17197 17198/* System header to define __stub macros and hopefully few prototypes, 17199 which can conflict with char $ac_func (); below. 17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17201 <limits.h> exists even on freestanding compilers. */ 17202 17203#ifdef __STDC__ 17204# include <limits.h> 17205#else 17206# include <assert.h> 17207#endif 17208 17209#undef $ac_func 17210 17211/* Override any GCC internal prototype to avoid an error. 17212 Use char because int might match the return type of a GCC 17213 builtin and then its argument prototype would still apply. */ 17214#ifdef __cplusplus 17215extern "C" 17216#endif 17217char $ac_func (); 17218/* The GNU C library defines this for functions which it implements 17219 to always fail with ENOSYS. Some functions are actually named 17220 something starting with __ and the normal name is an alias. */ 17221#if defined __stub_$ac_func || defined __stub___$ac_func 17222choke me 17223#endif 17224 17225int 17226main () 17227{ 17228return $ac_func (); 17229 ; 17230 return 0; 17231} 17232_ACEOF 17233rm -f conftest.$ac_objext conftest$ac_exeext 17234if { (ac_try="$ac_link" 17235case "(($ac_try" in 17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17237 *) ac_try_echo=$ac_try;; 17238esac 17239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17240 (eval "$ac_link") 2>conftest.er1 17241 ac_status=$? 17242 grep -v '^ *+' conftest.er1 >conftest.err 17243 rm -f conftest.er1 17244 cat conftest.err >&5 17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17246 (exit $ac_status); } && 17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17248 { (case "(($ac_try" in 17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17250 *) ac_try_echo=$ac_try;; 17251esac 17252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17253 (eval "$ac_try") 2>&5 17254 ac_status=$? 17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17256 (exit $ac_status); }; } && 17257 { ac_try='test -s conftest$ac_exeext' 17258 { (case "(($ac_try" in 17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17260 *) ac_try_echo=$ac_try;; 17261esac 17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17263 (eval "$ac_try") 2>&5 17264 ac_status=$? 17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17266 (exit $ac_status); }; }; then 17267 eval "$as_ac_var=yes" 17268else 17269 echo "$as_me: failed program was:" >&5 17270sed 's/^/| /' conftest.$ac_ext >&5 17271 17272 eval "$as_ac_var=no" 17273fi 17274 17275rm -f core conftest.err conftest.$ac_objext \ 17276 conftest$ac_exeext conftest.$ac_ext 17277fi 17278ac_res=`eval echo '${'$as_ac_var'}'` 17279 { echo "$as_me:$LINENO: result: $ac_res" >&5 17280echo "${ECHO_T}$ac_res" >&6; } 17281if test `eval echo '${'$as_ac_var'}'` = yes; then 17282 cat >>confdefs.h <<_ACEOF 17283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17284_ACEOF 17285 17286fi 17287done 17288 17289 17290 17291 17292for ac_func in isatty mkdtemp mkstemp 17293do 17294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17295{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17297if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17298 echo $ECHO_N "(cached) $ECHO_C" >&6 17299else 17300 cat >conftest.$ac_ext <<_ACEOF 17301/* confdefs.h. */ 17302_ACEOF 17303cat confdefs.h >>conftest.$ac_ext 17304cat >>conftest.$ac_ext <<_ACEOF 17305/* end confdefs.h. */ 17306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17308#define $ac_func innocuous_$ac_func 17309 17310/* System header to define __stub macros and hopefully few prototypes, 17311 which can conflict with char $ac_func (); below. 17312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17313 <limits.h> exists even on freestanding compilers. */ 17314 17315#ifdef __STDC__ 17316# include <limits.h> 17317#else 17318# include <assert.h> 17319#endif 17320 17321#undef $ac_func 17322 17323/* Override any GCC internal prototype to avoid an error. 17324 Use char because int might match the return type of a GCC 17325 builtin and then its argument prototype would still apply. */ 17326#ifdef __cplusplus 17327extern "C" 17328#endif 17329char $ac_func (); 17330/* The GNU C library defines this for functions which it implements 17331 to always fail with ENOSYS. Some functions are actually named 17332 something starting with __ and the normal name is an alias. */ 17333#if defined __stub_$ac_func || defined __stub___$ac_func 17334choke me 17335#endif 17336 17337int 17338main () 17339{ 17340return $ac_func (); 17341 ; 17342 return 0; 17343} 17344_ACEOF 17345rm -f conftest.$ac_objext conftest$ac_exeext 17346if { (ac_try="$ac_link" 17347case "(($ac_try" in 17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17349 *) ac_try_echo=$ac_try;; 17350esac 17351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17352 (eval "$ac_link") 2>conftest.er1 17353 ac_status=$? 17354 grep -v '^ *+' conftest.er1 >conftest.err 17355 rm -f conftest.er1 17356 cat conftest.err >&5 17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17358 (exit $ac_status); } && 17359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17360 { (case "(($ac_try" in 17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17362 *) ac_try_echo=$ac_try;; 17363esac 17364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17365 (eval "$ac_try") 2>&5 17366 ac_status=$? 17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17368 (exit $ac_status); }; } && 17369 { ac_try='test -s conftest$ac_exeext' 17370 { (case "(($ac_try" in 17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17372 *) ac_try_echo=$ac_try;; 17373esac 17374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17375 (eval "$ac_try") 2>&5 17376 ac_status=$? 17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17378 (exit $ac_status); }; }; then 17379 eval "$as_ac_var=yes" 17380else 17381 echo "$as_me: failed program was:" >&5 17382sed 's/^/| /' conftest.$ac_ext >&5 17383 17384 eval "$as_ac_var=no" 17385fi 17386 17387rm -f core conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389fi 17390ac_res=`eval echo '${'$as_ac_var'}'` 17391 { echo "$as_me:$LINENO: result: $ac_res" >&5 17392echo "${ECHO_T}$ac_res" >&6; } 17393if test `eval echo '${'$as_ac_var'}'` = yes; then 17394 cat >>confdefs.h <<_ACEOF 17395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17396_ACEOF 17397 17398fi 17399done 17400 17401 17402 17403 17404 17405 17406 17407 17408for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17409do 17410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17411{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17414 echo $ECHO_N "(cached) $ECHO_C" >&6 17415else 17416 cat >conftest.$ac_ext <<_ACEOF 17417/* confdefs.h. */ 17418_ACEOF 17419cat confdefs.h >>conftest.$ac_ext 17420cat >>conftest.$ac_ext <<_ACEOF 17421/* end confdefs.h. */ 17422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17423 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17424#define $ac_func innocuous_$ac_func 17425 17426/* System header to define __stub macros and hopefully few prototypes, 17427 which can conflict with char $ac_func (); below. 17428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17429 <limits.h> exists even on freestanding compilers. */ 17430 17431#ifdef __STDC__ 17432# include <limits.h> 17433#else 17434# include <assert.h> 17435#endif 17436 17437#undef $ac_func 17438 17439/* Override any GCC internal prototype to avoid an error. 17440 Use char because int might match the return type of a GCC 17441 builtin and then its argument prototype would still apply. */ 17442#ifdef __cplusplus 17443extern "C" 17444#endif 17445char $ac_func (); 17446/* The GNU C library defines this for functions which it implements 17447 to always fail with ENOSYS. Some functions are actually named 17448 something starting with __ and the normal name is an alias. */ 17449#if defined __stub_$ac_func || defined __stub___$ac_func 17450choke me 17451#endif 17452 17453int 17454main () 17455{ 17456return $ac_func (); 17457 ; 17458 return 0; 17459} 17460_ACEOF 17461rm -f conftest.$ac_objext conftest$ac_exeext 17462if { (ac_try="$ac_link" 17463case "(($ac_try" in 17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17465 *) ac_try_echo=$ac_try;; 17466esac 17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17468 (eval "$ac_link") 2>conftest.er1 17469 ac_status=$? 17470 grep -v '^ *+' conftest.er1 >conftest.err 17471 rm -f conftest.er1 17472 cat conftest.err >&5 17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17474 (exit $ac_status); } && 17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17476 { (case "(($ac_try" in 17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17478 *) ac_try_echo=$ac_try;; 17479esac 17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17481 (eval "$ac_try") 2>&5 17482 ac_status=$? 17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17484 (exit $ac_status); }; } && 17485 { ac_try='test -s conftest$ac_exeext' 17486 { (case "(($ac_try" in 17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17488 *) ac_try_echo=$ac_try;; 17489esac 17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17491 (eval "$ac_try") 2>&5 17492 ac_status=$? 17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17494 (exit $ac_status); }; }; then 17495 eval "$as_ac_var=yes" 17496else 17497 echo "$as_me: failed program was:" >&5 17498sed 's/^/| /' conftest.$ac_ext >&5 17499 17500 eval "$as_ac_var=no" 17501fi 17502 17503rm -f core conftest.err conftest.$ac_objext \ 17504 conftest$ac_exeext conftest.$ac_ext 17505fi 17506ac_res=`eval echo '${'$as_ac_var'}'` 17507 { echo "$as_me:$LINENO: result: $ac_res" >&5 17508echo "${ECHO_T}$ac_res" >&6; } 17509if test `eval echo '${'$as_ac_var'}'` = yes; then 17510 cat >>confdefs.h <<_ACEOF 17511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17512_ACEOF 17513 17514fi 17515done 17516 17517 17518 17519 17520for ac_func in strerror strerror_r setenv 17521do 17522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17523{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17526 echo $ECHO_N "(cached) $ECHO_C" >&6 17527else 17528 cat >conftest.$ac_ext <<_ACEOF 17529/* confdefs.h. */ 17530_ACEOF 17531cat confdefs.h >>conftest.$ac_ext 17532cat >>conftest.$ac_ext <<_ACEOF 17533/* end confdefs.h. */ 17534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17535 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17536#define $ac_func innocuous_$ac_func 17537 17538/* System header to define __stub macros and hopefully few prototypes, 17539 which can conflict with char $ac_func (); below. 17540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17541 <limits.h> exists even on freestanding compilers. */ 17542 17543#ifdef __STDC__ 17544# include <limits.h> 17545#else 17546# include <assert.h> 17547#endif 17548 17549#undef $ac_func 17550 17551/* Override any GCC internal prototype to avoid an error. 17552 Use char because int might match the return type of a GCC 17553 builtin and then its argument prototype would still apply. */ 17554#ifdef __cplusplus 17555extern "C" 17556#endif 17557char $ac_func (); 17558/* The GNU C library defines this for functions which it implements 17559 to always fail with ENOSYS. Some functions are actually named 17560 something starting with __ and the normal name is an alias. */ 17561#if defined __stub_$ac_func || defined __stub___$ac_func 17562choke me 17563#endif 17564 17565int 17566main () 17567{ 17568return $ac_func (); 17569 ; 17570 return 0; 17571} 17572_ACEOF 17573rm -f conftest.$ac_objext conftest$ac_exeext 17574if { (ac_try="$ac_link" 17575case "(($ac_try" in 17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17577 *) ac_try_echo=$ac_try;; 17578esac 17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17580 (eval "$ac_link") 2>conftest.er1 17581 ac_status=$? 17582 grep -v '^ *+' conftest.er1 >conftest.err 17583 rm -f conftest.er1 17584 cat conftest.err >&5 17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17586 (exit $ac_status); } && 17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17588 { (case "(($ac_try" in 17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17590 *) ac_try_echo=$ac_try;; 17591esac 17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17593 (eval "$ac_try") 2>&5 17594 ac_status=$? 17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17596 (exit $ac_status); }; } && 17597 { ac_try='test -s conftest$ac_exeext' 17598 { (case "(($ac_try" in 17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17600 *) ac_try_echo=$ac_try;; 17601esac 17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17603 (eval "$ac_try") 2>&5 17604 ac_status=$? 17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17606 (exit $ac_status); }; }; then 17607 eval "$as_ac_var=yes" 17608else 17609 echo "$as_me: failed program was:" >&5 17610sed 's/^/| /' conftest.$ac_ext >&5 17611 17612 eval "$as_ac_var=no" 17613fi 17614 17615rm -f core conftest.err conftest.$ac_objext \ 17616 conftest$ac_exeext conftest.$ac_ext 17617fi 17618ac_res=`eval echo '${'$as_ac_var'}'` 17619 { echo "$as_me:$LINENO: result: $ac_res" >&5 17620echo "${ECHO_T}$ac_res" >&6; } 17621if test `eval echo '${'$as_ac_var'}'` = yes; then 17622 cat >>confdefs.h <<_ACEOF 17623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17624_ACEOF 17625 17626fi 17627done 17628 17629 17630 17631 17632 17633for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17634do 17635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17636{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17639 echo $ECHO_N "(cached) $ECHO_C" >&6 17640else 17641 cat >conftest.$ac_ext <<_ACEOF 17642/* confdefs.h. */ 17643_ACEOF 17644cat confdefs.h >>conftest.$ac_ext 17645cat >>conftest.$ac_ext <<_ACEOF 17646/* end confdefs.h. */ 17647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17648 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17649#define $ac_func innocuous_$ac_func 17650 17651/* System header to define __stub macros and hopefully few prototypes, 17652 which can conflict with char $ac_func (); below. 17653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17654 <limits.h> exists even on freestanding compilers. */ 17655 17656#ifdef __STDC__ 17657# include <limits.h> 17658#else 17659# include <assert.h> 17660#endif 17661 17662#undef $ac_func 17663 17664/* Override any GCC internal prototype to avoid an error. 17665 Use char because int might match the return type of a GCC 17666 builtin and then its argument prototype would still apply. */ 17667#ifdef __cplusplus 17668extern "C" 17669#endif 17670char $ac_func (); 17671/* The GNU C library defines this for functions which it implements 17672 to always fail with ENOSYS. Some functions are actually named 17673 something starting with __ and the normal name is an alias. */ 17674#if defined __stub_$ac_func || defined __stub___$ac_func 17675choke me 17676#endif 17677 17678int 17679main () 17680{ 17681return $ac_func (); 17682 ; 17683 return 0; 17684} 17685_ACEOF 17686rm -f conftest.$ac_objext conftest$ac_exeext 17687if { (ac_try="$ac_link" 17688case "(($ac_try" in 17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17690 *) ac_try_echo=$ac_try;; 17691esac 17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17693 (eval "$ac_link") 2>conftest.er1 17694 ac_status=$? 17695 grep -v '^ *+' conftest.er1 >conftest.err 17696 rm -f conftest.er1 17697 cat conftest.err >&5 17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17699 (exit $ac_status); } && 17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17701 { (case "(($ac_try" in 17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17703 *) ac_try_echo=$ac_try;; 17704esac 17705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17706 (eval "$ac_try") 2>&5 17707 ac_status=$? 17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17709 (exit $ac_status); }; } && 17710 { ac_try='test -s conftest$ac_exeext' 17711 { (case "(($ac_try" in 17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17713 *) ac_try_echo=$ac_try;; 17714esac 17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17716 (eval "$ac_try") 2>&5 17717 ac_status=$? 17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17719 (exit $ac_status); }; }; then 17720 eval "$as_ac_var=yes" 17721else 17722 echo "$as_me: failed program was:" >&5 17723sed 's/^/| /' conftest.$ac_ext >&5 17724 17725 eval "$as_ac_var=no" 17726fi 17727 17728rm -f core conftest.err conftest.$ac_objext \ 17729 conftest$ac_exeext conftest.$ac_ext 17730fi 17731ac_res=`eval echo '${'$as_ac_var'}'` 17732 { echo "$as_me:$LINENO: result: $ac_res" >&5 17733echo "${ECHO_T}$ac_res" >&6; } 17734if test `eval echo '${'$as_ac_var'}'` = yes; then 17735 cat >>confdefs.h <<_ACEOF 17736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17737_ACEOF 17738 17739fi 17740done 17741 17742 17743 17744 17745 17746 17747for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17748do 17749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17750{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17753 echo $ECHO_N "(cached) $ECHO_C" >&6 17754else 17755 cat >conftest.$ac_ext <<_ACEOF 17756/* confdefs.h. */ 17757_ACEOF 17758cat confdefs.h >>conftest.$ac_ext 17759cat >>conftest.$ac_ext <<_ACEOF 17760/* end confdefs.h. */ 17761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17763#define $ac_func innocuous_$ac_func 17764 17765/* System header to define __stub macros and hopefully few prototypes, 17766 which can conflict with char $ac_func (); below. 17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17768 <limits.h> exists even on freestanding compilers. */ 17769 17770#ifdef __STDC__ 17771# include <limits.h> 17772#else 17773# include <assert.h> 17774#endif 17775 17776#undef $ac_func 17777 17778/* Override any GCC internal prototype to avoid an error. 17779 Use char because int might match the return type of a GCC 17780 builtin and then its argument prototype would still apply. */ 17781#ifdef __cplusplus 17782extern "C" 17783#endif 17784char $ac_func (); 17785/* The GNU C library defines this for functions which it implements 17786 to always fail with ENOSYS. Some functions are actually named 17787 something starting with __ and the normal name is an alias. */ 17788#if defined __stub_$ac_func || defined __stub___$ac_func 17789choke me 17790#endif 17791 17792int 17793main () 17794{ 17795return $ac_func (); 17796 ; 17797 return 0; 17798} 17799_ACEOF 17800rm -f conftest.$ac_objext conftest$ac_exeext 17801if { (ac_try="$ac_link" 17802case "(($ac_try" in 17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17804 *) ac_try_echo=$ac_try;; 17805esac 17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17807 (eval "$ac_link") 2>conftest.er1 17808 ac_status=$? 17809 grep -v '^ *+' conftest.er1 >conftest.err 17810 rm -f conftest.er1 17811 cat conftest.err >&5 17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17813 (exit $ac_status); } && 17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17815 { (case "(($ac_try" in 17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17817 *) ac_try_echo=$ac_try;; 17818esac 17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17820 (eval "$ac_try") 2>&5 17821 ac_status=$? 17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17823 (exit $ac_status); }; } && 17824 { ac_try='test -s conftest$ac_exeext' 17825 { (case "(($ac_try" in 17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17827 *) ac_try_echo=$ac_try;; 17828esac 17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17830 (eval "$ac_try") 2>&5 17831 ac_status=$? 17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17833 (exit $ac_status); }; }; then 17834 eval "$as_ac_var=yes" 17835else 17836 echo "$as_me: failed program was:" >&5 17837sed 's/^/| /' conftest.$ac_ext >&5 17838 17839 eval "$as_ac_var=no" 17840fi 17841 17842rm -f core conftest.err conftest.$ac_objext \ 17843 conftest$ac_exeext conftest.$ac_ext 17844fi 17845ac_res=`eval echo '${'$as_ac_var'}'` 17846 { echo "$as_me:$LINENO: result: $ac_res" >&5 17847echo "${ECHO_T}$ac_res" >&6; } 17848if test `eval echo '${'$as_ac_var'}'` = yes; then 17849 cat >>confdefs.h <<_ACEOF 17850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17851_ACEOF 17852 17853fi 17854done 17855 17856{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17857echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17858if test "${llvm_cv_c_printf_a+set}" = set; then 17859 echo $ECHO_N "(cached) $ECHO_C" >&6 17860else 17861 ac_ext=c 17862ac_cpp='$CPP $CPPFLAGS' 17863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17865ac_compiler_gnu=$ac_cv_c_compiler_gnu 17866 17867 if test "$cross_compiling" = yes; then 17868 llvmac_cv_c_printf_a=no 17869else 17870 cat >conftest.$ac_ext <<_ACEOF 17871 17872 /* confdefs.h. */ 17873_ACEOF 17874cat confdefs.h >>conftest.$ac_ext 17875cat >>conftest.$ac_ext <<_ACEOF 17876/* end confdefs.h. */ 17877 17878#include <stdio.h> 17879#include <stdlib.h> 17880 17881int 17882main () 17883{ 17884 17885volatile double A, B; 17886char Buffer[100]; 17887A = 1; 17888A /= 10.0; 17889sprintf(Buffer, "%a", A); 17890B = atof(Buffer); 17891if (A != B) 17892 return (1); 17893if (A != 0x1.999999999999ap-4) 17894 return (1); 17895return (0); 17896 ; 17897 return 0; 17898} 17899_ACEOF 17900rm -f conftest$ac_exeext 17901if { (ac_try="$ac_link" 17902case "(($ac_try" in 17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17904 *) ac_try_echo=$ac_try;; 17905esac 17906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17907 (eval "$ac_link") 2>&5 17908 ac_status=$? 17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17911 { (case "(($ac_try" in 17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17913 *) ac_try_echo=$ac_try;; 17914esac 17915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17916 (eval "$ac_try") 2>&5 17917 ac_status=$? 17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); }; }; then 17920 llvm_cv_c_printf_a=yes 17921else 17922 echo "$as_me: program exited with status $ac_status" >&5 17923echo "$as_me: failed program was:" >&5 17924sed 's/^/| /' conftest.$ac_ext >&5 17925 17926( exit $ac_status ) 17927llvmac_cv_c_printf_a=no 17928fi 17929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17930fi 17931 17932 17933 ac_ext=c 17934ac_cpp='$CPP $CPPFLAGS' 17935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17937ac_compiler_gnu=$ac_cv_c_compiler_gnu 17938 17939fi 17940{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17941echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17942 if test "$llvm_cv_c_printf_a" = "yes"; then 17943 17944cat >>confdefs.h <<\_ACEOF 17945#define HAVE_PRINTF_A 1 17946_ACEOF 17947 17948 fi 17949 17950 17951{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17952echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17953if test "${ac_cv_func_rand48+set}" = set; then 17954 echo $ECHO_N "(cached) $ECHO_C" >&6 17955else 17956 ac_ext=cpp 17957ac_cpp='$CXXCPP $CPPFLAGS' 17958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17961 17962 cat >conftest.$ac_ext <<_ACEOF 17963/* confdefs.h. */ 17964_ACEOF 17965cat confdefs.h >>conftest.$ac_ext 17966cat >>conftest.$ac_ext <<_ACEOF 17967/* end confdefs.h. */ 17968#include <stdlib.h> 17969int 17970main () 17971{ 17972srand48(0);lrand48();drand48(); 17973 ; 17974 return 0; 17975} 17976_ACEOF 17977rm -f conftest.$ac_objext 17978if { (ac_try="$ac_compile" 17979case "(($ac_try" in 17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17981 *) ac_try_echo=$ac_try;; 17982esac 17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17984 (eval "$ac_compile") 2>conftest.er1 17985 ac_status=$? 17986 grep -v '^ *+' conftest.er1 >conftest.err 17987 rm -f conftest.er1 17988 cat conftest.err >&5 17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17990 (exit $ac_status); } && 17991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17992 { (case "(($ac_try" in 17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17994 *) ac_try_echo=$ac_try;; 17995esac 17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17997 (eval "$ac_try") 2>&5 17998 ac_status=$? 17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18000 (exit $ac_status); }; } && 18001 { ac_try='test -s conftest.$ac_objext' 18002 { (case "(($ac_try" in 18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18004 *) ac_try_echo=$ac_try;; 18005esac 18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18007 (eval "$ac_try") 2>&5 18008 ac_status=$? 18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18010 (exit $ac_status); }; }; then 18011 ac_cv_func_rand48=yes 18012else 18013 echo "$as_me: failed program was:" >&5 18014sed 's/^/| /' conftest.$ac_ext >&5 18015 18016 ac_cv_func_rand48=no 18017fi 18018 18019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18020 ac_ext=c 18021ac_cpp='$CPP $CPPFLAGS' 18022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18024ac_compiler_gnu=$ac_cv_c_compiler_gnu 18025 18026fi 18027{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18028echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18029 18030if test "$ac_cv_func_rand48" = "yes" ; then 18031 18032cat >>confdefs.h <<\_ACEOF 18033#define HAVE_RAND48 1 18034_ACEOF 18035 18036fi 18037 18038 18039{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18040echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18041if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18042 echo $ECHO_N "(cached) $ECHO_C" >&6 18043else 18044 cat >conftest.$ac_ext <<_ACEOF 18045/* confdefs.h. */ 18046_ACEOF 18047cat confdefs.h >>conftest.$ac_ext 18048cat >>conftest.$ac_ext <<_ACEOF 18049/* end confdefs.h. */ 18050$ac_includes_default 18051int 18052main () 18053{ 18054#ifndef strerror_s 18055 char *p = (char *) strerror_s; 18056 return !p; 18057#endif 18058 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063rm -f conftest.$ac_objext 18064if { (ac_try="$ac_compile" 18065case "(($ac_try" in 18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18067 *) ac_try_echo=$ac_try;; 18068esac 18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18070 (eval "$ac_compile") 2>conftest.er1 18071 ac_status=$? 18072 grep -v '^ *+' conftest.er1 >conftest.err 18073 rm -f conftest.er1 18074 cat conftest.err >&5 18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18076 (exit $ac_status); } && 18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18078 { (case "(($ac_try" in 18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18080 *) ac_try_echo=$ac_try;; 18081esac 18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18083 (eval "$ac_try") 2>&5 18084 ac_status=$? 18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18086 (exit $ac_status); }; } && 18087 { ac_try='test -s conftest.$ac_objext' 18088 { (case "(($ac_try" in 18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18090 *) ac_try_echo=$ac_try;; 18091esac 18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18093 (eval "$ac_try") 2>&5 18094 ac_status=$? 18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18096 (exit $ac_status); }; }; then 18097 ac_cv_have_decl_strerror_s=yes 18098else 18099 echo "$as_me: failed program was:" >&5 18100sed 's/^/| /' conftest.$ac_ext >&5 18101 18102 ac_cv_have_decl_strerror_s=no 18103fi 18104 18105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18106fi 18107{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18108echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18109if test $ac_cv_have_decl_strerror_s = yes; then 18110 18111cat >>confdefs.h <<_ACEOF 18112#define HAVE_DECL_STRERROR_S 1 18113_ACEOF 18114 18115 18116else 18117 cat >>confdefs.h <<_ACEOF 18118#define HAVE_DECL_STRERROR_S 0 18119_ACEOF 18120 18121 18122fi 18123 18124 18125 18126if test "$llvm_cv_os_type" = "MingW" ; then 18127 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18128echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18129if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18130 echo $ECHO_N "(cached) $ECHO_C" >&6 18131else 18132 ac_check_lib_save_LIBS=$LIBS 18133LIBS="-lgcc $LIBS" 18134cat >conftest.$ac_ext <<_ACEOF 18135/* confdefs.h. */ 18136_ACEOF 18137cat confdefs.h >>conftest.$ac_ext 18138cat >>conftest.$ac_ext <<_ACEOF 18139/* end confdefs.h. */ 18140 18141/* Override any GCC internal prototype to avoid an error. 18142 Use char because int might match the return type of a GCC 18143 builtin and then its argument prototype would still apply. */ 18144#ifdef __cplusplus 18145extern "C" 18146#endif 18147char _alloca (); 18148int 18149main () 18150{ 18151return _alloca (); 18152 ; 18153 return 0; 18154} 18155_ACEOF 18156rm -f conftest.$ac_objext conftest$ac_exeext 18157if { (ac_try="$ac_link" 18158case "(($ac_try" in 18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18160 *) ac_try_echo=$ac_try;; 18161esac 18162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18163 (eval "$ac_link") 2>conftest.er1 18164 ac_status=$? 18165 grep -v '^ *+' conftest.er1 >conftest.err 18166 rm -f conftest.er1 18167 cat conftest.err >&5 18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18169 (exit $ac_status); } && 18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18171 { (case "(($ac_try" in 18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18173 *) ac_try_echo=$ac_try;; 18174esac 18175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18176 (eval "$ac_try") 2>&5 18177 ac_status=$? 18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18179 (exit $ac_status); }; } && 18180 { ac_try='test -s conftest$ac_exeext' 18181 { (case "(($ac_try" in 18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18183 *) ac_try_echo=$ac_try;; 18184esac 18185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18186 (eval "$ac_try") 2>&5 18187 ac_status=$? 18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18189 (exit $ac_status); }; }; then 18190 ac_cv_lib_gcc__alloca=yes 18191else 18192 echo "$as_me: failed program was:" >&5 18193sed 's/^/| /' conftest.$ac_ext >&5 18194 18195 ac_cv_lib_gcc__alloca=no 18196fi 18197 18198rm -f core conftest.err conftest.$ac_objext \ 18199 conftest$ac_exeext conftest.$ac_ext 18200LIBS=$ac_check_lib_save_LIBS 18201fi 18202{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18203echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18204if test $ac_cv_lib_gcc__alloca = yes; then 18205 18206cat >>confdefs.h <<\_ACEOF 18207#define HAVE__ALLOCA 1 18208_ACEOF 18209 18210fi 18211 18212 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18213echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18214if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18215 echo $ECHO_N "(cached) $ECHO_C" >&6 18216else 18217 ac_check_lib_save_LIBS=$LIBS 18218LIBS="-lgcc $LIBS" 18219cat >conftest.$ac_ext <<_ACEOF 18220/* confdefs.h. */ 18221_ACEOF 18222cat confdefs.h >>conftest.$ac_ext 18223cat >>conftest.$ac_ext <<_ACEOF 18224/* end confdefs.h. */ 18225 18226/* Override any GCC internal prototype to avoid an error. 18227 Use char because int might match the return type of a GCC 18228 builtin and then its argument prototype would still apply. */ 18229#ifdef __cplusplus 18230extern "C" 18231#endif 18232char __alloca (); 18233int 18234main () 18235{ 18236return __alloca (); 18237 ; 18238 return 0; 18239} 18240_ACEOF 18241rm -f conftest.$ac_objext conftest$ac_exeext 18242if { (ac_try="$ac_link" 18243case "(($ac_try" in 18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18245 *) ac_try_echo=$ac_try;; 18246esac 18247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18248 (eval "$ac_link") 2>conftest.er1 18249 ac_status=$? 18250 grep -v '^ *+' conftest.er1 >conftest.err 18251 rm -f conftest.er1 18252 cat conftest.err >&5 18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18254 (exit $ac_status); } && 18255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18256 { (case "(($ac_try" in 18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18258 *) ac_try_echo=$ac_try;; 18259esac 18260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18261 (eval "$ac_try") 2>&5 18262 ac_status=$? 18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18264 (exit $ac_status); }; } && 18265 { ac_try='test -s conftest$ac_exeext' 18266 { (case "(($ac_try" in 18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18268 *) ac_try_echo=$ac_try;; 18269esac 18270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18271 (eval "$ac_try") 2>&5 18272 ac_status=$? 18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18274 (exit $ac_status); }; }; then 18275 ac_cv_lib_gcc___alloca=yes 18276else 18277 echo "$as_me: failed program was:" >&5 18278sed 's/^/| /' conftest.$ac_ext >&5 18279 18280 ac_cv_lib_gcc___alloca=no 18281fi 18282 18283rm -f core conftest.err conftest.$ac_objext \ 18284 conftest$ac_exeext conftest.$ac_ext 18285LIBS=$ac_check_lib_save_LIBS 18286fi 18287{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18288echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18289if test $ac_cv_lib_gcc___alloca = yes; then 18290 18291cat >>confdefs.h <<\_ACEOF 18292#define HAVE___ALLOCA 1 18293_ACEOF 18294 18295fi 18296 18297 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18298echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18299if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18300 echo $ECHO_N "(cached) $ECHO_C" >&6 18301else 18302 ac_check_lib_save_LIBS=$LIBS 18303LIBS="-lgcc $LIBS" 18304cat >conftest.$ac_ext <<_ACEOF 18305/* confdefs.h. */ 18306_ACEOF 18307cat confdefs.h >>conftest.$ac_ext 18308cat >>conftest.$ac_ext <<_ACEOF 18309/* end confdefs.h. */ 18310 18311/* Override any GCC internal prototype to avoid an error. 18312 Use char because int might match the return type of a GCC 18313 builtin and then its argument prototype would still apply. */ 18314#ifdef __cplusplus 18315extern "C" 18316#endif 18317char __chkstk (); 18318int 18319main () 18320{ 18321return __chkstk (); 18322 ; 18323 return 0; 18324} 18325_ACEOF 18326rm -f conftest.$ac_objext conftest$ac_exeext 18327if { (ac_try="$ac_link" 18328case "(($ac_try" in 18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18330 *) ac_try_echo=$ac_try;; 18331esac 18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18333 (eval "$ac_link") 2>conftest.er1 18334 ac_status=$? 18335 grep -v '^ *+' conftest.er1 >conftest.err 18336 rm -f conftest.er1 18337 cat conftest.err >&5 18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18339 (exit $ac_status); } && 18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18341 { (case "(($ac_try" in 18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18343 *) ac_try_echo=$ac_try;; 18344esac 18345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18346 (eval "$ac_try") 2>&5 18347 ac_status=$? 18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18349 (exit $ac_status); }; } && 18350 { ac_try='test -s conftest$ac_exeext' 18351 { (case "(($ac_try" in 18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18353 *) ac_try_echo=$ac_try;; 18354esac 18355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18356 (eval "$ac_try") 2>&5 18357 ac_status=$? 18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18359 (exit $ac_status); }; }; then 18360 ac_cv_lib_gcc___chkstk=yes 18361else 18362 echo "$as_me: failed program was:" >&5 18363sed 's/^/| /' conftest.$ac_ext >&5 18364 18365 ac_cv_lib_gcc___chkstk=no 18366fi 18367 18368rm -f core conftest.err conftest.$ac_objext \ 18369 conftest$ac_exeext conftest.$ac_ext 18370LIBS=$ac_check_lib_save_LIBS 18371fi 18372{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18373echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18374if test $ac_cv_lib_gcc___chkstk = yes; then 18375 18376cat >>confdefs.h <<\_ACEOF 18377#define HAVE___CHKSTK 1 18378_ACEOF 18379 18380fi 18381 18382 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18383echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18384if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18385 echo $ECHO_N "(cached) $ECHO_C" >&6 18386else 18387 ac_check_lib_save_LIBS=$LIBS 18388LIBS="-lgcc $LIBS" 18389cat >conftest.$ac_ext <<_ACEOF 18390/* confdefs.h. */ 18391_ACEOF 18392cat confdefs.h >>conftest.$ac_ext 18393cat >>conftest.$ac_ext <<_ACEOF 18394/* end confdefs.h. */ 18395 18396/* Override any GCC internal prototype to avoid an error. 18397 Use char because int might match the return type of a GCC 18398 builtin and then its argument prototype would still apply. */ 18399#ifdef __cplusplus 18400extern "C" 18401#endif 18402char ___chkstk (); 18403int 18404main () 18405{ 18406return ___chkstk (); 18407 ; 18408 return 0; 18409} 18410_ACEOF 18411rm -f conftest.$ac_objext conftest$ac_exeext 18412if { (ac_try="$ac_link" 18413case "(($ac_try" in 18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18415 *) ac_try_echo=$ac_try;; 18416esac 18417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18418 (eval "$ac_link") 2>conftest.er1 18419 ac_status=$? 18420 grep -v '^ *+' conftest.er1 >conftest.err 18421 rm -f conftest.er1 18422 cat conftest.err >&5 18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18424 (exit $ac_status); } && 18425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18426 { (case "(($ac_try" in 18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18428 *) ac_try_echo=$ac_try;; 18429esac 18430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18431 (eval "$ac_try") 2>&5 18432 ac_status=$? 18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18434 (exit $ac_status); }; } && 18435 { ac_try='test -s conftest$ac_exeext' 18436 { (case "(($ac_try" in 18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18438 *) ac_try_echo=$ac_try;; 18439esac 18440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18441 (eval "$ac_try") 2>&5 18442 ac_status=$? 18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18444 (exit $ac_status); }; }; then 18445 ac_cv_lib_gcc____chkstk=yes 18446else 18447 echo "$as_me: failed program was:" >&5 18448sed 's/^/| /' conftest.$ac_ext >&5 18449 18450 ac_cv_lib_gcc____chkstk=no 18451fi 18452 18453rm -f core conftest.err conftest.$ac_objext \ 18454 conftest$ac_exeext conftest.$ac_ext 18455LIBS=$ac_check_lib_save_LIBS 18456fi 18457{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18458echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18459if test $ac_cv_lib_gcc____chkstk = yes; then 18460 18461cat >>confdefs.h <<\_ACEOF 18462#define HAVE____CHKSTK 1 18463_ACEOF 18464 18465fi 18466 18467 18468 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18469echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18470if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18471 echo $ECHO_N "(cached) $ECHO_C" >&6 18472else 18473 ac_check_lib_save_LIBS=$LIBS 18474LIBS="-lgcc $LIBS" 18475cat >conftest.$ac_ext <<_ACEOF 18476/* confdefs.h. */ 18477_ACEOF 18478cat confdefs.h >>conftest.$ac_ext 18479cat >>conftest.$ac_ext <<_ACEOF 18480/* end confdefs.h. */ 18481 18482/* Override any GCC internal prototype to avoid an error. 18483 Use char because int might match the return type of a GCC 18484 builtin and then its argument prototype would still apply. */ 18485#ifdef __cplusplus 18486extern "C" 18487#endif 18488char __ashldi3 (); 18489int 18490main () 18491{ 18492return __ashldi3 (); 18493 ; 18494 return 0; 18495} 18496_ACEOF 18497rm -f conftest.$ac_objext conftest$ac_exeext 18498if { (ac_try="$ac_link" 18499case "(($ac_try" in 18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18501 *) ac_try_echo=$ac_try;; 18502esac 18503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18504 (eval "$ac_link") 2>conftest.er1 18505 ac_status=$? 18506 grep -v '^ *+' conftest.er1 >conftest.err 18507 rm -f conftest.er1 18508 cat conftest.err >&5 18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18510 (exit $ac_status); } && 18511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18512 { (case "(($ac_try" in 18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18514 *) ac_try_echo=$ac_try;; 18515esac 18516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18517 (eval "$ac_try") 2>&5 18518 ac_status=$? 18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18520 (exit $ac_status); }; } && 18521 { ac_try='test -s conftest$ac_exeext' 18522 { (case "(($ac_try" in 18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18524 *) ac_try_echo=$ac_try;; 18525esac 18526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18527 (eval "$ac_try") 2>&5 18528 ac_status=$? 18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18530 (exit $ac_status); }; }; then 18531 ac_cv_lib_gcc___ashldi3=yes 18532else 18533 echo "$as_me: failed program was:" >&5 18534sed 's/^/| /' conftest.$ac_ext >&5 18535 18536 ac_cv_lib_gcc___ashldi3=no 18537fi 18538 18539rm -f core conftest.err conftest.$ac_objext \ 18540 conftest$ac_exeext conftest.$ac_ext 18541LIBS=$ac_check_lib_save_LIBS 18542fi 18543{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18544echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18545if test $ac_cv_lib_gcc___ashldi3 = yes; then 18546 18547cat >>confdefs.h <<\_ACEOF 18548#define HAVE___ASHLDI3 1 18549_ACEOF 18550 18551fi 18552 18553 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18554echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18555if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18556 echo $ECHO_N "(cached) $ECHO_C" >&6 18557else 18558 ac_check_lib_save_LIBS=$LIBS 18559LIBS="-lgcc $LIBS" 18560cat >conftest.$ac_ext <<_ACEOF 18561/* confdefs.h. */ 18562_ACEOF 18563cat confdefs.h >>conftest.$ac_ext 18564cat >>conftest.$ac_ext <<_ACEOF 18565/* end confdefs.h. */ 18566 18567/* Override any GCC internal prototype to avoid an error. 18568 Use char because int might match the return type of a GCC 18569 builtin and then its argument prototype would still apply. */ 18570#ifdef __cplusplus 18571extern "C" 18572#endif 18573char __ashrdi3 (); 18574int 18575main () 18576{ 18577return __ashrdi3 (); 18578 ; 18579 return 0; 18580} 18581_ACEOF 18582rm -f conftest.$ac_objext conftest$ac_exeext 18583if { (ac_try="$ac_link" 18584case "(($ac_try" in 18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18586 *) ac_try_echo=$ac_try;; 18587esac 18588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18589 (eval "$ac_link") 2>conftest.er1 18590 ac_status=$? 18591 grep -v '^ *+' conftest.er1 >conftest.err 18592 rm -f conftest.er1 18593 cat conftest.err >&5 18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18595 (exit $ac_status); } && 18596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18597 { (case "(($ac_try" in 18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18599 *) ac_try_echo=$ac_try;; 18600esac 18601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18602 (eval "$ac_try") 2>&5 18603 ac_status=$? 18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18605 (exit $ac_status); }; } && 18606 { ac_try='test -s conftest$ac_exeext' 18607 { (case "(($ac_try" in 18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18609 *) ac_try_echo=$ac_try;; 18610esac 18611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18612 (eval "$ac_try") 2>&5 18613 ac_status=$? 18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18615 (exit $ac_status); }; }; then 18616 ac_cv_lib_gcc___ashrdi3=yes 18617else 18618 echo "$as_me: failed program was:" >&5 18619sed 's/^/| /' conftest.$ac_ext >&5 18620 18621 ac_cv_lib_gcc___ashrdi3=no 18622fi 18623 18624rm -f core conftest.err conftest.$ac_objext \ 18625 conftest$ac_exeext conftest.$ac_ext 18626LIBS=$ac_check_lib_save_LIBS 18627fi 18628{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18629echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18630if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18631 18632cat >>confdefs.h <<\_ACEOF 18633#define HAVE___ASHRDI3 1 18634_ACEOF 18635 18636fi 18637 18638 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18639echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18640if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18641 echo $ECHO_N "(cached) $ECHO_C" >&6 18642else 18643 ac_check_lib_save_LIBS=$LIBS 18644LIBS="-lgcc $LIBS" 18645cat >conftest.$ac_ext <<_ACEOF 18646/* confdefs.h. */ 18647_ACEOF 18648cat confdefs.h >>conftest.$ac_ext 18649cat >>conftest.$ac_ext <<_ACEOF 18650/* end confdefs.h. */ 18651 18652/* Override any GCC internal prototype to avoid an error. 18653 Use char because int might match the return type of a GCC 18654 builtin and then its argument prototype would still apply. */ 18655#ifdef __cplusplus 18656extern "C" 18657#endif 18658char __divdi3 (); 18659int 18660main () 18661{ 18662return __divdi3 (); 18663 ; 18664 return 0; 18665} 18666_ACEOF 18667rm -f conftest.$ac_objext conftest$ac_exeext 18668if { (ac_try="$ac_link" 18669case "(($ac_try" in 18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18671 *) ac_try_echo=$ac_try;; 18672esac 18673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18674 (eval "$ac_link") 2>conftest.er1 18675 ac_status=$? 18676 grep -v '^ *+' conftest.er1 >conftest.err 18677 rm -f conftest.er1 18678 cat conftest.err >&5 18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18680 (exit $ac_status); } && 18681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18682 { (case "(($ac_try" in 18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18684 *) ac_try_echo=$ac_try;; 18685esac 18686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18687 (eval "$ac_try") 2>&5 18688 ac_status=$? 18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18690 (exit $ac_status); }; } && 18691 { ac_try='test -s conftest$ac_exeext' 18692 { (case "(($ac_try" in 18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18694 *) ac_try_echo=$ac_try;; 18695esac 18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18697 (eval "$ac_try") 2>&5 18698 ac_status=$? 18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18700 (exit $ac_status); }; }; then 18701 ac_cv_lib_gcc___divdi3=yes 18702else 18703 echo "$as_me: failed program was:" >&5 18704sed 's/^/| /' conftest.$ac_ext >&5 18705 18706 ac_cv_lib_gcc___divdi3=no 18707fi 18708 18709rm -f core conftest.err conftest.$ac_objext \ 18710 conftest$ac_exeext conftest.$ac_ext 18711LIBS=$ac_check_lib_save_LIBS 18712fi 18713{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18714echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18715if test $ac_cv_lib_gcc___divdi3 = yes; then 18716 18717cat >>confdefs.h <<\_ACEOF 18718#define HAVE___DIVDI3 1 18719_ACEOF 18720 18721fi 18722 18723 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18724echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18725if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18726 echo $ECHO_N "(cached) $ECHO_C" >&6 18727else 18728 ac_check_lib_save_LIBS=$LIBS 18729LIBS="-lgcc $LIBS" 18730cat >conftest.$ac_ext <<_ACEOF 18731/* confdefs.h. */ 18732_ACEOF 18733cat confdefs.h >>conftest.$ac_ext 18734cat >>conftest.$ac_ext <<_ACEOF 18735/* end confdefs.h. */ 18736 18737/* Override any GCC internal prototype to avoid an error. 18738 Use char because int might match the return type of a GCC 18739 builtin and then its argument prototype would still apply. */ 18740#ifdef __cplusplus 18741extern "C" 18742#endif 18743char __fixdfdi (); 18744int 18745main () 18746{ 18747return __fixdfdi (); 18748 ; 18749 return 0; 18750} 18751_ACEOF 18752rm -f conftest.$ac_objext conftest$ac_exeext 18753if { (ac_try="$ac_link" 18754case "(($ac_try" in 18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18756 *) ac_try_echo=$ac_try;; 18757esac 18758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18759 (eval "$ac_link") 2>conftest.er1 18760 ac_status=$? 18761 grep -v '^ *+' conftest.er1 >conftest.err 18762 rm -f conftest.er1 18763 cat conftest.err >&5 18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18765 (exit $ac_status); } && 18766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18767 { (case "(($ac_try" in 18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18769 *) ac_try_echo=$ac_try;; 18770esac 18771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18772 (eval "$ac_try") 2>&5 18773 ac_status=$? 18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18775 (exit $ac_status); }; } && 18776 { ac_try='test -s conftest$ac_exeext' 18777 { (case "(($ac_try" in 18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18779 *) ac_try_echo=$ac_try;; 18780esac 18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18782 (eval "$ac_try") 2>&5 18783 ac_status=$? 18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18785 (exit $ac_status); }; }; then 18786 ac_cv_lib_gcc___fixdfdi=yes 18787else 18788 echo "$as_me: failed program was:" >&5 18789sed 's/^/| /' conftest.$ac_ext >&5 18790 18791 ac_cv_lib_gcc___fixdfdi=no 18792fi 18793 18794rm -f core conftest.err conftest.$ac_objext \ 18795 conftest$ac_exeext conftest.$ac_ext 18796LIBS=$ac_check_lib_save_LIBS 18797fi 18798{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18799echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18800if test $ac_cv_lib_gcc___fixdfdi = yes; then 18801 18802cat >>confdefs.h <<\_ACEOF 18803#define HAVE___FIXDFDI 1 18804_ACEOF 18805 18806fi 18807 18808 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18809echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18810if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18811 echo $ECHO_N "(cached) $ECHO_C" >&6 18812else 18813 ac_check_lib_save_LIBS=$LIBS 18814LIBS="-lgcc $LIBS" 18815cat >conftest.$ac_ext <<_ACEOF 18816/* confdefs.h. */ 18817_ACEOF 18818cat confdefs.h >>conftest.$ac_ext 18819cat >>conftest.$ac_ext <<_ACEOF 18820/* end confdefs.h. */ 18821 18822/* Override any GCC internal prototype to avoid an error. 18823 Use char because int might match the return type of a GCC 18824 builtin and then its argument prototype would still apply. */ 18825#ifdef __cplusplus 18826extern "C" 18827#endif 18828char __fixsfdi (); 18829int 18830main () 18831{ 18832return __fixsfdi (); 18833 ; 18834 return 0; 18835} 18836_ACEOF 18837rm -f conftest.$ac_objext conftest$ac_exeext 18838if { (ac_try="$ac_link" 18839case "(($ac_try" in 18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18841 *) ac_try_echo=$ac_try;; 18842esac 18843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18844 (eval "$ac_link") 2>conftest.er1 18845 ac_status=$? 18846 grep -v '^ *+' conftest.er1 >conftest.err 18847 rm -f conftest.er1 18848 cat conftest.err >&5 18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18850 (exit $ac_status); } && 18851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18852 { (case "(($ac_try" in 18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18854 *) ac_try_echo=$ac_try;; 18855esac 18856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18857 (eval "$ac_try") 2>&5 18858 ac_status=$? 18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18860 (exit $ac_status); }; } && 18861 { ac_try='test -s conftest$ac_exeext' 18862 { (case "(($ac_try" in 18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18864 *) ac_try_echo=$ac_try;; 18865esac 18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18867 (eval "$ac_try") 2>&5 18868 ac_status=$? 18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18870 (exit $ac_status); }; }; then 18871 ac_cv_lib_gcc___fixsfdi=yes 18872else 18873 echo "$as_me: failed program was:" >&5 18874sed 's/^/| /' conftest.$ac_ext >&5 18875 18876 ac_cv_lib_gcc___fixsfdi=no 18877fi 18878 18879rm -f core conftest.err conftest.$ac_objext \ 18880 conftest$ac_exeext conftest.$ac_ext 18881LIBS=$ac_check_lib_save_LIBS 18882fi 18883{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18884echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18885if test $ac_cv_lib_gcc___fixsfdi = yes; then 18886 18887cat >>confdefs.h <<\_ACEOF 18888#define HAVE___FIXSFDI 1 18889_ACEOF 18890 18891fi 18892 18893 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18894echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18895if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18896 echo $ECHO_N "(cached) $ECHO_C" >&6 18897else 18898 ac_check_lib_save_LIBS=$LIBS 18899LIBS="-lgcc $LIBS" 18900cat >conftest.$ac_ext <<_ACEOF 18901/* confdefs.h. */ 18902_ACEOF 18903cat confdefs.h >>conftest.$ac_ext 18904cat >>conftest.$ac_ext <<_ACEOF 18905/* end confdefs.h. */ 18906 18907/* Override any GCC internal prototype to avoid an error. 18908 Use char because int might match the return type of a GCC 18909 builtin and then its argument prototype would still apply. */ 18910#ifdef __cplusplus 18911extern "C" 18912#endif 18913char __floatdidf (); 18914int 18915main () 18916{ 18917return __floatdidf (); 18918 ; 18919 return 0; 18920} 18921_ACEOF 18922rm -f conftest.$ac_objext conftest$ac_exeext 18923if { (ac_try="$ac_link" 18924case "(($ac_try" in 18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18926 *) ac_try_echo=$ac_try;; 18927esac 18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18929 (eval "$ac_link") 2>conftest.er1 18930 ac_status=$? 18931 grep -v '^ *+' conftest.er1 >conftest.err 18932 rm -f conftest.er1 18933 cat conftest.err >&5 18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18935 (exit $ac_status); } && 18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18937 { (case "(($ac_try" in 18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18939 *) ac_try_echo=$ac_try;; 18940esac 18941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18942 (eval "$ac_try") 2>&5 18943 ac_status=$? 18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18945 (exit $ac_status); }; } && 18946 { ac_try='test -s conftest$ac_exeext' 18947 { (case "(($ac_try" in 18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18949 *) ac_try_echo=$ac_try;; 18950esac 18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18952 (eval "$ac_try") 2>&5 18953 ac_status=$? 18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18955 (exit $ac_status); }; }; then 18956 ac_cv_lib_gcc___floatdidf=yes 18957else 18958 echo "$as_me: failed program was:" >&5 18959sed 's/^/| /' conftest.$ac_ext >&5 18960 18961 ac_cv_lib_gcc___floatdidf=no 18962fi 18963 18964rm -f core conftest.err conftest.$ac_objext \ 18965 conftest$ac_exeext conftest.$ac_ext 18966LIBS=$ac_check_lib_save_LIBS 18967fi 18968{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18969echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18970if test $ac_cv_lib_gcc___floatdidf = yes; then 18971 18972cat >>confdefs.h <<\_ACEOF 18973#define HAVE___FLOATDIDF 1 18974_ACEOF 18975 18976fi 18977 18978 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18979echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18980if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18981 echo $ECHO_N "(cached) $ECHO_C" >&6 18982else 18983 ac_check_lib_save_LIBS=$LIBS 18984LIBS="-lgcc $LIBS" 18985cat >conftest.$ac_ext <<_ACEOF 18986/* confdefs.h. */ 18987_ACEOF 18988cat confdefs.h >>conftest.$ac_ext 18989cat >>conftest.$ac_ext <<_ACEOF 18990/* end confdefs.h. */ 18991 18992/* Override any GCC internal prototype to avoid an error. 18993 Use char because int might match the return type of a GCC 18994 builtin and then its argument prototype would still apply. */ 18995#ifdef __cplusplus 18996extern "C" 18997#endif 18998char __lshrdi3 (); 18999int 19000main () 19001{ 19002return __lshrdi3 (); 19003 ; 19004 return 0; 19005} 19006_ACEOF 19007rm -f conftest.$ac_objext conftest$ac_exeext 19008if { (ac_try="$ac_link" 19009case "(($ac_try" in 19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19011 *) ac_try_echo=$ac_try;; 19012esac 19013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19014 (eval "$ac_link") 2>conftest.er1 19015 ac_status=$? 19016 grep -v '^ *+' conftest.er1 >conftest.err 19017 rm -f conftest.er1 19018 cat conftest.err >&5 19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19020 (exit $ac_status); } && 19021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19022 { (case "(($ac_try" in 19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19024 *) ac_try_echo=$ac_try;; 19025esac 19026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19027 (eval "$ac_try") 2>&5 19028 ac_status=$? 19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19030 (exit $ac_status); }; } && 19031 { ac_try='test -s conftest$ac_exeext' 19032 { (case "(($ac_try" in 19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19034 *) ac_try_echo=$ac_try;; 19035esac 19036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19037 (eval "$ac_try") 2>&5 19038 ac_status=$? 19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19040 (exit $ac_status); }; }; then 19041 ac_cv_lib_gcc___lshrdi3=yes 19042else 19043 echo "$as_me: failed program was:" >&5 19044sed 's/^/| /' conftest.$ac_ext >&5 19045 19046 ac_cv_lib_gcc___lshrdi3=no 19047fi 19048 19049rm -f core conftest.err conftest.$ac_objext \ 19050 conftest$ac_exeext conftest.$ac_ext 19051LIBS=$ac_check_lib_save_LIBS 19052fi 19053{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19054echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19055if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19056 19057cat >>confdefs.h <<\_ACEOF 19058#define HAVE___LSHRDI3 1 19059_ACEOF 19060 19061fi 19062 19063 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19064echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19065if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19066 echo $ECHO_N "(cached) $ECHO_C" >&6 19067else 19068 ac_check_lib_save_LIBS=$LIBS 19069LIBS="-lgcc $LIBS" 19070cat >conftest.$ac_ext <<_ACEOF 19071/* confdefs.h. */ 19072_ACEOF 19073cat confdefs.h >>conftest.$ac_ext 19074cat >>conftest.$ac_ext <<_ACEOF 19075/* end confdefs.h. */ 19076 19077/* Override any GCC internal prototype to avoid an error. 19078 Use char because int might match the return type of a GCC 19079 builtin and then its argument prototype would still apply. */ 19080#ifdef __cplusplus 19081extern "C" 19082#endif 19083char __moddi3 (); 19084int 19085main () 19086{ 19087return __moddi3 (); 19088 ; 19089 return 0; 19090} 19091_ACEOF 19092rm -f conftest.$ac_objext conftest$ac_exeext 19093if { (ac_try="$ac_link" 19094case "(($ac_try" in 19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19096 *) ac_try_echo=$ac_try;; 19097esac 19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19099 (eval "$ac_link") 2>conftest.er1 19100 ac_status=$? 19101 grep -v '^ *+' conftest.er1 >conftest.err 19102 rm -f conftest.er1 19103 cat conftest.err >&5 19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19105 (exit $ac_status); } && 19106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19107 { (case "(($ac_try" in 19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19109 *) ac_try_echo=$ac_try;; 19110esac 19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19112 (eval "$ac_try") 2>&5 19113 ac_status=$? 19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19115 (exit $ac_status); }; } && 19116 { ac_try='test -s conftest$ac_exeext' 19117 { (case "(($ac_try" in 19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19119 *) ac_try_echo=$ac_try;; 19120esac 19121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19122 (eval "$ac_try") 2>&5 19123 ac_status=$? 19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19125 (exit $ac_status); }; }; then 19126 ac_cv_lib_gcc___moddi3=yes 19127else 19128 echo "$as_me: failed program was:" >&5 19129sed 's/^/| /' conftest.$ac_ext >&5 19130 19131 ac_cv_lib_gcc___moddi3=no 19132fi 19133 19134rm -f core conftest.err conftest.$ac_objext \ 19135 conftest$ac_exeext conftest.$ac_ext 19136LIBS=$ac_check_lib_save_LIBS 19137fi 19138{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19139echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19140if test $ac_cv_lib_gcc___moddi3 = yes; then 19141 19142cat >>confdefs.h <<\_ACEOF 19143#define HAVE___MODDI3 1 19144_ACEOF 19145 19146fi 19147 19148 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19149echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19150if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19151 echo $ECHO_N "(cached) $ECHO_C" >&6 19152else 19153 ac_check_lib_save_LIBS=$LIBS 19154LIBS="-lgcc $LIBS" 19155cat >conftest.$ac_ext <<_ACEOF 19156/* confdefs.h. */ 19157_ACEOF 19158cat confdefs.h >>conftest.$ac_ext 19159cat >>conftest.$ac_ext <<_ACEOF 19160/* end confdefs.h. */ 19161 19162/* Override any GCC internal prototype to avoid an error. 19163 Use char because int might match the return type of a GCC 19164 builtin and then its argument prototype would still apply. */ 19165#ifdef __cplusplus 19166extern "C" 19167#endif 19168char __udivdi3 (); 19169int 19170main () 19171{ 19172return __udivdi3 (); 19173 ; 19174 return 0; 19175} 19176_ACEOF 19177rm -f conftest.$ac_objext conftest$ac_exeext 19178if { (ac_try="$ac_link" 19179case "(($ac_try" in 19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19181 *) ac_try_echo=$ac_try;; 19182esac 19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19184 (eval "$ac_link") 2>conftest.er1 19185 ac_status=$? 19186 grep -v '^ *+' conftest.er1 >conftest.err 19187 rm -f conftest.er1 19188 cat conftest.err >&5 19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19190 (exit $ac_status); } && 19191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19192 { (case "(($ac_try" in 19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19194 *) ac_try_echo=$ac_try;; 19195esac 19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19197 (eval "$ac_try") 2>&5 19198 ac_status=$? 19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19200 (exit $ac_status); }; } && 19201 { ac_try='test -s conftest$ac_exeext' 19202 { (case "(($ac_try" in 19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19204 *) ac_try_echo=$ac_try;; 19205esac 19206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19207 (eval "$ac_try") 2>&5 19208 ac_status=$? 19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19210 (exit $ac_status); }; }; then 19211 ac_cv_lib_gcc___udivdi3=yes 19212else 19213 echo "$as_me: failed program was:" >&5 19214sed 's/^/| /' conftest.$ac_ext >&5 19215 19216 ac_cv_lib_gcc___udivdi3=no 19217fi 19218 19219rm -f core conftest.err conftest.$ac_objext \ 19220 conftest$ac_exeext conftest.$ac_ext 19221LIBS=$ac_check_lib_save_LIBS 19222fi 19223{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19224echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19225if test $ac_cv_lib_gcc___udivdi3 = yes; then 19226 19227cat >>confdefs.h <<\_ACEOF 19228#define HAVE___UDIVDI3 1 19229_ACEOF 19230 19231fi 19232 19233 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19234echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19235if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19236 echo $ECHO_N "(cached) $ECHO_C" >&6 19237else 19238 ac_check_lib_save_LIBS=$LIBS 19239LIBS="-lgcc $LIBS" 19240cat >conftest.$ac_ext <<_ACEOF 19241/* confdefs.h. */ 19242_ACEOF 19243cat confdefs.h >>conftest.$ac_ext 19244cat >>conftest.$ac_ext <<_ACEOF 19245/* end confdefs.h. */ 19246 19247/* Override any GCC internal prototype to avoid an error. 19248 Use char because int might match the return type of a GCC 19249 builtin and then its argument prototype would still apply. */ 19250#ifdef __cplusplus 19251extern "C" 19252#endif 19253char __umoddi3 (); 19254int 19255main () 19256{ 19257return __umoddi3 (); 19258 ; 19259 return 0; 19260} 19261_ACEOF 19262rm -f conftest.$ac_objext conftest$ac_exeext 19263if { (ac_try="$ac_link" 19264case "(($ac_try" in 19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19266 *) ac_try_echo=$ac_try;; 19267esac 19268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19269 (eval "$ac_link") 2>conftest.er1 19270 ac_status=$? 19271 grep -v '^ *+' conftest.er1 >conftest.err 19272 rm -f conftest.er1 19273 cat conftest.err >&5 19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19275 (exit $ac_status); } && 19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19277 { (case "(($ac_try" in 19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19279 *) ac_try_echo=$ac_try;; 19280esac 19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19282 (eval "$ac_try") 2>&5 19283 ac_status=$? 19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19285 (exit $ac_status); }; } && 19286 { ac_try='test -s conftest$ac_exeext' 19287 { (case "(($ac_try" in 19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19289 *) ac_try_echo=$ac_try;; 19290esac 19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19292 (eval "$ac_try") 2>&5 19293 ac_status=$? 19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19295 (exit $ac_status); }; }; then 19296 ac_cv_lib_gcc___umoddi3=yes 19297else 19298 echo "$as_me: failed program was:" >&5 19299sed 's/^/| /' conftest.$ac_ext >&5 19300 19301 ac_cv_lib_gcc___umoddi3=no 19302fi 19303 19304rm -f core conftest.err conftest.$ac_objext \ 19305 conftest$ac_exeext conftest.$ac_ext 19306LIBS=$ac_check_lib_save_LIBS 19307fi 19308{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19309echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19310if test $ac_cv_lib_gcc___umoddi3 = yes; then 19311 19312cat >>confdefs.h <<\_ACEOF 19313#define HAVE___UMODDI3 1 19314_ACEOF 19315 19316fi 19317 19318 19319 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19320echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19321if test "${ac_cv_lib_gcc___main+set}" = set; then 19322 echo $ECHO_N "(cached) $ECHO_C" >&6 19323else 19324 ac_check_lib_save_LIBS=$LIBS 19325LIBS="-lgcc $LIBS" 19326cat >conftest.$ac_ext <<_ACEOF 19327/* confdefs.h. */ 19328_ACEOF 19329cat confdefs.h >>conftest.$ac_ext 19330cat >>conftest.$ac_ext <<_ACEOF 19331/* end confdefs.h. */ 19332 19333/* Override any GCC internal prototype to avoid an error. 19334 Use char because int might match the return type of a GCC 19335 builtin and then its argument prototype would still apply. */ 19336#ifdef __cplusplus 19337extern "C" 19338#endif 19339char __main (); 19340int 19341main () 19342{ 19343return __main (); 19344 ; 19345 return 0; 19346} 19347_ACEOF 19348rm -f conftest.$ac_objext conftest$ac_exeext 19349if { (ac_try="$ac_link" 19350case "(($ac_try" in 19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19352 *) ac_try_echo=$ac_try;; 19353esac 19354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19355 (eval "$ac_link") 2>conftest.er1 19356 ac_status=$? 19357 grep -v '^ *+' conftest.er1 >conftest.err 19358 rm -f conftest.er1 19359 cat conftest.err >&5 19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19361 (exit $ac_status); } && 19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19363 { (case "(($ac_try" in 19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19365 *) ac_try_echo=$ac_try;; 19366esac 19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19368 (eval "$ac_try") 2>&5 19369 ac_status=$? 19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19371 (exit $ac_status); }; } && 19372 { ac_try='test -s conftest$ac_exeext' 19373 { (case "(($ac_try" in 19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19375 *) ac_try_echo=$ac_try;; 19376esac 19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19378 (eval "$ac_try") 2>&5 19379 ac_status=$? 19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19381 (exit $ac_status); }; }; then 19382 ac_cv_lib_gcc___main=yes 19383else 19384 echo "$as_me: failed program was:" >&5 19385sed 's/^/| /' conftest.$ac_ext >&5 19386 19387 ac_cv_lib_gcc___main=no 19388fi 19389 19390rm -f core conftest.err conftest.$ac_objext \ 19391 conftest$ac_exeext conftest.$ac_ext 19392LIBS=$ac_check_lib_save_LIBS 19393fi 19394{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19395echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19396if test $ac_cv_lib_gcc___main = yes; then 19397 19398cat >>confdefs.h <<\_ACEOF 19399#define HAVE___MAIN 1 19400_ACEOF 19401 19402fi 19403 19404 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19405echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19406if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19407 echo $ECHO_N "(cached) $ECHO_C" >&6 19408else 19409 ac_check_lib_save_LIBS=$LIBS 19410LIBS="-lgcc $LIBS" 19411cat >conftest.$ac_ext <<_ACEOF 19412/* confdefs.h. */ 19413_ACEOF 19414cat confdefs.h >>conftest.$ac_ext 19415cat >>conftest.$ac_ext <<_ACEOF 19416/* end confdefs.h. */ 19417 19418/* Override any GCC internal prototype to avoid an error. 19419 Use char because int might match the return type of a GCC 19420 builtin and then its argument prototype would still apply. */ 19421#ifdef __cplusplus 19422extern "C" 19423#endif 19424char __cmpdi2 (); 19425int 19426main () 19427{ 19428return __cmpdi2 (); 19429 ; 19430 return 0; 19431} 19432_ACEOF 19433rm -f conftest.$ac_objext conftest$ac_exeext 19434if { (ac_try="$ac_link" 19435case "(($ac_try" in 19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19437 *) ac_try_echo=$ac_try;; 19438esac 19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19440 (eval "$ac_link") 2>conftest.er1 19441 ac_status=$? 19442 grep -v '^ *+' conftest.er1 >conftest.err 19443 rm -f conftest.er1 19444 cat conftest.err >&5 19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19446 (exit $ac_status); } && 19447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19448 { (case "(($ac_try" in 19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19450 *) ac_try_echo=$ac_try;; 19451esac 19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19453 (eval "$ac_try") 2>&5 19454 ac_status=$? 19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19456 (exit $ac_status); }; } && 19457 { ac_try='test -s conftest$ac_exeext' 19458 { (case "(($ac_try" in 19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19460 *) ac_try_echo=$ac_try;; 19461esac 19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19463 (eval "$ac_try") 2>&5 19464 ac_status=$? 19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19466 (exit $ac_status); }; }; then 19467 ac_cv_lib_gcc___cmpdi2=yes 19468else 19469 echo "$as_me: failed program was:" >&5 19470sed 's/^/| /' conftest.$ac_ext >&5 19471 19472 ac_cv_lib_gcc___cmpdi2=no 19473fi 19474 19475rm -f core conftest.err conftest.$ac_objext \ 19476 conftest$ac_exeext conftest.$ac_ext 19477LIBS=$ac_check_lib_save_LIBS 19478fi 19479{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19480echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19481if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19482 19483cat >>confdefs.h <<\_ACEOF 19484#define HAVE___CMPDI2 1 19485_ACEOF 19486 19487fi 19488 19489fi 19490 19491if test "$llvm_cv_os_type" = "MingW" ; then 19492 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19493echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19494 cat >conftest.$ac_ext <<_ACEOF 19495#include <windows.h> 19496#include <imagehlp.h> 19497extern void foo(PENUMLOADED_MODULES_CALLBACK); 19498extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19499_ACEOF 19500rm -f conftest.$ac_objext 19501if { (ac_try="$ac_compile" 19502case "(($ac_try" in 19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19504 *) ac_try_echo=$ac_try;; 19505esac 19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19507 (eval "$ac_compile") 2>conftest.er1 19508 ac_status=$? 19509 grep -v '^ *+' conftest.er1 >conftest.err 19510 rm -f conftest.er1 19511 cat conftest.err >&5 19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19513 (exit $ac_status); } && 19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19515 { (case "(($ac_try" in 19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19517 *) ac_try_echo=$ac_try;; 19518esac 19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19520 (eval "$ac_try") 2>&5 19521 ac_status=$? 19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19523 (exit $ac_status); }; } && 19524 { ac_try='test -s conftest.$ac_objext' 19525 { (case "(($ac_try" in 19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19527 *) ac_try_echo=$ac_try;; 19528esac 19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19530 (eval "$ac_try") 2>&5 19531 ac_status=$? 19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19533 (exit $ac_status); }; }; then 19534 19535 { echo "$as_me:$LINENO: result: yes" >&5 19536echo "${ECHO_T}yes" >&6; } 19537 llvm_cv_win32_elmcb_pcstr="PCSTR" 19538 19539else 19540 echo "$as_me: failed program was:" >&5 19541sed 's/^/| /' conftest.$ac_ext >&5 19542 19543 19544 { echo "$as_me:$LINENO: result: no" >&5 19545echo "${ECHO_T}no" >&6; } 19546 llvm_cv_win32_elmcb_pcstr="PSTR" 19547 19548fi 19549 19550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19551 19552cat >>confdefs.h <<_ACEOF 19553#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19554_ACEOF 19555 19556fi 19557 19558 19559{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19560echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19561if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19562 echo $ECHO_N "(cached) $ECHO_C" >&6 19563else 19564 ac_ext=cpp 19565ac_cpp='$CXXCPP $CPPFLAGS' 19566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19569 19570 cat >conftest.$ac_ext <<_ACEOF 19571/* confdefs.h. */ 19572_ACEOF 19573cat confdefs.h >>conftest.$ac_ext 19574cat >>conftest.$ac_ext <<_ACEOF 19575/* end confdefs.h. */ 19576#include <math.h> 19577int 19578main () 19579{ 19580float f; isnan(f); 19581 ; 19582 return 0; 19583} 19584_ACEOF 19585rm -f conftest.$ac_objext 19586if { (ac_try="$ac_compile" 19587case "(($ac_try" in 19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19589 *) ac_try_echo=$ac_try;; 19590esac 19591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19592 (eval "$ac_compile") 2>conftest.er1 19593 ac_status=$? 19594 grep -v '^ *+' conftest.er1 >conftest.err 19595 rm -f conftest.er1 19596 cat conftest.err >&5 19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19598 (exit $ac_status); } && 19599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19600 { (case "(($ac_try" in 19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19602 *) ac_try_echo=$ac_try;; 19603esac 19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19605 (eval "$ac_try") 2>&5 19606 ac_status=$? 19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19608 (exit $ac_status); }; } && 19609 { ac_try='test -s conftest.$ac_objext' 19610 { (case "(($ac_try" in 19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19612 *) ac_try_echo=$ac_try;; 19613esac 19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19615 (eval "$ac_try") 2>&5 19616 ac_status=$? 19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19618 (exit $ac_status); }; }; then 19619 ac_cv_func_isnan_in_math_h=yes 19620else 19621 echo "$as_me: failed program was:" >&5 19622sed 's/^/| /' conftest.$ac_ext >&5 19623 19624 ac_cv_func_isnan_in_math_h=no 19625fi 19626 19627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19628 ac_ext=c 19629ac_cpp='$CPP $CPPFLAGS' 19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19632ac_compiler_gnu=$ac_cv_c_compiler_gnu 19633 19634fi 19635{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19636echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19637 19638 19639if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19640 19641cat >>confdefs.h <<\_ACEOF 19642#define HAVE_ISNAN_IN_MATH_H 1 19643_ACEOF 19644 19645fi 19646 19647{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19648echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19649if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19650 echo $ECHO_N "(cached) $ECHO_C" >&6 19651else 19652 ac_ext=cpp 19653ac_cpp='$CXXCPP $CPPFLAGS' 19654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19657 19658 cat >conftest.$ac_ext <<_ACEOF 19659/* confdefs.h. */ 19660_ACEOF 19661cat confdefs.h >>conftest.$ac_ext 19662cat >>conftest.$ac_ext <<_ACEOF 19663/* end confdefs.h. */ 19664#include <cmath> 19665int 19666main () 19667{ 19668float f; isnan(f); 19669 ; 19670 return 0; 19671} 19672_ACEOF 19673rm -f conftest.$ac_objext 19674if { (ac_try="$ac_compile" 19675case "(($ac_try" in 19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19677 *) ac_try_echo=$ac_try;; 19678esac 19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19680 (eval "$ac_compile") 2>conftest.er1 19681 ac_status=$? 19682 grep -v '^ *+' conftest.er1 >conftest.err 19683 rm -f conftest.er1 19684 cat conftest.err >&5 19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19686 (exit $ac_status); } && 19687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19688 { (case "(($ac_try" in 19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19690 *) ac_try_echo=$ac_try;; 19691esac 19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19693 (eval "$ac_try") 2>&5 19694 ac_status=$? 19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19696 (exit $ac_status); }; } && 19697 { ac_try='test -s conftest.$ac_objext' 19698 { (case "(($ac_try" in 19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19700 *) ac_try_echo=$ac_try;; 19701esac 19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19703 (eval "$ac_try") 2>&5 19704 ac_status=$? 19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19706 (exit $ac_status); }; }; then 19707 ac_cv_func_isnan_in_cmath=yes 19708else 19709 echo "$as_me: failed program was:" >&5 19710sed 's/^/| /' conftest.$ac_ext >&5 19711 19712 ac_cv_func_isnan_in_cmath=no 19713fi 19714 19715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19716 ac_ext=c 19717ac_cpp='$CPP $CPPFLAGS' 19718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19720ac_compiler_gnu=$ac_cv_c_compiler_gnu 19721 19722fi 19723{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19724echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19725 19726if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19727 19728cat >>confdefs.h <<\_ACEOF 19729#define HAVE_ISNAN_IN_CMATH 1 19730_ACEOF 19731 19732fi 19733 19734{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19735echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19736if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19737 echo $ECHO_N "(cached) $ECHO_C" >&6 19738else 19739 ac_ext=cpp 19740ac_cpp='$CXXCPP $CPPFLAGS' 19741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19744 19745 cat >conftest.$ac_ext <<_ACEOF 19746/* confdefs.h. */ 19747_ACEOF 19748cat confdefs.h >>conftest.$ac_ext 19749cat >>conftest.$ac_ext <<_ACEOF 19750/* end confdefs.h. */ 19751#include <cmath> 19752int 19753main () 19754{ 19755float f; std::isnan(f); 19756 ; 19757 return 0; 19758} 19759_ACEOF 19760rm -f conftest.$ac_objext 19761if { (ac_try="$ac_compile" 19762case "(($ac_try" in 19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19764 *) ac_try_echo=$ac_try;; 19765esac 19766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19767 (eval "$ac_compile") 2>conftest.er1 19768 ac_status=$? 19769 grep -v '^ *+' conftest.er1 >conftest.err 19770 rm -f conftest.er1 19771 cat conftest.err >&5 19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19773 (exit $ac_status); } && 19774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19775 { (case "(($ac_try" in 19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19777 *) ac_try_echo=$ac_try;; 19778esac 19779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19780 (eval "$ac_try") 2>&5 19781 ac_status=$? 19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19783 (exit $ac_status); }; } && 19784 { ac_try='test -s conftest.$ac_objext' 19785 { (case "(($ac_try" in 19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19787 *) ac_try_echo=$ac_try;; 19788esac 19789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19790 (eval "$ac_try") 2>&5 19791 ac_status=$? 19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19793 (exit $ac_status); }; }; then 19794 ac_cv_func_std_isnan_in_cmath=yes 19795else 19796 echo "$as_me: failed program was:" >&5 19797sed 's/^/| /' conftest.$ac_ext >&5 19798 19799 ac_cv_func_std_isnan_in_cmath=no 19800fi 19801 19802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19803 ac_ext=c 19804ac_cpp='$CPP $CPPFLAGS' 19805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19807ac_compiler_gnu=$ac_cv_c_compiler_gnu 19808 19809fi 19810{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19811echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19812 19813if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19814 19815cat >>confdefs.h <<\_ACEOF 19816#define HAVE_STD_ISNAN_IN_CMATH 1 19817_ACEOF 19818 19819fi 19820 19821 19822{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19823echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19824if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19825 echo $ECHO_N "(cached) $ECHO_C" >&6 19826else 19827 ac_ext=cpp 19828ac_cpp='$CXXCPP $CPPFLAGS' 19829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19832 19833 cat >conftest.$ac_ext <<_ACEOF 19834/* confdefs.h. */ 19835_ACEOF 19836cat confdefs.h >>conftest.$ac_ext 19837cat >>conftest.$ac_ext <<_ACEOF 19838/* end confdefs.h. */ 19839#include <math.h> 19840int 19841main () 19842{ 19843float f; isinf(f); 19844 ; 19845 return 0; 19846} 19847_ACEOF 19848rm -f conftest.$ac_objext 19849if { (ac_try="$ac_compile" 19850case "(($ac_try" in 19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19852 *) ac_try_echo=$ac_try;; 19853esac 19854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19855 (eval "$ac_compile") 2>conftest.er1 19856 ac_status=$? 19857 grep -v '^ *+' conftest.er1 >conftest.err 19858 rm -f conftest.er1 19859 cat conftest.err >&5 19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19861 (exit $ac_status); } && 19862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19863 { (case "(($ac_try" in 19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19865 *) ac_try_echo=$ac_try;; 19866esac 19867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19868 (eval "$ac_try") 2>&5 19869 ac_status=$? 19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19871 (exit $ac_status); }; } && 19872 { ac_try='test -s conftest.$ac_objext' 19873 { (case "(($ac_try" in 19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19875 *) ac_try_echo=$ac_try;; 19876esac 19877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19878 (eval "$ac_try") 2>&5 19879 ac_status=$? 19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19881 (exit $ac_status); }; }; then 19882 ac_cv_func_isinf_in_math_h=yes 19883else 19884 echo "$as_me: failed program was:" >&5 19885sed 's/^/| /' conftest.$ac_ext >&5 19886 19887 ac_cv_func_isinf_in_math_h=no 19888fi 19889 19890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19891 ac_ext=c 19892ac_cpp='$CPP $CPPFLAGS' 19893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19895ac_compiler_gnu=$ac_cv_c_compiler_gnu 19896 19897fi 19898{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19899echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19900 19901if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19902 19903cat >>confdefs.h <<\_ACEOF 19904#define HAVE_ISINF_IN_MATH_H 1 19905_ACEOF 19906 19907fi 19908 19909{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19910echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19911if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19912 echo $ECHO_N "(cached) $ECHO_C" >&6 19913else 19914 ac_ext=cpp 19915ac_cpp='$CXXCPP $CPPFLAGS' 19916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19919 19920 cat >conftest.$ac_ext <<_ACEOF 19921/* confdefs.h. */ 19922_ACEOF 19923cat confdefs.h >>conftest.$ac_ext 19924cat >>conftest.$ac_ext <<_ACEOF 19925/* end confdefs.h. */ 19926#include <cmath> 19927int 19928main () 19929{ 19930float f; isinf(f); 19931 ; 19932 return 0; 19933} 19934_ACEOF 19935rm -f conftest.$ac_objext 19936if { (ac_try="$ac_compile" 19937case "(($ac_try" in 19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19939 *) ac_try_echo=$ac_try;; 19940esac 19941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19942 (eval "$ac_compile") 2>conftest.er1 19943 ac_status=$? 19944 grep -v '^ *+' conftest.er1 >conftest.err 19945 rm -f conftest.er1 19946 cat conftest.err >&5 19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19948 (exit $ac_status); } && 19949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19950 { (case "(($ac_try" in 19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19952 *) ac_try_echo=$ac_try;; 19953esac 19954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19955 (eval "$ac_try") 2>&5 19956 ac_status=$? 19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19958 (exit $ac_status); }; } && 19959 { ac_try='test -s conftest.$ac_objext' 19960 { (case "(($ac_try" in 19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19962 *) ac_try_echo=$ac_try;; 19963esac 19964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19965 (eval "$ac_try") 2>&5 19966 ac_status=$? 19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19968 (exit $ac_status); }; }; then 19969 ac_cv_func_isinf_in_cmath=yes 19970else 19971 echo "$as_me: failed program was:" >&5 19972sed 's/^/| /' conftest.$ac_ext >&5 19973 19974 ac_cv_func_isinf_in_cmath=no 19975fi 19976 19977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19978 ac_ext=c 19979ac_cpp='$CPP $CPPFLAGS' 19980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19982ac_compiler_gnu=$ac_cv_c_compiler_gnu 19983 19984fi 19985{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19986echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19987 19988if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19989 19990cat >>confdefs.h <<\_ACEOF 19991#define HAVE_ISINF_IN_CMATH 1 19992_ACEOF 19993 19994fi 19995 19996{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19997echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19998if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19999 echo $ECHO_N "(cached) $ECHO_C" >&6 20000else 20001 ac_ext=cpp 20002ac_cpp='$CXXCPP $CPPFLAGS' 20003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20006 20007 cat >conftest.$ac_ext <<_ACEOF 20008/* confdefs.h. */ 20009_ACEOF 20010cat confdefs.h >>conftest.$ac_ext 20011cat >>conftest.$ac_ext <<_ACEOF 20012/* end confdefs.h. */ 20013#include <cmath> 20014int 20015main () 20016{ 20017float f; std::isinf(f); 20018 ; 20019 return 0; 20020} 20021_ACEOF 20022rm -f conftest.$ac_objext 20023if { (ac_try="$ac_compile" 20024case "(($ac_try" in 20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20026 *) ac_try_echo=$ac_try;; 20027esac 20028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20029 (eval "$ac_compile") 2>conftest.er1 20030 ac_status=$? 20031 grep -v '^ *+' conftest.er1 >conftest.err 20032 rm -f conftest.er1 20033 cat conftest.err >&5 20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20035 (exit $ac_status); } && 20036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20037 { (case "(($ac_try" in 20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20039 *) ac_try_echo=$ac_try;; 20040esac 20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20042 (eval "$ac_try") 2>&5 20043 ac_status=$? 20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20045 (exit $ac_status); }; } && 20046 { ac_try='test -s conftest.$ac_objext' 20047 { (case "(($ac_try" in 20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20049 *) ac_try_echo=$ac_try;; 20050esac 20051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20052 (eval "$ac_try") 2>&5 20053 ac_status=$? 20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20055 (exit $ac_status); }; }; then 20056 ac_cv_func_std_isinf_in_cmath=yes 20057else 20058 echo "$as_me: failed program was:" >&5 20059sed 's/^/| /' conftest.$ac_ext >&5 20060 20061 ac_cv_func_std_isinf_in_cmath=no 20062fi 20063 20064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20065 ac_ext=c 20066ac_cpp='$CPP $CPPFLAGS' 20067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20069ac_compiler_gnu=$ac_cv_c_compiler_gnu 20070 20071fi 20072{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20073echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20074 20075if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20076 20077cat >>confdefs.h <<\_ACEOF 20078#define HAVE_STD_ISINF_IN_CMATH 1 20079_ACEOF 20080 20081fi 20082 20083{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20084echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20085if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20086 echo $ECHO_N "(cached) $ECHO_C" >&6 20087else 20088 ac_ext=cpp 20089ac_cpp='$CXXCPP $CPPFLAGS' 20090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20093 20094 cat >conftest.$ac_ext <<_ACEOF 20095/* confdefs.h. */ 20096_ACEOF 20097cat confdefs.h >>conftest.$ac_ext 20098cat >>conftest.$ac_ext <<_ACEOF 20099/* end confdefs.h. */ 20100#include <ieeefp.h> 20101int 20102main () 20103{ 20104float f; finite(f); 20105 ; 20106 return 0; 20107} 20108_ACEOF 20109rm -f conftest.$ac_objext 20110if { (ac_try="$ac_compile" 20111case "(($ac_try" in 20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20113 *) ac_try_echo=$ac_try;; 20114esac 20115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20116 (eval "$ac_compile") 2>conftest.er1 20117 ac_status=$? 20118 grep -v '^ *+' conftest.er1 >conftest.err 20119 rm -f conftest.er1 20120 cat conftest.err >&5 20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20122 (exit $ac_status); } && 20123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20124 { (case "(($ac_try" in 20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20126 *) ac_try_echo=$ac_try;; 20127esac 20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20129 (eval "$ac_try") 2>&5 20130 ac_status=$? 20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20132 (exit $ac_status); }; } && 20133 { ac_try='test -s conftest.$ac_objext' 20134 { (case "(($ac_try" in 20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20136 *) ac_try_echo=$ac_try;; 20137esac 20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20139 (eval "$ac_try") 2>&5 20140 ac_status=$? 20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20142 (exit $ac_status); }; }; then 20143 ac_cv_func_finite_in_ieeefp_h=yes 20144else 20145 echo "$as_me: failed program was:" >&5 20146sed 's/^/| /' conftest.$ac_ext >&5 20147 20148 ac_cv_func_finite_in_ieeefp_h=no 20149fi 20150 20151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20152 ac_ext=c 20153ac_cpp='$CPP $CPPFLAGS' 20154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20156ac_compiler_gnu=$ac_cv_c_compiler_gnu 20157 20158fi 20159{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20160echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20161 20162if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20163 20164cat >>confdefs.h <<\_ACEOF 20165#define HAVE_FINITE_IN_IEEEFP_H 1 20166_ACEOF 20167 20168fi 20169 20170 20171 20172if test "$llvm_cv_platform_type" = "Unix" ; then 20173 20174 20175for ac_header in stdlib.h unistd.h 20176do 20177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20179 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20182 echo $ECHO_N "(cached) $ECHO_C" >&6 20183fi 20184ac_res=`eval echo '${'$as_ac_Header'}'` 20185 { echo "$as_me:$LINENO: result: $ac_res" >&5 20186echo "${ECHO_T}$ac_res" >&6; } 20187else 20188 # Is the header compilable? 20189{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20191cat >conftest.$ac_ext <<_ACEOF 20192/* confdefs.h. */ 20193_ACEOF 20194cat confdefs.h >>conftest.$ac_ext 20195cat >>conftest.$ac_ext <<_ACEOF 20196/* end confdefs.h. */ 20197$ac_includes_default 20198#include <$ac_header> 20199_ACEOF 20200rm -f conftest.$ac_objext 20201if { (ac_try="$ac_compile" 20202case "(($ac_try" in 20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20204 *) ac_try_echo=$ac_try;; 20205esac 20206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20207 (eval "$ac_compile") 2>conftest.er1 20208 ac_status=$? 20209 grep -v '^ *+' conftest.er1 >conftest.err 20210 rm -f conftest.er1 20211 cat conftest.err >&5 20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20213 (exit $ac_status); } && 20214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20215 { (case "(($ac_try" in 20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20217 *) ac_try_echo=$ac_try;; 20218esac 20219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20220 (eval "$ac_try") 2>&5 20221 ac_status=$? 20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20223 (exit $ac_status); }; } && 20224 { ac_try='test -s conftest.$ac_objext' 20225 { (case "(($ac_try" in 20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20227 *) ac_try_echo=$ac_try;; 20228esac 20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20230 (eval "$ac_try") 2>&5 20231 ac_status=$? 20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20233 (exit $ac_status); }; }; then 20234 ac_header_compiler=yes 20235else 20236 echo "$as_me: failed program was:" >&5 20237sed 's/^/| /' conftest.$ac_ext >&5 20238 20239 ac_header_compiler=no 20240fi 20241 20242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20244echo "${ECHO_T}$ac_header_compiler" >&6; } 20245 20246# Is the header present? 20247{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20249cat >conftest.$ac_ext <<_ACEOF 20250/* confdefs.h. */ 20251_ACEOF 20252cat confdefs.h >>conftest.$ac_ext 20253cat >>conftest.$ac_ext <<_ACEOF 20254/* end confdefs.h. */ 20255#include <$ac_header> 20256_ACEOF 20257if { (ac_try="$ac_cpp conftest.$ac_ext" 20258case "(($ac_try" in 20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20260 *) ac_try_echo=$ac_try;; 20261esac 20262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20264 ac_status=$? 20265 grep -v '^ *+' conftest.er1 >conftest.err 20266 rm -f conftest.er1 20267 cat conftest.err >&5 20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20269 (exit $ac_status); } >/dev/null; then 20270 if test -s conftest.err; then 20271 ac_cpp_err=$ac_c_preproc_warn_flag 20272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20273 else 20274 ac_cpp_err= 20275 fi 20276else 20277 ac_cpp_err=yes 20278fi 20279if test -z "$ac_cpp_err"; then 20280 ac_header_preproc=yes 20281else 20282 echo "$as_me: failed program was:" >&5 20283sed 's/^/| /' conftest.$ac_ext >&5 20284 20285 ac_header_preproc=no 20286fi 20287 20288rm -f conftest.err conftest.$ac_ext 20289{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20290echo "${ECHO_T}$ac_header_preproc" >&6; } 20291 20292# So? What about this header? 20293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20294 yes:no: ) 20295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20299 ac_header_preproc=yes 20300 ;; 20301 no:yes:* ) 20302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20314 ( cat <<\_ASBOX 20315## ------------------------------------ ## 20316## Report this to http://llvm.org/bugs/ ## 20317## ------------------------------------ ## 20318_ASBOX 20319 ) | sed "s/^/$as_me: WARNING: /" >&2 20320 ;; 20321esac 20322{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20325 echo $ECHO_N "(cached) $ECHO_C" >&6 20326else 20327 eval "$as_ac_Header=\$ac_header_preproc" 20328fi 20329ac_res=`eval echo '${'$as_ac_Header'}'` 20330 { echo "$as_me:$LINENO: result: $ac_res" >&5 20331echo "${ECHO_T}$ac_res" >&6; } 20332 20333fi 20334if test `eval echo '${'$as_ac_Header'}'` = yes; then 20335 cat >>confdefs.h <<_ACEOF 20336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20337_ACEOF 20338 20339fi 20340 20341done 20342 20343 20344for ac_func in getpagesize 20345do 20346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20347{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20349if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20350 echo $ECHO_N "(cached) $ECHO_C" >&6 20351else 20352 cat >conftest.$ac_ext <<_ACEOF 20353/* confdefs.h. */ 20354_ACEOF 20355cat confdefs.h >>conftest.$ac_ext 20356cat >>conftest.$ac_ext <<_ACEOF 20357/* end confdefs.h. */ 20358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20360#define $ac_func innocuous_$ac_func 20361 20362/* System header to define __stub macros and hopefully few prototypes, 20363 which can conflict with char $ac_func (); below. 20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20365 <limits.h> exists even on freestanding compilers. */ 20366 20367#ifdef __STDC__ 20368# include <limits.h> 20369#else 20370# include <assert.h> 20371#endif 20372 20373#undef $ac_func 20374 20375/* Override any GCC internal prototype to avoid an error. 20376 Use char because int might match the return type of a GCC 20377 builtin and then its argument prototype would still apply. */ 20378#ifdef __cplusplus 20379extern "C" 20380#endif 20381char $ac_func (); 20382/* The GNU C library defines this for functions which it implements 20383 to always fail with ENOSYS. Some functions are actually named 20384 something starting with __ and the normal name is an alias. */ 20385#if defined __stub_$ac_func || defined __stub___$ac_func 20386choke me 20387#endif 20388 20389int 20390main () 20391{ 20392return $ac_func (); 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397rm -f conftest.$ac_objext conftest$ac_exeext 20398if { (ac_try="$ac_link" 20399case "(($ac_try" in 20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20401 *) ac_try_echo=$ac_try;; 20402esac 20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20404 (eval "$ac_link") 2>conftest.er1 20405 ac_status=$? 20406 grep -v '^ *+' conftest.er1 >conftest.err 20407 rm -f conftest.er1 20408 cat conftest.err >&5 20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20410 (exit $ac_status); } && 20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20412 { (case "(($ac_try" in 20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20414 *) ac_try_echo=$ac_try;; 20415esac 20416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20417 (eval "$ac_try") 2>&5 20418 ac_status=$? 20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20420 (exit $ac_status); }; } && 20421 { ac_try='test -s conftest$ac_exeext' 20422 { (case "(($ac_try" in 20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20424 *) ac_try_echo=$ac_try;; 20425esac 20426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20427 (eval "$ac_try") 2>&5 20428 ac_status=$? 20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20430 (exit $ac_status); }; }; then 20431 eval "$as_ac_var=yes" 20432else 20433 echo "$as_me: failed program was:" >&5 20434sed 's/^/| /' conftest.$ac_ext >&5 20435 20436 eval "$as_ac_var=no" 20437fi 20438 20439rm -f core conftest.err conftest.$ac_objext \ 20440 conftest$ac_exeext conftest.$ac_ext 20441fi 20442ac_res=`eval echo '${'$as_ac_var'}'` 20443 { echo "$as_me:$LINENO: result: $ac_res" >&5 20444echo "${ECHO_T}$ac_res" >&6; } 20445if test `eval echo '${'$as_ac_var'}'` = yes; then 20446 cat >>confdefs.h <<_ACEOF 20447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20448_ACEOF 20449 20450fi 20451done 20452 20453{ echo "$as_me:$LINENO: checking for working mmap" >&5 20454echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20455if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20456 echo $ECHO_N "(cached) $ECHO_C" >&6 20457else 20458 if test "$cross_compiling" = yes; then 20459 ac_cv_func_mmap_fixed_mapped=no 20460else 20461 cat >conftest.$ac_ext <<_ACEOF 20462/* confdefs.h. */ 20463_ACEOF 20464cat confdefs.h >>conftest.$ac_ext 20465cat >>conftest.$ac_ext <<_ACEOF 20466/* end confdefs.h. */ 20467$ac_includes_default 20468/* malloc might have been renamed as rpl_malloc. */ 20469#undef malloc 20470 20471/* Thanks to Mike Haertel and Jim Avera for this test. 20472 Here is a matrix of mmap possibilities: 20473 mmap private not fixed 20474 mmap private fixed at somewhere currently unmapped 20475 mmap private fixed at somewhere already mapped 20476 mmap shared not fixed 20477 mmap shared fixed at somewhere currently unmapped 20478 mmap shared fixed at somewhere already mapped 20479 For private mappings, we should verify that changes cannot be read() 20480 back from the file, nor mmap's back from the file at a different 20481 address. (There have been systems where private was not correctly 20482 implemented like the infamous i386 svr4.0, and systems where the 20483 VM page cache was not coherent with the file system buffer cache 20484 like early versions of FreeBSD and possibly contemporary NetBSD.) 20485 For shared mappings, we should conversely verify that changes get 20486 propagated back to all the places they're supposed to be. 20487 20488 Grep wants private fixed already mapped. 20489 The main things grep needs to know about mmap are: 20490 * does it exist and is it safe to write into the mmap'd area 20491 * how to use it (BSD variants) */ 20492 20493#include <fcntl.h> 20494#include <sys/mman.h> 20495 20496#if !STDC_HEADERS && !HAVE_STDLIB_H 20497char *malloc (); 20498#endif 20499 20500/* This mess was copied from the GNU getpagesize.h. */ 20501#if !HAVE_GETPAGESIZE 20502/* Assume that all systems that can run configure have sys/param.h. */ 20503# if !HAVE_SYS_PARAM_H 20504# define HAVE_SYS_PARAM_H 1 20505# endif 20506 20507# ifdef _SC_PAGESIZE 20508# define getpagesize() sysconf(_SC_PAGESIZE) 20509# else /* no _SC_PAGESIZE */ 20510# if HAVE_SYS_PARAM_H 20511# include <sys/param.h> 20512# ifdef EXEC_PAGESIZE 20513# define getpagesize() EXEC_PAGESIZE 20514# else /* no EXEC_PAGESIZE */ 20515# ifdef NBPG 20516# define getpagesize() NBPG * CLSIZE 20517# ifndef CLSIZE 20518# define CLSIZE 1 20519# endif /* no CLSIZE */ 20520# else /* no NBPG */ 20521# ifdef NBPC 20522# define getpagesize() NBPC 20523# else /* no NBPC */ 20524# ifdef PAGESIZE 20525# define getpagesize() PAGESIZE 20526# endif /* PAGESIZE */ 20527# endif /* no NBPC */ 20528# endif /* no NBPG */ 20529# endif /* no EXEC_PAGESIZE */ 20530# else /* no HAVE_SYS_PARAM_H */ 20531# define getpagesize() 8192 /* punt totally */ 20532# endif /* no HAVE_SYS_PARAM_H */ 20533# endif /* no _SC_PAGESIZE */ 20534 20535#endif /* no HAVE_GETPAGESIZE */ 20536 20537int 20538main () 20539{ 20540 char *data, *data2, *data3; 20541 int i, pagesize; 20542 int fd; 20543 20544 pagesize = getpagesize (); 20545 20546 /* First, make a file with some known garbage in it. */ 20547 data = (char *) malloc (pagesize); 20548 if (!data) 20549 return 1; 20550 for (i = 0; i < pagesize; ++i) 20551 *(data + i) = rand (); 20552 umask (0); 20553 fd = creat ("conftest.mmap", 0600); 20554 if (fd < 0) 20555 return 1; 20556 if (write (fd, data, pagesize) != pagesize) 20557 return 1; 20558 close (fd); 20559 20560 /* Next, try to mmap the file at a fixed address which already has 20561 something else allocated at it. If we can, also make sure that 20562 we see the same garbage. */ 20563 fd = open ("conftest.mmap", O_RDWR); 20564 if (fd < 0) 20565 return 1; 20566 data2 = (char *) malloc (2 * pagesize); 20567 if (!data2) 20568 return 1; 20569 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20570 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20571 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20572 return 1; 20573 for (i = 0; i < pagesize; ++i) 20574 if (*(data + i) != *(data2 + i)) 20575 return 1; 20576 20577 /* Finally, make sure that changes to the mapped area do not 20578 percolate back to the file as seen by read(). (This is a bug on 20579 some variants of i386 svr4.0.) */ 20580 for (i = 0; i < pagesize; ++i) 20581 *(data2 + i) = *(data2 + i) + 1; 20582 data3 = (char *) malloc (pagesize); 20583 if (!data3) 20584 return 1; 20585 if (read (fd, data3, pagesize) != pagesize) 20586 return 1; 20587 for (i = 0; i < pagesize; ++i) 20588 if (*(data + i) != *(data3 + i)) 20589 return 1; 20590 close (fd); 20591 return 0; 20592} 20593_ACEOF 20594rm -f conftest$ac_exeext 20595if { (ac_try="$ac_link" 20596case "(($ac_try" in 20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20598 *) ac_try_echo=$ac_try;; 20599esac 20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20601 (eval "$ac_link") 2>&5 20602 ac_status=$? 20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20605 { (case "(($ac_try" in 20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20607 *) ac_try_echo=$ac_try;; 20608esac 20609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20610 (eval "$ac_try") 2>&5 20611 ac_status=$? 20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20613 (exit $ac_status); }; }; then 20614 ac_cv_func_mmap_fixed_mapped=yes 20615else 20616 echo "$as_me: program exited with status $ac_status" >&5 20617echo "$as_me: failed program was:" >&5 20618sed 's/^/| /' conftest.$ac_ext >&5 20619 20620( exit $ac_status ) 20621ac_cv_func_mmap_fixed_mapped=no 20622fi 20623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20624fi 20625 20626 20627fi 20628{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20629echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20630if test $ac_cv_func_mmap_fixed_mapped = yes; then 20631 20632cat >>confdefs.h <<\_ACEOF 20633#define HAVE_MMAP 1 20634_ACEOF 20635 20636fi 20637rm -f conftest.mmap 20638 20639 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20640echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20641if test "${ac_cv_func_mmap_file+set}" = set; then 20642 echo $ECHO_N "(cached) $ECHO_C" >&6 20643else 20644 ac_ext=c 20645ac_cpp='$CPP $CPPFLAGS' 20646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20648ac_compiler_gnu=$ac_cv_c_compiler_gnu 20649 20650 if test "$cross_compiling" = yes; then 20651 ac_cv_func_mmap_file=no 20652else 20653 cat >conftest.$ac_ext <<_ACEOF 20654 20655 /* confdefs.h. */ 20656_ACEOF 20657cat confdefs.h >>conftest.$ac_ext 20658cat >>conftest.$ac_ext <<_ACEOF 20659/* end confdefs.h. */ 20660 20661#include <sys/types.h> 20662#include <sys/mman.h> 20663#include <fcntl.h> 20664 20665int 20666main () 20667{ 20668 20669 int fd; 20670 fd = creat ("foo",0777); 20671 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20672 unlink ("foo"); 20673 return (fd != (int) MAP_FAILED); 20674 ; 20675 return 0; 20676} 20677_ACEOF 20678rm -f conftest$ac_exeext 20679if { (ac_try="$ac_link" 20680case "(($ac_try" in 20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20682 *) ac_try_echo=$ac_try;; 20683esac 20684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20685 (eval "$ac_link") 2>&5 20686 ac_status=$? 20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20689 { (case "(($ac_try" in 20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20691 *) ac_try_echo=$ac_try;; 20692esac 20693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20694 (eval "$ac_try") 2>&5 20695 ac_status=$? 20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20697 (exit $ac_status); }; }; then 20698 ac_cv_func_mmap_file=yes 20699else 20700 echo "$as_me: program exited with status $ac_status" >&5 20701echo "$as_me: failed program was:" >&5 20702sed 's/^/| /' conftest.$ac_ext >&5 20703 20704( exit $ac_status ) 20705ac_cv_func_mmap_file=no 20706fi 20707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20708fi 20709 20710 20711 ac_ext=c 20712ac_cpp='$CPP $CPPFLAGS' 20713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20715ac_compiler_gnu=$ac_cv_c_compiler_gnu 20716 20717 20718fi 20719{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20720echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20721if test "$ac_cv_func_mmap_file" = yes; then 20722 20723cat >>confdefs.h <<\_ACEOF 20724#define HAVE_MMAP_FILE 20725_ACEOF 20726 20727 MMAP_FILE=yes 20728 20729fi 20730 20731 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20732echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20733if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20734 echo $ECHO_N "(cached) $ECHO_C" >&6 20735else 20736 if test "$llvm_cv_os_type" = "Interix" ; then 20737 ac_cv_need_dev_zero_for_mmap=yes 20738 else 20739 ac_cv_need_dev_zero_for_mmap=no 20740 fi 20741 20742fi 20743{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20744echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20745if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20746 20747cat >>confdefs.h <<\_ACEOF 20748#define NEED_DEV_ZERO_FOR_MMAP 1 20749_ACEOF 20750 20751fi 20752 20753 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20754 then 20755 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20756echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20757 fi 20758 if test "$ac_cv_func_mmap_file" = "no" 20759 then 20760 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20761echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20762 fi 20763fi 20764 20765{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20766echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20767ac_ext=cpp 20768ac_cpp='$CXXCPP $CPPFLAGS' 20769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20772 20773cat >conftest.$ac_ext <<_ACEOF 20774/* confdefs.h. */ 20775_ACEOF 20776cat confdefs.h >>conftest.$ac_ext 20777cat >>conftest.$ac_ext <<_ACEOF 20778/* end confdefs.h. */ 20779int main() { 20780 volatile unsigned long val = 1; 20781 __sync_synchronize(); 20782 __sync_val_compare_and_swap(&val, 1, 0); 20783 __sync_add_and_fetch(&val, 1); 20784 __sync_sub_and_fetch(&val, 1); 20785 return 0; 20786 } 20787 20788_ACEOF 20789rm -f conftest.$ac_objext conftest$ac_exeext 20790if { (ac_try="$ac_link" 20791case "(($ac_try" in 20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20793 *) ac_try_echo=$ac_try;; 20794esac 20795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20796 (eval "$ac_link") 2>conftest.er1 20797 ac_status=$? 20798 grep -v '^ *+' conftest.er1 >conftest.err 20799 rm -f conftest.er1 20800 cat conftest.err >&5 20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20802 (exit $ac_status); } && 20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20804 { (case "(($ac_try" in 20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20806 *) ac_try_echo=$ac_try;; 20807esac 20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20809 (eval "$ac_try") 2>&5 20810 ac_status=$? 20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20812 (exit $ac_status); }; } && 20813 { ac_try='test -s conftest$ac_exeext' 20814 { (case "(($ac_try" in 20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20816 *) ac_try_echo=$ac_try;; 20817esac 20818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20819 (eval "$ac_try") 2>&5 20820 ac_status=$? 20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20822 (exit $ac_status); }; }; then 20823 ac_ext=c 20824ac_cpp='$CPP $CPPFLAGS' 20825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20827ac_compiler_gnu=$ac_cv_c_compiler_gnu 20828 20829 { echo "$as_me:$LINENO: result: yes" >&5 20830echo "${ECHO_T}yes" >&6; } 20831 20832cat >>confdefs.h <<\_ACEOF 20833#define LLVM_HAS_ATOMICS 1 20834_ACEOF 20835 20836else 20837 echo "$as_me: failed program was:" >&5 20838sed 's/^/| /' conftest.$ac_ext >&5 20839 20840 { echo "$as_me:$LINENO: result: no" >&5 20841echo "${ECHO_T}no" >&6; } 20842 20843cat >>confdefs.h <<\_ACEOF 20844#define LLVM_HAS_ATOMICS 0 20845_ACEOF 20846 20847 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20848echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20849fi 20850 20851rm -f core conftest.err conftest.$ac_objext \ 20852 conftest$ac_exeext conftest.$ac_ext 20853 20854 20855if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20856 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20857echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20858if test "${llvm_cv_linux_mixed+set}" = set; then 20859 echo $ECHO_N "(cached) $ECHO_C" >&6 20860else 20861 ac_ext=c 20862ac_cpp='$CPP $CPPFLAGS' 20863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20865ac_compiler_gnu=$ac_cv_c_compiler_gnu 20866 20867 cat >conftest.$ac_ext <<_ACEOF 20868/* confdefs.h. */ 20869_ACEOF 20870cat confdefs.h >>conftest.$ac_ext 20871cat >>conftest.$ac_ext <<_ACEOF 20872/* end confdefs.h. */ 20873#ifndef __x86_64__ 20874 error: Not x86-64 even if uname says so! 20875 #endif 20876 20877int 20878main () 20879{ 20880 20881 ; 20882 return 0; 20883} 20884_ACEOF 20885rm -f conftest.$ac_objext 20886if { (ac_try="$ac_compile" 20887case "(($ac_try" in 20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20889 *) ac_try_echo=$ac_try;; 20890esac 20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20892 (eval "$ac_compile") 2>conftest.er1 20893 ac_status=$? 20894 grep -v '^ *+' conftest.er1 >conftest.err 20895 rm -f conftest.er1 20896 cat conftest.err >&5 20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20898 (exit $ac_status); } && 20899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20900 { (case "(($ac_try" in 20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20902 *) ac_try_echo=$ac_try;; 20903esac 20904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20905 (eval "$ac_try") 2>&5 20906 ac_status=$? 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); }; } && 20909 { ac_try='test -s conftest.$ac_objext' 20910 { (case "(($ac_try" in 20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20912 *) ac_try_echo=$ac_try;; 20913esac 20914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20915 (eval "$ac_try") 2>&5 20916 ac_status=$? 20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20918 (exit $ac_status); }; }; then 20919 llvm_cv_linux_mixed=no 20920else 20921 echo "$as_me: failed program was:" >&5 20922sed 's/^/| /' conftest.$ac_ext >&5 20923 20924 llvm_cv_linux_mixed=yes 20925fi 20926 20927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20928 ac_ext=c 20929ac_cpp='$CPP $CPPFLAGS' 20930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20932ac_compiler_gnu=$ac_cv_c_compiler_gnu 20933 20934 20935fi 20936{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20937echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20938 20939 if test "$llvm_cv_linux_mixed" = "yes"; then 20940 llvm_cv_target_arch="x86" 20941 ARCH="x86" 20942 fi 20943fi 20944 20945 20946for ac_func in __dso_handle 20947do 20948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20949{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20952 echo $ECHO_N "(cached) $ECHO_C" >&6 20953else 20954 cat >conftest.$ac_ext <<_ACEOF 20955/* confdefs.h. */ 20956_ACEOF 20957cat confdefs.h >>conftest.$ac_ext 20958cat >>conftest.$ac_ext <<_ACEOF 20959/* end confdefs.h. */ 20960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20961 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20962#define $ac_func innocuous_$ac_func 20963 20964/* System header to define __stub macros and hopefully few prototypes, 20965 which can conflict with char $ac_func (); below. 20966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20967 <limits.h> exists even on freestanding compilers. */ 20968 20969#ifdef __STDC__ 20970# include <limits.h> 20971#else 20972# include <assert.h> 20973#endif 20974 20975#undef $ac_func 20976 20977/* Override any GCC internal prototype to avoid an error. 20978 Use char because int might match the return type of a GCC 20979 builtin and then its argument prototype would still apply. */ 20980#ifdef __cplusplus 20981extern "C" 20982#endif 20983char $ac_func (); 20984/* The GNU C library defines this for functions which it implements 20985 to always fail with ENOSYS. Some functions are actually named 20986 something starting with __ and the normal name is an alias. */ 20987#if defined __stub_$ac_func || defined __stub___$ac_func 20988choke me 20989#endif 20990 20991int 20992main () 20993{ 20994return $ac_func (); 20995 ; 20996 return 0; 20997} 20998_ACEOF 20999rm -f conftest.$ac_objext 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>conftest.er1 21007 ac_status=$? 21008 grep -v '^ *+' conftest.er1 >conftest.err 21009 rm -f conftest.er1 21010 cat conftest.err >&5 21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21012 (exit $ac_status); } && 21013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21014 { (case "(($ac_try" in 21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21016 *) ac_try_echo=$ac_try;; 21017esac 21018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21019 (eval "$ac_try") 2>&5 21020 ac_status=$? 21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21022 (exit $ac_status); }; } && 21023 { ac_try='test -s conftest$ac_exeext' 21024 { (case "(($ac_try" in 21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21026 *) ac_try_echo=$ac_try;; 21027esac 21028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21029 (eval "$ac_try") 2>&5 21030 ac_status=$? 21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21032 (exit $ac_status); }; }; then 21033 eval "$as_ac_var=yes" 21034else 21035 echo "$as_me: failed program was:" >&5 21036sed 's/^/| /' conftest.$ac_ext >&5 21037 21038 eval "$as_ac_var=no" 21039fi 21040 21041rm -f core conftest.err conftest.$ac_objext \ 21042 conftest$ac_exeext conftest.$ac_ext 21043fi 21044ac_res=`eval echo '${'$as_ac_var'}'` 21045 { echo "$as_me:$LINENO: result: $ac_res" >&5 21046echo "${ECHO_T}$ac_res" >&6; } 21047if test `eval echo '${'$as_ac_var'}'` = yes; then 21048 cat >>confdefs.h <<_ACEOF 21049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21050_ACEOF 21051 21052fi 21053done 21054 21055 21056SHLIBEXT=$libltdl_cv_shlibext 21057 21058 21059SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21060 21061 21062if test "${prefix}" = "NONE" ; then 21063 prefix="/usr/local" 21064fi 21065eval LLVM_PREFIX="${prefix}"; 21066eval LLVM_BINDIR="${prefix}/bin"; 21067eval LLVM_LIBDIR="${prefix}/lib"; 21068eval LLVM_DATADIR="${prefix}/share/llvm"; 21069eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21070eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21071eval LLVM_INCLUDEDIR="${prefix}/include"; 21072eval LLVM_INFODIR="${prefix}/info"; 21073eval LLVM_MANDIR="${prefix}/man"; 21074LLVM_CONFIGTIME=`date` 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086if test "${ENABLE_TIMESTAMPS}" = "0"; then 21087 LLVM_CONFIGTIME="(timestamp not enabled)" 21088fi 21089 21090 21091cat >>confdefs.h <<_ACEOF 21092#define LLVM_PREFIX "$LLVM_PREFIX" 21093_ACEOF 21094 21095 21096cat >>confdefs.h <<_ACEOF 21097#define LLVM_BINDIR "$LLVM_BINDIR" 21098_ACEOF 21099 21100 21101cat >>confdefs.h <<_ACEOF 21102#define LLVM_LIBDIR "$LLVM_LIBDIR" 21103_ACEOF 21104 21105 21106cat >>confdefs.h <<_ACEOF 21107#define LLVM_DATADIR "$LLVM_DATADIR" 21108_ACEOF 21109 21110 21111cat >>confdefs.h <<_ACEOF 21112#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21113_ACEOF 21114 21115 21116cat >>confdefs.h <<_ACEOF 21117#define LLVM_ETCDIR "$LLVM_ETCDIR" 21118_ACEOF 21119 21120 21121cat >>confdefs.h <<_ACEOF 21122#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21123_ACEOF 21124 21125 21126cat >>confdefs.h <<_ACEOF 21127#define LLVM_INFODIR "$LLVM_INFODIR" 21128_ACEOF 21129 21130 21131cat >>confdefs.h <<_ACEOF 21132#define LLVM_MANDIR "$LLVM_MANDIR" 21133_ACEOF 21134 21135 21136cat >>confdefs.h <<_ACEOF 21137#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21138_ACEOF 21139 21140 21141cat >>confdefs.h <<_ACEOF 21142#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21143_ACEOF 21144 21145 21146if test "$BINDINGS_TO_BUILD" = auto ; then 21147 BINDINGS_TO_BUILD="" 21148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21150 fi 21151fi 21152BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21153 21154 21155ALL_BINDINGS=ocaml 21156 21157 21158binding_prereqs_failed=0 21159for a_binding in $BINDINGS_TO_BUILD ; do 21160 case "$a_binding" in 21161 ocaml) 21162 if test "x$OCAMLC" = x ; then 21163 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21164echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21165 binding_prereqs_failed=1 21166 fi 21167 if test "x$OCAMLDEP" = x ; then 21168 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21169echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21170 binding_prereqs_failed=1 21171 fi 21172 if test "x$OCAMLOPT" = x ; then 21173 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21174echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21175 fi 21176 if test "x$with_ocaml_libdir" != xauto ; then 21177 OCAML_LIBDIR=$with_ocaml_libdir 21178 21179 else 21180 ocaml_stdlib="`"$OCAMLC" -where`" 21181 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21182 then 21183 # ocaml stdlib is beneath our prefix; use stdlib 21184 OCAML_LIBDIR=$ocaml_stdlib 21185 21186 else 21187 # ocaml stdlib is outside our prefix; use libdir/ocaml 21188 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 21189 21190 fi 21191 fi 21192 ;; 21193 esac 21194done 21195if test "$binding_prereqs_failed" = 1 ; then 21196 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21197echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21198 { (exit 1); exit 1; }; } 21199fi 21200 21201{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21202echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21203if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21204 echo $ECHO_N "(cached) $ECHO_C" >&6 21205else 21206 ac_ext=cpp 21207ac_cpp='$CXXCPP $CPPFLAGS' 21208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21211 21212 oldcxxflags="$CXXFLAGS" 21213 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21214 cat >conftest.$ac_ext <<_ACEOF 21215/* confdefs.h. */ 21216_ACEOF 21217cat confdefs.h >>conftest.$ac_ext 21218cat >>conftest.$ac_ext <<_ACEOF 21219/* end confdefs.h. */ 21220template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21221int 21222main () 21223{ 21224X<int>().f(); 21225 ; 21226 return 0; 21227} 21228_ACEOF 21229rm -f conftest.$ac_objext 21230if { (ac_try="$ac_compile" 21231case "(($ac_try" in 21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21233 *) ac_try_echo=$ac_try;; 21234esac 21235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21236 (eval "$ac_compile") 2>conftest.er1 21237 ac_status=$? 21238 grep -v '^ *+' conftest.er1 >conftest.err 21239 rm -f conftest.er1 21240 cat conftest.err >&5 21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21242 (exit $ac_status); } && 21243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21244 { (case "(($ac_try" in 21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21246 *) ac_try_echo=$ac_try;; 21247esac 21248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21249 (eval "$ac_try") 2>&5 21250 ac_status=$? 21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21252 (exit $ac_status); }; } && 21253 { ac_try='test -s conftest.$ac_objext' 21254 { (case "(($ac_try" in 21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21256 *) ac_try_echo=$ac_try;; 21257esac 21258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21259 (eval "$ac_try") 2>&5 21260 ac_status=$? 21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21262 (exit $ac_status); }; }; then 21263 llvm_cv_cxx_visibility_inlines_hidden=yes 21264else 21265 echo "$as_me: failed program was:" >&5 21266sed 's/^/| /' conftest.$ac_ext >&5 21267 21268 llvm_cv_cxx_visibility_inlines_hidden=no 21269fi 21270 21271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21272 CXXFLAGS="$oldcxxflags" 21273 ac_ext=c 21274ac_cpp='$CPP $CPPFLAGS' 21275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21277ac_compiler_gnu=$ac_cv_c_compiler_gnu 21278 21279 21280fi 21281{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21282echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21283if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21284 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21285 21286else 21287 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21288 21289fi 21290 21291 21292if test "$llvm_cv_link_use_r" = "yes" ; then 21293 RPATH="-Wl,-R" 21294else 21295 RPATH="-Wl,-rpath" 21296fi 21297 21298 21299if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21300 RDYNAMIC="-Wl,-export-dynamic" 21301else 21302 RDYNAMIC="" 21303fi 21304 21305 21306 21307ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21308 21309 21310 21311 21312 21313 21314ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21315 21316ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21317 21318ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21319 21320ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21321 21322ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21323 21324 21325ac_config_files="$ac_config_files Makefile.config" 21326 21327 21328ac_config_files="$ac_config_files llvm.spec" 21329 21330 21331ac_config_files="$ac_config_files docs/doxygen.cfg" 21332 21333 21334if test "${clang_src_root}" = ""; then 21335 clang_src_root="$srcdir/tools/clang" 21336fi 21337if test -f ${clang_src_root}/README.txt; then 21338 configh="include/clang/Config/config.h" 21339 doxy="docs/doxygen.cfg" 21340 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21341 21342 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21343 21344fi 21345 21346ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21347 21348 21349ac_config_commands="$ac_config_commands setup" 21350 21351ac_config_commands="$ac_config_commands Makefile" 21352 21353 21354ac_config_commands="$ac_config_commands Makefile.common" 21355 21356 21357ac_config_commands="$ac_config_commands examples/Makefile" 21358 21359 21360ac_config_commands="$ac_config_commands lib/Makefile" 21361 21362 21363ac_config_commands="$ac_config_commands runtime/Makefile" 21364 21365 21366ac_config_commands="$ac_config_commands test/Makefile" 21367 21368 21369ac_config_commands="$ac_config_commands test/Makefile.tests" 21370 21371 21372ac_config_commands="$ac_config_commands unittests/Makefile" 21373 21374 21375ac_config_commands="$ac_config_commands tools/Makefile" 21376 21377 21378ac_config_commands="$ac_config_commands utils/Makefile" 21379 21380 21381ac_config_commands="$ac_config_commands projects/Makefile" 21382 21383 21384ac_config_commands="$ac_config_commands bindings/Makefile" 21385 21386 21387ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21388 21389 21390 21391cat >confcache <<\_ACEOF 21392# This file is a shell script that caches the results of configure 21393# tests run on this system so they can be shared between configure 21394# scripts and configure runs, see configure's option --config-cache. 21395# It is not useful on other systems. If it contains results you don't 21396# want to keep, you may remove or edit it. 21397# 21398# config.status only pays attention to the cache file if you give it 21399# the --recheck option to rerun configure. 21400# 21401# `ac_cv_env_foo' variables (set or unset) will be overridden when 21402# loading this file, other *unset* `ac_cv_foo' will be assigned the 21403# following values. 21404 21405_ACEOF 21406 21407# The following way of writing the cache mishandles newlines in values, 21408# but we know of no workaround that is simple, portable, and efficient. 21409# So, we kill variables containing newlines. 21410# Ultrix sh set writes to stderr and can't be redirected directly, 21411# and sets the high bit in the cache file unless we assign to the vars. 21412( 21413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21414 eval ac_val=\$$ac_var 21415 case $ac_val in #( 21416 *${as_nl}*) 21417 case $ac_var in #( 21418 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21419echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21420 esac 21421 case $ac_var in #( 21422 _ | IFS | as_nl) ;; #( 21423 *) $as_unset $ac_var ;; 21424 esac ;; 21425 esac 21426 done 21427 21428 (set) 2>&1 | 21429 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21430 *${as_nl}ac_space=\ *) 21431 # `set' does not quote correctly, so add quotes (double-quote 21432 # substitution turns \\\\ into \\, and sed turns \\ into \). 21433 sed -n \ 21434 "s/'/'\\\\''/g; 21435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21436 ;; #( 21437 *) 21438 # `set' quotes correctly as required by POSIX, so do not add quotes. 21439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21440 ;; 21441 esac | 21442 sort 21443) | 21444 sed ' 21445 /^ac_cv_env_/b end 21446 t clear 21447 :clear 21448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21449 t end 21450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21451 :end' >>confcache 21452if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21453 if test -w "$cache_file"; then 21454 test "x$cache_file" != "x/dev/null" && 21455 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21456echo "$as_me: updating cache $cache_file" >&6;} 21457 cat confcache >$cache_file 21458 else 21459 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21460echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21461 fi 21462fi 21463rm -f confcache 21464 21465test "x$prefix" = xNONE && prefix=$ac_default_prefix 21466# Let make expand exec_prefix. 21467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21468 21469DEFS=-DHAVE_CONFIG_H 21470 21471ac_libobjs= 21472ac_ltlibobjs= 21473for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21474 # 1. Remove the extension, and $U if already installed. 21475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21476 ac_i=`echo "$ac_i" | sed "$ac_script"` 21477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21478 # will be set to the directory where LIBOBJS objects are built. 21479 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21480 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21481done 21482LIBOBJS=$ac_libobjs 21483 21484LTLIBOBJS=$ac_ltlibobjs 21485 21486 21487if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21488 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21489Usually this means the macro was only invoked conditionally." >&5 21490echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21491Usually this means the macro was only invoked conditionally." >&2;} 21492 { (exit 1); exit 1; }; } 21493fi 21494if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21495 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21496Usually this means the macro was only invoked conditionally." >&5 21497echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21498Usually this means the macro was only invoked conditionally." >&2;} 21499 { (exit 1); exit 1; }; } 21500fi 21501 21502: ${CONFIG_STATUS=./config.status} 21503ac_clean_files_save=$ac_clean_files 21504ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21505{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21506echo "$as_me: creating $CONFIG_STATUS" >&6;} 21507cat >$CONFIG_STATUS <<_ACEOF 21508#! $SHELL 21509# Generated by $as_me. 21510# Run this file to recreate the current configuration. 21511# Compiler output produced by configure, useful for debugging 21512# configure, is in config.log if it exists. 21513 21514debug=false 21515ac_cs_recheck=false 21516ac_cs_silent=false 21517SHELL=\${CONFIG_SHELL-$SHELL} 21518_ACEOF 21519 21520cat >>$CONFIG_STATUS <<\_ACEOF 21521## --------------------- ## 21522## M4sh Initialization. ## 21523## --------------------- ## 21524 21525# Be Bourne compatible 21526if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21527 emulate sh 21528 NULLCMD=: 21529 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21530 # is contrary to our usage. Disable this feature. 21531 alias -g '${1+"$@"}'='"$@"' 21532 setopt NO_GLOB_SUBST 21533else 21534 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21535fi 21536BIN_SH=xpg4; export BIN_SH # for Tru64 21537DUALCASE=1; export DUALCASE # for MKS sh 21538 21539 21540# PATH needs CR 21541# Avoid depending upon Character Ranges. 21542as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21544as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21545as_cr_digits='0123456789' 21546as_cr_alnum=$as_cr_Letters$as_cr_digits 21547 21548# The user is always right. 21549if test "${PATH_SEPARATOR+set}" != set; then 21550 echo "#! /bin/sh" >conf$$.sh 21551 echo "exit 0" >>conf$$.sh 21552 chmod +x conf$$.sh 21553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21554 PATH_SEPARATOR=';' 21555 else 21556 PATH_SEPARATOR=: 21557 fi 21558 rm -f conf$$.sh 21559fi 21560 21561# Support unset when possible. 21562if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21563 as_unset=unset 21564else 21565 as_unset=false 21566fi 21567 21568 21569# IFS 21570# We need space, tab and new line, in precisely that order. Quoting is 21571# there to prevent editors from complaining about space-tab. 21572# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21573# splitting by setting IFS to empty value.) 21574as_nl=' 21575' 21576IFS=" "" $as_nl" 21577 21578# Find who we are. Look in the path if we contain no directory separator. 21579case $0 in 21580 *[\\/]* ) as_myself=$0 ;; 21581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21582for as_dir in $PATH 21583do 21584 IFS=$as_save_IFS 21585 test -z "$as_dir" && as_dir=. 21586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21587done 21588IFS=$as_save_IFS 21589 21590 ;; 21591esac 21592# We did not find ourselves, most probably we were run as `sh COMMAND' 21593# in which case we are not to be found in the path. 21594if test "x$as_myself" = x; then 21595 as_myself=$0 21596fi 21597if test ! -f "$as_myself"; then 21598 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21599 { (exit 1); exit 1; } 21600fi 21601 21602# Work around bugs in pre-3.0 UWIN ksh. 21603for as_var in ENV MAIL MAILPATH 21604do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21605done 21606PS1='$ ' 21607PS2='> ' 21608PS4='+ ' 21609 21610# NLS nuisances. 21611for as_var in \ 21612 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21613 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21614 LC_TELEPHONE LC_TIME 21615do 21616 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21617 eval $as_var=C; export $as_var 21618 else 21619 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21620 fi 21621done 21622 21623# Required to use basename. 21624if expr a : '\(a\)' >/dev/null 2>&1 && 21625 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21626 as_expr=expr 21627else 21628 as_expr=false 21629fi 21630 21631if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21632 as_basename=basename 21633else 21634 as_basename=false 21635fi 21636 21637 21638# Name of the executable. 21639as_me=`$as_basename -- "$0" || 21640$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21641 X"$0" : 'X\(//\)$' \| \ 21642 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21643echo X/"$0" | 21644 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21645 s//\1/ 21646 q 21647 } 21648 /^X\/\(\/\/\)$/{ 21649 s//\1/ 21650 q 21651 } 21652 /^X\/\(\/\).*/{ 21653 s//\1/ 21654 q 21655 } 21656 s/.*/./; q'` 21657 21658# CDPATH. 21659$as_unset CDPATH 21660 21661 21662 21663 as_lineno_1=$LINENO 21664 as_lineno_2=$LINENO 21665 test "x$as_lineno_1" != "x$as_lineno_2" && 21666 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21667 21668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21669 # uniformly replaced by the line number. The first 'sed' inserts a 21670 # line-number line after each line using $LINENO; the second 'sed' 21671 # does the real work. The second script uses 'N' to pair each 21672 # line-number line with the line containing $LINENO, and appends 21673 # trailing '-' during substitution so that $LINENO is not a special 21674 # case at line end. 21675 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21676 # scripts with optimization help from Paolo Bonzini. Blame Lee 21677 # E. McMahon (1931-1989) for sed's syntax. :-) 21678 sed -n ' 21679 p 21680 /[$]LINENO/= 21681 ' <$as_myself | 21682 sed ' 21683 s/[$]LINENO.*/&-/ 21684 t lineno 21685 b 21686 :lineno 21687 N 21688 :loop 21689 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21690 t loop 21691 s/-\n.*// 21692 ' >$as_me.lineno && 21693 chmod +x "$as_me.lineno" || 21694 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21695 { (exit 1); exit 1; }; } 21696 21697 # Don't try to exec as it changes $[0], causing all sort of problems 21698 # (the dirname of $[0] is not the place where we might find the 21699 # original and so on. Autoconf is especially sensitive to this). 21700 . "./$as_me.lineno" 21701 # Exit status is that of the last command. 21702 exit 21703} 21704 21705 21706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21707 as_dirname=dirname 21708else 21709 as_dirname=false 21710fi 21711 21712ECHO_C= ECHO_N= ECHO_T= 21713case `echo -n x` in 21714-n*) 21715 case `echo 'x\c'` in 21716 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21717 *) ECHO_C='\c';; 21718 esac;; 21719*) 21720 ECHO_N='-n';; 21721esac 21722 21723if expr a : '\(a\)' >/dev/null 2>&1 && 21724 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21725 as_expr=expr 21726else 21727 as_expr=false 21728fi 21729 21730rm -f conf$$ conf$$.exe conf$$.file 21731if test -d conf$$.dir; then 21732 rm -f conf$$.dir/conf$$.file 21733else 21734 rm -f conf$$.dir 21735 mkdir conf$$.dir 21736fi 21737echo >conf$$.file 21738if ln -s conf$$.file conf$$ 2>/dev/null; then 21739 as_ln_s='ln -s' 21740 # ... but there are two gotchas: 21741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21743 # In both cases, we have to default to `cp -p'. 21744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21745 as_ln_s='cp -p' 21746elif ln conf$$.file conf$$ 2>/dev/null; then 21747 as_ln_s=ln 21748else 21749 as_ln_s='cp -p' 21750fi 21751rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21752rmdir conf$$.dir 2>/dev/null 21753 21754if mkdir -p . 2>/dev/null; then 21755 as_mkdir_p=: 21756else 21757 test -d ./-p && rmdir ./-p 21758 as_mkdir_p=false 21759fi 21760 21761# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21762# systems may use methods other than mode bits to determine executability. 21763cat >conf$$.file <<_ASEOF 21764#! /bin/sh 21765exit 0 21766_ASEOF 21767chmod +x conf$$.file 21768if test -x conf$$.file >/dev/null 2>&1; then 21769 as_executable_p="test -x" 21770else 21771 as_executable_p=: 21772fi 21773rm -f conf$$.file 21774 21775# Sed expression to map a string onto a valid CPP name. 21776as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21777 21778# Sed expression to map a string onto a valid variable name. 21779as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21780 21781 21782exec 6>&1 21783 21784# Save the log message, to keep $[0] and so on meaningful, and to 21785# report actual input values of CONFIG_FILES etc. instead of their 21786# values after options handling. 21787ac_log=" 21788This file was extended by LLVM $as_me 3.1svn, which was 21789generated by GNU Autoconf 2.60. Invocation command line was 21790 21791 CONFIG_FILES = $CONFIG_FILES 21792 CONFIG_HEADERS = $CONFIG_HEADERS 21793 CONFIG_LINKS = $CONFIG_LINKS 21794 CONFIG_COMMANDS = $CONFIG_COMMANDS 21795 $ $0 $@ 21796 21797on `(hostname || uname -n) 2>/dev/null | sed 1q` 21798" 21799 21800_ACEOF 21801 21802cat >>$CONFIG_STATUS <<_ACEOF 21803# Files that config.status was made for. 21804config_files="$ac_config_files" 21805config_headers="$ac_config_headers" 21806config_commands="$ac_config_commands" 21807 21808_ACEOF 21809 21810cat >>$CONFIG_STATUS <<\_ACEOF 21811ac_cs_usage="\ 21812\`$as_me' instantiates files from templates according to the 21813current configuration. 21814 21815Usage: $0 [OPTIONS] [FILE]... 21816 21817 -h, --help print this help, then exit 21818 -V, --version print version number, then exit 21819 -q, --quiet do not print progress messages 21820 -d, --debug don't remove temporary files 21821 --recheck update $as_me by reconfiguring in the same conditions 21822 --file=FILE[:TEMPLATE] 21823 instantiate the configuration file FILE 21824 --header=FILE[:TEMPLATE] 21825 instantiate the configuration header FILE 21826 21827Configuration files: 21828$config_files 21829 21830Configuration headers: 21831$config_headers 21832 21833Configuration commands: 21834$config_commands 21835 21836Report bugs to <bug-autoconf@gnu.org>." 21837 21838_ACEOF 21839cat >>$CONFIG_STATUS <<_ACEOF 21840ac_cs_version="\\ 21841LLVM config.status 3.1svn 21842configured by $0, generated by GNU Autoconf 2.60, 21843 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21844 21845Copyright (C) 2006 Free Software Foundation, Inc. 21846This config.status script is free software; the Free Software Foundation 21847gives unlimited permission to copy, distribute and modify it." 21848 21849ac_pwd='$ac_pwd' 21850srcdir='$srcdir' 21851INSTALL='$INSTALL' 21852_ACEOF 21853 21854cat >>$CONFIG_STATUS <<\_ACEOF 21855# If no file are specified by the user, then we need to provide default 21856# value. By we need to know if files were specified by the user. 21857ac_need_defaults=: 21858while test $# != 0 21859do 21860 case $1 in 21861 --*=*) 21862 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21864 ac_shift=: 21865 ;; 21866 *) 21867 ac_option=$1 21868 ac_optarg=$2 21869 ac_shift=shift 21870 ;; 21871 esac 21872 21873 case $ac_option in 21874 # Handling of the options. 21875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21876 ac_cs_recheck=: ;; 21877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21878 echo "$ac_cs_version"; exit ;; 21879 --debug | --debu | --deb | --de | --d | -d ) 21880 debug=: ;; 21881 --file | --fil | --fi | --f ) 21882 $ac_shift 21883 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21884 ac_need_defaults=false;; 21885 --header | --heade | --head | --hea ) 21886 $ac_shift 21887 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21888 ac_need_defaults=false;; 21889 --he | --h) 21890 # Conflict between --help and --header 21891 { echo "$as_me: error: ambiguous option: $1 21892Try \`$0 --help' for more information." >&2 21893 { (exit 1); exit 1; }; };; 21894 --help | --hel | -h ) 21895 echo "$ac_cs_usage"; exit ;; 21896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21897 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21898 ac_cs_silent=: ;; 21899 21900 # This is an error. 21901 -*) { echo "$as_me: error: unrecognized option: $1 21902Try \`$0 --help' for more information." >&2 21903 { (exit 1); exit 1; }; } ;; 21904 21905 *) ac_config_targets="$ac_config_targets $1" 21906 ac_need_defaults=false ;; 21907 21908 esac 21909 shift 21910done 21911 21912ac_configure_extra_args= 21913 21914if $ac_cs_silent; then 21915 exec 6>/dev/null 21916 ac_configure_extra_args="$ac_configure_extra_args --silent" 21917fi 21918 21919_ACEOF 21920cat >>$CONFIG_STATUS <<_ACEOF 21921if \$ac_cs_recheck; then 21922 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21923 CONFIG_SHELL=$SHELL 21924 export CONFIG_SHELL 21925 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21926fi 21927 21928_ACEOF 21929cat >>$CONFIG_STATUS <<\_ACEOF 21930exec 5>>config.log 21931{ 21932 echo 21933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21934## Running $as_me. ## 21935_ASBOX 21936 echo "$ac_log" 21937} >&5 21938 21939_ACEOF 21940cat >>$CONFIG_STATUS <<_ACEOF 21941# 21942# INIT-COMMANDS 21943# 21944llvm_src="${srcdir}" 21945 21946_ACEOF 21947 21948cat >>$CONFIG_STATUS <<\_ACEOF 21949 21950# Handling of arguments. 21951for ac_config_target in $ac_config_targets 21952do 21953 case $ac_config_target in 21954 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 21955 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 21956 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 21957 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 21958 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 21959 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 21960 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 21961 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 21962 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 21963 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 21964 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 21965 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 21966 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 21967 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21968 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21969 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 21970 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 21971 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21972 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 21973 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 21974 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 21975 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 21976 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21977 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 21978 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 21979 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 21980 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 21981 21982 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21983echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21984 { (exit 1); exit 1; }; };; 21985 esac 21986done 21987 21988 21989# If the user did not use the arguments to specify the items to instantiate, 21990# then the envvar interface is used. Set only those that are not. 21991# We use the long form for the default assignment because of an extremely 21992# bizarre bug on SunOS 4.1.3. 21993if $ac_need_defaults; then 21994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21997fi 21998 21999# Have a temporary directory for convenience. Make it in the build tree 22000# simply because there is no reason against having it here, and in addition, 22001# creating and moving files from /tmp can sometimes cause problems. 22002# Hook for its removal unless debugging. 22003# Note that there is a small window in which the directory will not be cleaned: 22004# after its creation but before its name has been assigned to `$tmp'. 22005$debug || 22006{ 22007 tmp= 22008 trap 'exit_status=$? 22009 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22010' 0 22011 trap '{ (exit 1); exit 1; }' 1 2 13 15 22012} 22013# Create a (secure) tmp directory for tmp files. 22014 22015{ 22016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22017 test -n "$tmp" && test -d "$tmp" 22018} || 22019{ 22020 tmp=./conf$$-$RANDOM 22021 (umask 077 && mkdir "$tmp") 22022} || 22023{ 22024 echo "$me: cannot create a temporary directory in ." >&2 22025 { (exit 1); exit 1; } 22026} 22027 22028# 22029# Set up the sed scripts for CONFIG_FILES section. 22030# 22031 22032# No need to generate the scripts if there are no CONFIG_FILES. 22033# This happens for instance when ./config.status config.h 22034if test -n "$CONFIG_FILES"; then 22035 22036_ACEOF 22037 22038 22039 22040ac_delim='%!_!# ' 22041for ac_last_try in false false false false false :; do 22042 cat >conf$$subs.sed <<_ACEOF 22043SHELL!$SHELL$ac_delim 22044PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22045PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22046PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22047PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22048PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22049PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22050exec_prefix!$exec_prefix$ac_delim 22051prefix!$prefix$ac_delim 22052program_transform_name!$program_transform_name$ac_delim 22053bindir!$bindir$ac_delim 22054sbindir!$sbindir$ac_delim 22055libexecdir!$libexecdir$ac_delim 22056datarootdir!$datarootdir$ac_delim 22057datadir!$datadir$ac_delim 22058sysconfdir!$sysconfdir$ac_delim 22059sharedstatedir!$sharedstatedir$ac_delim 22060localstatedir!$localstatedir$ac_delim 22061includedir!$includedir$ac_delim 22062oldincludedir!$oldincludedir$ac_delim 22063docdir!$docdir$ac_delim 22064infodir!$infodir$ac_delim 22065htmldir!$htmldir$ac_delim 22066dvidir!$dvidir$ac_delim 22067pdfdir!$pdfdir$ac_delim 22068psdir!$psdir$ac_delim 22069libdir!$libdir$ac_delim 22070localedir!$localedir$ac_delim 22071mandir!$mandir$ac_delim 22072DEFS!$DEFS$ac_delim 22073ECHO_C!$ECHO_C$ac_delim 22074ECHO_N!$ECHO_N$ac_delim 22075ECHO_T!$ECHO_T$ac_delim 22076LIBS!$LIBS$ac_delim 22077build_alias!$build_alias$ac_delim 22078host_alias!$host_alias$ac_delim 22079target_alias!$target_alias$ac_delim 22080LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22081CC!$CC$ac_delim 22082CFLAGS!$CFLAGS$ac_delim 22083LDFLAGS!$LDFLAGS$ac_delim 22084CPPFLAGS!$CPPFLAGS$ac_delim 22085ac_ct_CC!$ac_ct_CC$ac_delim 22086EXEEXT!$EXEEXT$ac_delim 22087OBJEXT!$OBJEXT$ac_delim 22088CXX!$CXX$ac_delim 22089CXXFLAGS!$CXXFLAGS$ac_delim 22090ac_ct_CXX!$ac_ct_CXX$ac_delim 22091CPP!$CPP$ac_delim 22092subdirs!$subdirs$ac_delim 22093ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22094LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22095build!$build$ac_delim 22096build_cpu!$build_cpu$ac_delim 22097build_vendor!$build_vendor$ac_delim 22098build_os!$build_os$ac_delim 22099host!$host$ac_delim 22100host_cpu!$host_cpu$ac_delim 22101host_vendor!$host_vendor$ac_delim 22102host_os!$host_os$ac_delim 22103target!$target$ac_delim 22104target_cpu!$target_cpu$ac_delim 22105target_vendor!$target_vendor$ac_delim 22106target_os!$target_os$ac_delim 22107OS!$OS$ac_delim 22108HOST_OS!$HOST_OS$ac_delim 22109TARGET_OS!$TARGET_OS$ac_delim 22110LINKALL!$LINKALL$ac_delim 22111NOLINKALL!$NOLINKALL$ac_delim 22112LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22113LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22114ARCH!$ARCH$ac_delim 22115ENDIAN!$ENDIAN$ac_delim 22116GREP!$GREP$ac_delim 22117EGREP!$EGREP$ac_delim 22118LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22119BUILD_CC!$BUILD_CC$ac_delim 22120BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22121BUILD_CXX!$BUILD_CXX$ac_delim 22122CVSBUILD!$CVSBUILD$ac_delim 22123ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22124ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22125ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22126DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22127ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22128EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22129DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22130DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22131JIT!$JIT$ac_delim 22132TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22133ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22134ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22135LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22136ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22137ENABLE_PIC!$ENABLE_PIC$ac_delim 22138ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22139ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22140_ACEOF 22141 22142 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22143 break 22144 elif $ac_last_try; then 22145 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22146echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22147 { (exit 1); exit 1; }; } 22148 else 22149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22150 fi 22151done 22152 22153ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22154if test -n "$ac_eof"; then 22155 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22156 ac_eof=`expr $ac_eof + 1` 22157fi 22158 22159cat >>$CONFIG_STATUS <<_ACEOF 22160cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22162_ACEOF 22163sed ' 22164s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22165s/^/s,@/; s/!/@,|#_!!_#|/ 22166:n 22167t n 22168s/'"$ac_delim"'$/,g/; t 22169s/$/\\/; p 22170N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22171' >>$CONFIG_STATUS <conf$$subs.sed 22172rm -f conf$$subs.sed 22173cat >>$CONFIG_STATUS <<_ACEOF 22174CEOF$ac_eof 22175_ACEOF 22176 22177 22178ac_delim='%!_!# ' 22179for ac_last_try in false false false false false :; do 22180 cat >conf$$subs.sed <<_ACEOF 22181ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22182TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22183LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22184LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22185LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22186LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22187OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22188EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22189EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22190CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22191BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22192INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22193NM!$NM$ac_delim 22194ifGNUmake!$ifGNUmake$ac_delim 22195LN_S!$LN_S$ac_delim 22196CMP!$CMP$ac_delim 22197CP!$CP$ac_delim 22198DATE!$DATE$ac_delim 22199FIND!$FIND$ac_delim 22200MKDIR!$MKDIR$ac_delim 22201MV!$MV$ac_delim 22202RANLIB!$RANLIB$ac_delim 22203AR!$AR$ac_delim 22204RM!$RM$ac_delim 22205SED!$SED$ac_delim 22206TAR!$TAR$ac_delim 22207BINPWD!$BINPWD$ac_delim 22208GRAPHVIZ!$GRAPHVIZ$ac_delim 22209DOT!$DOT$ac_delim 22210FDP!$FDP$ac_delim 22211NEATO!$NEATO$ac_delim 22212TWOPI!$TWOPI$ac_delim 22213CIRCO!$CIRCO$ac_delim 22214GV!$GV$ac_delim 22215DOTTY!$DOTTY$ac_delim 22216XDOT_PY!$XDOT_PY$ac_delim 22217INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22218INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22219INSTALL_DATA!$INSTALL_DATA$ac_delim 22220BZIP2!$BZIP2$ac_delim 22221CAT!$CAT$ac_delim 22222DOXYGEN!$DOXYGEN$ac_delim 22223GROFF!$GROFF$ac_delim 22224GZIPBIN!$GZIPBIN$ac_delim 22225POD2HTML!$POD2HTML$ac_delim 22226POD2MAN!$POD2MAN$ac_delim 22227PDFROFF!$PDFROFF$ac_delim 22228RUNTEST!$RUNTEST$ac_delim 22229TCLSH!$TCLSH$ac_delim 22230ZIP!$ZIP$ac_delim 22231OCAMLC!$OCAMLC$ac_delim 22232OCAMLOPT!$OCAMLOPT$ac_delim 22233OCAMLDEP!$OCAMLDEP$ac_delim 22234OCAMLDOC!$OCAMLDOC$ac_delim 22235GAS!$GAS$ac_delim 22236HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22237INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22238INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22239CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22240CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22241LIBADD_DL!$LIBADD_DL$ac_delim 22242NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22243NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22244COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22245USE_UDIS86!$USE_UDIS86$ac_delim 22246USE_OPROFILE!$USE_OPROFILE$ac_delim 22247USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22248INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim 22249INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim 22250HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22251HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22252MMAP_FILE!$MMAP_FILE$ac_delim 22253SHLIBEXT!$SHLIBEXT$ac_delim 22254SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22255LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22256LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22257LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22258LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22259LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22260LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22261LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22262LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22263LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22264LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22265BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22266ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22267OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22268ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22269RPATH!$RPATH$ac_delim 22270RDYNAMIC!$RDYNAMIC$ac_delim 22271LIBOBJS!$LIBOBJS$ac_delim 22272LTLIBOBJS!$LTLIBOBJS$ac_delim 22273_ACEOF 22274 22275 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then 22276 break 22277 elif $ac_last_try; then 22278 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22279echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22280 { (exit 1); exit 1; }; } 22281 else 22282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22283 fi 22284done 22285 22286ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22287if test -n "$ac_eof"; then 22288 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22289 ac_eof=`expr $ac_eof + 1` 22290fi 22291 22292cat >>$CONFIG_STATUS <<_ACEOF 22293cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22295_ACEOF 22296sed ' 22297s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22298s/^/s,@/; s/!/@,|#_!!_#|/ 22299:n 22300t n 22301s/'"$ac_delim"'$/,g/; t 22302s/$/\\/; p 22303N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22304' >>$CONFIG_STATUS <conf$$subs.sed 22305rm -f conf$$subs.sed 22306cat >>$CONFIG_STATUS <<_ACEOF 22307:end 22308s/|#_!!_#|//g 22309CEOF$ac_eof 22310_ACEOF 22311 22312 22313# VPATH may cause trouble with some makes, so we remove $(srcdir), 22314# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22315# trailing colons and then remove the whole line if VPATH becomes empty 22316# (actually we leave an empty line to preserve line numbers). 22317if test "x$srcdir" = x.; then 22318 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22319s/:*\$(srcdir):*/:/ 22320s/:*\${srcdir}:*/:/ 22321s/:*@srcdir@:*/:/ 22322s/^\([^=]*=[ ]*\):*/\1/ 22323s/:*$// 22324s/^[^=]*=[ ]*$// 22325}' 22326fi 22327 22328cat >>$CONFIG_STATUS <<\_ACEOF 22329fi # test -n "$CONFIG_FILES" 22330 22331 22332for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22333do 22334 case $ac_tag in 22335 :[FHLC]) ac_mode=$ac_tag; continue;; 22336 esac 22337 case $ac_mode$ac_tag in 22338 :[FHL]*:*);; 22339 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22340echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22341 { (exit 1); exit 1; }; };; 22342 :[FH]-) ac_tag=-:-;; 22343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22344 esac 22345 ac_save_IFS=$IFS 22346 IFS=: 22347 set x $ac_tag 22348 IFS=$ac_save_IFS 22349 shift 22350 ac_file=$1 22351 shift 22352 22353 case $ac_mode in 22354 :L) ac_source=$1;; 22355 :[FH]) 22356 ac_file_inputs= 22357 for ac_f 22358 do 22359 case $ac_f in 22360 -) ac_f="$tmp/stdin";; 22361 *) # Look for the file first in the build tree, then in the source tree 22362 # (if the path is not absolute). The absolute path cannot be DOS-style, 22363 # because $ac_f cannot contain `:'. 22364 test -f "$ac_f" || 22365 case $ac_f in 22366 [\\/$]*) false;; 22367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22368 esac || 22369 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22370echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22371 { (exit 1); exit 1; }; };; 22372 esac 22373 ac_file_inputs="$ac_file_inputs $ac_f" 22374 done 22375 22376 # Let's still pretend it is `configure' which instantiates (i.e., don't 22377 # use $as_me), people would be surprised to read: 22378 # /* config.h. Generated by config.status. */ 22379 configure_input="Generated from "`IFS=: 22380 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22381 if test x"$ac_file" != x-; then 22382 configure_input="$ac_file. $configure_input" 22383 { echo "$as_me:$LINENO: creating $ac_file" >&5 22384echo "$as_me: creating $ac_file" >&6;} 22385 fi 22386 22387 case $ac_tag in 22388 *:-:* | *:-) cat >"$tmp/stdin";; 22389 esac 22390 ;; 22391 esac 22392 22393 ac_dir=`$as_dirname -- "$ac_file" || 22394$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22395 X"$ac_file" : 'X\(//\)[^/]' \| \ 22396 X"$ac_file" : 'X\(//\)$' \| \ 22397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22398echo X"$ac_file" | 22399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22400 s//\1/ 22401 q 22402 } 22403 /^X\(\/\/\)[^/].*/{ 22404 s//\1/ 22405 q 22406 } 22407 /^X\(\/\/\)$/{ 22408 s//\1/ 22409 q 22410 } 22411 /^X\(\/\).*/{ 22412 s//\1/ 22413 q 22414 } 22415 s/.*/./; q'` 22416 { as_dir="$ac_dir" 22417 case $as_dir in #( 22418 -*) as_dir=./$as_dir;; 22419 esac 22420 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22421 as_dirs= 22422 while :; do 22423 case $as_dir in #( 22424 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22425 *) as_qdir=$as_dir;; 22426 esac 22427 as_dirs="'$as_qdir' $as_dirs" 22428 as_dir=`$as_dirname -- "$as_dir" || 22429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22430 X"$as_dir" : 'X\(//\)[^/]' \| \ 22431 X"$as_dir" : 'X\(//\)$' \| \ 22432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22433echo X"$as_dir" | 22434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22435 s//\1/ 22436 q 22437 } 22438 /^X\(\/\/\)[^/].*/{ 22439 s//\1/ 22440 q 22441 } 22442 /^X\(\/\/\)$/{ 22443 s//\1/ 22444 q 22445 } 22446 /^X\(\/\).*/{ 22447 s//\1/ 22448 q 22449 } 22450 s/.*/./; q'` 22451 test -d "$as_dir" && break 22452 done 22453 test -z "$as_dirs" || eval "mkdir $as_dirs" 22454 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22455echo "$as_me: error: cannot create directory $as_dir" >&2;} 22456 { (exit 1); exit 1; }; }; } 22457 ac_builddir=. 22458 22459case "$ac_dir" in 22460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22461*) 22462 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22463 # A ".." for each directory in $ac_dir_suffix. 22464 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22465 case $ac_top_builddir_sub in 22466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22468 esac ;; 22469esac 22470ac_abs_top_builddir=$ac_pwd 22471ac_abs_builddir=$ac_pwd$ac_dir_suffix 22472# for backward compatibility: 22473ac_top_builddir=$ac_top_build_prefix 22474 22475case $srcdir in 22476 .) # We are building in place. 22477 ac_srcdir=. 22478 ac_top_srcdir=$ac_top_builddir_sub 22479 ac_abs_top_srcdir=$ac_pwd ;; 22480 [\\/]* | ?:[\\/]* ) # Absolute name. 22481 ac_srcdir=$srcdir$ac_dir_suffix; 22482 ac_top_srcdir=$srcdir 22483 ac_abs_top_srcdir=$srcdir ;; 22484 *) # Relative name. 22485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22486 ac_top_srcdir=$ac_top_build_prefix$srcdir 22487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22488esac 22489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22490 22491 22492 case $ac_mode in 22493 :F) 22494 # 22495 # CONFIG_FILE 22496 # 22497 22498 case $INSTALL in 22499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22501 esac 22502_ACEOF 22503 22504cat >>$CONFIG_STATUS <<\_ACEOF 22505# If the template does not know about datarootdir, expand it. 22506# FIXME: This hack should be removed a few years after 2.60. 22507ac_datarootdir_hack=; ac_datarootdir_seen= 22508 22509case `sed -n '/datarootdir/ { 22510 p 22511 q 22512} 22513/@datadir@/p 22514/@docdir@/p 22515/@infodir@/p 22516/@localedir@/p 22517/@mandir@/p 22518' $ac_file_inputs` in 22519*datarootdir*) ac_datarootdir_seen=yes;; 22520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22521 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22522echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22523_ACEOF 22524cat >>$CONFIG_STATUS <<_ACEOF 22525 ac_datarootdir_hack=' 22526 s&@datadir@&$datadir&g 22527 s&@docdir@&$docdir&g 22528 s&@infodir@&$infodir&g 22529 s&@localedir@&$localedir&g 22530 s&@mandir@&$mandir&g 22531 s&\\\${datarootdir}&$datarootdir&g' ;; 22532esac 22533_ACEOF 22534 22535# Neutralize VPATH when `$srcdir' = `.'. 22536# Shell code in configure.ac might set extrasub. 22537# FIXME: do we really want to maintain this feature? 22538cat >>$CONFIG_STATUS <<_ACEOF 22539 sed "$ac_vpsub 22540$extrasub 22541_ACEOF 22542cat >>$CONFIG_STATUS <<\_ACEOF 22543:t 22544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22545s&@configure_input@&$configure_input&;t t 22546s&@top_builddir@&$ac_top_builddir_sub&;t t 22547s&@srcdir@&$ac_srcdir&;t t 22548s&@abs_srcdir@&$ac_abs_srcdir&;t t 22549s&@top_srcdir@&$ac_top_srcdir&;t t 22550s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22551s&@builddir@&$ac_builddir&;t t 22552s&@abs_builddir@&$ac_abs_builddir&;t t 22553s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22554s&@INSTALL@&$ac_INSTALL&;t t 22555$ac_datarootdir_hack 22556" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22557 22558test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22561 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22562which seems to be undefined. Please make sure it is defined." >&5 22563echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22564which seems to be undefined. Please make sure it is defined." >&2;} 22565 22566 rm -f "$tmp/stdin" 22567 case $ac_file in 22568 -) cat "$tmp/out"; rm -f "$tmp/out";; 22569 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22570 esac 22571 ;; 22572 :H) 22573 # 22574 # CONFIG_HEADER 22575 # 22576_ACEOF 22577 22578# Transform confdefs.h into a sed script `conftest.defines', that 22579# substitutes the proper values into config.h.in to produce config.h. 22580rm -f conftest.defines conftest.tail 22581# First, append a space to every undef/define line, to ease matching. 22582echo 's/$/ /' >conftest.defines 22583# Then, protect against being on the right side of a sed subst, or in 22584# an unquoted here document, in config.status. If some macros were 22585# called several times there might be several #defines for the same 22586# symbol, which is useless. But do not sort them, since the last 22587# AC_DEFINE must be honored. 22588ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22589# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22590# NAME is the cpp macro being defined, VALUE is the value it is being given. 22591# PARAMS is the parameter list in the macro definition--in most cases, it's 22592# just an empty string. 22593ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22594ac_dB='\\)[ (].*,\\1define\\2' 22595ac_dC=' ' 22596ac_dD=' ,' 22597 22598uniq confdefs.h | 22599 sed -n ' 22600 t rset 22601 :rset 22602 s/^[ ]*#[ ]*define[ ][ ]*// 22603 t ok 22604 d 22605 :ok 22606 s/[\\&,]/\\&/g 22607 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22608 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22609 ' >>conftest.defines 22610 22611# Remove the space that was appended to ease matching. 22612# Then replace #undef with comments. This is necessary, for 22613# example, in the case of _POSIX_SOURCE, which is predefined and required 22614# on some systems where configure will not decide to define it. 22615# (The regexp can be short, since the line contains either #define or #undef.) 22616echo 's/ $// 22617s,^[ #]*u.*,/* & */,' >>conftest.defines 22618 22619# Break up conftest.defines: 22620ac_max_sed_lines=50 22621 22622# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22623# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22624# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22625# et cetera. 22626ac_in='$ac_file_inputs' 22627ac_out='"$tmp/out1"' 22628ac_nxt='"$tmp/out2"' 22629 22630while : 22631do 22632 # Write a here document: 22633 cat >>$CONFIG_STATUS <<_ACEOF 22634 # First, check the format of the line: 22635 cat >"\$tmp/defines.sed" <<\\CEOF 22636/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22637/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22638b 22639:def 22640_ACEOF 22641 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22642 echo 'CEOF 22643 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22644 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22645 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22646 grep . conftest.tail >/dev/null || break 22647 rm -f conftest.defines 22648 mv conftest.tail conftest.defines 22649done 22650rm -f conftest.defines conftest.tail 22651 22652echo "ac_result=$ac_in" >>$CONFIG_STATUS 22653cat >>$CONFIG_STATUS <<\_ACEOF 22654 if test x"$ac_file" != x-; then 22655 echo "/* $configure_input */" >"$tmp/config.h" 22656 cat "$ac_result" >>"$tmp/config.h" 22657 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22659echo "$as_me: $ac_file is unchanged" >&6;} 22660 else 22661 rm -f $ac_file 22662 mv "$tmp/config.h" $ac_file 22663 fi 22664 else 22665 echo "/* $configure_input */" 22666 cat "$ac_result" 22667 fi 22668 rm -f "$tmp/out12" 22669 ;; 22670 22671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22672echo "$as_me: executing $ac_file commands" >&6;} 22673 ;; 22674 esac 22675 22676 22677 case $ac_file$ac_mode in 22678 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22679 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22680 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22681 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22682 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22684 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22686 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22688 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22690 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22692 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22694 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22696 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22698 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22700 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22702 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22704 22705 esac 22706done # for ac_tag 22707 22708 22709{ (exit 0); exit 0; } 22710_ACEOF 22711chmod +x $CONFIG_STATUS 22712ac_clean_files=$ac_clean_files_save 22713 22714 22715# configure is writing to config.log, and then calls config.status. 22716# config.status does its own redirection, appending to config.log. 22717# Unfortunately, on DOS this fails, as config.log is still kept open 22718# by configure, so config.status won't be able to write to it; its 22719# output is simply discarded. So we exec the FD to /dev/null, 22720# effectively closing config.log, so it can be properly (re)opened and 22721# appended to by config.status. When coming back to configure, we 22722# need to make the FD available again. 22723if test "$no_create" != yes; then 22724 ac_cs_success=: 22725 ac_config_status_args= 22726 test "$silent" = yes && 22727 ac_config_status_args="$ac_config_status_args --quiet" 22728 exec 5>/dev/null 22729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22730 exec 5>>config.log 22731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22732 # would make configure fail if this is the last instruction. 22733 $ac_cs_success || { (exit 1); exit 1; } 22734fi 22735 22736# 22737# CONFIG_SUBDIRS section. 22738# 22739if test "$no_recursion" != yes; then 22740 22741 # Remove --cache-file and --srcdir arguments so they do not pile up. 22742 ac_sub_configure_args= 22743 ac_prev= 22744 eval "set x $ac_configure_args" 22745 shift 22746 for ac_arg 22747 do 22748 if test -n "$ac_prev"; then 22749 ac_prev= 22750 continue 22751 fi 22752 case $ac_arg in 22753 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22755 ac_prev=cache_file ;; 22756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22758 | --c=*) 22759 ;; 22760 --config-cache | -C) 22761 ;; 22762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22763 ac_prev=srcdir ;; 22764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22765 ;; 22766 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22767 ac_prev=prefix ;; 22768 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22769 ;; 22770 *) 22771 case $ac_arg in 22772 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22773 esac 22774 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22775 esac 22776 done 22777 22778 # Always prepend --prefix to ensure using the same prefix 22779 # in subdir configurations. 22780 ac_arg="--prefix=$prefix" 22781 case $ac_arg in 22782 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22783 esac 22784 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22785 22786 ac_popdir=`pwd` 22787 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22788 22789 # Do not complain, so a configure script can configure whichever 22790 # parts of a large source tree are present. 22791 test -d "$srcdir/$ac_dir" || continue 22792 22793 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22794 echo "$as_me:$LINENO: $ac_msg" >&5 22795 echo "$ac_msg" >&6 22796 { as_dir="$ac_dir" 22797 case $as_dir in #( 22798 -*) as_dir=./$as_dir;; 22799 esac 22800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22801 as_dirs= 22802 while :; do 22803 case $as_dir in #( 22804 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22805 *) as_qdir=$as_dir;; 22806 esac 22807 as_dirs="'$as_qdir' $as_dirs" 22808 as_dir=`$as_dirname -- "$as_dir" || 22809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22810 X"$as_dir" : 'X\(//\)[^/]' \| \ 22811 X"$as_dir" : 'X\(//\)$' \| \ 22812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22813echo X"$as_dir" | 22814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22815 s//\1/ 22816 q 22817 } 22818 /^X\(\/\/\)[^/].*/{ 22819 s//\1/ 22820 q 22821 } 22822 /^X\(\/\/\)$/{ 22823 s//\1/ 22824 q 22825 } 22826 /^X\(\/\).*/{ 22827 s//\1/ 22828 q 22829 } 22830 s/.*/./; q'` 22831 test -d "$as_dir" && break 22832 done 22833 test -z "$as_dirs" || eval "mkdir $as_dirs" 22834 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22835echo "$as_me: error: cannot create directory $as_dir" >&2;} 22836 { (exit 1); exit 1; }; }; } 22837 ac_builddir=. 22838 22839case "$ac_dir" in 22840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22841*) 22842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22843 # A ".." for each directory in $ac_dir_suffix. 22844 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22845 case $ac_top_builddir_sub in 22846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22848 esac ;; 22849esac 22850ac_abs_top_builddir=$ac_pwd 22851ac_abs_builddir=$ac_pwd$ac_dir_suffix 22852# for backward compatibility: 22853ac_top_builddir=$ac_top_build_prefix 22854 22855case $srcdir in 22856 .) # We are building in place. 22857 ac_srcdir=. 22858 ac_top_srcdir=$ac_top_builddir_sub 22859 ac_abs_top_srcdir=$ac_pwd ;; 22860 [\\/]* | ?:[\\/]* ) # Absolute name. 22861 ac_srcdir=$srcdir$ac_dir_suffix; 22862 ac_top_srcdir=$srcdir 22863 ac_abs_top_srcdir=$srcdir ;; 22864 *) # Relative name. 22865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22866 ac_top_srcdir=$ac_top_build_prefix$srcdir 22867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22868esac 22869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22870 22871 22872 cd "$ac_dir" 22873 22874 # Check for guested configure; otherwise get Cygnus style configure. 22875 if test -f "$ac_srcdir/configure.gnu"; then 22876 ac_sub_configure=$ac_srcdir/configure.gnu 22877 elif test -f "$ac_srcdir/configure"; then 22878 ac_sub_configure=$ac_srcdir/configure 22879 elif test -f "$ac_srcdir/configure.in"; then 22880 # This should be Cygnus configure. 22881 ac_sub_configure=$ac_aux_dir/configure 22882 else 22883 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22884echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22885 ac_sub_configure= 22886 fi 22887 22888 # The recursion is here. 22889 if test -n "$ac_sub_configure"; then 22890 # Make the cache file name correct relative to the subdirectory. 22891 case $cache_file in 22892 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22893 *) # Relative name. 22894 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22895 esac 22896 22897 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22898echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22899 # The eval makes quoting arguments work. 22900 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22901 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22902 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22903echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22904 { (exit 1); exit 1; }; } 22905 fi 22906 22907 cd "$ac_popdir" 22908 done 22909fi 22910 22911