configure revision 91e7ccd98bfa3db5f5c5d2ffa1ffb4061043af40
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for llvm 3.0svn. 4# 5# Report bugs to <llvmbugs@cs.uiuc.edu>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be Bourne compatible 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.0svn' 565PACKAGE_STRING='llvm 3.0svn' 566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 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 643subdirs 644ENABLE_POLLY 645LLVM_HAS_POLLY 646build 647build_cpu 648build_vendor 649build_os 650host 651host_cpu 652host_vendor 653host_os 654target 655target_cpu 656target_vendor 657target_os 658OS 659HOST_OS 660TARGET_OS 661LINKALL 662NOLINKALL 663LLVM_ON_UNIX 664LLVM_ON_WIN32 665ARCH 666ENDIAN 667CC 668CFLAGS 669LDFLAGS 670CPPFLAGS 671ac_ct_CC 672EXEEXT 673OBJEXT 674CPP 675GREP 676EGREP 677LLVM_CROSS_COMPILING 678BUILD_CC 679BUILD_EXEEXT 680BUILD_CXX 681CVSBUILD 682ENABLE_OPTIMIZED 683ENABLE_PROFILING 684DISABLE_ASSERTIONS 685ENABLE_EXPENSIVE_CHECKS 686EXPENSIVE_CHECKS 687DEBUG_RUNTIME 688DEBUG_SYMBOLS 689JIT 690TARGET_HAS_JIT 691ENABLE_DOCS 692ENABLE_DOXYGEN 693ENABLE_THREADS 694ENABLE_PTHREADS 695ENABLE_PIC 696ENABLE_SHARED 697ENABLE_EMBED_STDCXX 698ENABLE_TIMESTAMPS 699TARGETS_TO_BUILD 700LLVM_ENUM_TARGETS 701LLVM_ENUM_ASM_PRINTERS 702LLVM_ENUM_ASM_PARSERS 703LLVM_ENUM_DISASSEMBLERS 704ENABLE_CBE_PRINTF_A 705CLANGPATH 706CLANGXXPATH 707ENABLE_BUILT_CLANG 708OPTIMIZE_OPTION 709EXTRA_OPTIONS 710EXTRA_LD_OPTIONS 711BINUTILS_INCDIR 712CXX 713CXXFLAGS 714ac_ct_CXX 715NM 716ifGNUmake 717LN_S 718CMP 719CP 720DATE 721FIND 722MKDIR 723MV 724RANLIB 725AR 726RM 727SED 728TAR 729BINPWD 730GRAPHVIZ 731DOT 732FDP 733NEATO 734TWOPI 735CIRCO 736GV 737DOTTY 738XDOT_PY 739PERL 740HAVE_PERL 741INSTALL_PROGRAM 742INSTALL_SCRIPT 743INSTALL_DATA 744BZIP2 745CAT 746DOXYGEN 747GROFF 748GZIPBIN 749POD2HTML 750POD2MAN 751PDFROFF 752RUNTEST 753TCLSH 754ZIP 755OCAMLC 756OCAMLOPT 757OCAMLDEP 758OCAMLDOC 759GAS 760HAVE_LINK_VERSION_SCRIPT 761INSTALL_LTDL_TRUE 762INSTALL_LTDL_FALSE 763CONVENIENCE_LTDL_TRUE 764CONVENIENCE_LTDL_FALSE 765LIBADD_DL 766LLVMGCCCOMMAND 767LLVMGXXCOMMAND 768LLVMGCC 769LLVMGXX 770LLVMCC_OPTION 771NO_VARIADIC_MACROS 772NO_MISSING_FIELD_INITIALIZERS 773USE_UDIS86 774USE_OPROFILE 775HAVE_PTHREAD 776HUGE_VAL_SANITY 777MMAP_FILE 778LLVMCC_EMITIR_FLAG 779LLVMCC1 780LLVMCC1PLUS 781LLVMGCCDIR 782LLVMGCC_LANGS 783LLVMGCC_DRAGONEGG 784LLVMCC_DISABLEOPT_FLAGS 785SHLIBEXT 786SHLIBPATH_VAR 787LLVM_PREFIX 788LLVM_BINDIR 789LLVM_LIBDIR 790LLVM_DATADIR 791LLVM_DOCSDIR 792LLVM_ETCDIR 793LLVM_INCLUDEDIR 794LLVM_INFODIR 795LLVM_MANDIR 796LLVM_CONFIGTIME 797BINDINGS_TO_BUILD 798ALL_BINDINGS 799OCAML_LIBDIR 800ENABLE_VISIBILITY_INLINES_HIDDEN 801RPATH 802RDYNAMIC 803LIBOBJS 804LTLIBOBJS' 805ac_subst_files='' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812CPPFLAGS 813CPP 814CXX 815CXXFLAGS 816CCC' 817ac_subdirs_all='projects/llvm-gcc 818projects/test-suite 819projects/llvm-test 820projects/poolalloc 821projects/llvm-poolalloc 822projects/sample 823projects/privbracket 824projects/llvm-stacker 825projects/llvm-reopt 826projects/llvm-java 827projects/llvm-tv 828projects/safecode 829projects/llvm-kernel 830tools/polly' 831 832# Initialize some variables set by options. 833ac_init_help= 834ac_init_version=false 835# The variables have the same names as the options, with 836# dashes changed to underlines. 837cache_file=/dev/null 838exec_prefix=NONE 839no_create= 840no_recursion= 841prefix=NONE 842program_prefix=NONE 843program_suffix=NONE 844program_transform_name=s,x,x, 845silent= 846site= 847srcdir= 848verbose= 849x_includes=NONE 850x_libraries=NONE 851 852# Installation directory options. 853# These are left unexpanded so users can "make install exec_prefix=/foo" 854# and all the variables that are supposed to be based on exec_prefix 855# by default will actually change. 856# Use braces instead of parens because sh, perl, etc. also accept them. 857# (The list follows the same order as the GNU Coding Standards.) 858bindir='${exec_prefix}/bin' 859sbindir='${exec_prefix}/sbin' 860libexecdir='${exec_prefix}/libexec' 861datarootdir='${prefix}/share' 862datadir='${datarootdir}' 863sysconfdir='${prefix}/etc' 864sharedstatedir='${prefix}/com' 865localstatedir='${prefix}/var' 866includedir='${prefix}/include' 867oldincludedir='/usr/include' 868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869infodir='${datarootdir}/info' 870htmldir='${docdir}' 871dvidir='${docdir}' 872pdfdir='${docdir}' 873psdir='${docdir}' 874libdir='${exec_prefix}/lib' 875localedir='${datarootdir}/locale' 876mandir='${datarootdir}/man' 877 878ac_prev= 879ac_dashdash= 880for ac_option 881do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *) ac_optarg=yes ;; 892 esac 893 894 # Accept the important Cygnus configure options, so we can diagnose typos. 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 937 { (exit 1); exit 1; }; } 938 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 939 eval enable_$ac_feature=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 956 { (exit 1); exit 1; }; } 957 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 958 eval enable_$ac_feature=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1152 { echo "$as_me: error: invalid package name: $ac_package" >&2 1153 { (exit 1); exit 1; }; } 1154 ac_package=`echo $ac_package| sed 's/-/_/g'` 1155 eval with_$ac_package=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1161 { echo "$as_me: error: invalid package name: $ac_package" >&2 1162 { (exit 1); exit 1; }; } 1163 ac_package=`echo $ac_package | sed 's/-/_/g'` 1164 eval with_$ac_package=no ;; 1165 1166 --x) 1167 # Obsolete; use --with-x. 1168 with_x=yes ;; 1169 1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1171 | --x-incl | --x-inc | --x-in | --x-i) 1172 ac_prev=x_includes ;; 1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1175 x_includes=$ac_optarg ;; 1176 1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1179 ac_prev=x_libraries ;; 1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1182 x_libraries=$ac_optarg ;; 1183 1184 -*) { echo "$as_me: error: unrecognized option: $ac_option 1185Try \`$0 --help' for more information." >&2 1186 { (exit 1); exit 1; }; } 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1194 { (exit 1); exit 1; }; } 1195 eval $ac_envvar=\$ac_optarg 1196 export $ac_envvar ;; 1197 1198 *) 1199 # FIXME: should be removed in autoconf 3.0. 1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1204 ;; 1205 1206 esac 1207done 1208 1209if test -n "$ac_prev"; then 1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1211 { echo "$as_me: error: missing argument to $ac_option" >&2 1212 { (exit 1); exit 1; }; } 1213fi 1214 1215# Be sure to have absolute directory names. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 case $ac_val in 1223 [\\/$]* | ?:[\\/]* ) continue;; 1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1225 esac 1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1227 { (exit 1); exit 1; }; } 1228done 1229 1230# There might be people who depend on the old broken behavior: `$host' 1231# used to hold the argument of --host etc. 1232# FIXME: To remove some day. 1233build=$build_alias 1234host=$host_alias 1235target=$target_alias 1236 1237# FIXME: To remove some day. 1238if test "x$host_alias" != x; then 1239 if test "x$build_alias" = x; then 1240 cross_compiling=maybe 1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1242 If a cross compiler is detected then cross compile mode will be used." >&2 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 { echo "$as_me: error: Working directory cannot be determined" >&2 1258 { (exit 1); exit 1; }; } 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 { echo "$as_me: error: pwd does not report name of working directory" >&2 1261 { (exit 1); exit 1; }; } 1262 1263 1264# Find the source files, if location was not specified. 1265if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$0" || 1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$0" : 'X\(//\)[^/]' \| \ 1271 X"$0" : 'X\(//\)$' \| \ 1272 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1273echo X"$0" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295else 1296 ac_srcdir_defaulted=no 1297fi 1298if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1301 { (exit 1); exit 1; }; } 1302fi 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1306 { (exit 1); exit 1; }; } 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures llvm 3.0svn to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389System types: 1390 --build=BUILD configure for building on BUILD [guessed] 1391 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1392 --target=TARGET configure for building compilers for TARGET [HOST] 1393_ACEOF 1394fi 1395 1396if test -n "$ac_init_help"; then 1397 case $ac_init_help in 1398 short | recursive ) echo "Configuration of llvm 3.0svn:";; 1399 esac 1400 cat <<\_ACEOF 1401 1402Optional Features: 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1405 --enable-polly Use polly if available (default is YES) 1406 --enable-optimized Compile with optimizations enabled (default is NO) 1407 --enable-profiling Compile with profiling enabled (default is NO) 1408 --enable-assertions Compile with assertion checks enabled (default is 1409 YES) 1410 --enable-expensive-checks 1411 Compile with expensive debug checks enabled (default 1412 is NO) 1413 --enable-debug-runtime Build runtime libs with debug symbols (default is 1414 NO) 1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1416 optimization is on and YES if it's off) 1417 --enable-jit Enable Just In Time Compiling (default is YES) 1418 --enable-docs Build documents (default is YES) 1419 --enable-doxygen Build doxygen documentation (default is NO) 1420 --enable-threads Use threads if available (default is YES) 1421 --enable-pthreads Use pthreads if available (default is YES) 1422 --enable-pic Build LLVM with Position Independent Code (default 1423 is YES) 1424 --enable-shared Build a shared library and link tools against it 1425 (default is NO) 1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1427 Win32 DLL (default is YES) 1428 --enable-timestamps Enable embedding timestamp information in build 1429 (default is YES) 1430 --enable-targets Build specific host targets: all or 1431 target1,target2,... Valid targets are: host, x86, 1432 x86_64, sparc, powerpc, alpha, arm, mips, spu, 1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp 1434 (default=all) 1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via 1436 %a (default is YES) 1437 --enable-bindings Build specific language bindings: 1438 all,auto,none,{binding-name} (default=auto) 1439 --enable-libffi Check for the presence of libffi (default is NO) 1440 --enable-ltdl-install install libltdl 1441 1442Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default 1446 searches PATH) 1447 --with-llvmgcc Specify location of llvm-gcc driver (default 1448 searches PATH) 1449 --with-llvmgxx Specify location of llvm-g++ driver (default 1450 searches PATH) 1451 --with-clang Specify location of clang compiler (default is 1452 --with-built-clang) 1453 --with-built-clang Use the compiled Clang as the LLVM compiler 1454 (default=check) 1455 --with-optimize-option Select the compiler options to use for optimized 1456 builds 1457 --with-extra-options Specify additional options to compile LLVM with 1458 --with-extra-ld-options Specify additional options to link LLVM with 1459 --with-ocaml-libdir Specify install location for ocaml bindings (default 1460 is stdlib) 1461 --with-clang-resource-dir 1462 Relative directory from the Clang binary for 1463 resource files 1464 --with-c-include-dirs Colon separated list of directories clang will 1465 search for headers 1466 --with-cxx-include-root Directory with the libstdc++ headers. 1467 --with-cxx-include-arch Architecture of the libstdc++ headers. 1468 --with-cxx-include-32bit-dir 1469 32 bit multilib dir. 1470 --with-cxx-include-64bit-dir 1471 64 bit multilib directory. 1472 --with-binutils-include Specify path to binutils/include/ containing 1473 plugin-api.h file for gold plugin. 1474 --with-bug-report-url Specify the URL where bug reports should be 1475 submitted (default=http://llvm.org) 1476 --with-tclinclude directory where tcl headers are 1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, 1478 clang, or none; default=check) 1479 --with-udis86=<path> Use udis86 external x86 disassembler library 1480 --with-oprofile=<prefix> 1481 Tell OProfile >= 0.9.4 how to symbolize JIT output 1482 1483Some influential environment variables: 1484 CC C compiler command 1485 CFLAGS C compiler flags 1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1487 nonstandard directory <lib dir> 1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1489 you have headers in a nonstandard directory <include dir> 1490 CPP C preprocessor 1491 CXX C++ compiler command 1492 CXXFLAGS C++ compiler flags 1493 1494Use these variables to override the choices made by `configure' or to help 1495it to find libraries and programs with nonstandard names/locations. 1496 1497Report bugs to <llvmbugs@cs.uiuc.edu>. 1498_ACEOF 1499ac_status=$? 1500fi 1501 1502if test "$ac_init_help" = "recursive"; then 1503 # If there are subdirs, report their specific --help. 1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1505 test -d "$ac_dir" || continue 1506 ac_builddir=. 1507 1508case "$ac_dir" in 1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510*) 1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1512 # A ".." for each directory in $ac_dir_suffix. 1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1514 case $ac_top_builddir_sub in 1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1517 esac ;; 1518esac 1519ac_abs_top_builddir=$ac_pwd 1520ac_abs_builddir=$ac_pwd$ac_dir_suffix 1521# for backward compatibility: 1522ac_top_builddir=$ac_top_build_prefix 1523 1524case $srcdir in 1525 .) # We are building in place. 1526 ac_srcdir=. 1527 ac_top_srcdir=$ac_top_builddir_sub 1528 ac_abs_top_srcdir=$ac_pwd ;; 1529 [\\/]* | ?:[\\/]* ) # Absolute name. 1530 ac_srcdir=$srcdir$ac_dir_suffix; 1531 ac_top_srcdir=$srcdir 1532 ac_abs_top_srcdir=$srcdir ;; 1533 *) # Relative name. 1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1535 ac_top_srcdir=$ac_top_build_prefix$srcdir 1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1537esac 1538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1539 1540 cd "$ac_dir" || { ac_status=$?; continue; } 1541 # Check for guested configure. 1542 if test -f "$ac_srcdir/configure.gnu"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1545 elif test -f "$ac_srcdir/configure"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure" --help=recursive 1548 else 1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1550 fi || ac_status=$? 1551 cd "$ac_pwd" || { ac_status=$?; break; } 1552 done 1553fi 1554 1555test -n "$ac_init_help" && exit $ac_status 1556if $ac_init_version; then 1557 cat <<\_ACEOF 1558llvm configure 3.0svn 1559generated by GNU Autoconf 2.60 1560 1561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1563This configure script is free software; the Free Software Foundation 1564gives unlimited permission to copy, distribute and modify it. 1565 1566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. 1567_ACEOF 1568 exit 1569fi 1570cat >config.log <<_ACEOF 1571This file contains any messages produced by compilers while 1572running configure, to aid debugging if configure makes a mistake. 1573 1574It was created by llvm $as_me 3.0svn, which was 1575generated by GNU Autoconf 2.60. Invocation command line was 1576 1577 $ $0 $@ 1578 1579_ACEOF 1580exec 5>>config.log 1581{ 1582cat <<_ASUNAME 1583## --------- ## 1584## Platform. ## 1585## --------- ## 1586 1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1588uname -m = `(uname -m) 2>/dev/null || echo unknown` 1589uname -r = `(uname -r) 2>/dev/null || echo unknown` 1590uname -s = `(uname -s) 2>/dev/null || echo unknown` 1591uname -v = `(uname -v) 2>/dev/null || echo unknown` 1592 1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1595 1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1603 1604_ASUNAME 1605 1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1607for as_dir in $PATH 1608do 1609 IFS=$as_save_IFS 1610 test -z "$as_dir" && as_dir=. 1611 echo "PATH: $as_dir" 1612done 1613IFS=$as_save_IFS 1614 1615} >&5 1616 1617cat >&5 <<_ACEOF 1618 1619 1620## ----------- ## 1621## Core tests. ## 1622## ----------- ## 1623 1624_ACEOF 1625 1626 1627# Keep a trace of the command line. 1628# Strip out --no-create and --no-recursion so they do not pile up. 1629# Strip out --silent because we don't want to record it for future runs. 1630# Also quote any args containing shell meta-characters. 1631# Make two passes to allow for proper duplicate-argument suppression. 1632ac_configure_args= 1633ac_configure_args0= 1634ac_configure_args1= 1635ac_must_keep_next=false 1636for ac_pass in 1 2 1637do 1638 for ac_arg 1639 do 1640 case $ac_arg in 1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1643 | -silent | --silent | --silen | --sile | --sil) 1644 continue ;; 1645 *\'*) 1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1647 esac 1648 case $ac_pass in 1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1650 2) 1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1652 if test $ac_must_keep_next = true; then 1653 ac_must_keep_next=false # Got value, back to normal. 1654 else 1655 case $ac_arg in 1656 *=* | --config-cache | -C | -disable-* | --disable-* \ 1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1659 | -with-* | --with-* | -without-* | --without-* | --x) 1660 case "$ac_configure_args0 " in 1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1662 esac 1663 ;; 1664 -* ) ac_must_keep_next=true ;; 1665 esac 1666 fi 1667 ac_configure_args="$ac_configure_args '$ac_arg'" 1668 ;; 1669 esac 1670 done 1671done 1672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1674 1675# When interrupted or exit'd, cleanup temporary files, and complete 1676# config.log. We remove comments because anyway the quotes in there 1677# would cause problems or look ugly. 1678# WARNING: Use '\'' to represent an apostrophe within the trap. 1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1680trap 'exit_status=$? 1681 # Save into config.log some information that might help in debugging. 1682 { 1683 echo 1684 1685 cat <<\_ASBOX 1686## ---------------- ## 1687## Cache variables. ## 1688## ---------------- ## 1689_ASBOX 1690 echo 1691 # The following way of writing the cache mishandles newlines in values, 1692( 1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1694 eval ac_val=\$$ac_var 1695 case $ac_val in #( 1696 *${as_nl}*) 1697 case $ac_var in #( 1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1700 esac 1701 case $ac_var in #( 1702 _ | IFS | as_nl) ;; #( 1703 *) $as_unset $ac_var ;; 1704 esac ;; 1705 esac 1706 done 1707 (set) 2>&1 | 1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1709 *${as_nl}ac_space=\ *) 1710 sed -n \ 1711 "s/'\''/'\''\\\\'\'''\''/g; 1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1713 ;; #( 1714 *) 1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1716 ;; 1717 esac | 1718 sort 1719) 1720 echo 1721 1722 cat <<\_ASBOX 1723## ----------------- ## 1724## Output variables. ## 1725## ----------------- ## 1726_ASBOX 1727 echo 1728 for ac_var in $ac_subst_vars 1729 do 1730 eval ac_val=\$$ac_var 1731 case $ac_val in 1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1733 esac 1734 echo "$ac_var='\''$ac_val'\''" 1735 done | sort 1736 echo 1737 1738 if test -n "$ac_subst_files"; then 1739 cat <<\_ASBOX 1740## ------------------- ## 1741## File substitutions. ## 1742## ------------------- ## 1743_ASBOX 1744 echo 1745 for ac_var in $ac_subst_files 1746 do 1747 eval ac_val=\$$ac_var 1748 case $ac_val in 1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1750 esac 1751 echo "$ac_var='\''$ac_val'\''" 1752 done | sort 1753 echo 1754 fi 1755 1756 if test -s confdefs.h; then 1757 cat <<\_ASBOX 1758## ----------- ## 1759## confdefs.h. ## 1760## ----------- ## 1761_ASBOX 1762 echo 1763 cat confdefs.h 1764 echo 1765 fi 1766 test "$ac_signal" != 0 && 1767 echo "$as_me: caught signal $ac_signal" 1768 echo "$as_me: exit $exit_status" 1769 } >&5 1770 rm -f core *.core core.conftest.* && 1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1772 exit $exit_status 1773' 0 1774for ac_signal in 1 2 13 15; do 1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1776done 1777ac_signal=0 1778 1779# confdefs.h avoids OS command line length limits that DEFS can exceed. 1780rm -f -r conftest* confdefs.h 1781 1782# Predefined preprocessor variables. 1783 1784cat >>confdefs.h <<_ACEOF 1785#define PACKAGE_NAME "$PACKAGE_NAME" 1786_ACEOF 1787 1788 1789cat >>confdefs.h <<_ACEOF 1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1791_ACEOF 1792 1793 1794cat >>confdefs.h <<_ACEOF 1795#define PACKAGE_VERSION "$PACKAGE_VERSION" 1796_ACEOF 1797 1798 1799cat >>confdefs.h <<_ACEOF 1800#define PACKAGE_STRING "$PACKAGE_STRING" 1801_ACEOF 1802 1803 1804cat >>confdefs.h <<_ACEOF 1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1806_ACEOF 1807 1808 1809# Let the site file select an alternate cache file if it wants to. 1810# Prefer explicitly selected file to automatically selected ones. 1811if test -n "$CONFIG_SITE"; then 1812 set x "$CONFIG_SITE" 1813elif test "x$prefix" != xNONE; then 1814 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1815else 1816 set x "$ac_default_prefix/share/config.site" \ 1817 "$ac_default_prefix/etc/config.site" 1818fi 1819shift 1820for ac_site_file 1821do 1822 if test -r "$ac_site_file"; then 1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1824echo "$as_me: loading site script $ac_site_file" >&6;} 1825 sed 's/^/| /' "$ac_site_file" >&5 1826 . "$ac_site_file" 1827 fi 1828done 1829 1830if test -r "$cache_file"; then 1831 # Some versions of bash will fail to source /dev/null (special 1832 # files actually), so we avoid doing that. 1833 if test -f "$cache_file"; then 1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1835echo "$as_me: loading cache $cache_file" >&6;} 1836 case $cache_file in 1837 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1838 *) . "./$cache_file";; 1839 esac 1840 fi 1841else 1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1843echo "$as_me: creating cache $cache_file" >&6;} 1844 >$cache_file 1845fi 1846 1847# Check that the precious variables saved in the cache have kept the same 1848# value. 1849ac_cache_corrupted=false 1850for ac_var in $ac_precious_vars; do 1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1852 eval ac_new_set=\$ac_env_${ac_var}_set 1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1854 eval ac_new_val=\$ac_env_${ac_var}_value 1855 case $ac_old_set,$ac_new_set in 1856 set,) 1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1859 ac_cache_corrupted=: ;; 1860 ,set) 1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1863 ac_cache_corrupted=: ;; 1864 ,);; 1865 *) 1866 if test "x$ac_old_val" != "x$ac_new_val"; then 1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1870echo "$as_me: former value: $ac_old_val" >&2;} 1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1872echo "$as_me: current value: $ac_new_val" >&2;} 1873 ac_cache_corrupted=: 1874 fi;; 1875 esac 1876 # Pass precious variables to config.status. 1877 if test "$ac_new_set" = set; then 1878 case $ac_new_val in 1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1880 *) ac_arg=$ac_var=$ac_new_val ;; 1881 esac 1882 case " $ac_configure_args " in 1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1885 esac 1886 fi 1887done 1888if $ac_cache_corrupted; then 1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1890echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1893 { (exit 1); exit 1; }; } 1894fi 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920ac_ext=c 1921ac_cpp='$CPP $CPPFLAGS' 1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1924ac_compiler_gnu=$ac_cv_c_compiler_gnu 1925 1926 1927 1928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." 1929 1930 1931 1932 1933 1934 1935 1936ac_aux_dir= 1937for ac_dir in autoconf "$srcdir"/autoconf; do 1938 if test -f "$ac_dir/install-sh"; then 1939 ac_aux_dir=$ac_dir 1940 ac_install_sh="$ac_aux_dir/install-sh -c" 1941 break 1942 elif test -f "$ac_dir/install.sh"; then 1943 ac_aux_dir=$ac_dir 1944 ac_install_sh="$ac_aux_dir/install.sh -c" 1945 break 1946 elif test -f "$ac_dir/shtool"; then 1947 ac_aux_dir=$ac_dir 1948 ac_install_sh="$ac_aux_dir/shtool install -c" 1949 break 1950 fi 1951done 1952if test -z "$ac_aux_dir"; then 1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1955 { (exit 1); exit 1; }; } 1956fi 1957 1958# These three variables are undocumented and unsupported, 1959# and are intended to be withdrawn in a future Autoconf release. 1960# They can cause serious problems if a builder's source tree is in a directory 1961# whose full name contains unusual characters. 1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1965 1966 1967 1968if test ${srcdir} != "." ; then 1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1971echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1972 { (exit 1); exit 1; }; } 1973 fi 1974fi 1975 1976 1977 1978if test -d ${srcdir}/projects/llvm-gcc ; then 1979 subdirs="$subdirs projects/llvm-gcc" 1980 1981fi 1982 1983if test -d ${srcdir}/projects/test-suite ; then 1984 subdirs="$subdirs projects/test-suite" 1985 1986fi 1987 1988if test -d ${srcdir}/projects/llvm-test ; then 1989 subdirs="$subdirs projects/llvm-test" 1990 1991fi 1992 1993if test -d ${srcdir}/projects/poolalloc ; then 1994 subdirs="$subdirs projects/poolalloc" 1995 1996fi 1997 1998if test -d ${srcdir}/projects/llvm-poolalloc ; then 1999 subdirs="$subdirs projects/llvm-poolalloc" 2000 2001fi 2002 2003for i in `ls ${srcdir}/projects` 2004do 2005 if test -d ${srcdir}/projects/${i} ; then 2006 case ${i} in 2007 sample) subdirs="$subdirs projects/sample" 2008 ;; 2009 privbracket) subdirs="$subdirs projects/privbracket" 2010 ;; 2011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 2012 ;; 2013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 2014;; 2015 llvm-java) subdirs="$subdirs projects/llvm-java" 2016 ;; 2017 llvm-tv) subdirs="$subdirs projects/llvm-tv" 2018 ;; 2019 safecode) subdirs="$subdirs projects/safecode" 2020 ;; 2021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 2022 ;; 2023 llvm-gcc) ;; 2024 test-suite) ;; 2025 llvm-test) ;; 2026 poolalloc) ;; 2027 llvm-poolalloc) ;; 2028 *) 2029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 2030echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 2031 ;; 2032 esac 2033 fi 2034done 2035 2036# Check whether --enable-polly was given. 2037if test "${enable_polly+set}" = set; then 2038 enableval=$enable_polly; 2039else 2040 enableval=default 2041fi 2042 2043case "$enableval" in 2044 yes) ENABLE_POLLY=1 2045 ;; 2046 no) ENABLE_POLLY=0 2047 ;; 2048 default) ENABLE_POLLY=1 2049 ;; 2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 2051echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 2052 { (exit 1); exit 1; }; } ;; 2053esac 2054 2055 2056if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 2057 LLVM_HAS_POLLY=1 2058 2059 subdirs="$subdirs tools/polly" 2060 2061fi 2062 2063 2064# Make sure we can run config.sub. 2065$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2067echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2068 { (exit 1); exit 1; }; } 2069 2070{ echo "$as_me:$LINENO: checking build system type" >&5 2071echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2072if test "${ac_cv_build+set}" = set; then 2073 echo $ECHO_N "(cached) $ECHO_C" >&6 2074else 2075 ac_build_alias=$build_alias 2076test "x$ac_build_alias" = x && 2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2078test "x$ac_build_alias" = x && 2079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2080echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2081 { (exit 1); exit 1; }; } 2082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2084echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2085 { (exit 1); exit 1; }; } 2086 2087fi 2088{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2089echo "${ECHO_T}$ac_cv_build" >&6; } 2090case $ac_cv_build in 2091*-*-*) ;; 2092*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2093echo "$as_me: error: invalid value of canonical build" >&2;} 2094 { (exit 1); exit 1; }; };; 2095esac 2096build=$ac_cv_build 2097ac_save_IFS=$IFS; IFS='-' 2098set x $ac_cv_build 2099shift 2100build_cpu=$1 2101build_vendor=$2 2102shift; shift 2103# Remember, the first character of IFS is used to create $*, 2104# except with old shells: 2105build_os=$* 2106IFS=$ac_save_IFS 2107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2108 2109 2110{ echo "$as_me:$LINENO: checking host system type" >&5 2111echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2112if test "${ac_cv_host+set}" = set; then 2113 echo $ECHO_N "(cached) $ECHO_C" >&6 2114else 2115 if test "x$host_alias" = x; then 2116 ac_cv_host=$ac_cv_build 2117else 2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2121 { (exit 1); exit 1; }; } 2122fi 2123 2124fi 2125{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2126echo "${ECHO_T}$ac_cv_host" >&6; } 2127case $ac_cv_host in 2128*-*-*) ;; 2129*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2130echo "$as_me: error: invalid value of canonical host" >&2;} 2131 { (exit 1); exit 1; }; };; 2132esac 2133host=$ac_cv_host 2134ac_save_IFS=$IFS; IFS='-' 2135set x $ac_cv_host 2136shift 2137host_cpu=$1 2138host_vendor=$2 2139shift; shift 2140# Remember, the first character of IFS is used to create $*, 2141# except with old shells: 2142host_os=$* 2143IFS=$ac_save_IFS 2144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2145 2146 2147{ echo "$as_me:$LINENO: checking target system type" >&5 2148echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2149if test "${ac_cv_target+set}" = set; then 2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2151else 2152 if test "x$target_alias" = x; then 2153 ac_cv_target=$ac_cv_host 2154else 2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2157echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2158 { (exit 1); exit 1; }; } 2159fi 2160 2161fi 2162{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2163echo "${ECHO_T}$ac_cv_target" >&6; } 2164case $ac_cv_target in 2165*-*-*) ;; 2166*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2167echo "$as_me: error: invalid value of canonical target" >&2;} 2168 { (exit 1); exit 1; }; };; 2169esac 2170target=$ac_cv_target 2171ac_save_IFS=$IFS; IFS='-' 2172set x $ac_cv_target 2173shift 2174target_cpu=$1 2175target_vendor=$2 2176shift; shift 2177# Remember, the first character of IFS is used to create $*, 2178# except with old shells: 2179target_os=$* 2180IFS=$ac_save_IFS 2181case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2182 2183 2184# The aliases save the names the user supplied, while $host etc. 2185# will get canonicalized. 2186test -n "$target_alias" && 2187 test "$program_prefix$program_suffix$program_transform_name" = \ 2188 NONENONEs,x,x, && 2189 program_prefix=${target_alias}- 2190 2191{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2192echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2193if test "${llvm_cv_os_type+set}" = set; then 2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2195else 2196 case $host in 2197 *-*-aix*) 2198 llvm_cv_link_all_option="-Wl,--whole-archive" 2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2200 llvm_cv_os_type="AIX" 2201 llvm_cv_platform_type="Unix" ;; 2202 *-*-irix*) 2203 llvm_cv_link_all_option="-Wl,--whole-archive" 2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2205 llvm_cv_os_type="IRIX" 2206 llvm_cv_platform_type="Unix" ;; 2207 *-*-cygwin*) 2208 llvm_cv_link_all_option="-Wl,--whole-archive" 2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2210 llvm_cv_os_type="Cygwin" 2211 llvm_cv_platform_type="Unix" ;; 2212 *-*-darwin*) 2213 llvm_cv_link_all_option="-Wl,-all_load" 2214 llvm_cv_no_link_all_option="-Wl,-noall_load" 2215 llvm_cv_os_type="Darwin" 2216 llvm_cv_platform_type="Unix" ;; 2217 *-*-minix*) 2218 llvm_cv_link_all_option="-Wl,-all_load" 2219 llvm_cv_no_link_all_option="-Wl,-noall_load" 2220 llvm_cv_os_type="Minix" 2221 llvm_cv_platform_type="Unix" ;; 2222 *-*-freebsd*) 2223 llvm_cv_link_all_option="-Wl,--whole-archive" 2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2225 llvm_cv_os_type="FreeBSD" 2226 llvm_cv_platform_type="Unix" ;; 2227 *-*-openbsd*) 2228 llvm_cv_link_all_option="-Wl,--whole-archive" 2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2230 llvm_cv_os_type="OpenBSD" 2231 llvm_cv_platform_type="Unix" ;; 2232 *-*-netbsd*) 2233 llvm_cv_link_all_option="-Wl,--whole-archive" 2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2235 llvm_cv_os_type="NetBSD" 2236 llvm_cv_platform_type="Unix" ;; 2237 *-*-dragonfly*) 2238 llvm_cv_link_all_option="-Wl,--whole-archive" 2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2240 llvm_cv_os_type="DragonFly" 2241 llvm_cv_platform_type="Unix" ;; 2242 *-*-hpux*) 2243 llvm_cv_link_all_option="-Wl,--whole-archive" 2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2245 llvm_cv_os_type="HP-UX" 2246 llvm_cv_platform_type="Unix" ;; 2247 *-*-interix*) 2248 llvm_cv_link_all_option="-Wl,--whole-archive" 2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2250 llvm_cv_os_type="Interix" 2251 llvm_cv_platform_type="Unix" ;; 2252 *-*-linux*) 2253 llvm_cv_link_all_option="-Wl,--whole-archive" 2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2255 llvm_cv_os_type="Linux" 2256 llvm_cv_platform_type="Unix" ;; 2257 *-*-solaris*) 2258 llvm_cv_link_all_option="-Wl,-z,allextract" 2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2260 llvm_cv_os_type="SunOS" 2261 llvm_cv_platform_type="Unix" ;; 2262 *-*-auroraux*) 2263 llvm_cv_link_all_option="-Wl,-z,allextract" 2264 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2265 llvm_cv_os_type="AuroraUX" 2266 llvm_cv_platform_type="Unix" ;; 2267 *-*-win32*) 2268 llvm_cv_link_all_option="-Wl,--whole-archive" 2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2270 llvm_cv_os_type="Win32" 2271 llvm_cv_platform_type="Win32" ;; 2272 *-*-mingw*) 2273 llvm_cv_link_all_option="-Wl,--whole-archive" 2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2275 llvm_cv_os_type="MingW" 2276 llvm_cv_platform_type="Win32" ;; 2277 *-*-haiku*) 2278 llvm_cv_link_all_option="-Wl,--whole-archive" 2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2280 llvm_cv_os_type="Haiku" 2281 llvm_cv_platform_type="Unix" ;; 2282 *-unknown-eabi*) 2283 llvm_cv_link_all_option="-Wl,--whole-archive" 2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2285 llvm_cv_os_type="Freestanding" 2286 llvm_cv_platform_type="Unix" ;; 2287 *-unknown-elf*) 2288 llvm_cv_link_all_option="-Wl,--whole-archive" 2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2290 llvm_cv_os_type="Freestanding" 2291 llvm_cv_platform_type="Unix" ;; 2292 *) 2293 llvm_cv_link_all_option="" 2294 llvm_cv_no_link_all_option="" 2295 llvm_cv_os_type="Unknown" 2296 llvm_cv_platform_type="Unknown" ;; 2297esac 2298fi 2299{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2300echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2301 2302{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2303echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2304if test "${llvm_cv_target_os_type+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 case $target in 2308 *-*-aix*) 2309 llvm_cv_target_os_type="AIX" ;; 2310 *-*-irix*) 2311 llvm_cv_target_os_type="IRIX" ;; 2312 *-*-cygwin*) 2313 llvm_cv_target_os_type="Cygwin" ;; 2314 *-*-darwin*) 2315 llvm_cv_target_os_type="Darwin" ;; 2316 *-*-minix*) 2317 llvm_cv_target_os_type="Minix" ;; 2318 *-*-freebsd*) 2319 llvm_cv_target_os_type="FreeBSD" ;; 2320 *-*-openbsd*) 2321 llvm_cv_target_os_type="OpenBSD" ;; 2322 *-*-netbsd*) 2323 llvm_cv_target_os_type="NetBSD" ;; 2324 *-*-dragonfly*) 2325 llvm_cv_target_os_type="DragonFly" ;; 2326 *-*-hpux*) 2327 llvm_cv_target_os_type="HP-UX" ;; 2328 *-*-interix*) 2329 llvm_cv_target_os_type="Interix" ;; 2330 *-*-linux*) 2331 llvm_cv_target_os_type="Linux" ;; 2332 *-*-solaris*) 2333 llvm_cv_target_os_type="SunOS" ;; 2334 *-*-auroraux*) 2335 llvm_cv_target_os_type="AuroraUX" ;; 2336 *-*-win32*) 2337 llvm_cv_target_os_type="Win32" ;; 2338 *-*-mingw*) 2339 llvm_cv_target_os_type="MingW" ;; 2340 *-*-haiku*) 2341 llvm_cv_target_os_type="Haiku" ;; 2342 *-*-rtems*) 2343 llvm_cv_target_os_type="RTEMS" ;; 2344 *-unknown-eabi*) 2345 llvm_cv_target_os_type="Freestanding" ;; 2346 *) 2347 llvm_cv_target_os_type="Unknown" ;; 2348esac 2349fi 2350{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2351echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2352 2353if test "$llvm_cv_os_type" = "Unknown" ; then 2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2355echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2356 { (exit 1); exit 1; }; } 2357fi 2358 2359OS=$llvm_cv_os_type 2360 2361HOST_OS=$llvm_cv_os_type 2362 2363TARGET_OS=$llvm_cv_target_os_type 2364 2365 2366LINKALL=$llvm_cv_link_all_option 2367 2368NOLINKALL=$llvm_cv_no_link_all_option 2369 2370 2371case $llvm_cv_platform_type in 2372 Unix) 2373 2374cat >>confdefs.h <<\_ACEOF 2375#define LLVM_ON_UNIX 1 2376_ACEOF 2377 2378 LLVM_ON_UNIX=1 2379 2380 LLVM_ON_WIN32=0 2381 2382 ;; 2383 Win32) 2384 2385cat >>confdefs.h <<\_ACEOF 2386#define LLVM_ON_WIN32 1 2387_ACEOF 2388 2389 LLVM_ON_UNIX=0 2390 2391 LLVM_ON_WIN32=1 2392 2393 ;; 2394esac 2395 2396{ echo "$as_me:$LINENO: checking target architecture" >&5 2397echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2398if test "${llvm_cv_target_arch+set}" = set; then 2399 echo $ECHO_N "(cached) $ECHO_C" >&6 2400else 2401 case $target in 2402 i?86-*) llvm_cv_target_arch="x86" ;; 2403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2404 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2406 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2407 arm*-*) llvm_cv_target_arch="ARM" ;; 2408 mips-*) llvm_cv_target_arch="Mips" ;; 2409 xcore-*) llvm_cv_target_arch="XCore" ;; 2410 msp430-*) llvm_cv_target_arch="MSP430" ;; 2411 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2412 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2413 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 2414 ptx-*) llvm_cv_target_arch="PTX" ;; 2415 *) llvm_cv_target_arch="Unknown" ;; 2416esac 2417fi 2418{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2419echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2420 2421if test "$llvm_cv_target_arch" = "Unknown" ; then 2422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2423echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2424fi 2425 2426# Determine the LLVM native architecture for the target 2427case "$llvm_cv_target_arch" in 2428 x86) LLVM_NATIVE_ARCH="X86" ;; 2429 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2431esac 2432 2433ARCH=$llvm_cv_target_arch 2434 2435 2436ac_ext=c 2437ac_cpp='$CPP $CPPFLAGS' 2438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2440ac_compiler_gnu=$ac_cv_c_compiler_gnu 2441if test -n "$ac_tool_prefix"; then 2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2443set dummy ${ac_tool_prefix}gcc; ac_word=$2 2444{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2446if test "${ac_cv_prog_CC+set}" = set; then 2447 echo $ECHO_N "(cached) $ECHO_C" >&6 2448else 2449 if test -n "$CC"; then 2450 ac_cv_prog_CC="$CC" # Let the user override the test. 2451else 2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_exec_ext in '' $ac_executable_extensions; do 2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2459 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2461 break 2 2462 fi 2463done 2464done 2465IFS=$as_save_IFS 2466 2467fi 2468fi 2469CC=$ac_cv_prog_CC 2470if test -n "$CC"; then 2471 { echo "$as_me:$LINENO: result: $CC" >&5 2472echo "${ECHO_T}$CC" >&6; } 2473else 2474 { echo "$as_me:$LINENO: result: no" >&5 2475echo "${ECHO_T}no" >&6; } 2476fi 2477 2478 2479fi 2480if test -z "$ac_cv_prog_CC"; then 2481 ac_ct_CC=$CC 2482 # Extract the first word of "gcc", so it can be a program name with args. 2483set dummy gcc; ac_word=$2 2484{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2486if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2487 echo $ECHO_N "(cached) $ECHO_C" >&6 2488else 2489 if test -n "$ac_ct_CC"; then 2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2491else 2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2499 ac_cv_prog_ac_ct_CC="gcc" 2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2501 break 2 2502 fi 2503done 2504done 2505IFS=$as_save_IFS 2506 2507fi 2508fi 2509ac_ct_CC=$ac_cv_prog_ac_ct_CC 2510if test -n "$ac_ct_CC"; then 2511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2512echo "${ECHO_T}$ac_ct_CC" >&6; } 2513else 2514 { echo "$as_me:$LINENO: result: no" >&5 2515echo "${ECHO_T}no" >&6; } 2516fi 2517 2518 if test "x$ac_ct_CC" = x; then 2519 CC="" 2520 else 2521 case $cross_compiling:$ac_tool_warned in 2522yes:) 2523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2524whose name does not start with the host triplet. If you think this 2525configuration is useful to you, please write to autoconf@gnu.org." >&5 2526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2527whose name does not start with the host triplet. If you think this 2528configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2529ac_tool_warned=yes ;; 2530esac 2531 CC=$ac_ct_CC 2532 fi 2533else 2534 CC="$ac_cv_prog_CC" 2535fi 2536 2537if test -z "$CC"; then 2538 if test -n "$ac_tool_prefix"; then 2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2540set dummy ${ac_tool_prefix}cc; ac_word=$2 2541{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2543if test "${ac_cv_prog_CC+set}" = set; then 2544 echo $ECHO_N "(cached) $ECHO_C" >&6 2545else 2546 if test -n "$CC"; then 2547 ac_cv_prog_CC="$CC" # Let the user override the test. 2548else 2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550for as_dir in $PATH 2551do 2552 IFS=$as_save_IFS 2553 test -z "$as_dir" && as_dir=. 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2556 ac_cv_prog_CC="${ac_tool_prefix}cc" 2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2558 break 2 2559 fi 2560done 2561done 2562IFS=$as_save_IFS 2563 2564fi 2565fi 2566CC=$ac_cv_prog_CC 2567if test -n "$CC"; then 2568 { echo "$as_me:$LINENO: result: $CC" >&5 2569echo "${ECHO_T}$CC" >&6; } 2570else 2571 { echo "$as_me:$LINENO: result: no" >&5 2572echo "${ECHO_T}no" >&6; } 2573fi 2574 2575 2576 fi 2577fi 2578if test -z "$CC"; then 2579 # Extract the first word of "cc", so it can be a program name with args. 2580set dummy cc; ac_word=$2 2581{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2583if test "${ac_cv_prog_CC+set}" = set; then 2584 echo $ECHO_N "(cached) $ECHO_C" >&6 2585else 2586 if test -n "$CC"; then 2587 ac_cv_prog_CC="$CC" # Let the user override the test. 2588else 2589 ac_prog_rejected=no 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2598 ac_prog_rejected=yes 2599 continue 2600 fi 2601 ac_cv_prog_CC="cc" 2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2603 break 2 2604 fi 2605done 2606done 2607IFS=$as_save_IFS 2608 2609if test $ac_prog_rejected = yes; then 2610 # We found a bogon in the path, so make sure we never use it. 2611 set dummy $ac_cv_prog_CC 2612 shift 2613 if test $# != 0; then 2614 # We chose a different compiler from the bogus one. 2615 # However, it has the same basename, so the bogon will be chosen 2616 # first if we set CC to just the basename; use the full file name. 2617 shift 2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2619 fi 2620fi 2621fi 2622fi 2623CC=$ac_cv_prog_CC 2624if test -n "$CC"; then 2625 { echo "$as_me:$LINENO: result: $CC" >&5 2626echo "${ECHO_T}$CC" >&6; } 2627else 2628 { echo "$as_me:$LINENO: result: no" >&5 2629echo "${ECHO_T}no" >&6; } 2630fi 2631 2632 2633fi 2634if test -z "$CC"; then 2635 if test -n "$ac_tool_prefix"; then 2636 for ac_prog in cl.exe 2637 do 2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2639set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2640{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2642if test "${ac_cv_prog_CC+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 2644else 2645 if test -n "$CC"; then 2646 ac_cv_prog_CC="$CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665CC=$ac_cv_prog_CC 2666if test -n "$CC"; then 2667 { echo "$as_me:$LINENO: result: $CC" >&5 2668echo "${ECHO_T}$CC" >&6; } 2669else 2670 { echo "$as_me:$LINENO: result: no" >&5 2671echo "${ECHO_T}no" >&6; } 2672fi 2673 2674 2675 test -n "$CC" && break 2676 done 2677fi 2678if test -z "$CC"; then 2679 ac_ct_CC=$CC 2680 for ac_prog in cl.exe 2681do 2682 # Extract the first word of "$ac_prog", so it can be a program name with args. 2683set dummy $ac_prog; ac_word=$2 2684{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2687 echo $ECHO_N "(cached) $ECHO_C" >&6 2688else 2689 if test -n "$ac_ct_CC"; then 2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2691else 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 test -z "$as_dir" && as_dir=. 2697 for ac_exec_ext in '' $ac_executable_extensions; do 2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2699 ac_cv_prog_ac_ct_CC="$ac_prog" 2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2701 break 2 2702 fi 2703done 2704done 2705IFS=$as_save_IFS 2706 2707fi 2708fi 2709ac_ct_CC=$ac_cv_prog_ac_ct_CC 2710if test -n "$ac_ct_CC"; then 2711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2712echo "${ECHO_T}$ac_ct_CC" >&6; } 2713else 2714 { echo "$as_me:$LINENO: result: no" >&5 2715echo "${ECHO_T}no" >&6; } 2716fi 2717 2718 2719 test -n "$ac_ct_CC" && break 2720done 2721 2722 if test "x$ac_ct_CC" = x; then 2723 CC="" 2724 else 2725 case $cross_compiling:$ac_tool_warned in 2726yes:) 2727{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2728whose name does not start with the host triplet. If you think this 2729configuration is useful to you, please write to autoconf@gnu.org." >&5 2730echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2731whose name does not start with the host triplet. If you think this 2732configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2733ac_tool_warned=yes ;; 2734esac 2735 CC=$ac_ct_CC 2736 fi 2737fi 2738 2739fi 2740 2741 2742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2743See \`config.log' for more details." >&5 2744echo "$as_me: error: no acceptable C compiler found in \$PATH 2745See \`config.log' for more details." >&2;} 2746 { (exit 1); exit 1; }; } 2747 2748# Provide some information about the compiler. 2749echo "$as_me:$LINENO: checking for C compiler version" >&5 2750ac_compiler=`set X $ac_compile; echo $2` 2751{ (ac_try="$ac_compiler --version >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compiler --version >&5") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761{ (ac_try="$ac_compiler -v >&5" 2762case "(($ac_try" in 2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2764 *) ac_try_echo=$ac_try;; 2765esac 2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2767 (eval "$ac_compiler -v >&5") 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); } 2771{ (ac_try="$ac_compiler -V >&5" 2772case "(($ac_try" in 2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2774 *) ac_try_echo=$ac_try;; 2775esac 2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2777 (eval "$ac_compiler -V >&5") 2>&5 2778 ac_status=$? 2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2780 (exit $ac_status); } 2781 2782cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788 2789int 2790main () 2791{ 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797ac_clean_files_save=$ac_clean_files 2798ac_clean_files="$ac_clean_files a.out a.exe b.out" 2799# Try to create an executable without -o first, disregard a.out. 2800# It will help us diagnose broken compilers, and finding out an intuition 2801# of exeext. 2802{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2805# 2806# List of possible output files, starting from the most likely. 2807# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2808# only as a last resort. b.out is created by i960 compilers. 2809ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2810# 2811# The IRIX 6 linker writes into existing files which may not be 2812# executable, retaining their permissions. Remove them first so a 2813# subsequent execution test works. 2814ac_rmfiles= 2815for ac_file in $ac_files 2816do 2817 case $ac_file in 2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2819 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2820 esac 2821done 2822rm -f $ac_rmfiles 2823 2824if { (ac_try="$ac_link_default" 2825case "(($ac_try" in 2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2827 *) ac_try_echo=$ac_try;; 2828esac 2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2830 (eval "$ac_link_default") 2>&5 2831 ac_status=$? 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); }; then 2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2836# in a Makefile. We should not override ac_cv_exeext if it was cached, 2837# so that the user can short-circuit this test for compilers unknown to 2838# Autoconf. 2839for ac_file in $ac_files 2840do 2841 test -f "$ac_file" || continue 2842 case $ac_file in 2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2844 ;; 2845 [ab].out ) 2846 # We found the default executable, but exeext='' is most 2847 # certainly right. 2848 break;; 2849 *.* ) 2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2851 then :; else 2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2853 fi 2854 # We set ac_cv_exeext here because the later test for it is not 2855 # safe: cross compilers may not add the suffix if given an `-o' 2856 # argument, so we may need to know it at that point already. 2857 # Even if this section looks crufty: it has the advantage of 2858 # actually working. 2859 break;; 2860 * ) 2861 break;; 2862 esac 2863done 2864test "$ac_cv_exeext" = no && ac_cv_exeext= 2865 2866else 2867 echo "$as_me: failed program was:" >&5 2868sed 's/^/| /' conftest.$ac_ext >&5 2869 2870{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2871See \`config.log' for more details." >&5 2872echo "$as_me: error: C compiler cannot create executables 2873See \`config.log' for more details." >&2;} 2874 { (exit 77); exit 77; }; } 2875fi 2876 2877ac_exeext=$ac_cv_exeext 2878{ echo "$as_me:$LINENO: result: $ac_file" >&5 2879echo "${ECHO_T}$ac_file" >&6; } 2880 2881# Check that the compiler produces executables we can run. If not, either 2882# the compiler is broken, or we cross compile. 2883{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2884echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2885# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2886# If not cross compiling, check that we can run a simple program. 2887if test "$cross_compiling" != yes; then 2888 if { ac_try='./$ac_file' 2889 { (case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892esac 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_try") 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); }; }; then 2898 cross_compiling=no 2899 else 2900 if test "$cross_compiling" = maybe; then 2901 cross_compiling=yes 2902 else 2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2904If you meant to cross compile, use \`--host'. 2905See \`config.log' for more details." >&5 2906echo "$as_me: error: cannot run C compiled programs. 2907If you meant to cross compile, use \`--host'. 2908See \`config.log' for more details." >&2;} 2909 { (exit 1); exit 1; }; } 2910 fi 2911 fi 2912fi 2913{ echo "$as_me:$LINENO: result: yes" >&5 2914echo "${ECHO_T}yes" >&6; } 2915 2916rm -f a.out a.exe conftest$ac_cv_exeext b.out 2917ac_clean_files=$ac_clean_files_save 2918# Check that the compiler produces executables we can run. If not, either 2919# the compiler is broken, or we cross compile. 2920{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2922{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2923echo "${ECHO_T}$cross_compiling" >&6; } 2924 2925{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2927if { (ac_try="$ac_link" 2928case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931esac 2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2933 (eval "$ac_link") 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; then 2937 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2938# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2939# work properly (i.e., refer to `conftest.exe'), while it won't with 2940# `rm'. 2941for ac_file in conftest.exe conftest conftest.*; do 2942 test -f "$ac_file" || continue 2943 case $ac_file in 2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2946 break;; 2947 * ) break;; 2948 esac 2949done 2950else 2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2952See \`config.log' for more details." >&5 2953echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2954See \`config.log' for more details." >&2;} 2955 { (exit 1); exit 1; }; } 2956fi 2957 2958rm -f conftest$ac_cv_exeext 2959{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2960echo "${ECHO_T}$ac_cv_exeext" >&6; } 2961 2962rm -f conftest.$ac_ext 2963EXEEXT=$ac_cv_exeext 2964ac_exeext=$EXEEXT 2965{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2966echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2967if test "${ac_cv_objext+set}" = set; then 2968 echo $ECHO_N "(cached) $ECHO_C" >&6 2969else 2970 cat >conftest.$ac_ext <<_ACEOF 2971/* confdefs.h. */ 2972_ACEOF 2973cat confdefs.h >>conftest.$ac_ext 2974cat >>conftest.$ac_ext <<_ACEOF 2975/* end confdefs.h. */ 2976 2977int 2978main () 2979{ 2980 2981 ; 2982 return 0; 2983} 2984_ACEOF 2985rm -f conftest.o conftest.obj 2986if { (ac_try="$ac_compile" 2987case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990esac 2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2992 (eval "$ac_compile") 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); }; then 2996 for ac_file in conftest.o conftest.obj conftest.*; do 2997 test -f "$ac_file" || continue; 2998 case $ac_file in 2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3001 break;; 3002 esac 3003done 3004else 3005 echo "$as_me: failed program was:" >&5 3006sed 's/^/| /' conftest.$ac_ext >&5 3007 3008{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3009See \`config.log' for more details." >&5 3010echo "$as_me: error: cannot compute suffix of object files: cannot compile 3011See \`config.log' for more details." >&2;} 3012 { (exit 1); exit 1; }; } 3013fi 3014 3015rm -f conftest.$ac_cv_objext conftest.$ac_ext 3016fi 3017{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3018echo "${ECHO_T}$ac_cv_objext" >&6; } 3019OBJEXT=$ac_cv_objext 3020ac_objext=$OBJEXT 3021{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3022echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3023if test "${ac_cv_c_compiler_gnu+set}" = set; then 3024 echo $ECHO_N "(cached) $ECHO_C" >&6 3025else 3026 cat >conftest.$ac_ext <<_ACEOF 3027/* confdefs.h. */ 3028_ACEOF 3029cat confdefs.h >>conftest.$ac_ext 3030cat >>conftest.$ac_ext <<_ACEOF 3031/* end confdefs.h. */ 3032 3033int 3034main () 3035{ 3036#ifndef __GNUC__ 3037 choke me 3038#endif 3039 3040 ; 3041 return 0; 3042} 3043_ACEOF 3044rm -f conftest.$ac_objext 3045if { (ac_try="$ac_compile" 3046case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_compile") 2>conftest.er1 3052 ac_status=$? 3053 grep -v '^ *+' conftest.er1 >conftest.err 3054 rm -f conftest.er1 3055 cat conftest.err >&5 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && 3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3059 { (case "(($ac_try" in 3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3061 *) ac_try_echo=$ac_try;; 3062esac 3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3064 (eval "$ac_try") 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; } && 3068 { ac_try='test -s conftest.$ac_objext' 3069 { (case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3074 (eval "$ac_try") 2>&5 3075 ac_status=$? 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); }; }; then 3078 ac_compiler_gnu=yes 3079else 3080 echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083 ac_compiler_gnu=no 3084fi 3085 3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3087ac_cv_c_compiler_gnu=$ac_compiler_gnu 3088 3089fi 3090{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3091echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3092GCC=`test $ac_compiler_gnu = yes && echo yes` 3093ac_test_CFLAGS=${CFLAGS+set} 3094ac_save_CFLAGS=$CFLAGS 3095{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3096echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3097if test "${ac_cv_prog_cc_g+set}" = set; then 3098 echo $ECHO_N "(cached) $ECHO_C" >&6 3099else 3100 ac_save_c_werror_flag=$ac_c_werror_flag 3101 ac_c_werror_flag=yes 3102 ac_cv_prog_cc_g=no 3103 CFLAGS="-g" 3104 cat >conftest.$ac_ext <<_ACEOF 3105/* confdefs.h. */ 3106_ACEOF 3107cat confdefs.h >>conftest.$ac_ext 3108cat >>conftest.$ac_ext <<_ACEOF 3109/* end confdefs.h. */ 3110 3111int 3112main () 3113{ 3114 3115 ; 3116 return 0; 3117} 3118_ACEOF 3119rm -f conftest.$ac_objext 3120if { (ac_try="$ac_compile" 3121case "(($ac_try" in 3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *) ac_try_echo=$ac_try;; 3124esac 3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3126 (eval "$ac_compile") 2>conftest.er1 3127 ac_status=$? 3128 grep -v '^ *+' conftest.er1 >conftest.err 3129 rm -f conftest.er1 3130 cat conftest.err >&5 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); } && 3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3134 { (case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_try") 2>&5 3140 ac_status=$? 3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3142 (exit $ac_status); }; } && 3143 { ac_try='test -s conftest.$ac_objext' 3144 { (case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147esac 3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3149 (eval "$ac_try") 2>&5 3150 ac_status=$? 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 3153 ac_cv_prog_cc_g=yes 3154else 3155 echo "$as_me: failed program was:" >&5 3156sed 's/^/| /' conftest.$ac_ext >&5 3157 3158 CFLAGS="" 3159 cat >conftest.$ac_ext <<_ACEOF 3160/* confdefs.h. */ 3161_ACEOF 3162cat confdefs.h >>conftest.$ac_ext 3163cat >>conftest.$ac_ext <<_ACEOF 3164/* end confdefs.h. */ 3165 3166int 3167main () 3168{ 3169 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174rm -f conftest.$ac_objext 3175if { (ac_try="$ac_compile" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3181 (eval "$ac_compile") 2>conftest.er1 3182 ac_status=$? 3183 grep -v '^ *+' conftest.er1 >conftest.err 3184 rm -f conftest.er1 3185 cat conftest.err >&5 3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); } && 3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3189 { (case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3194 (eval "$ac_try") 2>&5 3195 ac_status=$? 3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 (exit $ac_status); }; } && 3198 { ac_try='test -s conftest.$ac_objext' 3199 { (case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3204 (eval "$ac_try") 2>&5 3205 ac_status=$? 3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); }; }; then 3208 : 3209else 3210 echo "$as_me: failed program was:" >&5 3211sed 's/^/| /' conftest.$ac_ext >&5 3212 3213 ac_c_werror_flag=$ac_save_c_werror_flag 3214 CFLAGS="-g" 3215 cat >conftest.$ac_ext <<_ACEOF 3216/* confdefs.h. */ 3217_ACEOF 3218cat confdefs.h >>conftest.$ac_ext 3219cat >>conftest.$ac_ext <<_ACEOF 3220/* end confdefs.h. */ 3221 3222int 3223main () 3224{ 3225 3226 ; 3227 return 0; 3228} 3229_ACEOF 3230rm -f conftest.$ac_objext 3231if { (ac_try="$ac_compile" 3232case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3237 (eval "$ac_compile") 2>conftest.er1 3238 ac_status=$? 3239 grep -v '^ *+' conftest.er1 >conftest.err 3240 rm -f conftest.er1 3241 cat conftest.err >&5 3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3243 (exit $ac_status); } && 3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3245 { (case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_try") 2>&5 3251 ac_status=$? 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; } && 3254 { ac_try='test -s conftest.$ac_objext' 3255 { (case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3260 (eval "$ac_try") 2>&5 3261 ac_status=$? 3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3263 (exit $ac_status); }; }; then 3264 ac_cv_prog_cc_g=yes 3265else 3266 echo "$as_me: failed program was:" >&5 3267sed 's/^/| /' conftest.$ac_ext >&5 3268 3269 3270fi 3271 3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3273fi 3274 3275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3276fi 3277 3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3279 ac_c_werror_flag=$ac_save_c_werror_flag 3280fi 3281{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3282echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3283if test "$ac_test_CFLAGS" = set; then 3284 CFLAGS=$ac_save_CFLAGS 3285elif test $ac_cv_prog_cc_g = yes; then 3286 if test "$GCC" = yes; then 3287 CFLAGS="-g -O2" 3288 else 3289 CFLAGS="-g" 3290 fi 3291else 3292 if test "$GCC" = yes; then 3293 CFLAGS="-O2" 3294 else 3295 CFLAGS= 3296 fi 3297fi 3298{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3299echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3300if test "${ac_cv_prog_cc_c89+set}" = set; then 3301 echo $ECHO_N "(cached) $ECHO_C" >&6 3302else 3303 ac_cv_prog_cc_c89=no 3304ac_save_CC=$CC 3305cat >conftest.$ac_ext <<_ACEOF 3306/* confdefs.h. */ 3307_ACEOF 3308cat confdefs.h >>conftest.$ac_ext 3309cat >>conftest.$ac_ext <<_ACEOF 3310/* end confdefs.h. */ 3311#include <stdarg.h> 3312#include <stdio.h> 3313#include <sys/types.h> 3314#include <sys/stat.h> 3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3316struct buf { int x; }; 3317FILE * (*rcsopen) (struct buf *, struct stat *, int); 3318static char *e (p, i) 3319 char **p; 3320 int i; 3321{ 3322 return p[i]; 3323} 3324static char *f (char * (*g) (char **, int), char **p, ...) 3325{ 3326 char *s; 3327 va_list v; 3328 va_start (v,p); 3329 s = g (p, va_arg (v,int)); 3330 va_end (v); 3331 return s; 3332} 3333 3334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3335 function prototypes and stuff, but not '\xHH' hex character constants. 3336 These don't provoke an error unfortunately, instead are silently treated 3337 as 'x'. The following induces an error, until -std is added to get 3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3339 array size at least. It's necessary to write '\x00'==0 to get something 3340 that's true only with -std. */ 3341int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3342 3343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3344 inside strings and character constants. */ 3345#define FOO(x) 'x' 3346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3347 3348int test (int i, double x); 3349struct s1 {int (*f) (int a);}; 3350struct s2 {int (*f) (double a);}; 3351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3352int argc; 3353char **argv; 3354int 3355main () 3356{ 3357return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3364do 3365 CC="$ac_save_CC $ac_arg" 3366 rm -f conftest.$ac_objext 3367if { (ac_try="$ac_compile" 3368case "(($ac_try" in 3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3370 *) ac_try_echo=$ac_try;; 3371esac 3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3373 (eval "$ac_compile") 2>conftest.er1 3374 ac_status=$? 3375 grep -v '^ *+' conftest.er1 >conftest.err 3376 rm -f conftest.er1 3377 cat conftest.err >&5 3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3379 (exit $ac_status); } && 3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3381 { (case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3386 (eval "$ac_try") 2>&5 3387 ac_status=$? 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3389 (exit $ac_status); }; } && 3390 { ac_try='test -s conftest.$ac_objext' 3391 { (case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3396 (eval "$ac_try") 2>&5 3397 ac_status=$? 3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); }; }; then 3400 ac_cv_prog_cc_c89=$ac_arg 3401else 3402 echo "$as_me: failed program was:" >&5 3403sed 's/^/| /' conftest.$ac_ext >&5 3404 3405 3406fi 3407 3408rm -f core conftest.err conftest.$ac_objext 3409 test "x$ac_cv_prog_cc_c89" != "xno" && break 3410done 3411rm -f conftest.$ac_ext 3412CC=$ac_save_CC 3413 3414fi 3415# AC_CACHE_VAL 3416case "x$ac_cv_prog_cc_c89" in 3417 x) 3418 { echo "$as_me:$LINENO: result: none needed" >&5 3419echo "${ECHO_T}none needed" >&6; } ;; 3420 xno) 3421 { echo "$as_me:$LINENO: result: unsupported" >&5 3422echo "${ECHO_T}unsupported" >&6; } ;; 3423 *) 3424 CC="$CC $ac_cv_prog_cc_c89" 3425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3426echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3427esac 3428 3429 3430ac_ext=c 3431ac_cpp='$CPP $CPPFLAGS' 3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3434ac_compiler_gnu=$ac_cv_c_compiler_gnu 3435 3436 3437ac_ext=c 3438ac_cpp='$CPP $CPPFLAGS' 3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3441ac_compiler_gnu=$ac_cv_c_compiler_gnu 3442{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3443echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3444# On Suns, sometimes $CPP names a directory. 3445if test -n "$CPP" && test -d "$CPP"; then 3446 CPP= 3447fi 3448if test -z "$CPP"; then 3449 if test "${ac_cv_prog_CPP+set}" = set; then 3450 echo $ECHO_N "(cached) $ECHO_C" >&6 3451else 3452 # Double quotes because CPP needs to be expanded 3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3454 do 3455 ac_preproc_ok=false 3456for ac_c_preproc_warn_flag in '' yes 3457do 3458 # Use a header file that comes with gcc, so configuring glibc 3459 # with a fresh cross-compiler works. 3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3461 # <limits.h> exists even on freestanding compilers. 3462 # On the NeXT, cc -E runs the code through the compiler's parser, 3463 # not just through cpp. "Syntax error" is here to catch this case. 3464 cat >conftest.$ac_ext <<_ACEOF 3465/* confdefs.h. */ 3466_ACEOF 3467cat confdefs.h >>conftest.$ac_ext 3468cat >>conftest.$ac_ext <<_ACEOF 3469/* end confdefs.h. */ 3470#ifdef __STDC__ 3471# include <limits.h> 3472#else 3473# include <assert.h> 3474#endif 3475 Syntax error 3476_ACEOF 3477if { (ac_try="$ac_cpp conftest.$ac_ext" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3484 ac_status=$? 3485 grep -v '^ *+' conftest.er1 >conftest.err 3486 rm -f conftest.er1 3487 cat conftest.err >&5 3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3489 (exit $ac_status); } >/dev/null; then 3490 if test -s conftest.err; then 3491 ac_cpp_err=$ac_c_preproc_warn_flag 3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3493 else 3494 ac_cpp_err= 3495 fi 3496else 3497 ac_cpp_err=yes 3498fi 3499if test -z "$ac_cpp_err"; then 3500 : 3501else 3502 echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505 # Broken: fails on valid input. 3506continue 3507fi 3508 3509rm -f conftest.err conftest.$ac_ext 3510 3511 # OK, works on sane cases. Now check whether nonexistent headers 3512 # can be detected and how. 3513 cat >conftest.$ac_ext <<_ACEOF 3514/* confdefs.h. */ 3515_ACEOF 3516cat confdefs.h >>conftest.$ac_ext 3517cat >>conftest.$ac_ext <<_ACEOF 3518/* end confdefs.h. */ 3519#include <ac_nonexistent.h> 3520_ACEOF 3521if { (ac_try="$ac_cpp conftest.$ac_ext" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3528 ac_status=$? 3529 grep -v '^ *+' conftest.er1 >conftest.err 3530 rm -f conftest.er1 3531 cat conftest.err >&5 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); } >/dev/null; then 3534 if test -s conftest.err; then 3535 ac_cpp_err=$ac_c_preproc_warn_flag 3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3537 else 3538 ac_cpp_err= 3539 fi 3540else 3541 ac_cpp_err=yes 3542fi 3543if test -z "$ac_cpp_err"; then 3544 # Broken: success on invalid input. 3545continue 3546else 3547 echo "$as_me: failed program was:" >&5 3548sed 's/^/| /' conftest.$ac_ext >&5 3549 3550 # Passes both tests. 3551ac_preproc_ok=: 3552break 3553fi 3554 3555rm -f conftest.err conftest.$ac_ext 3556 3557done 3558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3559rm -f conftest.err conftest.$ac_ext 3560if $ac_preproc_ok; then 3561 break 3562fi 3563 3564 done 3565 ac_cv_prog_CPP=$CPP 3566 3567fi 3568 CPP=$ac_cv_prog_CPP 3569else 3570 ac_cv_prog_CPP=$CPP 3571fi 3572{ echo "$as_me:$LINENO: result: $CPP" >&5 3573echo "${ECHO_T}$CPP" >&6; } 3574ac_preproc_ok=false 3575for ac_c_preproc_warn_flag in '' yes 3576do 3577 # Use a header file that comes with gcc, so configuring glibc 3578 # with a fresh cross-compiler works. 3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3580 # <limits.h> exists even on freestanding compilers. 3581 # On the NeXT, cc -E runs the code through the compiler's parser, 3582 # not just through cpp. "Syntax error" is here to catch this case. 3583 cat >conftest.$ac_ext <<_ACEOF 3584/* confdefs.h. */ 3585_ACEOF 3586cat confdefs.h >>conftest.$ac_ext 3587cat >>conftest.$ac_ext <<_ACEOF 3588/* end confdefs.h. */ 3589#ifdef __STDC__ 3590# include <limits.h> 3591#else 3592# include <assert.h> 3593#endif 3594 Syntax error 3595_ACEOF 3596if { (ac_try="$ac_cpp conftest.$ac_ext" 3597case "(($ac_try" in 3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3599 *) ac_try_echo=$ac_try;; 3600esac 3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3603 ac_status=$? 3604 grep -v '^ *+' conftest.er1 >conftest.err 3605 rm -f conftest.er1 3606 cat conftest.err >&5 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); } >/dev/null; then 3609 if test -s conftest.err; then 3610 ac_cpp_err=$ac_c_preproc_warn_flag 3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3612 else 3613 ac_cpp_err= 3614 fi 3615else 3616 ac_cpp_err=yes 3617fi 3618if test -z "$ac_cpp_err"; then 3619 : 3620else 3621 echo "$as_me: failed program was:" >&5 3622sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 # Broken: fails on valid input. 3625continue 3626fi 3627 3628rm -f conftest.err conftest.$ac_ext 3629 3630 # OK, works on sane cases. Now check whether nonexistent headers 3631 # can be detected and how. 3632 cat >conftest.$ac_ext <<_ACEOF 3633/* confdefs.h. */ 3634_ACEOF 3635cat confdefs.h >>conftest.$ac_ext 3636cat >>conftest.$ac_ext <<_ACEOF 3637/* end confdefs.h. */ 3638#include <ac_nonexistent.h> 3639_ACEOF 3640if { (ac_try="$ac_cpp conftest.$ac_ext" 3641case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644esac 3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3647 ac_status=$? 3648 grep -v '^ *+' conftest.er1 >conftest.err 3649 rm -f conftest.er1 3650 cat conftest.err >&5 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); } >/dev/null; then 3653 if test -s conftest.err; then 3654 ac_cpp_err=$ac_c_preproc_warn_flag 3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3656 else 3657 ac_cpp_err= 3658 fi 3659else 3660 ac_cpp_err=yes 3661fi 3662if test -z "$ac_cpp_err"; then 3663 # Broken: success on invalid input. 3664continue 3665else 3666 echo "$as_me: failed program was:" >&5 3667sed 's/^/| /' conftest.$ac_ext >&5 3668 3669 # Passes both tests. 3670ac_preproc_ok=: 3671break 3672fi 3673 3674rm -f conftest.err conftest.$ac_ext 3675 3676done 3677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3678rm -f conftest.err conftest.$ac_ext 3679if $ac_preproc_ok; then 3680 : 3681else 3682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3683See \`config.log' for more details." >&5 3684echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3685See \`config.log' for more details." >&2;} 3686 { (exit 1); exit 1; }; } 3687fi 3688 3689ac_ext=c 3690ac_cpp='$CPP $CPPFLAGS' 3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3693ac_compiler_gnu=$ac_cv_c_compiler_gnu 3694 3695 3696{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3697echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3698if test "${ac_cv_path_GREP+set}" = set; then 3699 echo $ECHO_N "(cached) $ECHO_C" >&6 3700else 3701 # Extract the first word of "grep ggrep" to use in msg output 3702if test -z "$GREP"; then 3703set dummy grep ggrep; ac_prog_name=$2 3704if test "${ac_cv_path_GREP+set}" = set; then 3705 echo $ECHO_N "(cached) $ECHO_C" >&6 3706else 3707 ac_path_GREP_found=false 3708# Loop through the user's path and test for each of PROGNAME-LIST 3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3711do 3712 IFS=$as_save_IFS 3713 test -z "$as_dir" && as_dir=. 3714 for ac_prog in grep ggrep; do 3715 for ac_exec_ext in '' $ac_executable_extensions; do 3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3718 # Check for GNU ac_path_GREP and select it if it is found. 3719 # Check for GNU $ac_path_GREP 3720case `"$ac_path_GREP" --version 2>&1` in 3721*GNU*) 3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3723*) 3724 ac_count=0 3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3726 while : 3727 do 3728 cat "conftest.in" "conftest.in" >"conftest.tmp" 3729 mv "conftest.tmp" "conftest.in" 3730 cp "conftest.in" "conftest.nl" 3731 echo 'GREP' >> "conftest.nl" 3732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3734 ac_count=`expr $ac_count + 1` 3735 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3736 # Best one so far, save it but keep looking for a better one 3737 ac_cv_path_GREP="$ac_path_GREP" 3738 ac_path_GREP_max=$ac_count 3739 fi 3740 # 10*(2^10) chars as input seems more than enough 3741 test $ac_count -gt 10 && break 3742 done 3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3744esac 3745 3746 3747 $ac_path_GREP_found && break 3 3748 done 3749done 3750 3751done 3752IFS=$as_save_IFS 3753 3754 3755fi 3756 3757GREP="$ac_cv_path_GREP" 3758if test -z "$GREP"; then 3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3760echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3761 { (exit 1); exit 1; }; } 3762fi 3763 3764else 3765 ac_cv_path_GREP=$GREP 3766fi 3767 3768 3769fi 3770{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3771echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3772 GREP="$ac_cv_path_GREP" 3773 3774 3775{ echo "$as_me:$LINENO: checking for egrep" >&5 3776echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3777if test "${ac_cv_path_EGREP+set}" = set; then 3778 echo $ECHO_N "(cached) $ECHO_C" >&6 3779else 3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3781 then ac_cv_path_EGREP="$GREP -E" 3782 else 3783 # Extract the first word of "egrep" to use in msg output 3784if test -z "$EGREP"; then 3785set dummy egrep; ac_prog_name=$2 3786if test "${ac_cv_path_EGREP+set}" = set; then 3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3788else 3789 ac_path_EGREP_found=false 3790# Loop through the user's path and test for each of PROGNAME-LIST 3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3793do 3794 IFS=$as_save_IFS 3795 test -z "$as_dir" && as_dir=. 3796 for ac_prog in egrep; do 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3800 # Check for GNU ac_path_EGREP and select it if it is found. 3801 # Check for GNU $ac_path_EGREP 3802case `"$ac_path_EGREP" --version 2>&1` in 3803*GNU*) 3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3805*) 3806 ac_count=0 3807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3808 while : 3809 do 3810 cat "conftest.in" "conftest.in" >"conftest.tmp" 3811 mv "conftest.tmp" "conftest.in" 3812 cp "conftest.in" "conftest.nl" 3813 echo 'EGREP' >> "conftest.nl" 3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3816 ac_count=`expr $ac_count + 1` 3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3818 # Best one so far, save it but keep looking for a better one 3819 ac_cv_path_EGREP="$ac_path_EGREP" 3820 ac_path_EGREP_max=$ac_count 3821 fi 3822 # 10*(2^10) chars as input seems more than enough 3823 test $ac_count -gt 10 && break 3824 done 3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3826esac 3827 3828 3829 $ac_path_EGREP_found && break 3 3830 done 3831done 3832 3833done 3834IFS=$as_save_IFS 3835 3836 3837fi 3838 3839EGREP="$ac_cv_path_EGREP" 3840if test -z "$EGREP"; then 3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3842echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3843 { (exit 1); exit 1; }; } 3844fi 3845 3846else 3847 ac_cv_path_EGREP=$EGREP 3848fi 3849 3850 3851 fi 3852fi 3853{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3854echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3855 EGREP="$ac_cv_path_EGREP" 3856 3857 3858{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3859echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3860if test "${ac_cv_header_stdc+set}" = set; then 3861 echo $ECHO_N "(cached) $ECHO_C" >&6 3862else 3863 cat >conftest.$ac_ext <<_ACEOF 3864/* confdefs.h. */ 3865_ACEOF 3866cat confdefs.h >>conftest.$ac_ext 3867cat >>conftest.$ac_ext <<_ACEOF 3868/* end confdefs.h. */ 3869#include <stdlib.h> 3870#include <stdarg.h> 3871#include <string.h> 3872#include <float.h> 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882rm -f conftest.$ac_objext 3883if { (ac_try="$ac_compile" 3884case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3889 (eval "$ac_compile") 2>conftest.er1 3890 ac_status=$? 3891 grep -v '^ *+' conftest.er1 >conftest.err 3892 rm -f conftest.er1 3893 cat conftest.err >&5 3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3895 (exit $ac_status); } && 3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3897 { (case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3902 (eval "$ac_try") 2>&5 3903 ac_status=$? 3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 (exit $ac_status); }; } && 3906 { ac_try='test -s conftest.$ac_objext' 3907 { (case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3912 (eval "$ac_try") 2>&5 3913 ac_status=$? 3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3915 (exit $ac_status); }; }; then 3916 ac_cv_header_stdc=yes 3917else 3918 echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921 ac_cv_header_stdc=no 3922fi 3923 3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3925 3926if test $ac_cv_header_stdc = yes; then 3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3928 cat >conftest.$ac_ext <<_ACEOF 3929/* confdefs.h. */ 3930_ACEOF 3931cat confdefs.h >>conftest.$ac_ext 3932cat >>conftest.$ac_ext <<_ACEOF 3933/* end confdefs.h. */ 3934#include <string.h> 3935 3936_ACEOF 3937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3938 $EGREP "memchr" >/dev/null 2>&1; then 3939 : 3940else 3941 ac_cv_header_stdc=no 3942fi 3943rm -f conftest* 3944 3945fi 3946 3947if test $ac_cv_header_stdc = yes; then 3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3949 cat >conftest.$ac_ext <<_ACEOF 3950/* confdefs.h. */ 3951_ACEOF 3952cat confdefs.h >>conftest.$ac_ext 3953cat >>conftest.$ac_ext <<_ACEOF 3954/* end confdefs.h. */ 3955#include <stdlib.h> 3956 3957_ACEOF 3958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3959 $EGREP "free" >/dev/null 2>&1; then 3960 : 3961else 3962 ac_cv_header_stdc=no 3963fi 3964rm -f conftest* 3965 3966fi 3967 3968if test $ac_cv_header_stdc = yes; then 3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3970 if test "$cross_compiling" = yes; then 3971 : 3972else 3973 cat >conftest.$ac_ext <<_ACEOF 3974/* confdefs.h. */ 3975_ACEOF 3976cat confdefs.h >>conftest.$ac_ext 3977cat >>conftest.$ac_ext <<_ACEOF 3978/* end confdefs.h. */ 3979#include <ctype.h> 3980#include <stdlib.h> 3981#if ((' ' & 0x0FF) == 0x020) 3982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3984#else 3985# define ISLOWER(c) \ 3986 (('a' <= (c) && (c) <= 'i') \ 3987 || ('j' <= (c) && (c) <= 'r') \ 3988 || ('s' <= (c) && (c) <= 'z')) 3989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3990#endif 3991 3992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3993int 3994main () 3995{ 3996 int i; 3997 for (i = 0; i < 256; i++) 3998 if (XOR (islower (i), ISLOWER (i)) 3999 || toupper (i) != TOUPPER (i)) 4000 return 2; 4001 return 0; 4002} 4003_ACEOF 4004rm -f conftest$ac_exeext 4005if { (ac_try="$ac_link" 4006case "(($ac_try" in 4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4008 *) ac_try_echo=$ac_try;; 4009esac 4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4011 (eval "$ac_link") 2>&5 4012 ac_status=$? 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4015 { (case "(($ac_try" in 4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4017 *) ac_try_echo=$ac_try;; 4018esac 4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4020 (eval "$ac_try") 2>&5 4021 ac_status=$? 4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4023 (exit $ac_status); }; }; then 4024 : 4025else 4026 echo "$as_me: program exited with status $ac_status" >&5 4027echo "$as_me: failed program was:" >&5 4028sed 's/^/| /' conftest.$ac_ext >&5 4029 4030( exit $ac_status ) 4031ac_cv_header_stdc=no 4032fi 4033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4034fi 4035 4036 4037fi 4038fi 4039{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4040echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4041if test $ac_cv_header_stdc = yes; then 4042 4043cat >>confdefs.h <<\_ACEOF 4044#define STDC_HEADERS 1 4045_ACEOF 4046 4047fi 4048 4049# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4060 inttypes.h stdint.h unistd.h 4061do 4062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4063{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4066 echo $ECHO_N "(cached) $ECHO_C" >&6 4067else 4068 cat >conftest.$ac_ext <<_ACEOF 4069/* confdefs.h. */ 4070_ACEOF 4071cat confdefs.h >>conftest.$ac_ext 4072cat >>conftest.$ac_ext <<_ACEOF 4073/* end confdefs.h. */ 4074$ac_includes_default 4075 4076#include <$ac_header> 4077_ACEOF 4078rm -f conftest.$ac_objext 4079if { (ac_try="$ac_compile" 4080case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083esac 4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4085 (eval "$ac_compile") 2>conftest.er1 4086 ac_status=$? 4087 grep -v '^ *+' conftest.er1 >conftest.err 4088 rm -f conftest.er1 4089 cat conftest.err >&5 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4091 (exit $ac_status); } && 4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4093 { (case "(($ac_try" in 4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4095 *) ac_try_echo=$ac_try;; 4096esac 4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4098 (eval "$ac_try") 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; } && 4102 { ac_try='test -s conftest.$ac_objext' 4103 { (case "(($ac_try" in 4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4105 *) ac_try_echo=$ac_try;; 4106esac 4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4108 (eval "$ac_try") 2>&5 4109 ac_status=$? 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4111 (exit $ac_status); }; }; then 4112 eval "$as_ac_Header=yes" 4113else 4114 echo "$as_me: failed program was:" >&5 4115sed 's/^/| /' conftest.$ac_ext >&5 4116 4117 eval "$as_ac_Header=no" 4118fi 4119 4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4121fi 4122ac_res=`eval echo '${'$as_ac_Header'}'` 4123 { echo "$as_me:$LINENO: result: $ac_res" >&5 4124echo "${ECHO_T}$ac_res" >&6; } 4125if test `eval echo '${'$as_ac_Header'}'` = yes; then 4126 cat >>confdefs.h <<_ACEOF 4127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4128_ACEOF 4129 4130fi 4131 4132done 4133 4134 4135{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4137if test "${ac_cv_c_bigendian+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139else 4140 # See if sys/param.h defines the BYTE_ORDER macro. 4141cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147#include <sys/types.h> 4148#include <sys/param.h> 4149 4150int 4151main () 4152{ 4153#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4154 bogus endian macros 4155#endif 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161rm -f conftest.$ac_objext 4162if { (ac_try="$ac_compile" 4163case "(($ac_try" in 4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4165 *) ac_try_echo=$ac_try;; 4166esac 4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4168 (eval "$ac_compile") 2>conftest.er1 4169 ac_status=$? 4170 grep -v '^ *+' conftest.er1 >conftest.err 4171 rm -f conftest.er1 4172 cat conftest.err >&5 4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4174 (exit $ac_status); } && 4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4176 { (case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; } && 4185 { ac_try='test -s conftest.$ac_objext' 4186 { (case "(($ac_try" in 4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4188 *) ac_try_echo=$ac_try;; 4189esac 4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4191 (eval "$ac_try") 2>&5 4192 ac_status=$? 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); }; }; then 4195 # It does; now see whether it defined to BIG_ENDIAN or not. 4196cat >conftest.$ac_ext <<_ACEOF 4197/* confdefs.h. */ 4198_ACEOF 4199cat confdefs.h >>conftest.$ac_ext 4200cat >>conftest.$ac_ext <<_ACEOF 4201/* end confdefs.h. */ 4202#include <sys/types.h> 4203#include <sys/param.h> 4204 4205int 4206main () 4207{ 4208#if BYTE_ORDER != BIG_ENDIAN 4209 not big endian 4210#endif 4211 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216rm -f conftest.$ac_objext 4217if { (ac_try="$ac_compile" 4218case "(($ac_try" in 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4220 *) ac_try_echo=$ac_try;; 4221esac 4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4223 (eval "$ac_compile") 2>conftest.er1 4224 ac_status=$? 4225 grep -v '^ *+' conftest.er1 >conftest.err 4226 rm -f conftest.er1 4227 cat conftest.err >&5 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } && 4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4231 { (case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4236 (eval "$ac_try") 2>&5 4237 ac_status=$? 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); }; } && 4240 { ac_try='test -s conftest.$ac_objext' 4241 { (case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4246 (eval "$ac_try") 2>&5 4247 ac_status=$? 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); }; }; then 4250 ac_cv_c_bigendian=yes 4251else 4252 echo "$as_me: failed program was:" >&5 4253sed 's/^/| /' conftest.$ac_ext >&5 4254 4255 ac_cv_c_bigendian=no 4256fi 4257 4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4259else 4260 echo "$as_me: failed program was:" >&5 4261sed 's/^/| /' conftest.$ac_ext >&5 4262 4263 # It does not; compile a test program. 4264if test "$cross_compiling" = yes; then 4265 # try to guess the endianness by grepping values into an object file 4266 ac_cv_c_bigendian=unknown 4267 cat >conftest.$ac_ext <<_ACEOF 4268/* confdefs.h. */ 4269_ACEOF 4270cat confdefs.h >>conftest.$ac_ext 4271cat >>conftest.$ac_ext <<_ACEOF 4272/* end confdefs.h. */ 4273short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4274short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4276short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4277short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4279int 4280main () 4281{ 4282 _ascii (); _ebcdic (); 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287rm -f conftest.$ac_objext 4288if { (ac_try="$ac_compile" 4289case "(($ac_try" in 4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4291 *) ac_try_echo=$ac_try;; 4292esac 4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4294 (eval "$ac_compile") 2>conftest.er1 4295 ac_status=$? 4296 grep -v '^ *+' conftest.er1 >conftest.err 4297 rm -f conftest.er1 4298 cat conftest.err >&5 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); } && 4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4302 { (case "(($ac_try" in 4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4304 *) ac_try_echo=$ac_try;; 4305esac 4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4307 (eval "$ac_try") 2>&5 4308 ac_status=$? 4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4310 (exit $ac_status); }; } && 4311 { ac_try='test -s conftest.$ac_objext' 4312 { (case "(($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_try") 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); }; }; then 4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4322 ac_cv_c_bigendian=yes 4323fi 4324if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4325 if test "$ac_cv_c_bigendian" = unknown; then 4326 ac_cv_c_bigendian=no 4327 else 4328 # finding both strings is unlikely to happen, but who knows? 4329 ac_cv_c_bigendian=unknown 4330 fi 4331fi 4332else 4333 echo "$as_me: failed program was:" >&5 4334sed 's/^/| /' conftest.$ac_ext >&5 4335 4336 4337fi 4338 4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4340else 4341 cat >conftest.$ac_ext <<_ACEOF 4342/* confdefs.h. */ 4343_ACEOF 4344cat confdefs.h >>conftest.$ac_ext 4345cat >>conftest.$ac_ext <<_ACEOF 4346/* end confdefs.h. */ 4347$ac_includes_default 4348int 4349main () 4350{ 4351 4352 /* Are we little or big endian? From Harbison&Steele. */ 4353 union 4354 { 4355 long int l; 4356 char c[sizeof (long int)]; 4357 } u; 4358 u.l = 1; 4359 return u.c[sizeof (long int) - 1] == 1; 4360 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365rm -f conftest$ac_exeext 4366if { (ac_try="$ac_link" 4367case "(($ac_try" in 4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4369 *) ac_try_echo=$ac_try;; 4370esac 4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4372 (eval "$ac_link") 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4376 { (case "(($ac_try" in 4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4378 *) ac_try_echo=$ac_try;; 4379esac 4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4381 (eval "$ac_try") 2>&5 4382 ac_status=$? 4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4384 (exit $ac_status); }; }; then 4385 ac_cv_c_bigendian=no 4386else 4387 echo "$as_me: program exited with status $ac_status" >&5 4388echo "$as_me: failed program was:" >&5 4389sed 's/^/| /' conftest.$ac_ext >&5 4390 4391( exit $ac_status ) 4392ac_cv_c_bigendian=yes 4393fi 4394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4395fi 4396 4397 4398fi 4399 4400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4401fi 4402{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4403echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4404case $ac_cv_c_bigendian in 4405 yes) 4406 ENDIAN=big 4407 ;; 4408 no) 4409 ENDIAN=little 4410 ;; 4411 *) 4412 { { echo "$as_me:$LINENO: error: unknown endianness 4413presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4414echo "$as_me: error: unknown endianness 4415presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4416 { (exit 1); exit 1; }; } ;; 4417esac 4418 4419 4420if test "$cross_compiling" = yes; then 4421 LLVM_CROSS_COMPILING=1 4422 4423 4424{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4425echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4426if test "${ac_cv_build_exeext+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4430 ac_cv_build_exeext=.exe 4431else 4432 ac_build_prefix=${build_alias}- 4433 4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4435set dummy ${ac_build_prefix}gcc; ac_word=$2 4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4439 echo $ECHO_N "(cached) $ECHO_C" >&6 4440else 4441 if test -n "$BUILD_CC"; then 4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4443else 4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4445for as_dir in $PATH 4446do 4447 IFS=$as_save_IFS 4448 test -z "$as_dir" && as_dir=. 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4453 break 2 4454 fi 4455done 4456done 4457IFS=$as_save_IFS 4458 4459fi 4460fi 4461BUILD_CC=$ac_cv_prog_BUILD_CC 4462if test -n "$BUILD_CC"; then 4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4464echo "${ECHO_T}$BUILD_CC" >&6; } 4465else 4466 { echo "$as_me:$LINENO: result: no" >&5 4467echo "${ECHO_T}no" >&6; } 4468fi 4469 4470 4471 if test -z "$BUILD_CC"; then 4472 # Extract the first word of "gcc", so it can be a program name with args. 4473set dummy gcc; ac_word=$2 4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4478else 4479 if test -n "$BUILD_CC"; then 4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4481else 4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4489 ac_cv_prog_BUILD_CC="gcc" 4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 break 2 4492 fi 4493done 4494done 4495IFS=$as_save_IFS 4496 4497fi 4498fi 4499BUILD_CC=$ac_cv_prog_BUILD_CC 4500if test -n "$BUILD_CC"; then 4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4502echo "${ECHO_T}$BUILD_CC" >&6; } 4503else 4504 { echo "$as_me:$LINENO: result: no" >&5 4505echo "${ECHO_T}no" >&6; } 4506fi 4507 4508 4509 if test -z "$BUILD_CC"; then 4510 # Extract the first word of "cc", so it can be a program name with args. 4511set dummy cc; ac_word=$2 4512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4514if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4515 echo $ECHO_N "(cached) $ECHO_C" >&6 4516else 4517 if test -n "$BUILD_CC"; then 4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4519else 4520 ac_prog_rejected=no 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4529 ac_prog_rejected=yes 4530 continue 4531 fi 4532 ac_cv_prog_BUILD_CC="cc" 4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536done 4537done 4538IFS=$as_save_IFS 4539 4540if test $ac_prog_rejected = yes; then 4541 # We found a bogon in the path, so make sure we never use it. 4542 set dummy $ac_cv_prog_BUILD_CC 4543 shift 4544 if test $# != 0; then 4545 # We chose a different compiler from the bogus one. 4546 # However, it has the same basename, so the bogon will be chosen 4547 # first if we set BUILD_CC to just the basename; use the full file name. 4548 shift 4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4550 fi 4551fi 4552fi 4553fi 4554BUILD_CC=$ac_cv_prog_BUILD_CC 4555if test -n "$BUILD_CC"; then 4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4557echo "${ECHO_T}$BUILD_CC" >&6; } 4558else 4559 { echo "$as_me:$LINENO: result: no" >&5 4560echo "${ECHO_T}no" >&6; } 4561fi 4562 4563 4564 fi 4565 fi 4566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4567echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4568 { (exit 1); exit 1; }; } 4569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4570 rm -f conftest* 4571 echo 'int main () { return 0; }' > conftest.$ac_ext 4572 ac_cv_build_exeext= 4573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4574 (eval $ac_build_link) 2>&5 4575 ac_status=$? 4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4577 (exit $ac_status); }; then 4578 for file in conftest.*; do 4579 case $file in 4580 *.c | *.o | *.obj | *.dSYM) ;; 4581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4582 esac 4583 done 4584 else 4585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4586echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4587 { (exit 1); exit 1; }; } 4588 fi 4589 rm -f conftest* 4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4591fi 4592fi 4593 4594BUILD_EXEEXT="" 4595test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4596{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4597echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4598ac_build_exeext=$BUILD_EXEEXT 4599 4600 ac_build_prefix=${build_alias}- 4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4602set dummy ${ac_build_prefix}g++; ac_word=$2 4603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4606 echo $ECHO_N "(cached) $ECHO_C" >&6 4607else 4608 if test -n "$BUILD_CXX"; then 4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4610else 4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612for as_dir in $PATH 4613do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623done 4624IFS=$as_save_IFS 4625 4626fi 4627fi 4628BUILD_CXX=$ac_cv_prog_BUILD_CXX 4629if test -n "$BUILD_CXX"; then 4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4631echo "${ECHO_T}$BUILD_CXX" >&6; } 4632else 4633 { echo "$as_me:$LINENO: result: no" >&5 4634echo "${ECHO_T}no" >&6; } 4635fi 4636 4637 4638 if test -z "$BUILD_CXX"; then 4639 # Extract the first word of "g++", so it can be a program name with args. 4640set dummy g++; ac_word=$2 4641{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4644 echo $ECHO_N "(cached) $ECHO_C" >&6 4645else 4646 if test -n "$BUILD_CXX"; then 4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4648else 4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4656 ac_cv_prog_BUILD_CXX="g++" 4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661done 4662IFS=$as_save_IFS 4663 4664fi 4665fi 4666BUILD_CXX=$ac_cv_prog_BUILD_CXX 4667if test -n "$BUILD_CXX"; then 4668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4669echo "${ECHO_T}$BUILD_CXX" >&6; } 4670else 4671 { echo "$as_me:$LINENO: result: no" >&5 4672echo "${ECHO_T}no" >&6; } 4673fi 4674 4675 4676 if test -z "$BUILD_CXX"; then 4677 # Extract the first word of "c++", so it can be a program name with args. 4678set dummy c++; ac_word=$2 4679{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4681if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4682 echo $ECHO_N "(cached) $ECHO_C" >&6 4683else 4684 if test -n "$BUILD_CXX"; then 4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4686else 4687 ac_prog_rejected=no 4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4689for as_dir in $PATH 4690do 4691 IFS=$as_save_IFS 4692 test -z "$as_dir" && as_dir=. 4693 for ac_exec_ext in '' $ac_executable_extensions; do 4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4696 ac_prog_rejected=yes 4697 continue 4698 fi 4699 ac_cv_prog_BUILD_CXX="c++" 4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704done 4705IFS=$as_save_IFS 4706 4707if test $ac_prog_rejected = yes; then 4708 # We found a bogon in the path, so make sure we never use it. 4709 set dummy $ac_cv_prog_BUILD_CXX 4710 shift 4711 if test $# != 0; then 4712 # We chose a different compiler from the bogus one. 4713 # However, it has the same basename, so the bogon will be chosen 4714 # first if we set BUILD_CXX to just the basename; use the full file name. 4715 shift 4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4717 fi 4718fi 4719fi 4720fi 4721BUILD_CXX=$ac_cv_prog_BUILD_CXX 4722if test -n "$BUILD_CXX"; then 4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4724echo "${ECHO_T}$BUILD_CXX" >&6; } 4725else 4726 { echo "$as_me:$LINENO: result: no" >&5 4727echo "${ECHO_T}no" >&6; } 4728fi 4729 4730 4731 fi 4732 fi 4733else 4734 LLVM_CROSS_COMPILING=0 4735 4736fi 4737 4738if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4739 cvsbuild="yes" 4740 optimize="no" 4741 CVSBUILD=CVSBUILD=1 4742 4743else 4744 cvsbuild="no" 4745 optimize="yes" 4746fi 4747 4748 4749# Check whether --enable-optimized was given. 4750if test "${enable_optimized+set}" = set; then 4751 enableval=$enable_optimized; 4752else 4753 enableval=$optimize 4754fi 4755 4756if test ${enableval} = "no" ; then 4757 ENABLE_OPTIMIZED= 4758 4759else 4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4761 4762fi 4763 4764# Check whether --enable-profiling was given. 4765if test "${enable_profiling+set}" = set; then 4766 enableval=$enable_profiling; 4767else 4768 enableval="no" 4769fi 4770 4771if test ${enableval} = "no" ; then 4772 ENABLE_PROFILING= 4773 4774else 4775 ENABLE_PROFILING=ENABLE_PROFILING=1 4776 4777fi 4778 4779# Check whether --enable-assertions was given. 4780if test "${enable_assertions+set}" = set; then 4781 enableval=$enable_assertions; 4782else 4783 enableval="yes" 4784fi 4785 4786if test ${enableval} = "yes" ; then 4787 DISABLE_ASSERTIONS= 4788 4789else 4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4791 4792fi 4793 4794# Check whether --enable-expensive-checks was given. 4795if test "${enable_expensive_checks+set}" = set; then 4796 enableval=$enable_expensive_checks; 4797else 4798 enableval="no" 4799fi 4800 4801if test ${enableval} = "yes" ; then 4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4803 4804 EXPENSIVE_CHECKS=yes 4805 4806else 4807 ENABLE_EXPENSIVE_CHECKS= 4808 4809 EXPENSIVE_CHECKS=no 4810 4811fi 4812 4813# Check whether --enable-debug-runtime was given. 4814if test "${enable_debug_runtime+set}" = set; then 4815 enableval=$enable_debug_runtime; 4816else 4817 enableval=no 4818fi 4819 4820if test ${enableval} = "no" ; then 4821 DEBUG_RUNTIME= 4822 4823else 4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4825 4826fi 4827 4828# Check whether --enable-debug-symbols was given. 4829if test "${enable_debug_symbols+set}" = set; then 4830 enableval=$enable_debug_symbols; 4831else 4832 enableval=no 4833fi 4834 4835if test ${enableval} = "no" ; then 4836 DEBUG_SYMBOLS= 4837 4838else 4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4840 4841fi 4842 4843# Check whether --enable-jit was given. 4844if test "${enable_jit+set}" = set; then 4845 enableval=$enable_jit; 4846else 4847 enableval=default 4848fi 4849 4850if test ${enableval} = "no" 4851then 4852 JIT= 4853 4854else 4855 case "$llvm_cv_target_arch" in 4856 x86) TARGET_HAS_JIT=1 4857 ;; 4858 Sparc) TARGET_HAS_JIT=0 4859 ;; 4860 PowerPC) TARGET_HAS_JIT=1 4861 ;; 4862 x86_64) TARGET_HAS_JIT=1 4863 ;; 4864 Alpha) TARGET_HAS_JIT=0 4865 ;; 4866 ARM) TARGET_HAS_JIT=1 4867 ;; 4868 Mips) TARGET_HAS_JIT=0 4869 ;; 4870 XCore) TARGET_HAS_JIT=0 4871 ;; 4872 MSP430) TARGET_HAS_JIT=0 4873 ;; 4874 SystemZ) TARGET_HAS_JIT=0 4875 ;; 4876 Blackfin) TARGET_HAS_JIT=0 4877 ;; 4878 MBlaze) TARGET_HAS_JIT=0 4879 ;; 4880 PTX) TARGET_HAS_JIT=0 4881 ;; 4882 *) TARGET_HAS_JIT=0 4883 ;; 4884 esac 4885fi 4886 4887# Check whether --enable-docs was given. 4888if test "${enable_docs+set}" = set; then 4889 enableval=$enable_docs; 4890else 4891 enableval=default 4892fi 4893 4894case "$enableval" in 4895 yes) ENABLE_DOCS=1 4896 ;; 4897 no) ENABLE_DOCS=0 4898 ;; 4899 default) ENABLE_DOCS=1 4900 ;; 4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 4902echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 4903 { (exit 1); exit 1; }; } ;; 4904esac 4905 4906# Check whether --enable-doxygen was given. 4907if test "${enable_doxygen+set}" = set; then 4908 enableval=$enable_doxygen; 4909else 4910 enableval=default 4911fi 4912 4913case "$enableval" in 4914 yes) ENABLE_DOXYGEN=1 4915 ;; 4916 no) ENABLE_DOXYGEN=0 4917 ;; 4918 default) ENABLE_DOXYGEN=0 4919 ;; 4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4921echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4922 { (exit 1); exit 1; }; } ;; 4923esac 4924 4925# Check whether --enable-threads was given. 4926if test "${enable_threads+set}" = set; then 4927 enableval=$enable_threads; 4928else 4929 enableval=default 4930fi 4931 4932case "$enableval" in 4933 yes) ENABLE_THREADS=1 4934 ;; 4935 no) ENABLE_THREADS=0 4936 ;; 4937 default) ENABLE_THREADS=1 4938 ;; 4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4940echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4941 { (exit 1); exit 1; }; } ;; 4942esac 4943 4944cat >>confdefs.h <<_ACEOF 4945#define ENABLE_THREADS $ENABLE_THREADS 4946_ACEOF 4947 4948 4949# Check whether --enable-pthreads was given. 4950if test "${enable_pthreads+set}" = set; then 4951 enableval=$enable_pthreads; 4952else 4953 enableval=default 4954fi 4955 4956case "$enableval" in 4957 yes) ENABLE_PTHREADS=1 4958 ;; 4959 no) ENABLE_PTHREADS=0 4960 ;; 4961 default) ENABLE_PTHREADS=1 4962 ;; 4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 4964echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 4965 { (exit 1); exit 1; }; } ;; 4966esac 4967 4968# Check whether --enable-pic was given. 4969if test "${enable_pic+set}" = set; then 4970 enableval=$enable_pic; 4971else 4972 enableval=default 4973fi 4974 4975case "$enableval" in 4976 yes) ENABLE_PIC=1 4977 ;; 4978 no) ENABLE_PIC=0 4979 ;; 4980 default) ENABLE_PIC=1 4981 ;; 4982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4983echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4984 { (exit 1); exit 1; }; } ;; 4985esac 4986 4987cat >>confdefs.h <<_ACEOF 4988#define ENABLE_PIC $ENABLE_PIC 4989_ACEOF 4990 4991 4992# Check whether --enable-shared was given. 4993if test "${enable_shared+set}" = set; then 4994 enableval=$enable_shared; 4995else 4996 enableval=default 4997fi 4998 4999case "$enableval" in 5000 yes) ENABLE_SHARED=1 5001 ;; 5002 no) ENABLE_SHARED=0 5003 ;; 5004 default) ENABLE_SHARED=0 5005 ;; 5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5007echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5008 { (exit 1); exit 1; }; } ;; 5009esac 5010 5011# Check whether --enable-embed-stdcxx was given. 5012if test "${enable_embed_stdcxx+set}" = set; then 5013 enableval=$enable_embed_stdcxx; 5014else 5015 enableval=default 5016fi 5017 5018case "$enableval" in 5019 yes) ENABLE_EMBED_STDCXX=1 5020 ;; 5021 no) ENABLE_EMBED_STDCXX=0 5022 ;; 5023 default) ENABLE_EMBED_STDCXX=1 5024 ;; 5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5026echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5027 { (exit 1); exit 1; }; } ;; 5028esac 5029 5030# Check whether --enable-timestamps was given. 5031if test "${enable_timestamps+set}" = set; then 5032 enableval=$enable_timestamps; 5033else 5034 enableval=default 5035fi 5036 5037case "$enableval" in 5038 yes) ENABLE_TIMESTAMPS=1 5039 ;; 5040 no) ENABLE_TIMESTAMPS=0 5041 ;; 5042 default) ENABLE_TIMESTAMPS=1 5043 ;; 5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5045echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5046 { (exit 1); exit 1; }; } ;; 5047esac 5048 5049cat >>confdefs.h <<_ACEOF 5050#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5051_ACEOF 5052 5053 5054TARGETS_TO_BUILD="" 5055# Check whether --enable-targets was given. 5056if test "${enable_targets+set}" = set; then 5057 enableval=$enable_targets; 5058else 5059 enableval=all 5060fi 5061 5062if test "$enableval" = host-only ; then 5063 enableval=host 5064fi 5065case "$enableval" in 5066 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; 5067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5068 case "$a_target" in 5069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 5082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5085 host) case "$llvm_cv_target_arch" in 5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5101echo "$as_me: error: Can not set target to build" >&2;} 5102 { (exit 1); exit 1; }; } ;; 5103 esac ;; 5104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5105echo "$as_me: error: Unrecognized target $a_target" >&2;} 5106 { (exit 1); exit 1; }; } ;; 5107 esac 5108 done 5109 ;; 5110esac 5111TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5112 5113 5114# Determine whether we are building LLVM support for the native architecture. 5115# If so, define LLVM_NATIVE_ARCH to that LLVM target. 5116for a_target in $TARGETS_TO_BUILD; do 5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5118 5119cat >>confdefs.h <<_ACEOF 5120#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5121_ACEOF 5122 5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5125 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo" 5126 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo" 5127 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5128 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5129 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5130 fi 5131 5132cat >>confdefs.h <<_ACEOF 5133#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5134_ACEOF 5135 5136 5137cat >>confdefs.h <<_ACEOF 5138#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5139_ACEOF 5140 5141 5142cat >>confdefs.h <<_ACEOF 5143#define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO 5144_ACEOF 5145 5146 5147cat >>confdefs.h <<_ACEOF 5148#define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO 5149_ACEOF 5150 5151 5152cat >>confdefs.h <<_ACEOF 5153#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5154_ACEOF 5155 5156 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5157 5158cat >>confdefs.h <<_ACEOF 5159#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5160_ACEOF 5161 5162 fi 5163 fi 5164done 5165 5166# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5167# target feature def files. 5168LLVM_ENUM_TARGETS="" 5169LLVM_ENUM_ASM_PRINTERS="" 5170LLVM_ENUM_ASM_PARSERS="" 5171LLVM_ENUM_DISASSEMBLERS="" 5172for target_to_build in $TARGETS_TO_BUILD; do 5173 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5174 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5175 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5176 fi 5177 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5178 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5179 fi 5180 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5181 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5182 fi 5183done 5184 5185 5186 5187 5188 5189# Check whether --enable-cbe-printf-a was given. 5190if test "${enable_cbe_printf_a+set}" = set; then 5191 enableval=$enable_cbe_printf_a; 5192else 5193 enableval=default 5194fi 5195 5196case "$enableval" in 5197 yes) ENABLE_CBE_PRINTF_A=1 5198 ;; 5199 no) ENABLE_CBE_PRINTF_A=0 5200 ;; 5201 default) ENABLE_CBE_PRINTF_A=1 5202 ;; 5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 5204echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 5205 { (exit 1); exit 1; }; } ;; 5206esac 5207 5208cat >>confdefs.h <<_ACEOF 5209#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 5210_ACEOF 5211 5212 5213 5214# Check whether --with-llvmgccdir was given. 5215if test "${with_llvmgccdir+set}" = set; then 5216 withval=$with_llvmgccdir; 5217else 5218 withval=default 5219fi 5220 5221case "$withval" in 5222 default) WITH_LLVMGCCDIR=default ;; 5223 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 5224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 5225echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 5226 { (exit 1); exit 1; }; } ;; 5227esac 5228 5229 5230# Check whether --with-llvmgcc was given. 5231if test "${with_llvmgcc+set}" = set; then 5232 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 5233 WITH_LLVMGCCDIR="" 5234fi 5235 5236 5237 5238# Check whether --with-llvmgxx was given. 5239if test "${with_llvmgxx+set}" = set; then 5240 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5241 WITH_LLVMGCCDIR="" 5242fi 5243 5244 5245if test -n "$LLVMGCC"; then 5246 LLVMGCCCOMMAND="$LLVMGCC" 5247fi 5248 5249if test -n "$LLVMGXX"; then 5250 LLVMGXXCOMMAND="$LLVMGXX" 5251fi 5252 5253if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5254 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5255echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5256 { (exit 1); exit 1; }; }; 5257fi 5258 5259if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5260 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5261echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5262 { (exit 1); exit 1; }; }; 5263fi 5264 5265 5266# Check whether --with-clang was given. 5267if test "${with_clang+set}" = set; then 5268 withval=$with_clang; 5269else 5270 with_clang=default 5271fi 5272 5273 5274 5275# Check whether --with-built-clang was given. 5276if test "${with_built_clang+set}" = set; then 5277 withval=$with_built_clang; 5278else 5279 with_built_clang=check 5280fi 5281 5282 5283{ echo "$as_me:$LINENO: checking clang compiler" >&5 5284echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } 5285WITH_CLANGPATH="" 5286WITH_BUILT_CLANG=0 5287if test "$with_clang" != "default"; then 5288 WITH_CLANGPATH="$with_clang" 5289 if ! test -x "$WITH_CLANGPATH"; then 5290 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 5291echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} 5292 { (exit 1); exit 1; }; } 5293 fi 5294elif test "$with_built_clang" = "yes"; then 5295 WITH_BUILT_CLANG=1 5296elif test "$with_built_clang" = "no"; then 5297 WITH_BUILT_CLANG=0 5298else 5299 if test "$with_built_clang" != "check"; then 5300 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 5301echo "$as_me: error: invalid value for --with-built-clang." >&2;} 5302 { (exit 1); exit 1; }; } 5303 fi 5304 5305 if test -f ${srcdir}/tools/clang/README.txt; then 5306 WITH_BUILT_CLANG=1 5307 fi 5308fi 5309 5310if ! test -z "$WITH_CLANGPATH"; then 5311 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 5312echo "${ECHO_T}$WITH_CLANGPATH" >&6; } 5313 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` 5314elif test "$WITH_BUILT_CLANG" = "1"; then 5315 { echo "$as_me:$LINENO: result: built" >&5 5316echo "${ECHO_T}built" >&6; } 5317else 5318 { echo "$as_me:$LINENO: result: none" >&5 5319echo "${ECHO_T}none" >&6; } 5320fi 5321CLANGPATH=$WITH_CLANGPATH 5322 5323CLANGXXPATH=$WITH_CLANGXXPATH 5324 5325ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG 5326 5327 5328 5329# Check whether --with-optimize-option was given. 5330if test "${with_optimize_option+set}" = set; then 5331 withval=$with_optimize_option; 5332else 5333 withval=default 5334fi 5335 5336{ echo "$as_me:$LINENO: checking optimization flags" >&5 5337echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5338case "$withval" in 5339 default) 5340 case "$llvm_cv_os_type" in 5341 FreeBSD) optimize_option=-O2 ;; 5342 MingW) optimize_option=-O2 ;; 5343 *) optimize_option=-O3 ;; 5344 esac ;; 5345 *) optimize_option="$withval" ;; 5346esac 5347OPTIMIZE_OPTION=$optimize_option 5348 5349{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5350echo "${ECHO_T}$optimize_option" >&6; } 5351 5352 5353# Check whether --with-extra-options was given. 5354if test "${with_extra_options+set}" = set; then 5355 withval=$with_extra_options; 5356else 5357 withval=default 5358fi 5359 5360case "$withval" in 5361 default) EXTRA_OPTIONS= ;; 5362 *) EXTRA_OPTIONS=$withval ;; 5363esac 5364EXTRA_OPTIONS=$EXTRA_OPTIONS 5365 5366 5367 5368# Check whether --with-extra-ld-options was given. 5369if test "${with_extra_ld_options+set}" = set; then 5370 withval=$with_extra_ld_options; 5371else 5372 withval=default 5373fi 5374 5375case "$withval" in 5376 default) EXTRA_LD_OPTIONS= ;; 5377 *) EXTRA_LD_OPTIONS=$withval ;; 5378esac 5379EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5380 5381 5382# Check whether --enable-bindings was given. 5383if test "${enable_bindings+set}" = set; then 5384 enableval=$enable_bindings; 5385else 5386 enableval=default 5387fi 5388 5389BINDINGS_TO_BUILD="" 5390case "$enableval" in 5391 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5392 all ) BINDINGS_TO_BUILD="ocaml" ;; 5393 none | no) BINDINGS_TO_BUILD="" ;; 5394 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5395 case "$a_binding" in 5396 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5397 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5398echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5399 { (exit 1); exit 1; }; } ;; 5400 esac 5401 done 5402 ;; 5403esac 5404 5405 5406# Check whether --with-ocaml-libdir was given. 5407if test "${with_ocaml_libdir+set}" = set; then 5408 withval=$with_ocaml_libdir; 5409else 5410 withval=auto 5411fi 5412 5413case "$withval" in 5414 auto) with_ocaml_libdir="$withval" ;; 5415 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5416 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5417echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5418 { (exit 1); exit 1; }; } ;; 5419esac 5420 5421 5422# Check whether --with-clang-resource-dir was given. 5423if test "${with_clang_resource_dir+set}" = set; then 5424 withval=$with_clang_resource_dir; 5425else 5426 withval="" 5427fi 5428 5429 5430cat >>confdefs.h <<_ACEOF 5431#define CLANG_RESOURCE_DIR "$withval" 5432_ACEOF 5433 5434 5435 5436# Check whether --with-c-include-dirs was given. 5437if test "${with_c_include_dirs+set}" = set; then 5438 withval=$with_c_include_dirs; 5439else 5440 withval="" 5441fi 5442 5443 5444cat >>confdefs.h <<_ACEOF 5445#define C_INCLUDE_DIRS "$withval" 5446_ACEOF 5447 5448 5449 5450# Check whether --with-cxx-include-root was given. 5451if test "${with_cxx_include_root+set}" = set; then 5452 withval=$with_cxx_include_root; 5453else 5454 withval="" 5455fi 5456 5457 5458cat >>confdefs.h <<_ACEOF 5459#define CXX_INCLUDE_ROOT "$withval" 5460_ACEOF 5461 5462 5463 5464# Check whether --with-cxx-include-arch was given. 5465if test "${with_cxx_include_arch+set}" = set; then 5466 withval=$with_cxx_include_arch; 5467else 5468 withval="" 5469fi 5470 5471 5472cat >>confdefs.h <<_ACEOF 5473#define CXX_INCLUDE_ARCH "$withval" 5474_ACEOF 5475 5476 5477 5478# Check whether --with-cxx-include-32bit-dir was given. 5479if test "${with_cxx_include_32bit_dir+set}" = set; then 5480 withval=$with_cxx_include_32bit_dir; 5481else 5482 withval="" 5483fi 5484 5485 5486cat >>confdefs.h <<_ACEOF 5487#define CXX_INCLUDE_32BIT_DIR "$withval" 5488_ACEOF 5489 5490 5491 5492# Check whether --with-cxx-include-64bit-dir was given. 5493if test "${with_cxx_include_64bit_dir+set}" = set; then 5494 withval=$with_cxx_include_64bit_dir; 5495else 5496 withval="" 5497fi 5498 5499 5500cat >>confdefs.h <<_ACEOF 5501#define CXX_INCLUDE_64BIT_DIR "$withval" 5502_ACEOF 5503 5504 5505 5506# Check whether --with-binutils-include was given. 5507if test "${with_binutils_include+set}" = set; then 5508 withval=$with_binutils_include; 5509else 5510 withval=default 5511fi 5512 5513case "$withval" in 5514 default) WITH_BINUTILS_INCDIR=default ;; 5515 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5516 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5517echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5518 { (exit 1); exit 1; }; } ;; 5519esac 5520if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5521 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5522 5523 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5524 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5525 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5526echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5527 { (exit 1); exit 1; }; }; 5528 fi 5529fi 5530 5531 5532# Check whether --with-bug-report-url was given. 5533if test "${with_bug_report_url+set}" = set; then 5534 withval=$with_bug_report_url; 5535else 5536 withval="http://llvm.org" 5537fi 5538 5539 5540cat >>confdefs.h <<_ACEOF 5541#define BUG_REPORT_URL "$withval" 5542_ACEOF 5543 5544 5545# Check whether --enable-libffi was given. 5546if test "${enable_libffi+set}" = set; then 5547 enableval=$enable_libffi; case "$enableval" in 5548 yes) llvm_cv_enable_libffi="yes" ;; 5549 no) llvm_cv_enable_libffi="no" ;; 5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5551echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5552 { (exit 1); exit 1; }; } ;; 5553 esac 5554else 5555 llvm_cv_enable_libffi=no 5556fi 5557 5558 5559 5560ac_ext=c 5561ac_cpp='$CPP $CPPFLAGS' 5562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5564ac_compiler_gnu=$ac_cv_c_compiler_gnu 5565{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5566echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5567# On Suns, sometimes $CPP names a directory. 5568if test -n "$CPP" && test -d "$CPP"; then 5569 CPP= 5570fi 5571if test -z "$CPP"; then 5572 if test "${ac_cv_prog_CPP+set}" = set; then 5573 echo $ECHO_N "(cached) $ECHO_C" >&6 5574else 5575 # Double quotes because CPP needs to be expanded 5576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5577 do 5578 ac_preproc_ok=false 5579for ac_c_preproc_warn_flag in '' yes 5580do 5581 # Use a header file that comes with gcc, so configuring glibc 5582 # with a fresh cross-compiler works. 5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5584 # <limits.h> exists even on freestanding compilers. 5585 # On the NeXT, cc -E runs the code through the compiler's parser, 5586 # not just through cpp. "Syntax error" is here to catch this case. 5587 cat >conftest.$ac_ext <<_ACEOF 5588/* confdefs.h. */ 5589_ACEOF 5590cat confdefs.h >>conftest.$ac_ext 5591cat >>conftest.$ac_ext <<_ACEOF 5592/* end confdefs.h. */ 5593#ifdef __STDC__ 5594# include <limits.h> 5595#else 5596# include <assert.h> 5597#endif 5598 Syntax error 5599_ACEOF 5600if { (ac_try="$ac_cpp conftest.$ac_ext" 5601case "(($ac_try" in 5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5603 *) ac_try_echo=$ac_try;; 5604esac 5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5607 ac_status=$? 5608 grep -v '^ *+' conftest.er1 >conftest.err 5609 rm -f conftest.er1 5610 cat conftest.err >&5 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); } >/dev/null; then 5613 if test -s conftest.err; then 5614 ac_cpp_err=$ac_c_preproc_warn_flag 5615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5616 else 5617 ac_cpp_err= 5618 fi 5619else 5620 ac_cpp_err=yes 5621fi 5622if test -z "$ac_cpp_err"; then 5623 : 5624else 5625 echo "$as_me: failed program was:" >&5 5626sed 's/^/| /' conftest.$ac_ext >&5 5627 5628 # Broken: fails on valid input. 5629continue 5630fi 5631 5632rm -f conftest.err conftest.$ac_ext 5633 5634 # OK, works on sane cases. Now check whether nonexistent headers 5635 # can be detected and how. 5636 cat >conftest.$ac_ext <<_ACEOF 5637/* confdefs.h. */ 5638_ACEOF 5639cat confdefs.h >>conftest.$ac_ext 5640cat >>conftest.$ac_ext <<_ACEOF 5641/* end confdefs.h. */ 5642#include <ac_nonexistent.h> 5643_ACEOF 5644if { (ac_try="$ac_cpp conftest.$ac_ext" 5645case "(($ac_try" in 5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5647 *) ac_try_echo=$ac_try;; 5648esac 5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5651 ac_status=$? 5652 grep -v '^ *+' conftest.er1 >conftest.err 5653 rm -f conftest.er1 5654 cat conftest.err >&5 5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5656 (exit $ac_status); } >/dev/null; then 5657 if test -s conftest.err; then 5658 ac_cpp_err=$ac_c_preproc_warn_flag 5659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5660 else 5661 ac_cpp_err= 5662 fi 5663else 5664 ac_cpp_err=yes 5665fi 5666if test -z "$ac_cpp_err"; then 5667 # Broken: success on invalid input. 5668continue 5669else 5670 echo "$as_me: failed program was:" >&5 5671sed 's/^/| /' conftest.$ac_ext >&5 5672 5673 # Passes both tests. 5674ac_preproc_ok=: 5675break 5676fi 5677 5678rm -f conftest.err conftest.$ac_ext 5679 5680done 5681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5682rm -f conftest.err conftest.$ac_ext 5683if $ac_preproc_ok; then 5684 break 5685fi 5686 5687 done 5688 ac_cv_prog_CPP=$CPP 5689 5690fi 5691 CPP=$ac_cv_prog_CPP 5692else 5693 ac_cv_prog_CPP=$CPP 5694fi 5695{ echo "$as_me:$LINENO: result: $CPP" >&5 5696echo "${ECHO_T}$CPP" >&6; } 5697ac_preproc_ok=false 5698for ac_c_preproc_warn_flag in '' yes 5699do 5700 # Use a header file that comes with gcc, so configuring glibc 5701 # with a fresh cross-compiler works. 5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5703 # <limits.h> exists even on freestanding compilers. 5704 # On the NeXT, cc -E runs the code through the compiler's parser, 5705 # not just through cpp. "Syntax error" is here to catch this case. 5706 cat >conftest.$ac_ext <<_ACEOF 5707/* confdefs.h. */ 5708_ACEOF 5709cat confdefs.h >>conftest.$ac_ext 5710cat >>conftest.$ac_ext <<_ACEOF 5711/* end confdefs.h. */ 5712#ifdef __STDC__ 5713# include <limits.h> 5714#else 5715# include <assert.h> 5716#endif 5717 Syntax error 5718_ACEOF 5719if { (ac_try="$ac_cpp conftest.$ac_ext" 5720case "(($ac_try" in 5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5722 *) ac_try_echo=$ac_try;; 5723esac 5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5726 ac_status=$? 5727 grep -v '^ *+' conftest.er1 >conftest.err 5728 rm -f conftest.er1 5729 cat conftest.err >&5 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); } >/dev/null; then 5732 if test -s conftest.err; then 5733 ac_cpp_err=$ac_c_preproc_warn_flag 5734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5735 else 5736 ac_cpp_err= 5737 fi 5738else 5739 ac_cpp_err=yes 5740fi 5741if test -z "$ac_cpp_err"; then 5742 : 5743else 5744 echo "$as_me: failed program was:" >&5 5745sed 's/^/| /' conftest.$ac_ext >&5 5746 5747 # Broken: fails on valid input. 5748continue 5749fi 5750 5751rm -f conftest.err conftest.$ac_ext 5752 5753 # OK, works on sane cases. Now check whether nonexistent headers 5754 # can be detected and how. 5755 cat >conftest.$ac_ext <<_ACEOF 5756/* confdefs.h. */ 5757_ACEOF 5758cat confdefs.h >>conftest.$ac_ext 5759cat >>conftest.$ac_ext <<_ACEOF 5760/* end confdefs.h. */ 5761#include <ac_nonexistent.h> 5762_ACEOF 5763if { (ac_try="$ac_cpp conftest.$ac_ext" 5764case "(($ac_try" in 5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5766 *) ac_try_echo=$ac_try;; 5767esac 5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5770 ac_status=$? 5771 grep -v '^ *+' conftest.er1 >conftest.err 5772 rm -f conftest.er1 5773 cat conftest.err >&5 5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); } >/dev/null; then 5776 if test -s conftest.err; then 5777 ac_cpp_err=$ac_c_preproc_warn_flag 5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5779 else 5780 ac_cpp_err= 5781 fi 5782else 5783 ac_cpp_err=yes 5784fi 5785if test -z "$ac_cpp_err"; then 5786 # Broken: success on invalid input. 5787continue 5788else 5789 echo "$as_me: failed program was:" >&5 5790sed 's/^/| /' conftest.$ac_ext >&5 5791 5792 # Passes both tests. 5793ac_preproc_ok=: 5794break 5795fi 5796 5797rm -f conftest.err conftest.$ac_ext 5798 5799done 5800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5801rm -f conftest.err conftest.$ac_ext 5802if $ac_preproc_ok; then 5803 : 5804else 5805 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5806See \`config.log' for more details." >&5 5807echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5808See \`config.log' for more details." >&2;} 5809 { (exit 1); exit 1; }; } 5810fi 5811 5812ac_ext=c 5813ac_cpp='$CPP $CPPFLAGS' 5814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5816ac_compiler_gnu=$ac_cv_c_compiler_gnu 5817 5818ac_ext=c 5819ac_cpp='$CPP $CPPFLAGS' 5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5822ac_compiler_gnu=$ac_cv_c_compiler_gnu 5823if test -n "$ac_tool_prefix"; then 5824 for ac_prog in gcc 5825 do 5826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5828{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5830if test "${ac_cv_prog_CC+set}" = set; then 5831 echo $ECHO_N "(cached) $ECHO_C" >&6 5832else 5833 if test -n "$CC"; then 5834 ac_cv_prog_CC="$CC" # Let the user override the test. 5835else 5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5837for as_dir in $PATH 5838do 5839 IFS=$as_save_IFS 5840 test -z "$as_dir" && as_dir=. 5841 for ac_exec_ext in '' $ac_executable_extensions; do 5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848done 5849IFS=$as_save_IFS 5850 5851fi 5852fi 5853CC=$ac_cv_prog_CC 5854if test -n "$CC"; then 5855 { echo "$as_me:$LINENO: result: $CC" >&5 5856echo "${ECHO_T}$CC" >&6; } 5857else 5858 { echo "$as_me:$LINENO: result: no" >&5 5859echo "${ECHO_T}no" >&6; } 5860fi 5861 5862 5863 test -n "$CC" && break 5864 done 5865fi 5866if test -z "$CC"; then 5867 ac_ct_CC=$CC 5868 for ac_prog in gcc 5869do 5870 # Extract the first word of "$ac_prog", so it can be a program name with args. 5871set dummy $ac_prog; ac_word=$2 5872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5875 echo $ECHO_N "(cached) $ECHO_C" >&6 5876else 5877 if test -n "$ac_ct_CC"; then 5878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_prog_ac_ct_CC="$ac_prog" 5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897ac_ct_CC=$ac_cv_prog_ac_ct_CC 5898if test -n "$ac_ct_CC"; then 5899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5900echo "${ECHO_T}$ac_ct_CC" >&6; } 5901else 5902 { echo "$as_me:$LINENO: result: no" >&5 5903echo "${ECHO_T}no" >&6; } 5904fi 5905 5906 5907 test -n "$ac_ct_CC" && break 5908done 5909 5910 if test "x$ac_ct_CC" = x; then 5911 CC="" 5912 else 5913 case $cross_compiling:$ac_tool_warned in 5914yes:) 5915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5916whose name does not start with the host triplet. If you think this 5917configuration is useful to you, please write to autoconf@gnu.org." >&5 5918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5919whose name does not start with the host triplet. If you think this 5920configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5921ac_tool_warned=yes ;; 5922esac 5923 CC=$ac_ct_CC 5924 fi 5925fi 5926 5927 5928test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5929See \`config.log' for more details." >&5 5930echo "$as_me: error: no acceptable C compiler found in \$PATH 5931See \`config.log' for more details." >&2;} 5932 { (exit 1); exit 1; }; } 5933 5934# Provide some information about the compiler. 5935echo "$as_me:$LINENO: checking for C compiler version" >&5 5936ac_compiler=`set X $ac_compile; echo $2` 5937{ (ac_try="$ac_compiler --version >&5" 5938case "(($ac_try" in 5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5940 *) ac_try_echo=$ac_try;; 5941esac 5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5943 (eval "$ac_compiler --version >&5") 2>&5 5944 ac_status=$? 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } 5947{ (ac_try="$ac_compiler -v >&5" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_compiler -v >&5") 2>&5 5954 ac_status=$? 5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } 5957{ (ac_try="$ac_compiler -V >&5" 5958case "(($ac_try" in 5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5960 *) ac_try_echo=$ac_try;; 5961esac 5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5963 (eval "$ac_compiler -V >&5") 2>&5 5964 ac_status=$? 5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5966 (exit $ac_status); } 5967 5968{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5970if test "${ac_cv_c_compiler_gnu+set}" = set; then 5971 echo $ECHO_N "(cached) $ECHO_C" >&6 5972else 5973 cat >conftest.$ac_ext <<_ACEOF 5974/* confdefs.h. */ 5975_ACEOF 5976cat confdefs.h >>conftest.$ac_ext 5977cat >>conftest.$ac_ext <<_ACEOF 5978/* end confdefs.h. */ 5979 5980int 5981main () 5982{ 5983#ifndef __GNUC__ 5984 choke me 5985#endif 5986 5987 ; 5988 return 0; 5989} 5990_ACEOF 5991rm -f conftest.$ac_objext 5992if { (ac_try="$ac_compile" 5993case "(($ac_try" in 5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5995 *) ac_try_echo=$ac_try;; 5996esac 5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5998 (eval "$ac_compile") 2>conftest.er1 5999 ac_status=$? 6000 grep -v '^ *+' conftest.er1 >conftest.err 6001 rm -f conftest.er1 6002 cat conftest.err >&5 6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6004 (exit $ac_status); } && 6005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6006 { (case "(($ac_try" in 6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6008 *) ac_try_echo=$ac_try;; 6009esac 6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6011 (eval "$ac_try") 2>&5 6012 ac_status=$? 6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6014 (exit $ac_status); }; } && 6015 { ac_try='test -s conftest.$ac_objext' 6016 { (case "(($ac_try" in 6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6018 *) ac_try_echo=$ac_try;; 6019esac 6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6021 (eval "$ac_try") 2>&5 6022 ac_status=$? 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6024 (exit $ac_status); }; }; then 6025 ac_compiler_gnu=yes 6026else 6027 echo "$as_me: failed program was:" >&5 6028sed 's/^/| /' conftest.$ac_ext >&5 6029 6030 ac_compiler_gnu=no 6031fi 6032 6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6034ac_cv_c_compiler_gnu=$ac_compiler_gnu 6035 6036fi 6037{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 6038echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 6039GCC=`test $ac_compiler_gnu = yes && echo yes` 6040ac_test_CFLAGS=${CFLAGS+set} 6041ac_save_CFLAGS=$CFLAGS 6042{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 6043echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 6044if test "${ac_cv_prog_cc_g+set}" = set; then 6045 echo $ECHO_N "(cached) $ECHO_C" >&6 6046else 6047 ac_save_c_werror_flag=$ac_c_werror_flag 6048 ac_c_werror_flag=yes 6049 ac_cv_prog_cc_g=no 6050 CFLAGS="-g" 6051 cat >conftest.$ac_ext <<_ACEOF 6052/* confdefs.h. */ 6053_ACEOF 6054cat confdefs.h >>conftest.$ac_ext 6055cat >>conftest.$ac_ext <<_ACEOF 6056/* end confdefs.h. */ 6057 6058int 6059main () 6060{ 6061 6062 ; 6063 return 0; 6064} 6065_ACEOF 6066rm -f conftest.$ac_objext 6067if { (ac_try="$ac_compile" 6068case "(($ac_try" in 6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6070 *) ac_try_echo=$ac_try;; 6071esac 6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6073 (eval "$ac_compile") 2>conftest.er1 6074 ac_status=$? 6075 grep -v '^ *+' conftest.er1 >conftest.err 6076 rm -f conftest.er1 6077 cat conftest.err >&5 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); } && 6080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6081 { (case "(($ac_try" in 6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6083 *) ac_try_echo=$ac_try;; 6084esac 6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6086 (eval "$ac_try") 2>&5 6087 ac_status=$? 6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6089 (exit $ac_status); }; } && 6090 { ac_try='test -s conftest.$ac_objext' 6091 { (case "(($ac_try" in 6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6093 *) ac_try_echo=$ac_try;; 6094esac 6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6096 (eval "$ac_try") 2>&5 6097 ac_status=$? 6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6099 (exit $ac_status); }; }; then 6100 ac_cv_prog_cc_g=yes 6101else 6102 echo "$as_me: failed program was:" >&5 6103sed 's/^/| /' conftest.$ac_ext >&5 6104 6105 CFLAGS="" 6106 cat >conftest.$ac_ext <<_ACEOF 6107/* confdefs.h. */ 6108_ACEOF 6109cat confdefs.h >>conftest.$ac_ext 6110cat >>conftest.$ac_ext <<_ACEOF 6111/* end confdefs.h. */ 6112 6113int 6114main () 6115{ 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121rm -f conftest.$ac_objext 6122if { (ac_try="$ac_compile" 6123case "(($ac_try" in 6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6125 *) ac_try_echo=$ac_try;; 6126esac 6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6128 (eval "$ac_compile") 2>conftest.er1 6129 ac_status=$? 6130 grep -v '^ *+' conftest.er1 >conftest.err 6131 rm -f conftest.er1 6132 cat conftest.err >&5 6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6134 (exit $ac_status); } && 6135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6136 { (case "(($ac_try" in 6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6138 *) ac_try_echo=$ac_try;; 6139esac 6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6141 (eval "$ac_try") 2>&5 6142 ac_status=$? 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); }; } && 6145 { ac_try='test -s conftest.$ac_objext' 6146 { (case "(($ac_try" in 6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6148 *) ac_try_echo=$ac_try;; 6149esac 6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6151 (eval "$ac_try") 2>&5 6152 ac_status=$? 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); }; }; then 6155 : 6156else 6157 echo "$as_me: failed program was:" >&5 6158sed 's/^/| /' conftest.$ac_ext >&5 6159 6160 ac_c_werror_flag=$ac_save_c_werror_flag 6161 CFLAGS="-g" 6162 cat >conftest.$ac_ext <<_ACEOF 6163/* confdefs.h. */ 6164_ACEOF 6165cat confdefs.h >>conftest.$ac_ext 6166cat >>conftest.$ac_ext <<_ACEOF 6167/* end confdefs.h. */ 6168 6169int 6170main () 6171{ 6172 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177rm -f conftest.$ac_objext 6178if { (ac_try="$ac_compile" 6179case "(($ac_try" in 6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6181 *) ac_try_echo=$ac_try;; 6182esac 6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6184 (eval "$ac_compile") 2>conftest.er1 6185 ac_status=$? 6186 grep -v '^ *+' conftest.er1 >conftest.err 6187 rm -f conftest.er1 6188 cat conftest.err >&5 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); } && 6191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6192 { (case "(($ac_try" in 6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6194 *) ac_try_echo=$ac_try;; 6195esac 6196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6197 (eval "$ac_try") 2>&5 6198 ac_status=$? 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6200 (exit $ac_status); }; } && 6201 { ac_try='test -s conftest.$ac_objext' 6202 { (case "(($ac_try" in 6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6204 *) ac_try_echo=$ac_try;; 6205esac 6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6207 (eval "$ac_try") 2>&5 6208 ac_status=$? 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); }; }; then 6211 ac_cv_prog_cc_g=yes 6212else 6213 echo "$as_me: failed program was:" >&5 6214sed 's/^/| /' conftest.$ac_ext >&5 6215 6216 6217fi 6218 6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6220fi 6221 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223fi 6224 6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6226 ac_c_werror_flag=$ac_save_c_werror_flag 6227fi 6228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 6229echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 6230if test "$ac_test_CFLAGS" = set; then 6231 CFLAGS=$ac_save_CFLAGS 6232elif test $ac_cv_prog_cc_g = yes; then 6233 if test "$GCC" = yes; then 6234 CFLAGS="-g -O2" 6235 else 6236 CFLAGS="-g" 6237 fi 6238else 6239 if test "$GCC" = yes; then 6240 CFLAGS="-O2" 6241 else 6242 CFLAGS= 6243 fi 6244fi 6245{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 6246echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 6247if test "${ac_cv_prog_cc_c89+set}" = set; then 6248 echo $ECHO_N "(cached) $ECHO_C" >&6 6249else 6250 ac_cv_prog_cc_c89=no 6251ac_save_CC=$CC 6252cat >conftest.$ac_ext <<_ACEOF 6253/* confdefs.h. */ 6254_ACEOF 6255cat confdefs.h >>conftest.$ac_ext 6256cat >>conftest.$ac_ext <<_ACEOF 6257/* end confdefs.h. */ 6258#include <stdarg.h> 6259#include <stdio.h> 6260#include <sys/types.h> 6261#include <sys/stat.h> 6262/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6263struct buf { int x; }; 6264FILE * (*rcsopen) (struct buf *, struct stat *, int); 6265static char *e (p, i) 6266 char **p; 6267 int i; 6268{ 6269 return p[i]; 6270} 6271static char *f (char * (*g) (char **, int), char **p, ...) 6272{ 6273 char *s; 6274 va_list v; 6275 va_start (v,p); 6276 s = g (p, va_arg (v,int)); 6277 va_end (v); 6278 return s; 6279} 6280 6281/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6282 function prototypes and stuff, but not '\xHH' hex character constants. 6283 These don't provoke an error unfortunately, instead are silently treated 6284 as 'x'. The following induces an error, until -std is added to get 6285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6286 array size at least. It's necessary to write '\x00'==0 to get something 6287 that's true only with -std. */ 6288int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6289 6290/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6291 inside strings and character constants. */ 6292#define FOO(x) 'x' 6293int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6294 6295int test (int i, double x); 6296struct s1 {int (*f) (int a);}; 6297struct s2 {int (*f) (double a);}; 6298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6299int argc; 6300char **argv; 6301int 6302main () 6303{ 6304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6305 ; 6306 return 0; 6307} 6308_ACEOF 6309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6311do 6312 CC="$ac_save_CC $ac_arg" 6313 rm -f conftest.$ac_objext 6314if { (ac_try="$ac_compile" 6315case "(($ac_try" in 6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6317 *) ac_try_echo=$ac_try;; 6318esac 6319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6320 (eval "$ac_compile") 2>conftest.er1 6321 ac_status=$? 6322 grep -v '^ *+' conftest.er1 >conftest.err 6323 rm -f conftest.er1 6324 cat conftest.err >&5 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6326 (exit $ac_status); } && 6327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6328 { (case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331esac 6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_try") 2>&5 6334 ac_status=$? 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); }; } && 6337 { ac_try='test -s conftest.$ac_objext' 6338 { (case "(($ac_try" in 6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6340 *) ac_try_echo=$ac_try;; 6341esac 6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6343 (eval "$ac_try") 2>&5 6344 ac_status=$? 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); }; }; then 6347 ac_cv_prog_cc_c89=$ac_arg 6348else 6349 echo "$as_me: failed program was:" >&5 6350sed 's/^/| /' conftest.$ac_ext >&5 6351 6352 6353fi 6354 6355rm -f core conftest.err conftest.$ac_objext 6356 test "x$ac_cv_prog_cc_c89" != "xno" && break 6357done 6358rm -f conftest.$ac_ext 6359CC=$ac_save_CC 6360 6361fi 6362# AC_CACHE_VAL 6363case "x$ac_cv_prog_cc_c89" in 6364 x) 6365 { echo "$as_me:$LINENO: result: none needed" >&5 6366echo "${ECHO_T}none needed" >&6; } ;; 6367 xno) 6368 { echo "$as_me:$LINENO: result: unsupported" >&5 6369echo "${ECHO_T}unsupported" >&6; } ;; 6370 *) 6371 CC="$CC $ac_cv_prog_cc_c89" 6372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6373echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6374esac 6375 6376 6377ac_ext=c 6378ac_cpp='$CPP $CPPFLAGS' 6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6381ac_compiler_gnu=$ac_cv_c_compiler_gnu 6382 6383ac_ext=cpp 6384ac_cpp='$CXXCPP $CPPFLAGS' 6385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6388if test -z "$CXX"; then 6389 if test -n "$CCC"; then 6390 CXX=$CCC 6391 else 6392 if test -n "$ac_tool_prefix"; then 6393 for ac_prog in g++ 6394 do 6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6396set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6399if test "${ac_cv_prog_CXX+set}" = set; then 6400 echo $ECHO_N "(cached) $ECHO_C" >&6 6401else 6402 if test -n "$CXX"; then 6403 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6404else 6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406for as_dir in $PATH 6407do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416done 6417done 6418IFS=$as_save_IFS 6419 6420fi 6421fi 6422CXX=$ac_cv_prog_CXX 6423if test -n "$CXX"; then 6424 { echo "$as_me:$LINENO: result: $CXX" >&5 6425echo "${ECHO_T}$CXX" >&6; } 6426else 6427 { echo "$as_me:$LINENO: result: no" >&5 6428echo "${ECHO_T}no" >&6; } 6429fi 6430 6431 6432 test -n "$CXX" && break 6433 done 6434fi 6435if test -z "$CXX"; then 6436 ac_ct_CXX=$CXX 6437 for ac_prog in g++ 6438do 6439 # Extract the first word of "$ac_prog", so it can be a program name with args. 6440set dummy $ac_prog; ac_word=$2 6441{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6443if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6444 echo $ECHO_N "(cached) $ECHO_C" >&6 6445else 6446 if test -n "$ac_ct_CXX"; then 6447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6448else 6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6450for as_dir in $PATH 6451do 6452 IFS=$as_save_IFS 6453 test -z "$as_dir" && as_dir=. 6454 for ac_exec_ext in '' $ac_executable_extensions; do 6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6456 ac_cv_prog_ac_ct_CXX="$ac_prog" 6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6458 break 2 6459 fi 6460done 6461done 6462IFS=$as_save_IFS 6463 6464fi 6465fi 6466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6467if test -n "$ac_ct_CXX"; then 6468 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6469echo "${ECHO_T}$ac_ct_CXX" >&6; } 6470else 6471 { echo "$as_me:$LINENO: result: no" >&5 6472echo "${ECHO_T}no" >&6; } 6473fi 6474 6475 6476 test -n "$ac_ct_CXX" && break 6477done 6478 6479 if test "x$ac_ct_CXX" = x; then 6480 CXX="g++" 6481 else 6482 case $cross_compiling:$ac_tool_warned in 6483yes:) 6484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6485whose name does not start with the host triplet. If you think this 6486configuration is useful to you, please write to autoconf@gnu.org." >&5 6487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6488whose name does not start with the host triplet. If you think this 6489configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6490ac_tool_warned=yes ;; 6491esac 6492 CXX=$ac_ct_CXX 6493 fi 6494fi 6495 6496 fi 6497fi 6498# Provide some information about the compiler. 6499echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6500ac_compiler=`set X $ac_compile; echo $2` 6501{ (ac_try="$ac_compiler --version >&5" 6502case "(($ac_try" in 6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6504 *) ac_try_echo=$ac_try;; 6505esac 6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6507 (eval "$ac_compiler --version >&5") 2>&5 6508 ac_status=$? 6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6510 (exit $ac_status); } 6511{ (ac_try="$ac_compiler -v >&5" 6512case "(($ac_try" in 6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6514 *) ac_try_echo=$ac_try;; 6515esac 6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6517 (eval "$ac_compiler -v >&5") 2>&5 6518 ac_status=$? 6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6520 (exit $ac_status); } 6521{ (ac_try="$ac_compiler -V >&5" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6527 (eval "$ac_compiler -V >&5") 2>&5 6528 ac_status=$? 6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6530 (exit $ac_status); } 6531 6532{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6533echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6535 echo $ECHO_N "(cached) $ECHO_C" >&6 6536else 6537 cat >conftest.$ac_ext <<_ACEOF 6538/* confdefs.h. */ 6539_ACEOF 6540cat confdefs.h >>conftest.$ac_ext 6541cat >>conftest.$ac_ext <<_ACEOF 6542/* end confdefs.h. */ 6543 6544int 6545main () 6546{ 6547#ifndef __GNUC__ 6548 choke me 6549#endif 6550 6551 ; 6552 return 0; 6553} 6554_ACEOF 6555rm -f conftest.$ac_objext 6556if { (ac_try="$ac_compile" 6557case "(($ac_try" in 6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6559 *) ac_try_echo=$ac_try;; 6560esac 6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6562 (eval "$ac_compile") 2>conftest.er1 6563 ac_status=$? 6564 grep -v '^ *+' conftest.er1 >conftest.err 6565 rm -f conftest.er1 6566 cat conftest.err >&5 6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6568 (exit $ac_status); } && 6569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6570 { (case "(($ac_try" in 6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6572 *) ac_try_echo=$ac_try;; 6573esac 6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6575 (eval "$ac_try") 2>&5 6576 ac_status=$? 6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6578 (exit $ac_status); }; } && 6579 { ac_try='test -s conftest.$ac_objext' 6580 { (case "(($ac_try" in 6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6582 *) ac_try_echo=$ac_try;; 6583esac 6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6585 (eval "$ac_try") 2>&5 6586 ac_status=$? 6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6588 (exit $ac_status); }; }; then 6589 ac_compiler_gnu=yes 6590else 6591 echo "$as_me: failed program was:" >&5 6592sed 's/^/| /' conftest.$ac_ext >&5 6593 6594 ac_compiler_gnu=no 6595fi 6596 6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6598ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6599 6600fi 6601{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6602echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6603GXX=`test $ac_compiler_gnu = yes && echo yes` 6604ac_test_CXXFLAGS=${CXXFLAGS+set} 6605ac_save_CXXFLAGS=$CXXFLAGS 6606{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6607echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6608if test "${ac_cv_prog_cxx_g+set}" = set; then 6609 echo $ECHO_N "(cached) $ECHO_C" >&6 6610else 6611 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6612 ac_cxx_werror_flag=yes 6613 ac_cv_prog_cxx_g=no 6614 CXXFLAGS="-g" 6615 cat >conftest.$ac_ext <<_ACEOF 6616/* confdefs.h. */ 6617_ACEOF 6618cat confdefs.h >>conftest.$ac_ext 6619cat >>conftest.$ac_ext <<_ACEOF 6620/* end confdefs.h. */ 6621 6622int 6623main () 6624{ 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630rm -f conftest.$ac_objext 6631if { (ac_try="$ac_compile" 6632case "(($ac_try" in 6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6634 *) ac_try_echo=$ac_try;; 6635esac 6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6637 (eval "$ac_compile") 2>conftest.er1 6638 ac_status=$? 6639 grep -v '^ *+' conftest.er1 >conftest.err 6640 rm -f conftest.er1 6641 cat conftest.err >&5 6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6643 (exit $ac_status); } && 6644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6645 { (case "(($ac_try" in 6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6647 *) ac_try_echo=$ac_try;; 6648esac 6649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6650 (eval "$ac_try") 2>&5 6651 ac_status=$? 6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6653 (exit $ac_status); }; } && 6654 { ac_try='test -s conftest.$ac_objext' 6655 { (case "(($ac_try" in 6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6657 *) ac_try_echo=$ac_try;; 6658esac 6659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6660 (eval "$ac_try") 2>&5 6661 ac_status=$? 6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6663 (exit $ac_status); }; }; then 6664 ac_cv_prog_cxx_g=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 CXXFLAGS="" 6670 cat >conftest.$ac_ext <<_ACEOF 6671/* confdefs.h. */ 6672_ACEOF 6673cat confdefs.h >>conftest.$ac_ext 6674cat >>conftest.$ac_ext <<_ACEOF 6675/* end confdefs.h. */ 6676 6677int 6678main () 6679{ 6680 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685rm -f conftest.$ac_objext 6686if { (ac_try="$ac_compile" 6687case "(($ac_try" in 6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6689 *) ac_try_echo=$ac_try;; 6690esac 6691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6692 (eval "$ac_compile") 2>conftest.er1 6693 ac_status=$? 6694 grep -v '^ *+' conftest.er1 >conftest.err 6695 rm -f conftest.er1 6696 cat conftest.err >&5 6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6698 (exit $ac_status); } && 6699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6700 { (case "(($ac_try" in 6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6702 *) ac_try_echo=$ac_try;; 6703esac 6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6705 (eval "$ac_try") 2>&5 6706 ac_status=$? 6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6708 (exit $ac_status); }; } && 6709 { ac_try='test -s conftest.$ac_objext' 6710 { (case "(($ac_try" in 6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6712 *) ac_try_echo=$ac_try;; 6713esac 6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6715 (eval "$ac_try") 2>&5 6716 ac_status=$? 6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6718 (exit $ac_status); }; }; then 6719 : 6720else 6721 echo "$as_me: failed program was:" >&5 6722sed 's/^/| /' conftest.$ac_ext >&5 6723 6724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6725 CXXFLAGS="-g" 6726 cat >conftest.$ac_ext <<_ACEOF 6727/* confdefs.h. */ 6728_ACEOF 6729cat confdefs.h >>conftest.$ac_ext 6730cat >>conftest.$ac_ext <<_ACEOF 6731/* end confdefs.h. */ 6732 6733int 6734main () 6735{ 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (ac_try="$ac_compile" 6743case "(($ac_try" in 6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6745 *) ac_try_echo=$ac_try;; 6746esac 6747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6748 (eval "$ac_compile") 2>conftest.er1 6749 ac_status=$? 6750 grep -v '^ *+' conftest.er1 >conftest.err 6751 rm -f conftest.er1 6752 cat conftest.err >&5 6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6754 (exit $ac_status); } && 6755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6756 { (case "(($ac_try" in 6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6758 *) ac_try_echo=$ac_try;; 6759esac 6760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6761 (eval "$ac_try") 2>&5 6762 ac_status=$? 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); }; } && 6765 { ac_try='test -s conftest.$ac_objext' 6766 { (case "(($ac_try" in 6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6768 *) ac_try_echo=$ac_try;; 6769esac 6770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6771 (eval "$ac_try") 2>&5 6772 ac_status=$? 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); }; }; then 6775 ac_cv_prog_cxx_g=yes 6776else 6777 echo "$as_me: failed program was:" >&5 6778sed 's/^/| /' conftest.$ac_ext >&5 6779 6780 6781fi 6782 6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6784fi 6785 6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6787fi 6788 6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6791fi 6792{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6793echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6794if test "$ac_test_CXXFLAGS" = set; then 6795 CXXFLAGS=$ac_save_CXXFLAGS 6796elif test $ac_cv_prog_cxx_g = yes; then 6797 if test "$GXX" = yes; then 6798 CXXFLAGS="-g -O2" 6799 else 6800 CXXFLAGS="-g" 6801 fi 6802else 6803 if test "$GXX" = yes; then 6804 CXXFLAGS="-O2" 6805 else 6806 CXXFLAGS= 6807 fi 6808fi 6809ac_ext=c 6810ac_cpp='$CPP $CPPFLAGS' 6811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6813ac_compiler_gnu=$ac_cv_c_compiler_gnu 6814 6815 6816{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6817echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6818if test "${lt_cv_path_NM+set}" = set; then 6819 echo $ECHO_N "(cached) $ECHO_C" >&6 6820else 6821 if test -n "$NM"; then 6822 # Let the user override the test. 6823 lt_cv_path_NM="$NM" 6824else 6825 lt_nm_to_check="${ac_tool_prefix}nm" 6826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6827 lt_nm_to_check="$lt_nm_to_check nm" 6828 fi 6829 for lt_tmp_nm in $lt_nm_to_check; do 6830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6832 IFS="$lt_save_ifs" 6833 test -z "$ac_dir" && ac_dir=. 6834 tmp_nm="$ac_dir/$lt_tmp_nm" 6835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6836 # Check to see if the nm accepts a BSD-compat flag. 6837 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6838 # nm: unknown option "B" ignored 6839 # Tru64's nm complains that /dev/null is an invalid object file 6840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6841 */dev/null* | *'Invalid file or object type'*) 6842 lt_cv_path_NM="$tmp_nm -B" 6843 break 6844 ;; 6845 *) 6846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6847 */dev/null*) 6848 lt_cv_path_NM="$tmp_nm -p" 6849 break 6850 ;; 6851 *) 6852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6853 continue # so that we can try to find one that supports BSD flags 6854 ;; 6855 esac 6856 ;; 6857 esac 6858 fi 6859 done 6860 IFS="$lt_save_ifs" 6861 done 6862 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6863fi 6864fi 6865{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6866echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6867NM="$lt_cv_path_NM" 6868 6869 6870 6871{ echo "$as_me:$LINENO: checking for GNU make" >&5 6872echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6873if test "${llvm_cv_gnu_make_command+set}" = set; then 6874 echo $ECHO_N "(cached) $ECHO_C" >&6 6875else 6876 llvm_cv_gnu_make_command='' 6877 for a in "$MAKE" make gmake gnumake ; do 6878 if test -z "$a" ; then continue ; fi ; 6879 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6880 then 6881 llvm_cv_gnu_make_command=$a ; 6882 break; 6883 fi 6884 done 6885fi 6886{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6887echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6888 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6889 ifGNUmake='' ; 6890 else 6891 ifGNUmake='#' ; 6892 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6893echo "${ECHO_T}\"Not found\"" >&6; }; 6894 fi 6895 6896 6897{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6898echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6899LN_S=$as_ln_s 6900if test "$LN_S" = "ln -s"; then 6901 { echo "$as_me:$LINENO: result: yes" >&5 6902echo "${ECHO_T}yes" >&6; } 6903else 6904 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6905echo "${ECHO_T}no, using $LN_S" >&6; } 6906fi 6907 6908# Extract the first word of "cmp", so it can be a program name with args. 6909set dummy cmp; ac_word=$2 6910{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6912if test "${ac_cv_path_CMP+set}" = set; then 6913 echo $ECHO_N "(cached) $ECHO_C" >&6 6914else 6915 case $CMP in 6916 [\\/]* | ?:[\\/]*) 6917 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6918 ;; 6919 *) 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921for as_dir in $PATH 6922do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6927 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931done 6932done 6933IFS=$as_save_IFS 6934 6935 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6936 ;; 6937esac 6938fi 6939CMP=$ac_cv_path_CMP 6940if test -n "$CMP"; then 6941 { echo "$as_me:$LINENO: result: $CMP" >&5 6942echo "${ECHO_T}$CMP" >&6; } 6943else 6944 { echo "$as_me:$LINENO: result: no" >&5 6945echo "${ECHO_T}no" >&6; } 6946fi 6947 6948 6949# Extract the first word of "cp", so it can be a program name with args. 6950set dummy cp; ac_word=$2 6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6953if test "${ac_cv_path_CP+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 case $CP in 6957 [\\/]* | ?:[\\/]*) 6958 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6959 ;; 6960 *) 6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6962for as_dir in $PATH 6963do 6964 IFS=$as_save_IFS 6965 test -z "$as_dir" && as_dir=. 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6968 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6970 break 2 6971 fi 6972done 6973done 6974IFS=$as_save_IFS 6975 6976 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6977 ;; 6978esac 6979fi 6980CP=$ac_cv_path_CP 6981if test -n "$CP"; then 6982 { echo "$as_me:$LINENO: result: $CP" >&5 6983echo "${ECHO_T}$CP" >&6; } 6984else 6985 { echo "$as_me:$LINENO: result: no" >&5 6986echo "${ECHO_T}no" >&6; } 6987fi 6988 6989 6990# Extract the first word of "date", so it can be a program name with args. 6991set dummy date; ac_word=$2 6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6994if test "${ac_cv_path_DATE+set}" = set; then 6995 echo $ECHO_N "(cached) $ECHO_C" >&6 6996else 6997 case $DATE in 6998 [\\/]* | ?:[\\/]*) 6999 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7000 ;; 7001 *) 7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7003for as_dir in $PATH 7004do 7005 IFS=$as_save_IFS 7006 test -z "$as_dir" && as_dir=. 7007 for ac_exec_ext in '' $ac_executable_extensions; do 7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7009 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7011 break 2 7012 fi 7013done 7014done 7015IFS=$as_save_IFS 7016 7017 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 7018 ;; 7019esac 7020fi 7021DATE=$ac_cv_path_DATE 7022if test -n "$DATE"; then 7023 { echo "$as_me:$LINENO: result: $DATE" >&5 7024echo "${ECHO_T}$DATE" >&6; } 7025else 7026 { echo "$as_me:$LINENO: result: no" >&5 7027echo "${ECHO_T}no" >&6; } 7028fi 7029 7030 7031# Extract the first word of "find", so it can be a program name with args. 7032set dummy find; ac_word=$2 7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7035if test "${ac_cv_path_FIND+set}" = set; then 7036 echo $ECHO_N "(cached) $ECHO_C" >&6 7037else 7038 case $FIND in 7039 [\\/]* | ?:[\\/]*) 7040 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7041 ;; 7042 *) 7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7044for as_dir in $PATH 7045do 7046 IFS=$as_save_IFS 7047 test -z "$as_dir" && as_dir=. 7048 for ac_exec_ext in '' $ac_executable_extensions; do 7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7050 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7052 break 2 7053 fi 7054done 7055done 7056IFS=$as_save_IFS 7057 7058 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 7059 ;; 7060esac 7061fi 7062FIND=$ac_cv_path_FIND 7063if test -n "$FIND"; then 7064 { echo "$as_me:$LINENO: result: $FIND" >&5 7065echo "${ECHO_T}$FIND" >&6; } 7066else 7067 { echo "$as_me:$LINENO: result: no" >&5 7068echo "${ECHO_T}no" >&6; } 7069fi 7070 7071 7072# Extract the first word of "grep", so it can be a program name with args. 7073set dummy grep; ac_word=$2 7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7076if test "${ac_cv_path_GREP+set}" = set; then 7077 echo $ECHO_N "(cached) $ECHO_C" >&6 7078else 7079 case $GREP in 7080 [\\/]* | ?:[\\/]*) 7081 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 7082 ;; 7083 *) 7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7085for as_dir in $PATH 7086do 7087 IFS=$as_save_IFS 7088 test -z "$as_dir" && as_dir=. 7089 for ac_exec_ext in '' $ac_executable_extensions; do 7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7091 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7093 break 2 7094 fi 7095done 7096done 7097IFS=$as_save_IFS 7098 7099 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 7100 ;; 7101esac 7102fi 7103GREP=$ac_cv_path_GREP 7104if test -n "$GREP"; then 7105 { echo "$as_me:$LINENO: result: $GREP" >&5 7106echo "${ECHO_T}$GREP" >&6; } 7107else 7108 { echo "$as_me:$LINENO: result: no" >&5 7109echo "${ECHO_T}no" >&6; } 7110fi 7111 7112 7113# Extract the first word of "mkdir", so it can be a program name with args. 7114set dummy mkdir; ac_word=$2 7115{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7117if test "${ac_cv_path_MKDIR+set}" = set; then 7118 echo $ECHO_N "(cached) $ECHO_C" >&6 7119else 7120 case $MKDIR in 7121 [\\/]* | ?:[\\/]*) 7122 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7123 ;; 7124 *) 7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126for as_dir in $PATH 7127do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7132 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136done 7137done 7138IFS=$as_save_IFS 7139 7140 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 7141 ;; 7142esac 7143fi 7144MKDIR=$ac_cv_path_MKDIR 7145if test -n "$MKDIR"; then 7146 { echo "$as_me:$LINENO: result: $MKDIR" >&5 7147echo "${ECHO_T}$MKDIR" >&6; } 7148else 7149 { echo "$as_me:$LINENO: result: no" >&5 7150echo "${ECHO_T}no" >&6; } 7151fi 7152 7153 7154# Extract the first word of "mv", so it can be a program name with args. 7155set dummy mv; ac_word=$2 7156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7158if test "${ac_cv_path_MV+set}" = set; then 7159 echo $ECHO_N "(cached) $ECHO_C" >&6 7160else 7161 case $MV in 7162 [\\/]* | ?:[\\/]*) 7163 ac_cv_path_MV="$MV" # Let the user override the test with a path. 7164 ;; 7165 *) 7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7167for as_dir in $PATH 7168do 7169 IFS=$as_save_IFS 7170 test -z "$as_dir" && as_dir=. 7171 for ac_exec_ext in '' $ac_executable_extensions; do 7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7173 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7175 break 2 7176 fi 7177done 7178done 7179IFS=$as_save_IFS 7180 7181 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 7182 ;; 7183esac 7184fi 7185MV=$ac_cv_path_MV 7186if test -n "$MV"; then 7187 { echo "$as_me:$LINENO: result: $MV" >&5 7188echo "${ECHO_T}$MV" >&6; } 7189else 7190 { echo "$as_me:$LINENO: result: no" >&5 7191echo "${ECHO_T}no" >&6; } 7192fi 7193 7194 7195if test -n "$ac_tool_prefix"; then 7196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7197set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7198{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7200if test "${ac_cv_prog_RANLIB+set}" = set; then 7201 echo $ECHO_N "(cached) $ECHO_C" >&6 7202else 7203 if test -n "$RANLIB"; then 7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7205else 7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7207for as_dir in $PATH 7208do 7209 IFS=$as_save_IFS 7210 test -z "$as_dir" && as_dir=. 7211 for ac_exec_ext in '' $ac_executable_extensions; do 7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7215 break 2 7216 fi 7217done 7218done 7219IFS=$as_save_IFS 7220 7221fi 7222fi 7223RANLIB=$ac_cv_prog_RANLIB 7224if test -n "$RANLIB"; then 7225 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7226echo "${ECHO_T}$RANLIB" >&6; } 7227else 7228 { echo "$as_me:$LINENO: result: no" >&5 7229echo "${ECHO_T}no" >&6; } 7230fi 7231 7232 7233fi 7234if test -z "$ac_cv_prog_RANLIB"; then 7235 ac_ct_RANLIB=$RANLIB 7236 # Extract the first word of "ranlib", so it can be a program name with args. 7237set dummy ranlib; ac_word=$2 7238{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7240if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7241 echo $ECHO_N "(cached) $ECHO_C" >&6 7242else 7243 if test -n "$ac_ct_RANLIB"; then 7244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7245else 7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7247for as_dir in $PATH 7248do 7249 IFS=$as_save_IFS 7250 test -z "$as_dir" && as_dir=. 7251 for ac_exec_ext in '' $ac_executable_extensions; do 7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7253 ac_cv_prog_ac_ct_RANLIB="ranlib" 7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7255 break 2 7256 fi 7257done 7258done 7259IFS=$as_save_IFS 7260 7261fi 7262fi 7263ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7264if test -n "$ac_ct_RANLIB"; then 7265 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7266echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7267else 7268 { echo "$as_me:$LINENO: result: no" >&5 7269echo "${ECHO_T}no" >&6; } 7270fi 7271 7272 if test "x$ac_ct_RANLIB" = x; then 7273 RANLIB=":" 7274 else 7275 case $cross_compiling:$ac_tool_warned in 7276yes:) 7277{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7278whose name does not start with the host triplet. If you think this 7279configuration is useful to you, please write to autoconf@gnu.org." >&5 7280echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7281whose name does not start with the host triplet. If you think this 7282configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7283ac_tool_warned=yes ;; 7284esac 7285 RANLIB=$ac_ct_RANLIB 7286 fi 7287else 7288 RANLIB="$ac_cv_prog_RANLIB" 7289fi 7290 7291if test -n "$ac_tool_prefix"; then 7292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7293set dummy ${ac_tool_prefix}ar; ac_word=$2 7294{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7296if test "${ac_cv_prog_AR+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298else 7299 if test -n "$AR"; then 7300 ac_cv_prog_AR="$AR" # Let the user override the test. 7301else 7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7303for as_dir in $PATH 7304do 7305 IFS=$as_save_IFS 7306 test -z "$as_dir" && as_dir=. 7307 for ac_exec_ext in '' $ac_executable_extensions; do 7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7309 ac_cv_prog_AR="${ac_tool_prefix}ar" 7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7311 break 2 7312 fi 7313done 7314done 7315IFS=$as_save_IFS 7316 7317fi 7318fi 7319AR=$ac_cv_prog_AR 7320if test -n "$AR"; then 7321 { echo "$as_me:$LINENO: result: $AR" >&5 7322echo "${ECHO_T}$AR" >&6; } 7323else 7324 { echo "$as_me:$LINENO: result: no" >&5 7325echo "${ECHO_T}no" >&6; } 7326fi 7327 7328 7329fi 7330if test -z "$ac_cv_prog_AR"; then 7331 ac_ct_AR=$AR 7332 # Extract the first word of "ar", so it can be a program name with args. 7333set dummy ar; ac_word=$2 7334{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7336if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7337 echo $ECHO_N "(cached) $ECHO_C" >&6 7338else 7339 if test -n "$ac_ct_AR"; then 7340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7341else 7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7343for as_dir in $PATH 7344do 7345 IFS=$as_save_IFS 7346 test -z "$as_dir" && as_dir=. 7347 for ac_exec_ext in '' $ac_executable_extensions; do 7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7349 ac_cv_prog_ac_ct_AR="ar" 7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7351 break 2 7352 fi 7353done 7354done 7355IFS=$as_save_IFS 7356 7357fi 7358fi 7359ac_ct_AR=$ac_cv_prog_ac_ct_AR 7360if test -n "$ac_ct_AR"; then 7361 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7362echo "${ECHO_T}$ac_ct_AR" >&6; } 7363else 7364 { echo "$as_me:$LINENO: result: no" >&5 7365echo "${ECHO_T}no" >&6; } 7366fi 7367 7368 if test "x$ac_ct_AR" = x; then 7369 AR="false" 7370 else 7371 case $cross_compiling:$ac_tool_warned in 7372yes:) 7373{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7374whose name does not start with the host triplet. If you think this 7375configuration is useful to you, please write to autoconf@gnu.org." >&5 7376echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7377whose name does not start with the host triplet. If you think this 7378configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7379ac_tool_warned=yes ;; 7380esac 7381 AR=$ac_ct_AR 7382 fi 7383else 7384 AR="$ac_cv_prog_AR" 7385fi 7386 7387# Extract the first word of "rm", so it can be a program name with args. 7388set dummy rm; ac_word=$2 7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7391if test "${ac_cv_path_RM+set}" = set; then 7392 echo $ECHO_N "(cached) $ECHO_C" >&6 7393else 7394 case $RM in 7395 [\\/]* | ?:[\\/]*) 7396 ac_cv_path_RM="$RM" # Let the user override the test with a path. 7397 ;; 7398 *) 7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7400for as_dir in $PATH 7401do 7402 IFS=$as_save_IFS 7403 test -z "$as_dir" && as_dir=. 7404 for ac_exec_ext in '' $ac_executable_extensions; do 7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7408 break 2 7409 fi 7410done 7411done 7412IFS=$as_save_IFS 7413 7414 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 7415 ;; 7416esac 7417fi 7418RM=$ac_cv_path_RM 7419if test -n "$RM"; then 7420 { echo "$as_me:$LINENO: result: $RM" >&5 7421echo "${ECHO_T}$RM" >&6; } 7422else 7423 { echo "$as_me:$LINENO: result: no" >&5 7424echo "${ECHO_T}no" >&6; } 7425fi 7426 7427 7428# Extract the first word of "sed", so it can be a program name with args. 7429set dummy sed; ac_word=$2 7430{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7432if test "${ac_cv_path_SED+set}" = set; then 7433 echo $ECHO_N "(cached) $ECHO_C" >&6 7434else 7435 case $SED in 7436 [\\/]* | ?:[\\/]*) 7437 ac_cv_path_SED="$SED" # Let the user override the test with a path. 7438 ;; 7439 *) 7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 test -z "$as_dir" && as_dir=. 7445 for ac_exec_ext in '' $ac_executable_extensions; do 7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7449 break 2 7450 fi 7451done 7452done 7453IFS=$as_save_IFS 7454 7455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 7456 ;; 7457esac 7458fi 7459SED=$ac_cv_path_SED 7460if test -n "$SED"; then 7461 { echo "$as_me:$LINENO: result: $SED" >&5 7462echo "${ECHO_T}$SED" >&6; } 7463else 7464 { echo "$as_me:$LINENO: result: no" >&5 7465echo "${ECHO_T}no" >&6; } 7466fi 7467 7468 7469# Extract the first word of "tar", so it can be a program name with args. 7470set dummy tar; ac_word=$2 7471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7473if test "${ac_cv_path_TAR+set}" = set; then 7474 echo $ECHO_N "(cached) $ECHO_C" >&6 7475else 7476 case $TAR in 7477 [\\/]* | ?:[\\/]*) 7478 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 7479 ;; 7480 *) 7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7488 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493done 7494IFS=$as_save_IFS 7495 7496 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 7497 ;; 7498esac 7499fi 7500TAR=$ac_cv_path_TAR 7501if test -n "$TAR"; then 7502 { echo "$as_me:$LINENO: result: $TAR" >&5 7503echo "${ECHO_T}$TAR" >&6; } 7504else 7505 { echo "$as_me:$LINENO: result: no" >&5 7506echo "${ECHO_T}no" >&6; } 7507fi 7508 7509 7510# Extract the first word of "pwd", so it can be a program name with args. 7511set dummy pwd; ac_word=$2 7512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7514if test "${ac_cv_path_BINPWD+set}" = set; then 7515 echo $ECHO_N "(cached) $ECHO_C" >&6 7516else 7517 case $BINPWD in 7518 [\\/]* | ?:[\\/]*) 7519 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 7520 ;; 7521 *) 7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7523for as_dir in $PATH 7524do 7525 IFS=$as_save_IFS 7526 test -z "$as_dir" && as_dir=. 7527 for ac_exec_ext in '' $ac_executable_extensions; do 7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7529 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7531 break 2 7532 fi 7533done 7534done 7535IFS=$as_save_IFS 7536 7537 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 7538 ;; 7539esac 7540fi 7541BINPWD=$ac_cv_path_BINPWD 7542if test -n "$BINPWD"; then 7543 { echo "$as_me:$LINENO: result: $BINPWD" >&5 7544echo "${ECHO_T}$BINPWD" >&6; } 7545else 7546 { echo "$as_me:$LINENO: result: no" >&5 7547echo "${ECHO_T}no" >&6; } 7548fi 7549 7550 7551 7552# Extract the first word of "Graphviz", so it can be a program name with args. 7553set dummy Graphviz; ac_word=$2 7554{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7556if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 7557 echo $ECHO_N "(cached) $ECHO_C" >&6 7558else 7559 case $GRAPHVIZ in 7560 [\\/]* | ?:[\\/]*) 7561 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 7562 ;; 7563 *) 7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7571 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576done 7577IFS=$as_save_IFS 7578 7579 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 7580 ;; 7581esac 7582fi 7583GRAPHVIZ=$ac_cv_path_GRAPHVIZ 7584if test -n "$GRAPHVIZ"; then 7585 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 7586echo "${ECHO_T}$GRAPHVIZ" >&6; } 7587else 7588 { echo "$as_me:$LINENO: result: no" >&5 7589echo "${ECHO_T}no" >&6; } 7590fi 7591 7592 7593if test "$GRAPHVIZ" != "echo Graphviz" ; then 7594 7595cat >>confdefs.h <<\_ACEOF 7596#define HAVE_GRAPHVIZ 1 7597_ACEOF 7598 7599 if test "$llvm_cv_os_type" = "MingW" ; then 7600 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7601 fi 7602 7603cat >>confdefs.h <<_ACEOF 7604#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 7605_ACEOF 7606 7607fi 7608# Extract the first word of "dot", so it can be a program name with args. 7609set dummy dot; ac_word=$2 7610{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7612if test "${ac_cv_path_DOT+set}" = set; then 7613 echo $ECHO_N "(cached) $ECHO_C" >&6 7614else 7615 case $DOT in 7616 [\\/]* | ?:[\\/]*) 7617 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 7618 ;; 7619 *) 7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7621for as_dir in $PATH 7622do 7623 IFS=$as_save_IFS 7624 test -z "$as_dir" && as_dir=. 7625 for ac_exec_ext in '' $ac_executable_extensions; do 7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7627 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7629 break 2 7630 fi 7631done 7632done 7633IFS=$as_save_IFS 7634 7635 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 7636 ;; 7637esac 7638fi 7639DOT=$ac_cv_path_DOT 7640if test -n "$DOT"; then 7641 { echo "$as_me:$LINENO: result: $DOT" >&5 7642echo "${ECHO_T}$DOT" >&6; } 7643else 7644 { echo "$as_me:$LINENO: result: no" >&5 7645echo "${ECHO_T}no" >&6; } 7646fi 7647 7648 7649if test "$DOT" != "echo dot" ; then 7650 7651cat >>confdefs.h <<\_ACEOF 7652#define HAVE_DOT 1 7653_ACEOF 7654 7655 if test "$llvm_cv_os_type" = "MingW" ; then 7656 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7657 fi 7658 7659cat >>confdefs.h <<_ACEOF 7660#define LLVM_PATH_DOT "$DOT${EXEEXT}" 7661_ACEOF 7662 7663fi 7664# Extract the first word of "fdp", so it can be a program name with args. 7665set dummy fdp; ac_word=$2 7666{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7668if test "${ac_cv_path_FDP+set}" = set; then 7669 echo $ECHO_N "(cached) $ECHO_C" >&6 7670else 7671 case $FDP in 7672 [\\/]* | ?:[\\/]*) 7673 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 7674 ;; 7675 *) 7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677for as_dir in $PATH 7678do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7683 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687done 7688done 7689IFS=$as_save_IFS 7690 7691 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 7692 ;; 7693esac 7694fi 7695FDP=$ac_cv_path_FDP 7696if test -n "$FDP"; then 7697 { echo "$as_me:$LINENO: result: $FDP" >&5 7698echo "${ECHO_T}$FDP" >&6; } 7699else 7700 { echo "$as_me:$LINENO: result: no" >&5 7701echo "${ECHO_T}no" >&6; } 7702fi 7703 7704 7705if test "$FDP" != "echo fdp" ; then 7706 7707cat >>confdefs.h <<\_ACEOF 7708#define HAVE_FDP 1 7709_ACEOF 7710 7711 if test "$llvm_cv_os_type" = "MingW" ; then 7712 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7713 fi 7714 7715cat >>confdefs.h <<_ACEOF 7716#define LLVM_PATH_FDP "$FDP${EXEEXT}" 7717_ACEOF 7718 7719fi 7720# Extract the first word of "neato", so it can be a program name with args. 7721set dummy neato; ac_word=$2 7722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7724if test "${ac_cv_path_NEATO+set}" = set; then 7725 echo $ECHO_N "(cached) $ECHO_C" >&6 7726else 7727 case $NEATO in 7728 [\\/]* | ?:[\\/]*) 7729 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 7730 ;; 7731 *) 7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733for as_dir in $PATH 7734do 7735 IFS=$as_save_IFS 7736 test -z "$as_dir" && as_dir=. 7737 for ac_exec_ext in '' $ac_executable_extensions; do 7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7739 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7741 break 2 7742 fi 7743done 7744done 7745IFS=$as_save_IFS 7746 7747 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 7748 ;; 7749esac 7750fi 7751NEATO=$ac_cv_path_NEATO 7752if test -n "$NEATO"; then 7753 { echo "$as_me:$LINENO: result: $NEATO" >&5 7754echo "${ECHO_T}$NEATO" >&6; } 7755else 7756 { echo "$as_me:$LINENO: result: no" >&5 7757echo "${ECHO_T}no" >&6; } 7758fi 7759 7760 7761if test "$NEATO" != "echo neato" ; then 7762 7763cat >>confdefs.h <<\_ACEOF 7764#define HAVE_NEATO 1 7765_ACEOF 7766 7767 if test "$llvm_cv_os_type" = "MingW" ; then 7768 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7769 fi 7770 7771cat >>confdefs.h <<_ACEOF 7772#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7773_ACEOF 7774 7775fi 7776# Extract the first word of "twopi", so it can be a program name with args. 7777set dummy twopi; ac_word=$2 7778{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7780if test "${ac_cv_path_TWOPI+set}" = set; then 7781 echo $ECHO_N "(cached) $ECHO_C" >&6 7782else 7783 case $TWOPI in 7784 [\\/]* | ?:[\\/]*) 7785 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7786 ;; 7787 *) 7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7789for as_dir in $PATH 7790do 7791 IFS=$as_save_IFS 7792 test -z "$as_dir" && as_dir=. 7793 for ac_exec_ext in '' $ac_executable_extensions; do 7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7795 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7797 break 2 7798 fi 7799done 7800done 7801IFS=$as_save_IFS 7802 7803 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7804 ;; 7805esac 7806fi 7807TWOPI=$ac_cv_path_TWOPI 7808if test -n "$TWOPI"; then 7809 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7810echo "${ECHO_T}$TWOPI" >&6; } 7811else 7812 { echo "$as_me:$LINENO: result: no" >&5 7813echo "${ECHO_T}no" >&6; } 7814fi 7815 7816 7817if test "$TWOPI" != "echo twopi" ; then 7818 7819cat >>confdefs.h <<\_ACEOF 7820#define HAVE_TWOPI 1 7821_ACEOF 7822 7823 if test "$llvm_cv_os_type" = "MingW" ; then 7824 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7825 fi 7826 7827cat >>confdefs.h <<_ACEOF 7828#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7829_ACEOF 7830 7831fi 7832# Extract the first word of "circo", so it can be a program name with args. 7833set dummy circo; ac_word=$2 7834{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7836if test "${ac_cv_path_CIRCO+set}" = set; then 7837 echo $ECHO_N "(cached) $ECHO_C" >&6 7838else 7839 case $CIRCO in 7840 [\\/]* | ?:[\\/]*) 7841 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7842 ;; 7843 *) 7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 test -z "$as_dir" && as_dir=. 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7851 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855done 7856done 7857IFS=$as_save_IFS 7858 7859 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7860 ;; 7861esac 7862fi 7863CIRCO=$ac_cv_path_CIRCO 7864if test -n "$CIRCO"; then 7865 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7866echo "${ECHO_T}$CIRCO" >&6; } 7867else 7868 { echo "$as_me:$LINENO: result: no" >&5 7869echo "${ECHO_T}no" >&6; } 7870fi 7871 7872 7873if test "$CIRCO" != "echo circo" ; then 7874 7875cat >>confdefs.h <<\_ACEOF 7876#define HAVE_CIRCO 1 7877_ACEOF 7878 7879 if test "$llvm_cv_os_type" = "MingW" ; then 7880 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7881 fi 7882 7883cat >>confdefs.h <<_ACEOF 7884#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7885_ACEOF 7886 7887fi 7888for ac_prog in gv gsview32 7889do 7890 # Extract the first word of "$ac_prog", so it can be a program name with args. 7891set dummy $ac_prog; ac_word=$2 7892{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7894if test "${ac_cv_path_GV+set}" = set; then 7895 echo $ECHO_N "(cached) $ECHO_C" >&6 7896else 7897 case $GV in 7898 [\\/]* | ?:[\\/]*) 7899 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7900 ;; 7901 *) 7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7903for as_dir in $PATH 7904do 7905 IFS=$as_save_IFS 7906 test -z "$as_dir" && as_dir=. 7907 for ac_exec_ext in '' $ac_executable_extensions; do 7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7909 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7911 break 2 7912 fi 7913done 7914done 7915IFS=$as_save_IFS 7916 7917 ;; 7918esac 7919fi 7920GV=$ac_cv_path_GV 7921if test -n "$GV"; then 7922 { echo "$as_me:$LINENO: result: $GV" >&5 7923echo "${ECHO_T}$GV" >&6; } 7924else 7925 { echo "$as_me:$LINENO: result: no" >&5 7926echo "${ECHO_T}no" >&6; } 7927fi 7928 7929 7930 test -n "$GV" && break 7931done 7932test -n "$GV" || GV="echo gv" 7933 7934if test "$GV" != "echo gv" ; then 7935 7936cat >>confdefs.h <<\_ACEOF 7937#define HAVE_GV 1 7938_ACEOF 7939 7940 if test "$llvm_cv_os_type" = "MingW" ; then 7941 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7942 fi 7943 7944cat >>confdefs.h <<_ACEOF 7945#define LLVM_PATH_GV "$GV${EXEEXT}" 7946_ACEOF 7947 7948fi 7949# Extract the first word of "dotty", so it can be a program name with args. 7950set dummy dotty; ac_word=$2 7951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7953if test "${ac_cv_path_DOTTY+set}" = set; then 7954 echo $ECHO_N "(cached) $ECHO_C" >&6 7955else 7956 case $DOTTY in 7957 [\\/]* | ?:[\\/]*) 7958 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7959 ;; 7960 *) 7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7968 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973done 7974IFS=$as_save_IFS 7975 7976 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7977 ;; 7978esac 7979fi 7980DOTTY=$ac_cv_path_DOTTY 7981if test -n "$DOTTY"; then 7982 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7983echo "${ECHO_T}$DOTTY" >&6; } 7984else 7985 { echo "$as_me:$LINENO: result: no" >&5 7986echo "${ECHO_T}no" >&6; } 7987fi 7988 7989 7990if test "$DOTTY" != "echo dotty" ; then 7991 7992cat >>confdefs.h <<\_ACEOF 7993#define HAVE_DOTTY 1 7994_ACEOF 7995 7996 if test "$llvm_cv_os_type" = "MingW" ; then 7997 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7998 fi 7999 8000cat >>confdefs.h <<_ACEOF 8001#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 8002_ACEOF 8003 8004fi 8005# Extract the first word of "xdot.py", so it can be a program name with args. 8006set dummy xdot.py; ac_word=$2 8007{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8009if test "${ac_cv_path_XDOT_PY+set}" = set; then 8010 echo $ECHO_N "(cached) $ECHO_C" >&6 8011else 8012 case $XDOT_PY in 8013 [\\/]* | ?:[\\/]*) 8014 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 8015 ;; 8016 *) 8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 test -z "$as_dir" && as_dir=. 8022 for ac_exec_ext in '' $ac_executable_extensions; do 8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8024 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8026 break 2 8027 fi 8028done 8029done 8030IFS=$as_save_IFS 8031 8032 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 8033 ;; 8034esac 8035fi 8036XDOT_PY=$ac_cv_path_XDOT_PY 8037if test -n "$XDOT_PY"; then 8038 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 8039echo "${ECHO_T}$XDOT_PY" >&6; } 8040else 8041 { echo "$as_me:$LINENO: result: no" >&5 8042echo "${ECHO_T}no" >&6; } 8043fi 8044 8045 8046if test "$XDOT_PY" != "echo xdot.py" ; then 8047 8048cat >>confdefs.h <<\_ACEOF 8049#define HAVE_XDOT_PY 1 8050_ACEOF 8051 8052 if test "$llvm_cv_os_type" = "MingW" ; then 8053 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 8054 fi 8055 8056cat >>confdefs.h <<_ACEOF 8057#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 8058_ACEOF 8059 8060fi 8061 8062 8063# Extract the first word of "perl", so it can be a program name with args. 8064set dummy perl; ac_word=$2 8065{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8067if test "${ac_cv_path_PERL+set}" = set; then 8068 echo $ECHO_N "(cached) $ECHO_C" >&6 8069else 8070 case $PERL in 8071 [\\/]* | ?:[\\/]*) 8072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8073 ;; 8074 *) 8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076for as_dir in $PATH 8077do 8078 IFS=$as_save_IFS 8079 test -z "$as_dir" && as_dir=. 8080 for ac_exec_ext in '' $ac_executable_extensions; do 8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8084 break 2 8085 fi 8086done 8087done 8088IFS=$as_save_IFS 8089 8090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 8091 ;; 8092esac 8093fi 8094PERL=$ac_cv_path_PERL 8095if test -n "$PERL"; then 8096 { echo "$as_me:$LINENO: result: $PERL" >&5 8097echo "${ECHO_T}$PERL" >&6; } 8098else 8099 { echo "$as_me:$LINENO: result: no" >&5 8100echo "${ECHO_T}no" >&6; } 8101fi 8102 8103 8104if test "$PERL" != "none"; then 8105 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 8106echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 8107 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 8108 { echo "$as_me:$LINENO: result: yes" >&5 8109echo "${ECHO_T}yes" >&6; } 8110 else 8111 PERL=none 8112 { echo "$as_me:$LINENO: result: not found" >&5 8113echo "${ECHO_T}not found" >&6; } 8114 fi 8115fi 8116 8117 8118if test x"$PERL" = xnone; then 8119 HAVE_PERL=0 8120 8121 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 8122echo "$as_me: error: perl is required but was not found, please install it" >&2;} 8123 { (exit 1); exit 1; }; } 8124else 8125 HAVE_PERL=1 8126 8127fi 8128 8129# Find a good install program. We prefer a C program (faster), 8130# so one script is as good as another. But avoid the broken or 8131# incompatible versions: 8132# SysV /etc/install, /usr/sbin/install 8133# SunOS /usr/etc/install 8134# IRIX /sbin/install 8135# AIX /bin/install 8136# AmigaOS /C/install, which installs bootblocks on floppy discs 8137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8138# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8140# OS/2's system install, which has a completely different semantic 8141# ./install, which can be erroneously created by make from ./install.sh. 8142{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 8143echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 8144if test -z "$INSTALL"; then 8145if test "${ac_cv_path_install+set}" = set; then 8146 echo $ECHO_N "(cached) $ECHO_C" >&6 8147else 8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8149for as_dir in $PATH 8150do 8151 IFS=$as_save_IFS 8152 test -z "$as_dir" && as_dir=. 8153 # Account for people who put trailing slashes in PATH elements. 8154case $as_dir/ in 8155 ./ | .// | /cC/* | \ 8156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 8158 /usr/ucb/* ) ;; 8159 *) 8160 # OSF1 and SCO ODT 3.0 have their own names for install. 8161 # Don't use installbsd from OSF since it installs stuff as root 8162 # by default. 8163 for ac_prog in ginstall scoinst install; do 8164 for ac_exec_ext in '' $ac_executable_extensions; do 8165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 8166 if test $ac_prog = install && 8167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8168 # AIX install. It has an incompatible calling convention. 8169 : 8170 elif test $ac_prog = install && 8171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8172 # program-specific install script used by HP pwplus--don't use. 8173 : 8174 else 8175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8176 break 3 8177 fi 8178 fi 8179 done 8180 done 8181 ;; 8182esac 8183done 8184IFS=$as_save_IFS 8185 8186 8187fi 8188 if test "${ac_cv_path_install+set}" = set; then 8189 INSTALL=$ac_cv_path_install 8190 else 8191 # As a last resort, use the slow shell script. Don't cache a 8192 # value for INSTALL within a source directory, because that will 8193 # break other packages using the cache if that directory is 8194 # removed, or if the value is a relative name. 8195 INSTALL=$ac_install_sh 8196 fi 8197fi 8198{ echo "$as_me:$LINENO: result: $INSTALL" >&5 8199echo "${ECHO_T}$INSTALL" >&6; } 8200 8201# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8202# It thinks the first close brace ends the variable substitution. 8203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8204 8205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8206 8207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8208 8209case "$INSTALL" in 8210 [\\/$]* | ?:[\\/]* ) ;; 8211 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 8212esac 8213 8214# Extract the first word of "bzip2", so it can be a program name with args. 8215set dummy bzip2; ac_word=$2 8216{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8218if test "${ac_cv_path_BZIP2+set}" = set; then 8219 echo $ECHO_N "(cached) $ECHO_C" >&6 8220else 8221 case $BZIP2 in 8222 [\\/]* | ?:[\\/]*) 8223 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 8224 ;; 8225 *) 8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8227for as_dir in $PATH 8228do 8229 IFS=$as_save_IFS 8230 test -z "$as_dir" && as_dir=. 8231 for ac_exec_ext in '' $ac_executable_extensions; do 8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8233 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8235 break 2 8236 fi 8237done 8238done 8239IFS=$as_save_IFS 8240 8241 ;; 8242esac 8243fi 8244BZIP2=$ac_cv_path_BZIP2 8245if test -n "$BZIP2"; then 8246 { echo "$as_me:$LINENO: result: $BZIP2" >&5 8247echo "${ECHO_T}$BZIP2" >&6; } 8248else 8249 { echo "$as_me:$LINENO: result: no" >&5 8250echo "${ECHO_T}no" >&6; } 8251fi 8252 8253 8254# Extract the first word of "cat", so it can be a program name with args. 8255set dummy cat; ac_word=$2 8256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8258if test "${ac_cv_path_CAT+set}" = set; then 8259 echo $ECHO_N "(cached) $ECHO_C" >&6 8260else 8261 case $CAT in 8262 [\\/]* | ?:[\\/]*) 8263 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 8264 ;; 8265 *) 8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8267for as_dir in $PATH 8268do 8269 IFS=$as_save_IFS 8270 test -z "$as_dir" && as_dir=. 8271 for ac_exec_ext in '' $ac_executable_extensions; do 8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8273 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8275 break 2 8276 fi 8277done 8278done 8279IFS=$as_save_IFS 8280 8281 ;; 8282esac 8283fi 8284CAT=$ac_cv_path_CAT 8285if test -n "$CAT"; then 8286 { echo "$as_me:$LINENO: result: $CAT" >&5 8287echo "${ECHO_T}$CAT" >&6; } 8288else 8289 { echo "$as_me:$LINENO: result: no" >&5 8290echo "${ECHO_T}no" >&6; } 8291fi 8292 8293 8294# Extract the first word of "doxygen", so it can be a program name with args. 8295set dummy doxygen; ac_word=$2 8296{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8298if test "${ac_cv_path_DOXYGEN+set}" = set; then 8299 echo $ECHO_N "(cached) $ECHO_C" >&6 8300else 8301 case $DOXYGEN in 8302 [\\/]* | ?:[\\/]*) 8303 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 8304 ;; 8305 *) 8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307for as_dir in $PATH 8308do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8313 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317done 8318done 8319IFS=$as_save_IFS 8320 8321 ;; 8322esac 8323fi 8324DOXYGEN=$ac_cv_path_DOXYGEN 8325if test -n "$DOXYGEN"; then 8326 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 8327echo "${ECHO_T}$DOXYGEN" >&6; } 8328else 8329 { echo "$as_me:$LINENO: result: no" >&5 8330echo "${ECHO_T}no" >&6; } 8331fi 8332 8333 8334# Extract the first word of "groff", so it can be a program name with args. 8335set dummy groff; ac_word=$2 8336{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8338if test "${ac_cv_path_GROFF+set}" = set; then 8339 echo $ECHO_N "(cached) $ECHO_C" >&6 8340else 8341 case $GROFF in 8342 [\\/]* | ?:[\\/]*) 8343 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 8344 ;; 8345 *) 8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8353 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 8354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357done 8358done 8359IFS=$as_save_IFS 8360 8361 ;; 8362esac 8363fi 8364GROFF=$ac_cv_path_GROFF 8365if test -n "$GROFF"; then 8366 { echo "$as_me:$LINENO: result: $GROFF" >&5 8367echo "${ECHO_T}$GROFF" >&6; } 8368else 8369 { echo "$as_me:$LINENO: result: no" >&5 8370echo "${ECHO_T}no" >&6; } 8371fi 8372 8373 8374# Extract the first word of "gzip", so it can be a program name with args. 8375set dummy gzip; ac_word=$2 8376{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8378if test "${ac_cv_path_GZIPBIN+set}" = set; then 8379 echo $ECHO_N "(cached) $ECHO_C" >&6 8380else 8381 case $GZIPBIN in 8382 [\\/]* | ?:[\\/]*) 8383 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 8384 ;; 8385 *) 8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8387for as_dir in $PATH 8388do 8389 IFS=$as_save_IFS 8390 test -z "$as_dir" && as_dir=. 8391 for ac_exec_ext in '' $ac_executable_extensions; do 8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8393 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8395 break 2 8396 fi 8397done 8398done 8399IFS=$as_save_IFS 8400 8401 ;; 8402esac 8403fi 8404GZIPBIN=$ac_cv_path_GZIPBIN 8405if test -n "$GZIPBIN"; then 8406 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 8407echo "${ECHO_T}$GZIPBIN" >&6; } 8408else 8409 { echo "$as_me:$LINENO: result: no" >&5 8410echo "${ECHO_T}no" >&6; } 8411fi 8412 8413 8414# Extract the first word of "pod2html", so it can be a program name with args. 8415set dummy pod2html; ac_word=$2 8416{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8418if test "${ac_cv_path_POD2HTML+set}" = set; then 8419 echo $ECHO_N "(cached) $ECHO_C" >&6 8420else 8421 case $POD2HTML in 8422 [\\/]* | ?:[\\/]*) 8423 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 8424 ;; 8425 *) 8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8427for as_dir in $PATH 8428do 8429 IFS=$as_save_IFS 8430 test -z "$as_dir" && as_dir=. 8431 for ac_exec_ext in '' $ac_executable_extensions; do 8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8433 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8435 break 2 8436 fi 8437done 8438done 8439IFS=$as_save_IFS 8440 8441 ;; 8442esac 8443fi 8444POD2HTML=$ac_cv_path_POD2HTML 8445if test -n "$POD2HTML"; then 8446 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 8447echo "${ECHO_T}$POD2HTML" >&6; } 8448else 8449 { echo "$as_me:$LINENO: result: no" >&5 8450echo "${ECHO_T}no" >&6; } 8451fi 8452 8453 8454# Extract the first word of "pod2man", so it can be a program name with args. 8455set dummy pod2man; ac_word=$2 8456{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8458if test "${ac_cv_path_POD2MAN+set}" = set; then 8459 echo $ECHO_N "(cached) $ECHO_C" >&6 8460else 8461 case $POD2MAN in 8462 [\\/]* | ?:[\\/]*) 8463 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 8464 ;; 8465 *) 8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8467for as_dir in $PATH 8468do 8469 IFS=$as_save_IFS 8470 test -z "$as_dir" && as_dir=. 8471 for ac_exec_ext in '' $ac_executable_extensions; do 8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8473 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8475 break 2 8476 fi 8477done 8478done 8479IFS=$as_save_IFS 8480 8481 ;; 8482esac 8483fi 8484POD2MAN=$ac_cv_path_POD2MAN 8485if test -n "$POD2MAN"; then 8486 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 8487echo "${ECHO_T}$POD2MAN" >&6; } 8488else 8489 { echo "$as_me:$LINENO: result: no" >&5 8490echo "${ECHO_T}no" >&6; } 8491fi 8492 8493 8494# Extract the first word of "pdfroff", so it can be a program name with args. 8495set dummy pdfroff; ac_word=$2 8496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8498if test "${ac_cv_path_PDFROFF+set}" = set; then 8499 echo $ECHO_N "(cached) $ECHO_C" >&6 8500else 8501 case $PDFROFF in 8502 [\\/]* | ?:[\\/]*) 8503 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 8504 ;; 8505 *) 8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507for as_dir in $PATH 8508do 8509 IFS=$as_save_IFS 8510 test -z "$as_dir" && as_dir=. 8511 for ac_exec_ext in '' $ac_executable_extensions; do 8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8513 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8515 break 2 8516 fi 8517done 8518done 8519IFS=$as_save_IFS 8520 8521 ;; 8522esac 8523fi 8524PDFROFF=$ac_cv_path_PDFROFF 8525if test -n "$PDFROFF"; then 8526 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 8527echo "${ECHO_T}$PDFROFF" >&6; } 8528else 8529 { echo "$as_me:$LINENO: result: no" >&5 8530echo "${ECHO_T}no" >&6; } 8531fi 8532 8533 8534# Extract the first word of "runtest", so it can be a program name with args. 8535set dummy runtest; ac_word=$2 8536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8538if test "${ac_cv_path_RUNTEST+set}" = set; then 8539 echo $ECHO_N "(cached) $ECHO_C" >&6 8540else 8541 case $RUNTEST in 8542 [\\/]* | ?:[\\/]*) 8543 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 8544 ;; 8545 *) 8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8547for as_dir in $PATH 8548do 8549 IFS=$as_save_IFS 8550 test -z "$as_dir" && as_dir=. 8551 for ac_exec_ext in '' $ac_executable_extensions; do 8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8553 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8555 break 2 8556 fi 8557done 8558done 8559IFS=$as_save_IFS 8560 8561 ;; 8562esac 8563fi 8564RUNTEST=$ac_cv_path_RUNTEST 8565if test -n "$RUNTEST"; then 8566 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 8567echo "${ECHO_T}$RUNTEST" >&6; } 8568else 8569 { echo "$as_me:$LINENO: result: no" >&5 8570echo "${ECHO_T}no" >&6; } 8571fi 8572 8573 8574 8575no_itcl=true 8576{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 8577echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 8578 8579# Check whether --with-tclinclude was given. 8580if test "${with_tclinclude+set}" = set; then 8581 withval=$with_tclinclude; with_tclinclude=${withval} 8582else 8583 with_tclinclude='' 8584fi 8585 8586if test "${ac_cv_path_tclsh+set}" = set; then 8587 echo $ECHO_N "(cached) $ECHO_C" >&6 8588else 8589 8590if test x"${with_tclinclude}" != x ; then 8591 if test -f ${with_tclinclude}/tclsh ; then 8592 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 8593 elif test -f ${with_tclinclude}/src/tclsh ; then 8594 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 8595 else 8596 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 8597echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 8598 { (exit 1); exit 1; }; } 8599 fi 8600fi 8601fi 8602 8603 8604if test x"${ac_cv_path_tclsh}" = x ; then 8605 { echo "$as_me:$LINENO: result: none" >&5 8606echo "${ECHO_T}none" >&6; } 8607 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 8608do 8609 # Extract the first word of "$ac_prog", so it can be a program name with args. 8610set dummy $ac_prog; ac_word=$2 8611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8613if test "${ac_cv_path_TCLSH+set}" = set; then 8614 echo $ECHO_N "(cached) $ECHO_C" >&6 8615else 8616 case $TCLSH in 8617 [\\/]* | ?:[\\/]*) 8618 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 8619 ;; 8620 *) 8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8622for as_dir in $PATH 8623do 8624 IFS=$as_save_IFS 8625 test -z "$as_dir" && as_dir=. 8626 for ac_exec_ext in '' $ac_executable_extensions; do 8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8628 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 8629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8630 break 2 8631 fi 8632done 8633done 8634IFS=$as_save_IFS 8635 8636 ;; 8637esac 8638fi 8639TCLSH=$ac_cv_path_TCLSH 8640if test -n "$TCLSH"; then 8641 { echo "$as_me:$LINENO: result: $TCLSH" >&5 8642echo "${ECHO_T}$TCLSH" >&6; } 8643else 8644 { echo "$as_me:$LINENO: result: no" >&5 8645echo "${ECHO_T}no" >&6; } 8646fi 8647 8648 8649 test -n "$TCLSH" && break 8650done 8651 8652 if test x"${TCLSH}" = x ; then 8653 ac_cv_path_tclsh=''; 8654 else 8655 ac_cv_path_tclsh="${TCLSH}"; 8656 fi 8657else 8658 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 8659echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 8660 TCLSH="${ac_cv_path_tclsh}" 8661 8662fi 8663 8664# Extract the first word of "zip", so it can be a program name with args. 8665set dummy zip; ac_word=$2 8666{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8668if test "${ac_cv_path_ZIP+set}" = set; then 8669 echo $ECHO_N "(cached) $ECHO_C" >&6 8670else 8671 case $ZIP in 8672 [\\/]* | ?:[\\/]*) 8673 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 8674 ;; 8675 *) 8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8677for as_dir in $PATH 8678do 8679 IFS=$as_save_IFS 8680 test -z "$as_dir" && as_dir=. 8681 for ac_exec_ext in '' $ac_executable_extensions; do 8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8683 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8685 break 2 8686 fi 8687done 8688done 8689IFS=$as_save_IFS 8690 8691 ;; 8692esac 8693fi 8694ZIP=$ac_cv_path_ZIP 8695if test -n "$ZIP"; then 8696 { echo "$as_me:$LINENO: result: $ZIP" >&5 8697echo "${ECHO_T}$ZIP" >&6; } 8698else 8699 { echo "$as_me:$LINENO: result: no" >&5 8700echo "${ECHO_T}no" >&6; } 8701fi 8702 8703 8704for ac_prog in ocamlc 8705do 8706 # Extract the first word of "$ac_prog", so it can be a program name with args. 8707set dummy $ac_prog; ac_word=$2 8708{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8710if test "${ac_cv_path_OCAMLC+set}" = set; then 8711 echo $ECHO_N "(cached) $ECHO_C" >&6 8712else 8713 case $OCAMLC in 8714 [\\/]* | ?:[\\/]*) 8715 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 8716 ;; 8717 *) 8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8719for as_dir in $PATH 8720do 8721 IFS=$as_save_IFS 8722 test -z "$as_dir" && as_dir=. 8723 for ac_exec_ext in '' $ac_executable_extensions; do 8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8725 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 8726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8727 break 2 8728 fi 8729done 8730done 8731IFS=$as_save_IFS 8732 8733 ;; 8734esac 8735fi 8736OCAMLC=$ac_cv_path_OCAMLC 8737if test -n "$OCAMLC"; then 8738 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 8739echo "${ECHO_T}$OCAMLC" >&6; } 8740else 8741 { echo "$as_me:$LINENO: result: no" >&5 8742echo "${ECHO_T}no" >&6; } 8743fi 8744 8745 8746 test -n "$OCAMLC" && break 8747done 8748 8749for ac_prog in ocamlopt 8750do 8751 # Extract the first word of "$ac_prog", so it can be a program name with args. 8752set dummy $ac_prog; ac_word=$2 8753{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8755if test "${ac_cv_path_OCAMLOPT+set}" = set; then 8756 echo $ECHO_N "(cached) $ECHO_C" >&6 8757else 8758 case $OCAMLOPT in 8759 [\\/]* | ?:[\\/]*) 8760 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 8761 ;; 8762 *) 8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8764for as_dir in $PATH 8765do 8766 IFS=$as_save_IFS 8767 test -z "$as_dir" && as_dir=. 8768 for ac_exec_ext in '' $ac_executable_extensions; do 8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8770 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8772 break 2 8773 fi 8774done 8775done 8776IFS=$as_save_IFS 8777 8778 ;; 8779esac 8780fi 8781OCAMLOPT=$ac_cv_path_OCAMLOPT 8782if test -n "$OCAMLOPT"; then 8783 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 8784echo "${ECHO_T}$OCAMLOPT" >&6; } 8785else 8786 { echo "$as_me:$LINENO: result: no" >&5 8787echo "${ECHO_T}no" >&6; } 8788fi 8789 8790 8791 test -n "$OCAMLOPT" && break 8792done 8793 8794for ac_prog in ocamldep 8795do 8796 # Extract the first word of "$ac_prog", so it can be a program name with args. 8797set dummy $ac_prog; ac_word=$2 8798{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8800if test "${ac_cv_path_OCAMLDEP+set}" = set; then 8801 echo $ECHO_N "(cached) $ECHO_C" >&6 8802else 8803 case $OCAMLDEP in 8804 [\\/]* | ?:[\\/]*) 8805 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 8806 ;; 8807 *) 8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8809for as_dir in $PATH 8810do 8811 IFS=$as_save_IFS 8812 test -z "$as_dir" && as_dir=. 8813 for ac_exec_ext in '' $ac_executable_extensions; do 8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8815 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8817 break 2 8818 fi 8819done 8820done 8821IFS=$as_save_IFS 8822 8823 ;; 8824esac 8825fi 8826OCAMLDEP=$ac_cv_path_OCAMLDEP 8827if test -n "$OCAMLDEP"; then 8828 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 8829echo "${ECHO_T}$OCAMLDEP" >&6; } 8830else 8831 { echo "$as_me:$LINENO: result: no" >&5 8832echo "${ECHO_T}no" >&6; } 8833fi 8834 8835 8836 test -n "$OCAMLDEP" && break 8837done 8838 8839for ac_prog in ocamldoc 8840do 8841 # Extract the first word of "$ac_prog", so it can be a program name with args. 8842set dummy $ac_prog; ac_word=$2 8843{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8845if test "${ac_cv_path_OCAMLDOC+set}" = set; then 8846 echo $ECHO_N "(cached) $ECHO_C" >&6 8847else 8848 case $OCAMLDOC in 8849 [\\/]* | ?:[\\/]*) 8850 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 8851 ;; 8852 *) 8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8854for as_dir in $PATH 8855do 8856 IFS=$as_save_IFS 8857 test -z "$as_dir" && as_dir=. 8858 for ac_exec_ext in '' $ac_executable_extensions; do 8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8860 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8862 break 2 8863 fi 8864done 8865done 8866IFS=$as_save_IFS 8867 8868 ;; 8869esac 8870fi 8871OCAMLDOC=$ac_cv_path_OCAMLDOC 8872if test -n "$OCAMLDOC"; then 8873 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 8874echo "${ECHO_T}$OCAMLDOC" >&6; } 8875else 8876 { echo "$as_me:$LINENO: result: no" >&5 8877echo "${ECHO_T}no" >&6; } 8878fi 8879 8880 8881 test -n "$OCAMLDOC" && break 8882done 8883 8884for ac_prog in gas as 8885do 8886 # Extract the first word of "$ac_prog", so it can be a program name with args. 8887set dummy $ac_prog; ac_word=$2 8888{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8890if test "${ac_cv_path_GAS+set}" = set; then 8891 echo $ECHO_N "(cached) $ECHO_C" >&6 8892else 8893 case $GAS in 8894 [\\/]* | ?:[\\/]*) 8895 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 8896 ;; 8897 *) 8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8899for as_dir in $PATH 8900do 8901 IFS=$as_save_IFS 8902 test -z "$as_dir" && as_dir=. 8903 for ac_exec_ext in '' $ac_executable_extensions; do 8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8905 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8907 break 2 8908 fi 8909done 8910done 8911IFS=$as_save_IFS 8912 8913 ;; 8914esac 8915fi 8916GAS=$ac_cv_path_GAS 8917if test -n "$GAS"; then 8918 { echo "$as_me:$LINENO: result: $GAS" >&5 8919echo "${ECHO_T}$GAS" >&6; } 8920else 8921 { echo "$as_me:$LINENO: result: no" >&5 8922echo "${ECHO_T}no" >&6; } 8923fi 8924 8925 8926 test -n "$GAS" && break 8927done 8928 8929 8930{ echo "$as_me:$LINENO: checking for linker version" >&5 8931echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 8932if test "${llvm_cv_link_version+set}" = set; then 8933 echo $ECHO_N "(cached) $ECHO_C" >&6 8934else 8935 8936 version_string="$(ld -v 2>&1 | head -1)" 8937 8938 # Check for ld64. 8939 if (echo "$version_string" | grep -q "ld64"); then 8940 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") 8941 else 8942 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 8943 fi 8944 8945fi 8946{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 8947echo "${ECHO_T}$llvm_cv_link_version" >&6; } 8948 8949cat >>confdefs.h <<_ACEOF 8950#define HOST_LINK_VERSION "$llvm_cv_link_version" 8951_ACEOF 8952 8953 8954 8955{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 8956echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 8957if test "${llvm_cv_link_use_r+set}" = set; then 8958 echo $ECHO_N "(cached) $ECHO_C" >&6 8959else 8960 ac_ext=c 8961ac_cpp='$CPP $CPPFLAGS' 8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8964ac_compiler_gnu=$ac_cv_c_compiler_gnu 8965 8966 oldcflags="$CFLAGS" 8967 CFLAGS="$CFLAGS -Wl,-R." 8968 cat >conftest.$ac_ext <<_ACEOF 8969/* confdefs.h. */ 8970_ACEOF 8971cat confdefs.h >>conftest.$ac_ext 8972cat >>conftest.$ac_ext <<_ACEOF 8973/* end confdefs.h. */ 8974 8975int 8976main () 8977{ 8978 8979 ; 8980 return 0; 8981} 8982_ACEOF 8983rm -f conftest.$ac_objext conftest$ac_exeext 8984if { (ac_try="$ac_link" 8985case "(($ac_try" in 8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8987 *) ac_try_echo=$ac_try;; 8988esac 8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8990 (eval "$ac_link") 2>conftest.er1 8991 ac_status=$? 8992 grep -v '^ *+' conftest.er1 >conftest.err 8993 rm -f conftest.er1 8994 cat conftest.err >&5 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 (exit $ac_status); } && 8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8998 { (case "(($ac_try" in 8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9000 *) ac_try_echo=$ac_try;; 9001esac 9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9003 (eval "$ac_try") 2>&5 9004 ac_status=$? 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); }; } && 9007 { ac_try='test -s conftest$ac_exeext' 9008 { (case "(($ac_try" in 9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9010 *) ac_try_echo=$ac_try;; 9011esac 9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9013 (eval "$ac_try") 2>&5 9014 ac_status=$? 9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 (exit $ac_status); }; }; then 9017 llvm_cv_link_use_r=yes 9018else 9019 echo "$as_me: failed program was:" >&5 9020sed 's/^/| /' conftest.$ac_ext >&5 9021 9022 llvm_cv_link_use_r=no 9023fi 9024 9025rm -f core conftest.err conftest.$ac_objext \ 9026 conftest$ac_exeext conftest.$ac_ext 9027 CFLAGS="$oldcflags" 9028 ac_ext=c 9029ac_cpp='$CPP $CPPFLAGS' 9030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9032ac_compiler_gnu=$ac_cv_c_compiler_gnu 9033 9034 9035fi 9036{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 9037echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 9038if test "$llvm_cv_link_use_r" = yes ; then 9039 9040cat >>confdefs.h <<\_ACEOF 9041#define HAVE_LINK_R 1 9042_ACEOF 9043 9044 fi 9045 9046 9047{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 9048echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 9049if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 9050 echo $ECHO_N "(cached) $ECHO_C" >&6 9051else 9052 ac_ext=c 9053ac_cpp='$CPP $CPPFLAGS' 9054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9056ac_compiler_gnu=$ac_cv_c_compiler_gnu 9057 9058 oldcflags="$CFLAGS" 9059 CFLAGS="$CFLAGS -Wl,-export-dynamic" 9060 cat >conftest.$ac_ext <<_ACEOF 9061/* confdefs.h. */ 9062_ACEOF 9063cat confdefs.h >>conftest.$ac_ext 9064cat >>conftest.$ac_ext <<_ACEOF 9065/* end confdefs.h. */ 9066 9067int 9068main () 9069{ 9070 9071 ; 9072 return 0; 9073} 9074_ACEOF 9075rm -f conftest.$ac_objext conftest$ac_exeext 9076if { (ac_try="$ac_link" 9077case "(($ac_try" in 9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9079 *) ac_try_echo=$ac_try;; 9080esac 9081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9082 (eval "$ac_link") 2>conftest.er1 9083 ac_status=$? 9084 grep -v '^ *+' conftest.er1 >conftest.err 9085 rm -f conftest.er1 9086 cat conftest.err >&5 9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9088 (exit $ac_status); } && 9089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9090 { (case "(($ac_try" in 9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9092 *) ac_try_echo=$ac_try;; 9093esac 9094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9095 (eval "$ac_try") 2>&5 9096 ac_status=$? 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 (exit $ac_status); }; } && 9099 { ac_try='test -s conftest$ac_exeext' 9100 { (case "(($ac_try" in 9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9102 *) ac_try_echo=$ac_try;; 9103esac 9104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9105 (eval "$ac_try") 2>&5 9106 ac_status=$? 9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9108 (exit $ac_status); }; }; then 9109 llvm_cv_link_use_export_dynamic=yes 9110else 9111 echo "$as_me: failed program was:" >&5 9112sed 's/^/| /' conftest.$ac_ext >&5 9113 9114 llvm_cv_link_use_export_dynamic=no 9115fi 9116 9117rm -f core conftest.err conftest.$ac_objext \ 9118 conftest$ac_exeext conftest.$ac_ext 9119 CFLAGS="$oldcflags" 9120 ac_ext=c 9121ac_cpp='$CPP $CPPFLAGS' 9122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9124ac_compiler_gnu=$ac_cv_c_compiler_gnu 9125 9126 9127fi 9128{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 9129echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 9130if test "$llvm_cv_link_use_export_dynamic" = yes ; then 9131 9132cat >>confdefs.h <<\_ACEOF 9133#define HAVE_LINK_EXPORT_DYNAMIC 1 9134_ACEOF 9135 9136 fi 9137 9138 9139{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 9140echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 9141if test "${llvm_cv_link_use_version_script+set}" = set; then 9142 echo $ECHO_N "(cached) $ECHO_C" >&6 9143else 9144 ac_ext=c 9145ac_cpp='$CPP $CPPFLAGS' 9146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9148ac_compiler_gnu=$ac_cv_c_compiler_gnu 9149 9150 oldcflags="$CFLAGS" 9151 9152 # The following code is from the autoconf manual, 9153 # "11.13: Limitations of Usual Tools". 9154 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 9155 # Use mktemp if possible; otherwise fall back on mkdir, 9156 # with $RANDOM to make collisions less likely. 9157 : ${TMPDIR=/tmp} 9158 { 9159 tmp=` 9160 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 9161 ` && 9162 test -n "$tmp" && test -d "$tmp" 9163 } || { 9164 tmp=$TMPDIR/foo$$-$RANDOM 9165 (umask 077 && mkdir "$tmp") 9166 } || exit $? 9167 9168 echo "{" > "$tmp/export.map" 9169 echo " global: main;" >> "$tmp/export.map" 9170 echo " local: *;" >> "$tmp/export.map" 9171 echo "};" >> "$tmp/export.map" 9172 9173 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 9174 cat >conftest.$ac_ext <<_ACEOF 9175/* confdefs.h. */ 9176_ACEOF 9177cat confdefs.h >>conftest.$ac_ext 9178cat >>conftest.$ac_ext <<_ACEOF 9179/* end confdefs.h. */ 9180 9181int 9182main () 9183{ 9184 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189rm -f conftest.$ac_objext conftest$ac_exeext 9190if { (ac_try="$ac_link" 9191case "(($ac_try" in 9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9193 *) ac_try_echo=$ac_try;; 9194esac 9195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9196 (eval "$ac_link") 2>conftest.er1 9197 ac_status=$? 9198 grep -v '^ *+' conftest.er1 >conftest.err 9199 rm -f conftest.er1 9200 cat conftest.err >&5 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9202 (exit $ac_status); } && 9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9204 { (case "(($ac_try" in 9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9206 *) ac_try_echo=$ac_try;; 9207esac 9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9209 (eval "$ac_try") 2>&5 9210 ac_status=$? 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); }; } && 9213 { ac_try='test -s conftest$ac_exeext' 9214 { (case "(($ac_try" in 9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9216 *) ac_try_echo=$ac_try;; 9217esac 9218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9219 (eval "$ac_try") 2>&5 9220 ac_status=$? 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); }; }; then 9223 llvm_cv_link_use_version_script=yes 9224else 9225 echo "$as_me: failed program was:" >&5 9226sed 's/^/| /' conftest.$ac_ext >&5 9227 9228 llvm_cv_link_use_version_script=no 9229fi 9230 9231rm -f core conftest.err conftest.$ac_objext \ 9232 conftest$ac_exeext conftest.$ac_ext 9233 rm "$tmp/export.map" 9234 rmdir "$tmp" 9235 CFLAGS="$oldcflags" 9236 ac_ext=c 9237ac_cpp='$CPP $CPPFLAGS' 9238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9240ac_compiler_gnu=$ac_cv_c_compiler_gnu 9241 9242 9243fi 9244{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 9245echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 9246if test "$llvm_cv_link_use_version_script" = yes ; then 9247 HAVE_LINK_VERSION_SCRIPT=1 9248 9249 fi 9250 9251 9252 9253 9254{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 9255echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 9256if test "${ac_cv_c_const+set}" = set; then 9257 echo $ECHO_N "(cached) $ECHO_C" >&6 9258else 9259 cat >conftest.$ac_ext <<_ACEOF 9260/* confdefs.h. */ 9261_ACEOF 9262cat confdefs.h >>conftest.$ac_ext 9263cat >>conftest.$ac_ext <<_ACEOF 9264/* end confdefs.h. */ 9265 9266int 9267main () 9268{ 9269/* FIXME: Include the comments suggested by Paul. */ 9270#ifndef __cplusplus 9271 /* Ultrix mips cc rejects this. */ 9272 typedef int charset[2]; 9273 const charset x; 9274 /* SunOS 4.1.1 cc rejects this. */ 9275 char const *const *ccp; 9276 char **p; 9277 /* NEC SVR4.0.2 mips cc rejects this. */ 9278 struct point {int x, y;}; 9279 static struct point const zero = {0,0}; 9280 /* AIX XL C 1.02.0.0 rejects this. 9281 It does not let you subtract one const X* pointer from another in 9282 an arm of an if-expression whose if-part is not a constant 9283 expression */ 9284 const char *g = "string"; 9285 ccp = &g + (g ? g-g : 0); 9286 /* HPUX 7.0 cc rejects these. */ 9287 ++ccp; 9288 p = (char**) ccp; 9289 ccp = (char const *const *) p; 9290 { /* SCO 3.2v4 cc rejects this. */ 9291 char *t; 9292 char const *s = 0 ? (char *) 0 : (char const *) 0; 9293 9294 *t++ = 0; 9295 if (s) return 0; 9296 } 9297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9298 int x[] = {25, 17}; 9299 const int *foo = &x[0]; 9300 ++foo; 9301 } 9302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9303 typedef const int *iptr; 9304 iptr p = 0; 9305 ++p; 9306 } 9307 { /* AIX XL C 1.02.0.0 rejects this saying 9308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9309 struct s { int j; const int *ap[3]; }; 9310 struct s *b; b->j = 5; 9311 } 9312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9313 const int foo = 10; 9314 if (!foo) return 0; 9315 } 9316 return !x[0] && !zero.x; 9317#endif 9318 9319 ; 9320 return 0; 9321} 9322_ACEOF 9323rm -f conftest.$ac_objext 9324if { (ac_try="$ac_compile" 9325case "(($ac_try" in 9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9327 *) ac_try_echo=$ac_try;; 9328esac 9329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9330 (eval "$ac_compile") 2>conftest.er1 9331 ac_status=$? 9332 grep -v '^ *+' conftest.er1 >conftest.err 9333 rm -f conftest.er1 9334 cat conftest.err >&5 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); } && 9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9338 { (case "(($ac_try" in 9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9340 *) ac_try_echo=$ac_try;; 9341esac 9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9343 (eval "$ac_try") 2>&5 9344 ac_status=$? 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 (exit $ac_status); }; } && 9347 { ac_try='test -s conftest.$ac_objext' 9348 { (case "(($ac_try" in 9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9350 *) ac_try_echo=$ac_try;; 9351esac 9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9353 (eval "$ac_try") 2>&5 9354 ac_status=$? 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); }; }; then 9357 ac_cv_c_const=yes 9358else 9359 echo "$as_me: failed program was:" >&5 9360sed 's/^/| /' conftest.$ac_ext >&5 9361 9362 ac_cv_c_const=no 9363fi 9364 9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9366fi 9367{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9368echo "${ECHO_T}$ac_cv_c_const" >&6; } 9369if test $ac_cv_c_const = no; then 9370 9371cat >>confdefs.h <<\_ACEOF 9372#define const 9373_ACEOF 9374 9375fi 9376 9377 9378 9379 9380 9381 9382ac_header_dirent=no 9383for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9385{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 9386echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 9387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9388 echo $ECHO_N "(cached) $ECHO_C" >&6 9389else 9390 cat >conftest.$ac_ext <<_ACEOF 9391/* confdefs.h. */ 9392_ACEOF 9393cat confdefs.h >>conftest.$ac_ext 9394cat >>conftest.$ac_ext <<_ACEOF 9395/* end confdefs.h. */ 9396#include <sys/types.h> 9397#include <$ac_hdr> 9398 9399int 9400main () 9401{ 9402if ((DIR *) 0) 9403return 0; 9404 ; 9405 return 0; 9406} 9407_ACEOF 9408rm -f conftest.$ac_objext 9409if { (ac_try="$ac_compile" 9410case "(($ac_try" in 9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9412 *) ac_try_echo=$ac_try;; 9413esac 9414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9415 (eval "$ac_compile") 2>conftest.er1 9416 ac_status=$? 9417 grep -v '^ *+' conftest.er1 >conftest.err 9418 rm -f conftest.er1 9419 cat conftest.err >&5 9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9421 (exit $ac_status); } && 9422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9423 { (case "(($ac_try" in 9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9425 *) ac_try_echo=$ac_try;; 9426esac 9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9428 (eval "$ac_try") 2>&5 9429 ac_status=$? 9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9431 (exit $ac_status); }; } && 9432 { ac_try='test -s conftest.$ac_objext' 9433 { (case "(($ac_try" in 9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9435 *) ac_try_echo=$ac_try;; 9436esac 9437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9438 (eval "$ac_try") 2>&5 9439 ac_status=$? 9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 (exit $ac_status); }; }; then 9442 eval "$as_ac_Header=yes" 9443else 9444 echo "$as_me: failed program was:" >&5 9445sed 's/^/| /' conftest.$ac_ext >&5 9446 9447 eval "$as_ac_Header=no" 9448fi 9449 9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451fi 9452ac_res=`eval echo '${'$as_ac_Header'}'` 9453 { echo "$as_me:$LINENO: result: $ac_res" >&5 9454echo "${ECHO_T}$ac_res" >&6; } 9455if test `eval echo '${'$as_ac_Header'}'` = yes; then 9456 cat >>confdefs.h <<_ACEOF 9457#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9458_ACEOF 9459 9460ac_header_dirent=$ac_hdr; break 9461fi 9462 9463done 9464# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9465if test $ac_header_dirent = dirent.h; then 9466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9467echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9468if test "${ac_cv_search_opendir+set}" = set; then 9469 echo $ECHO_N "(cached) $ECHO_C" >&6 9470else 9471 ac_func_search_save_LIBS=$LIBS 9472cat >conftest.$ac_ext <<_ACEOF 9473/* confdefs.h. */ 9474_ACEOF 9475cat confdefs.h >>conftest.$ac_ext 9476cat >>conftest.$ac_ext <<_ACEOF 9477/* end confdefs.h. */ 9478 9479/* Override any GCC internal prototype to avoid an error. 9480 Use char because int might match the return type of a GCC 9481 builtin and then its argument prototype would still apply. */ 9482#ifdef __cplusplus 9483extern "C" 9484#endif 9485char opendir (); 9486int 9487main () 9488{ 9489return opendir (); 9490 ; 9491 return 0; 9492} 9493_ACEOF 9494for ac_lib in '' dir; do 9495 if test -z "$ac_lib"; then 9496 ac_res="none required" 9497 else 9498 ac_res=-l$ac_lib 9499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9500 fi 9501 rm -f conftest.$ac_objext conftest$ac_exeext 9502if { (ac_try="$ac_link" 9503case "(($ac_try" in 9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9505 *) ac_try_echo=$ac_try;; 9506esac 9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9508 (eval "$ac_link") 2>conftest.er1 9509 ac_status=$? 9510 grep -v '^ *+' conftest.er1 >conftest.err 9511 rm -f conftest.er1 9512 cat conftest.err >&5 9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9514 (exit $ac_status); } && 9515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9516 { (case "(($ac_try" in 9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9518 *) ac_try_echo=$ac_try;; 9519esac 9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9521 (eval "$ac_try") 2>&5 9522 ac_status=$? 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 (exit $ac_status); }; } && 9525 { ac_try='test -s conftest$ac_exeext' 9526 { (case "(($ac_try" in 9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9528 *) ac_try_echo=$ac_try;; 9529esac 9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9531 (eval "$ac_try") 2>&5 9532 ac_status=$? 9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9534 (exit $ac_status); }; }; then 9535 ac_cv_search_opendir=$ac_res 9536else 9537 echo "$as_me: failed program was:" >&5 9538sed 's/^/| /' conftest.$ac_ext >&5 9539 9540 9541fi 9542 9543rm -f core conftest.err conftest.$ac_objext \ 9544 conftest$ac_exeext 9545 if test "${ac_cv_search_opendir+set}" = set; then 9546 break 9547fi 9548done 9549if test "${ac_cv_search_opendir+set}" = set; then 9550 : 9551else 9552 ac_cv_search_opendir=no 9553fi 9554rm conftest.$ac_ext 9555LIBS=$ac_func_search_save_LIBS 9556fi 9557{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9558echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9559ac_res=$ac_cv_search_opendir 9560if test "$ac_res" != no; then 9561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9562 9563fi 9564 9565else 9566 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9567echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9568if test "${ac_cv_search_opendir+set}" = set; then 9569 echo $ECHO_N "(cached) $ECHO_C" >&6 9570else 9571 ac_func_search_save_LIBS=$LIBS 9572cat >conftest.$ac_ext <<_ACEOF 9573/* confdefs.h. */ 9574_ACEOF 9575cat confdefs.h >>conftest.$ac_ext 9576cat >>conftest.$ac_ext <<_ACEOF 9577/* end confdefs.h. */ 9578 9579/* Override any GCC internal prototype to avoid an error. 9580 Use char because int might match the return type of a GCC 9581 builtin and then its argument prototype would still apply. */ 9582#ifdef __cplusplus 9583extern "C" 9584#endif 9585char opendir (); 9586int 9587main () 9588{ 9589return opendir (); 9590 ; 9591 return 0; 9592} 9593_ACEOF 9594for ac_lib in '' x; do 9595 if test -z "$ac_lib"; then 9596 ac_res="none required" 9597 else 9598 ac_res=-l$ac_lib 9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9600 fi 9601 rm -f conftest.$ac_objext conftest$ac_exeext 9602if { (ac_try="$ac_link" 9603case "(($ac_try" in 9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9605 *) ac_try_echo=$ac_try;; 9606esac 9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9608 (eval "$ac_link") 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && 9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9616 { (case "(($ac_try" in 9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9618 *) ac_try_echo=$ac_try;; 9619esac 9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9621 (eval "$ac_try") 2>&5 9622 ac_status=$? 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); }; } && 9625 { ac_try='test -s conftest$ac_exeext' 9626 { (case "(($ac_try" in 9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9628 *) ac_try_echo=$ac_try;; 9629esac 9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9631 (eval "$ac_try") 2>&5 9632 ac_status=$? 9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9634 (exit $ac_status); }; }; then 9635 ac_cv_search_opendir=$ac_res 9636else 9637 echo "$as_me: failed program was:" >&5 9638sed 's/^/| /' conftest.$ac_ext >&5 9639 9640 9641fi 9642 9643rm -f core conftest.err conftest.$ac_objext \ 9644 conftest$ac_exeext 9645 if test "${ac_cv_search_opendir+set}" = set; then 9646 break 9647fi 9648done 9649if test "${ac_cv_search_opendir+set}" = set; then 9650 : 9651else 9652 ac_cv_search_opendir=no 9653fi 9654rm conftest.$ac_ext 9655LIBS=$ac_func_search_save_LIBS 9656fi 9657{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9658echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9659ac_res=$ac_cv_search_opendir 9660if test "$ac_res" != no; then 9661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9662 9663fi 9664 9665fi 9666 9667 9668for ac_header in dlfcn.h 9669do 9670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9672 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9675 echo $ECHO_N "(cached) $ECHO_C" >&6 9676fi 9677ac_res=`eval echo '${'$as_ac_Header'}'` 9678 { echo "$as_me:$LINENO: result: $ac_res" >&5 9679echo "${ECHO_T}$ac_res" >&6; } 9680else 9681 # Is the header compilable? 9682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9684cat >conftest.$ac_ext <<_ACEOF 9685/* confdefs.h. */ 9686_ACEOF 9687cat confdefs.h >>conftest.$ac_ext 9688cat >>conftest.$ac_ext <<_ACEOF 9689/* end confdefs.h. */ 9690$ac_includes_default 9691#include <$ac_header> 9692_ACEOF 9693rm -f conftest.$ac_objext 9694if { (ac_try="$ac_compile" 9695case "(($ac_try" in 9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9697 *) ac_try_echo=$ac_try;; 9698esac 9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9700 (eval "$ac_compile") 2>conftest.er1 9701 ac_status=$? 9702 grep -v '^ *+' conftest.er1 >conftest.err 9703 rm -f conftest.er1 9704 cat conftest.err >&5 9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); } && 9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9708 { (case "(($ac_try" in 9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9710 *) ac_try_echo=$ac_try;; 9711esac 9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9713 (eval "$ac_try") 2>&5 9714 ac_status=$? 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 (exit $ac_status); }; } && 9717 { ac_try='test -s conftest.$ac_objext' 9718 { (case "(($ac_try" in 9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9720 *) ac_try_echo=$ac_try;; 9721esac 9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9723 (eval "$ac_try") 2>&5 9724 ac_status=$? 9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9726 (exit $ac_status); }; }; then 9727 ac_header_compiler=yes 9728else 9729 echo "$as_me: failed program was:" >&5 9730sed 's/^/| /' conftest.$ac_ext >&5 9731 9732 ac_header_compiler=no 9733fi 9734 9735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9737echo "${ECHO_T}$ac_header_compiler" >&6; } 9738 9739# Is the header present? 9740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9742cat >conftest.$ac_ext <<_ACEOF 9743/* confdefs.h. */ 9744_ACEOF 9745cat confdefs.h >>conftest.$ac_ext 9746cat >>conftest.$ac_ext <<_ACEOF 9747/* end confdefs.h. */ 9748#include <$ac_header> 9749_ACEOF 9750if { (ac_try="$ac_cpp conftest.$ac_ext" 9751case "(($ac_try" in 9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9753 *) ac_try_echo=$ac_try;; 9754esac 9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9757 ac_status=$? 9758 grep -v '^ *+' conftest.er1 >conftest.err 9759 rm -f conftest.er1 9760 cat conftest.err >&5 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9762 (exit $ac_status); } >/dev/null; then 9763 if test -s conftest.err; then 9764 ac_cpp_err=$ac_c_preproc_warn_flag 9765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9766 else 9767 ac_cpp_err= 9768 fi 9769else 9770 ac_cpp_err=yes 9771fi 9772if test -z "$ac_cpp_err"; then 9773 ac_header_preproc=yes 9774else 9775 echo "$as_me: failed program was:" >&5 9776sed 's/^/| /' conftest.$ac_ext >&5 9777 9778 ac_header_preproc=no 9779fi 9780 9781rm -f conftest.err conftest.$ac_ext 9782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9783echo "${ECHO_T}$ac_header_preproc" >&6; } 9784 9785# So? What about this header? 9786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9787 yes:no: ) 9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9792 ac_header_preproc=yes 9793 ;; 9794 no:yes:* ) 9795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9807 ( cat <<\_ASBOX 9808## ----------------------------------- ## 9809## Report this to llvmbugs@cs.uiuc.edu ## 9810## ----------------------------------- ## 9811_ASBOX 9812 ) | sed "s/^/$as_me: WARNING: /" >&2 9813 ;; 9814esac 9815{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9818 echo $ECHO_N "(cached) $ECHO_C" >&6 9819else 9820 eval "$as_ac_Header=\$ac_header_preproc" 9821fi 9822ac_res=`eval echo '${'$as_ac_Header'}'` 9823 { echo "$as_me:$LINENO: result: $ac_res" >&5 9824echo "${ECHO_T}$ac_res" >&6; } 9825 9826fi 9827if test `eval echo '${'$as_ac_Header'}'` = yes; then 9828 cat >>confdefs.h <<_ACEOF 9829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9830_ACEOF 9831 9832fi 9833 9834done 9835 9836# Check whether --enable-ltdl-install was given. 9837if test "${enable_ltdl_install+set}" = set; then 9838 enableval=$enable_ltdl_install; 9839fi 9840 9841 9842 9843 9844if test x"${enable_ltdl_install-no}" != xno; then 9845 INSTALL_LTDL_TRUE= 9846 INSTALL_LTDL_FALSE='#' 9847else 9848 INSTALL_LTDL_TRUE='#' 9849 INSTALL_LTDL_FALSE= 9850fi 9851 9852 9853 9854if test x"${enable_ltdl_convenience-no}" != xno; then 9855 CONVENIENCE_LTDL_TRUE= 9856 CONVENIENCE_LTDL_FALSE='#' 9857else 9858 CONVENIENCE_LTDL_TRUE='#' 9859 CONVENIENCE_LTDL_FALSE= 9860fi 9861 9862 9863{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9864echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9865library_names_spec= 9866libname_spec='lib$name' 9867soname_spec= 9868shrext_cmds=".so" 9869postinstall_cmds= 9870postuninstall_cmds= 9871finish_cmds= 9872finish_eval= 9873shlibpath_var= 9874shlibpath_overrides_runpath=unknown 9875version_type=none 9876dynamic_linker="$host_os ld.so" 9877sys_lib_dlsearch_path_spec="/lib /usr/lib" 9878if test "$GCC" = yes; then 9879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9880 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9881 # if the path contains ";" then we assume it to be the separator 9882 # otherwise default to the standard path separator (i.e. ":") - it is 9883 # assumed that no part of a normal pathname contains ";" but that should 9884 # okay in the real world where ";" in dirpaths is itself problematic. 9885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9886 else 9887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9888 fi 9889else 9890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9891fi 9892need_lib_prefix=unknown 9893hardcode_into_libs=no 9894 9895# when you set need_version to no, make sure it does not cause -set_version 9896# flags to be left without arguments 9897need_version=unknown 9898 9899case $host_os in 9900aix3*) 9901 version_type=linux 9902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9903 shlibpath_var=LIBPATH 9904 9905 # AIX 3 has no versioning support, so we append a major version to the name. 9906 soname_spec='${libname}${release}${shared_ext}$major' 9907 ;; 9908 9909aix4* | aix5*) 9910 version_type=linux 9911 need_lib_prefix=no 9912 need_version=no 9913 hardcode_into_libs=yes 9914 if test "$host_cpu" = ia64; then 9915 # AIX 5 supports IA64 9916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9917 shlibpath_var=LD_LIBRARY_PATH 9918 else 9919 # With GCC up to 2.95.x, collect2 would create an import file 9920 # for dependence libraries. The import file would start with 9921 # the line `#! .'. This would cause the generated library to 9922 # depend on `.', always an invalid library. This was fixed in 9923 # development snapshots of GCC prior to 3.0. 9924 case $host_os in 9925 aix4 | aix4.[01] | aix4.[01].*) 9926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9927 echo ' yes ' 9928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9929 : 9930 else 9931 can_build_shared=no 9932 fi 9933 ;; 9934 esac 9935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9936 # soname into executable. Probably we can add versioning support to 9937 # collect2, so additional links can be useful in future. 9938 if test "$aix_use_runtimelinking" = yes; then 9939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9940 # instead of lib<name>.a to let people know that these are not 9941 # typical AIX shared libraries. 9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9943 else 9944 # We preserve .a as extension for shared libraries through AIX4.2 9945 # and later when we are not doing run time linking. 9946 library_names_spec='${libname}${release}.a $libname.a' 9947 soname_spec='${libname}${release}${shared_ext}$major' 9948 fi 9949 shlibpath_var=LIBPATH 9950 fi 9951 ;; 9952 9953amigaos*) 9954 library_names_spec='$libname.ixlibrary $libname.a' 9955 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9956 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' 9957 ;; 9958 9959beos*) 9960 library_names_spec='${libname}${shared_ext}' 9961 dynamic_linker="$host_os ld.so" 9962 shlibpath_var=LIBRARY_PATH 9963 ;; 9964 9965bsdi[45]*) 9966 version_type=linux 9967 need_version=no 9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9969 soname_spec='${libname}${release}${shared_ext}$major' 9970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9971 shlibpath_var=LD_LIBRARY_PATH 9972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9974 # the default ld.so.conf also contains /usr/contrib/lib and 9975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9976 # libtool to hard-code these into programs 9977 ;; 9978 9979cygwin* | mingw* | pw32*) 9980 version_type=windows 9981 shrext_cmds=".dll" 9982 need_version=no 9983 need_lib_prefix=no 9984 9985 case $GCC,$host_os in 9986 yes,cygwin* | yes,mingw* | yes,pw32*) 9987 library_names_spec='$libname.dll.a' 9988 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9989 postinstall_cmds='base_file=`basename \${file}`~ 9990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9991 dldir=$destdir/`dirname \$dlpath`~ 9992 test -d \$dldir || mkdir -p \$dldir~ 9993 $install_prog $dir/$dlname \$dldir/$dlname~ 9994 chmod a+x \$dldir/$dlname' 9995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9996 dlpath=$dir/\$dldll~ 9997 $rm \$dlpath' 9998 shlibpath_overrides_runpath=yes 9999 10000 case $host_os in 10001 cygwin*) 10002 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10005 ;; 10006 mingw*) 10007 # MinGW DLLs use traditional 'lib' prefix 10008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10011 # It is most probably a Windows format PATH printed by 10012 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10013 # path with ; separators, and with drive letters. We can handle the 10014 # drive letters (cygwin fileutils understands them), so leave them, 10015 # especially as we might pass files found there to a mingw objdump, 10016 # which wouldn't understand a cygwinified path. Ahh. 10017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10018 else 10019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10020 fi 10021 ;; 10022 pw32*) 10023 # pw32 DLLs use 'pw' prefix rather than 'lib' 10024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10025 ;; 10026 esac 10027 ;; 10028 10029 *) 10030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10031 ;; 10032 esac 10033 dynamic_linker='Win32 ld.exe' 10034 # FIXME: first we should search . and the directory the executable is in 10035 shlibpath_var=PATH 10036 ;; 10037 10038darwin* | rhapsody*) 10039 dynamic_linker="$host_os dyld" 10040 version_type=darwin 10041 need_lib_prefix=no 10042 need_version=no 10043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10044 soname_spec='${libname}${release}${major}$shared_ext' 10045 shlibpath_overrides_runpath=yes 10046 shlibpath_var=DYLD_LIBRARY_PATH 10047 shrext_cmds='.dylib' 10048 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10049 if test "$GCC" = yes; then 10050 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"` 10051 else 10052 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10053 fi 10054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10055 ;; 10056 10057dgux*) 10058 version_type=linux 10059 need_lib_prefix=no 10060 need_version=no 10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10062 soname_spec='${libname}${release}${shared_ext}$major' 10063 shlibpath_var=LD_LIBRARY_PATH 10064 ;; 10065 10066freebsd1*) 10067 dynamic_linker=no 10068 ;; 10069 10070kfreebsd*-gnu) 10071 version_type=linux 10072 need_lib_prefix=no 10073 need_version=no 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10075 soname_spec='${libname}${release}${shared_ext}$major' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 shlibpath_overrides_runpath=no 10078 hardcode_into_libs=yes 10079 dynamic_linker='GNU ld.so' 10080 ;; 10081 10082freebsd* | dragonfly*) 10083 # DragonFly does not have aout. When/if they implement a new 10084 # versioning mechanism, adjust this. 10085 if test -x /usr/bin/objformat; then 10086 objformat=`/usr/bin/objformat` 10087 else 10088 case $host_os in 10089 freebsd[123]*) objformat=aout ;; 10090 *) objformat=elf ;; 10091 esac 10092 fi 10093 version_type=freebsd-$objformat 10094 case $version_type in 10095 freebsd-elf*) 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10097 need_version=no 10098 need_lib_prefix=no 10099 ;; 10100 freebsd-*) 10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10102 need_version=yes 10103 ;; 10104 esac 10105 shlibpath_var=LD_LIBRARY_PATH 10106 case $host_os in 10107 freebsd2*) 10108 shlibpath_overrides_runpath=yes 10109 ;; 10110 freebsd3.[01]* | freebsdelf3.[01]*) 10111 shlibpath_overrides_runpath=yes 10112 hardcode_into_libs=yes 10113 ;; 10114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10116 shlibpath_overrides_runpath=no 10117 hardcode_into_libs=yes 10118 ;; 10119 freebsd*) # from 4.6 on 10120 shlibpath_overrides_runpath=yes 10121 hardcode_into_libs=yes 10122 ;; 10123 esac 10124 ;; 10125 10126gnu*) 10127 version_type=linux 10128 need_lib_prefix=no 10129 need_version=no 10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10131 soname_spec='${libname}${release}${shared_ext}$major' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 hardcode_into_libs=yes 10134 ;; 10135 10136hpux9* | hpux10* | hpux11*) 10137 # Give a soname corresponding to the major version so that dld.sl refuses to 10138 # link against other versions. 10139 version_type=sunos 10140 need_lib_prefix=no 10141 need_version=no 10142 case $host_cpu in 10143 ia64*) 10144 shrext_cmds='.so' 10145 hardcode_into_libs=yes 10146 dynamic_linker="$host_os dld.so" 10147 shlibpath_var=LD_LIBRARY_PATH 10148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10150 soname_spec='${libname}${release}${shared_ext}$major' 10151 if test "X$HPUX_IA64_MODE" = X32; then 10152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10153 else 10154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10155 fi 10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10157 ;; 10158 hppa*64*) 10159 shrext_cmds='.sl' 10160 hardcode_into_libs=yes 10161 dynamic_linker="$host_os dld.sl" 10162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10165 soname_spec='${libname}${release}${shared_ext}$major' 10166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10168 ;; 10169 *) 10170 shrext_cmds='.sl' 10171 dynamic_linker="$host_os dld.sl" 10172 shlibpath_var=SHLIB_PATH 10173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10175 soname_spec='${libname}${release}${shared_ext}$major' 10176 ;; 10177 esac 10178 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10179 postinstall_cmds='chmod 555 $lib' 10180 ;; 10181 10182interix3*) 10183 version_type=linux 10184 need_lib_prefix=no 10185 need_version=no 10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10187 soname_spec='${libname}${release}${shared_ext}$major' 10188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10189 shlibpath_var=LD_LIBRARY_PATH 10190 shlibpath_overrides_runpath=no 10191 hardcode_into_libs=yes 10192 ;; 10193 10194irix5* | irix6* | nonstopux*) 10195 case $host_os in 10196 nonstopux*) version_type=nonstopux ;; 10197 *) 10198 if test "$lt_cv_prog_gnu_ld" = yes; then 10199 version_type=linux 10200 else 10201 version_type=irix 10202 fi ;; 10203 esac 10204 need_lib_prefix=no 10205 need_version=no 10206 soname_spec='${libname}${release}${shared_ext}$major' 10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10208 case $host_os in 10209 irix5* | nonstopux*) 10210 libsuff= shlibsuff= 10211 ;; 10212 *) 10213 case $LD in # libtool.m4 will add one of these switches to LD 10214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10215 libsuff= shlibsuff= libmagic=32-bit;; 10216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10217 libsuff=32 shlibsuff=N32 libmagic=N32;; 10218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10219 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10220 *) libsuff= shlibsuff= libmagic=never-match;; 10221 esac 10222 ;; 10223 esac 10224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10225 shlibpath_overrides_runpath=no 10226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10228 hardcode_into_libs=yes 10229 ;; 10230 10231# No shared lib support for Linux oldld, aout, or coff. 10232linux*oldld* | linux*aout* | linux*coff*) 10233 dynamic_linker=no 10234 ;; 10235 10236# This must be Linux ELF. 10237linux*) 10238 version_type=linux 10239 need_lib_prefix=no 10240 need_version=no 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10242 soname_spec='${libname}${release}${shared_ext}$major' 10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10244 shlibpath_var=LD_LIBRARY_PATH 10245 shlibpath_overrides_runpath=no 10246 # This implies no fast_install, which is unacceptable. 10247 # Some rework will be needed to allow for fast_install 10248 # before this can be enabled. 10249 hardcode_into_libs=yes 10250 10251 # Append ld.so.conf contents to the search path 10252 if test -f /etc/ld.so.conf; then 10253 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' ' '` 10254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10255 fi 10256 10257 # We used to test for /lib/ld.so.1 and disable shared libraries on 10258 # powerpc, because MkLinux only supported shared libraries with the 10259 # GNU dynamic linker. Since this was broken with cross compilers, 10260 # most powerpc-linux boxes support dynamic linking these days and 10261 # people can always --disable-shared, the test was removed, and we 10262 # assume the GNU/Linux dynamic linker is in use. 10263 dynamic_linker='GNU/Linux ld.so' 10264 ;; 10265 10266knetbsd*-gnu) 10267 version_type=linux 10268 need_lib_prefix=no 10269 need_version=no 10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10271 soname_spec='${libname}${release}${shared_ext}$major' 10272 shlibpath_var=LD_LIBRARY_PATH 10273 shlibpath_overrides_runpath=no 10274 hardcode_into_libs=yes 10275 dynamic_linker='GNU ld.so' 10276 ;; 10277 10278netbsd*) 10279 version_type=sunos 10280 need_lib_prefix=no 10281 need_version=no 10282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10285 dynamic_linker='NetBSD (a.out) ld.so' 10286 else 10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10288 soname_spec='${libname}${release}${shared_ext}$major' 10289 dynamic_linker='NetBSD ld.elf_so' 10290 fi 10291 shlibpath_var=LD_LIBRARY_PATH 10292 shlibpath_overrides_runpath=yes 10293 hardcode_into_libs=yes 10294 ;; 10295 10296newsos6) 10297 version_type=linux 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299 shlibpath_var=LD_LIBRARY_PATH 10300 shlibpath_overrides_runpath=yes 10301 ;; 10302 10303nto-qnx*) 10304 version_type=linux 10305 need_lib_prefix=no 10306 need_version=no 10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10308 soname_spec='${libname}${release}${shared_ext}$major' 10309 shlibpath_var=LD_LIBRARY_PATH 10310 shlibpath_overrides_runpath=yes 10311 ;; 10312 10313openbsd*) 10314 version_type=sunos 10315 sys_lib_dlsearch_path_spec="/usr/lib" 10316 need_lib_prefix=no 10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10318 case $host_os in 10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10320 *) need_version=no ;; 10321 esac 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10324 shlibpath_var=LD_LIBRARY_PATH 10325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10326 case $host_os in 10327 openbsd2.[89] | openbsd2.[89].*) 10328 shlibpath_overrides_runpath=no 10329 ;; 10330 *) 10331 shlibpath_overrides_runpath=yes 10332 ;; 10333 esac 10334 else 10335 shlibpath_overrides_runpath=yes 10336 fi 10337 ;; 10338 10339os2*) 10340 libname_spec='$name' 10341 shrext_cmds=".dll" 10342 need_lib_prefix=no 10343 library_names_spec='$libname${shared_ext} $libname.a' 10344 dynamic_linker='OS/2 ld.exe' 10345 shlibpath_var=LIBPATH 10346 ;; 10347 10348osf3* | osf4* | osf5*) 10349 version_type=osf 10350 need_lib_prefix=no 10351 need_version=no 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 shlibpath_var=LD_LIBRARY_PATH 10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10357 ;; 10358 10359solaris*) 10360 version_type=linux 10361 need_lib_prefix=no 10362 need_version=no 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 shlibpath_var=LD_LIBRARY_PATH 10366 shlibpath_overrides_runpath=yes 10367 hardcode_into_libs=yes 10368 # ldd complains unless libraries are executable 10369 postinstall_cmds='chmod +x $lib' 10370 ;; 10371 10372sunos4*) 10373 version_type=sunos 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10376 shlibpath_var=LD_LIBRARY_PATH 10377 shlibpath_overrides_runpath=yes 10378 if test "$with_gnu_ld" = yes; then 10379 need_lib_prefix=no 10380 fi 10381 need_version=yes 10382 ;; 10383 10384sysv4 | sysv4.3*) 10385 version_type=linux 10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10387 soname_spec='${libname}${release}${shared_ext}$major' 10388 shlibpath_var=LD_LIBRARY_PATH 10389 case $host_vendor in 10390 sni) 10391 shlibpath_overrides_runpath=no 10392 need_lib_prefix=no 10393 export_dynamic_flag_spec='${wl}-Blargedynsym' 10394 runpath_var=LD_RUN_PATH 10395 ;; 10396 siemens) 10397 need_lib_prefix=no 10398 ;; 10399 motorola) 10400 need_lib_prefix=no 10401 need_version=no 10402 shlibpath_overrides_runpath=no 10403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10404 ;; 10405 esac 10406 ;; 10407 10408sysv4*MP*) 10409 if test -d /usr/nec ;then 10410 version_type=linux 10411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10412 soname_spec='$libname${shared_ext}.$major' 10413 shlibpath_var=LD_LIBRARY_PATH 10414 fi 10415 ;; 10416 10417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10418 version_type=freebsd-elf 10419 need_lib_prefix=no 10420 need_version=no 10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10422 soname_spec='${libname}${release}${shared_ext}$major' 10423 shlibpath_var=LD_LIBRARY_PATH 10424 hardcode_into_libs=yes 10425 if test "$with_gnu_ld" = yes; then 10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10427 shlibpath_overrides_runpath=no 10428 else 10429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10430 shlibpath_overrides_runpath=yes 10431 case $host_os in 10432 sco3.2v5*) 10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10434 ;; 10435 esac 10436 fi 10437 sys_lib_dlsearch_path_spec='/usr/lib' 10438 ;; 10439 10440uts4*) 10441 version_type=linux 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 shlibpath_var=LD_LIBRARY_PATH 10445 ;; 10446 10447*) 10448 dynamic_linker=no 10449 ;; 10450esac 10451{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10452echo "${ECHO_T}$dynamic_linker" >&6; } 10453test "$dynamic_linker" = no && can_build_shared=no 10454 10455variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10456if test "$GCC" = yes; then 10457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10458fi 10459 10460 10461{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 10462echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 10463if test "${libltdl_cv_shlibext+set}" = set; then 10464 echo $ECHO_N "(cached) $ECHO_C" >&6 10465else 10466 10467module=yes 10468eval libltdl_cv_shlibext=$shrext_cmds 10469 10470fi 10471{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 10472echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 10473if test -n "$libltdl_cv_shlibext"; then 10474 10475cat >>confdefs.h <<_ACEOF 10476#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 10477_ACEOF 10478 10479fi 10480 10481 10482{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 10483echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 10484if test "${libltdl_cv_shlibpath_var+set}" = set; then 10485 echo $ECHO_N "(cached) $ECHO_C" >&6 10486else 10487 libltdl_cv_shlibpath_var="$shlibpath_var" 10488fi 10489{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 10490echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 10491if test -n "$libltdl_cv_shlibpath_var"; then 10492 10493cat >>confdefs.h <<_ACEOF 10494#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 10495_ACEOF 10496 10497fi 10498 10499 10500{ echo "$as_me:$LINENO: checking for the default library search path" >&5 10501echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 10502if test "${libltdl_cv_sys_search_path+set}" = set; then 10503 echo $ECHO_N "(cached) $ECHO_C" >&6 10504else 10505 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 10506fi 10507{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 10508echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 10509if test -n "$libltdl_cv_sys_search_path"; then 10510 sys_search_path= 10511 for dir in $libltdl_cv_sys_search_path; do 10512 if test -z "$sys_search_path"; then 10513 sys_search_path="$dir" 10514 else 10515 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 10516 fi 10517 done 10518 10519cat >>confdefs.h <<_ACEOF 10520#define LTDL_SYSSEARCHPATH "$sys_search_path" 10521_ACEOF 10522 10523fi 10524 10525{ echo "$as_me:$LINENO: checking for objdir" >&5 10526echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 10527if test "${libltdl_cv_objdir+set}" = set; then 10528 echo $ECHO_N "(cached) $ECHO_C" >&6 10529else 10530 libltdl_cv_objdir="$objdir" 10531 if test -n "$objdir"; then 10532 : 10533 else 10534 rm -f .libs 2>/dev/null 10535 mkdir .libs 2>/dev/null 10536 if test -d .libs; then 10537 libltdl_cv_objdir=.libs 10538 else 10539 # MS-DOS does not allow filenames that begin with a dot. 10540 libltdl_cv_objdir=_libs 10541 fi 10542 rmdir .libs 2>/dev/null 10543 fi 10544 10545fi 10546{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 10547echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 10548 10549cat >>confdefs.h <<_ACEOF 10550#define LTDL_OBJDIR "$libltdl_cv_objdir/" 10551_ACEOF 10552 10553 10554 10555 10556 10557 10558# Check for command to grab the raw symbol name followed by C symbol from nm. 10559{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 10560echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 10561if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 10562 echo $ECHO_N "(cached) $ECHO_C" >&6 10563else 10564 10565# These are sane defaults that work on at least a few old systems. 10566# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10567 10568# Character class describing NM global symbol codes. 10569symcode='[BCDEGRST]' 10570 10571# Regexp to match symbols that can be accessed directly from C. 10572sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10573 10574# Transform an extracted symbol line into a proper C declaration 10575lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10576 10577# Transform an extracted symbol line into symbol name and symbol address 10578lt_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'" 10579 10580# Define system-specific variables. 10581case $host_os in 10582aix*) 10583 symcode='[BCDT]' 10584 ;; 10585cygwin* | mingw* | pw32*) 10586 symcode='[ABCDGISTW]' 10587 ;; 10588hpux*) # Its linker distinguishes data from code symbols 10589 if test "$host_cpu" = ia64; then 10590 symcode='[ABCDEGRST]' 10591 fi 10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10593 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'" 10594 ;; 10595linux*) 10596 if test "$host_cpu" = ia64; then 10597 symcode='[ABCDGIRSTW]' 10598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10599 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'" 10600 fi 10601 ;; 10602irix* | nonstopux*) 10603 symcode='[BCDEGRST]' 10604 ;; 10605osf*) 10606 symcode='[BCDEGQRST]' 10607 ;; 10608solaris*) 10609 symcode='[BDRT]' 10610 ;; 10611sco3.2v5*) 10612 symcode='[DT]' 10613 ;; 10614sysv4.2uw2*) 10615 symcode='[DT]' 10616 ;; 10617sysv5* | sco5v6* | unixware* | OpenUNIX*) 10618 symcode='[ABDT]' 10619 ;; 10620sysv4) 10621 symcode='[DFNSTU]' 10622 ;; 10623esac 10624 10625# Handle CRLF in mingw tool chain 10626opt_cr= 10627case $build_os in 10628mingw*) 10629 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10630 ;; 10631esac 10632 10633# If we're using GNU nm, then use its standard symbol codes. 10634case `$NM -V 2>&1` in 10635*GNU* | *'with BFD'*) 10636 symcode='[ABCDGIRSTW]' ;; 10637esac 10638 10639# Try without a prefix undercore, then with it. 10640for ac_symprfx in "" "_"; do 10641 10642 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10643 symxfrm="\\1 $ac_symprfx\\2 \\2" 10644 10645 # Write the raw and C identifiers. 10646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10647 10648 # Check to see that the pipe works correctly. 10649 pipe_works=no 10650 10651 rm -f conftest* 10652 cat > conftest.$ac_ext <<EOF 10653#ifdef __cplusplus 10654extern "C" { 10655#endif 10656char nm_test_var; 10657void nm_test_func(){} 10658#ifdef __cplusplus 10659} 10660#endif 10661int main(){nm_test_var='a';nm_test_func();return(0);} 10662EOF 10663 10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10665 (eval $ac_compile) 2>&5 10666 ac_status=$? 10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10668 (exit $ac_status); }; then 10669 # Now try to grab the symbols. 10670 nlist=conftest.nm 10671 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10673 ac_status=$? 10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10675 (exit $ac_status); } && test -s "$nlist"; then 10676 # Try sorting and uniquifying the output. 10677 if sort "$nlist" | uniq > "$nlist"T; then 10678 mv -f "$nlist"T "$nlist" 10679 else 10680 rm -f "$nlist"T 10681 fi 10682 10683 # Make sure that we snagged all the symbols we need. 10684 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10685 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10686 cat <<EOF > conftest.$ac_ext 10687#ifdef __cplusplus 10688extern "C" { 10689#endif 10690 10691EOF 10692 # Now generate the symbol file. 10693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10694 10695 cat <<EOF >> conftest.$ac_ext 10696#if defined (__STDC__) && __STDC__ 10697# define lt_ptr_t void * 10698#else 10699# define lt_ptr_t char * 10700# define const 10701#endif 10702 10703/* The mapping between symbol names and symbols. */ 10704const struct { 10705 const char *name; 10706 lt_ptr_t address; 10707} 10708lt_preloaded_symbols[] = 10709{ 10710EOF 10711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10712 cat <<\EOF >> conftest.$ac_ext 10713 {0, (lt_ptr_t) 0} 10714}; 10715 10716#ifdef __cplusplus 10717} 10718#endif 10719EOF 10720 # Now try linking the two files. 10721 mv conftest.$ac_objext conftstm.$ac_objext 10722 lt_save_LIBS="$LIBS" 10723 lt_save_CFLAGS="$CFLAGS" 10724 LIBS="conftstm.$ac_objext" 10725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10727 (eval $ac_link) 2>&5 10728 ac_status=$? 10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10730 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10731 pipe_works=yes 10732 fi 10733 LIBS="$lt_save_LIBS" 10734 CFLAGS="$lt_save_CFLAGS" 10735 else 10736 echo "cannot find nm_test_func in $nlist" >&5 10737 fi 10738 else 10739 echo "cannot find nm_test_var in $nlist" >&5 10740 fi 10741 else 10742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10743 fi 10744 else 10745 echo "$progname: failed program was:" >&5 10746 cat conftest.$ac_ext >&5 10747 fi 10748 rm -f conftest* conftst* 10749 10750 # Do not use the global_symbol_pipe unless it works. 10751 if test "$pipe_works" = yes; then 10752 break 10753 else 10754 lt_cv_sys_global_symbol_pipe= 10755 fi 10756done 10757 10758fi 10759 10760if test -z "$lt_cv_sys_global_symbol_pipe"; then 10761 lt_cv_sys_global_symbol_to_cdecl= 10762fi 10763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10764 { echo "$as_me:$LINENO: result: failed" >&5 10765echo "${ECHO_T}failed" >&6; } 10766else 10767 { echo "$as_me:$LINENO: result: ok" >&5 10768echo "${ECHO_T}ok" >&6; } 10769fi 10770 10771 10772{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 10773echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 10774if test "${libltdl_cv_preloaded_symbols+set}" = set; then 10775 echo $ECHO_N "(cached) $ECHO_C" >&6 10776else 10777 if test -n "$lt_cv_sys_global_symbol_pipe"; then 10778 libltdl_cv_preloaded_symbols=yes 10779 else 10780 libltdl_cv_preloaded_symbols=no 10781 fi 10782 10783fi 10784{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 10785echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 10786if test x"$libltdl_cv_preloaded_symbols" = xyes; then 10787 10788cat >>confdefs.h <<\_ACEOF 10789#define HAVE_PRELOADED_SYMBOLS 1 10790_ACEOF 10791 10792fi 10793 10794LIBADD_DL= 10795 10796ac_ext=c 10797ac_cpp='$CPP $CPPFLAGS' 10798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10800ac_compiler_gnu=$ac_cv_c_compiler_gnu 10801 10802 10803{ echo "$as_me:$LINENO: checking for shl_load" >&5 10804echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10805if test "${ac_cv_func_shl_load+set}" = set; then 10806 echo $ECHO_N "(cached) $ECHO_C" >&6 10807else 10808 cat >conftest.$ac_ext <<_ACEOF 10809/* confdefs.h. */ 10810_ACEOF 10811cat confdefs.h >>conftest.$ac_ext 10812cat >>conftest.$ac_ext <<_ACEOF 10813/* end confdefs.h. */ 10814/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10816#define shl_load innocuous_shl_load 10817 10818/* System header to define __stub macros and hopefully few prototypes, 10819 which can conflict with char shl_load (); below. 10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10821 <limits.h> exists even on freestanding compilers. */ 10822 10823#ifdef __STDC__ 10824# include <limits.h> 10825#else 10826# include <assert.h> 10827#endif 10828 10829#undef shl_load 10830 10831/* Override any GCC internal prototype to avoid an error. 10832 Use char because int might match the return type of a GCC 10833 builtin and then its argument prototype would still apply. */ 10834#ifdef __cplusplus 10835extern "C" 10836#endif 10837char shl_load (); 10838/* The GNU C library defines this for functions which it implements 10839 to always fail with ENOSYS. Some functions are actually named 10840 something starting with __ and the normal name is an alias. */ 10841#if defined __stub_shl_load || defined __stub___shl_load 10842choke me 10843#endif 10844 10845int 10846main () 10847{ 10848return shl_load (); 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853rm -f conftest.$ac_objext conftest$ac_exeext 10854if { (ac_try="$ac_link" 10855case "(($ac_try" in 10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10857 *) ac_try_echo=$ac_try;; 10858esac 10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10860 (eval "$ac_link") 2>conftest.er1 10861 ac_status=$? 10862 grep -v '^ *+' conftest.er1 >conftest.err 10863 rm -f conftest.er1 10864 cat conftest.err >&5 10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10866 (exit $ac_status); } && 10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10868 { (case "(($ac_try" in 10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10870 *) ac_try_echo=$ac_try;; 10871esac 10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10873 (eval "$ac_try") 2>&5 10874 ac_status=$? 10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10876 (exit $ac_status); }; } && 10877 { ac_try='test -s conftest$ac_exeext' 10878 { (case "(($ac_try" in 10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10880 *) ac_try_echo=$ac_try;; 10881esac 10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10883 (eval "$ac_try") 2>&5 10884 ac_status=$? 10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10886 (exit $ac_status); }; }; then 10887 ac_cv_func_shl_load=yes 10888else 10889 echo "$as_me: failed program was:" >&5 10890sed 's/^/| /' conftest.$ac_ext >&5 10891 10892 ac_cv_func_shl_load=no 10893fi 10894 10895rm -f core conftest.err conftest.$ac_objext \ 10896 conftest$ac_exeext conftest.$ac_ext 10897fi 10898{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10899echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10900if test $ac_cv_func_shl_load = yes; then 10901 10902cat >>confdefs.h <<\_ACEOF 10903#define HAVE_SHL_LOAD 1 10904_ACEOF 10905 10906else 10907 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10908echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10909if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10910 echo $ECHO_N "(cached) $ECHO_C" >&6 10911else 10912 ac_check_lib_save_LIBS=$LIBS 10913LIBS="-ldld $LIBS" 10914cat >conftest.$ac_ext <<_ACEOF 10915/* confdefs.h. */ 10916_ACEOF 10917cat confdefs.h >>conftest.$ac_ext 10918cat >>conftest.$ac_ext <<_ACEOF 10919/* end confdefs.h. */ 10920 10921/* Override any GCC internal prototype to avoid an error. 10922 Use char because int might match the return type of a GCC 10923 builtin and then its argument prototype would still apply. */ 10924#ifdef __cplusplus 10925extern "C" 10926#endif 10927char shl_load (); 10928int 10929main () 10930{ 10931return shl_load (); 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936rm -f conftest.$ac_objext conftest$ac_exeext 10937if { (ac_try="$ac_link" 10938case "(($ac_try" in 10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10940 *) ac_try_echo=$ac_try;; 10941esac 10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10943 (eval "$ac_link") 2>conftest.er1 10944 ac_status=$? 10945 grep -v '^ *+' conftest.er1 >conftest.err 10946 rm -f conftest.er1 10947 cat conftest.err >&5 10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10949 (exit $ac_status); } && 10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10951 { (case "(($ac_try" in 10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10953 *) ac_try_echo=$ac_try;; 10954esac 10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10956 (eval "$ac_try") 2>&5 10957 ac_status=$? 10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10959 (exit $ac_status); }; } && 10960 { ac_try='test -s conftest$ac_exeext' 10961 { (case "(($ac_try" in 10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10963 *) ac_try_echo=$ac_try;; 10964esac 10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10966 (eval "$ac_try") 2>&5 10967 ac_status=$? 10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10969 (exit $ac_status); }; }; then 10970 ac_cv_lib_dld_shl_load=yes 10971else 10972 echo "$as_me: failed program was:" >&5 10973sed 's/^/| /' conftest.$ac_ext >&5 10974 10975 ac_cv_lib_dld_shl_load=no 10976fi 10977 10978rm -f core conftest.err conftest.$ac_objext \ 10979 conftest$ac_exeext conftest.$ac_ext 10980LIBS=$ac_check_lib_save_LIBS 10981fi 10982{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10983echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10984if test $ac_cv_lib_dld_shl_load = yes; then 10985 10986cat >>confdefs.h <<\_ACEOF 10987#define HAVE_SHL_LOAD 1 10988_ACEOF 10989 10990 LIBADD_DL="$LIBADD_DL -ldld" 10991else 10992 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10993echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10994if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10995 echo $ECHO_N "(cached) $ECHO_C" >&6 10996else 10997 ac_check_lib_save_LIBS=$LIBS 10998LIBS="-ldl $LIBS" 10999cat >conftest.$ac_ext <<_ACEOF 11000/* confdefs.h. */ 11001_ACEOF 11002cat confdefs.h >>conftest.$ac_ext 11003cat >>conftest.$ac_ext <<_ACEOF 11004/* end confdefs.h. */ 11005 11006/* Override any GCC internal prototype to avoid an error. 11007 Use char because int might match the return type of a GCC 11008 builtin and then its argument prototype would still apply. */ 11009#ifdef __cplusplus 11010extern "C" 11011#endif 11012char dlopen (); 11013int 11014main () 11015{ 11016return dlopen (); 11017 ; 11018 return 0; 11019} 11020_ACEOF 11021rm -f conftest.$ac_objext conftest$ac_exeext 11022if { (ac_try="$ac_link" 11023case "(($ac_try" in 11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11025 *) ac_try_echo=$ac_try;; 11026esac 11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11028 (eval "$ac_link") 2>conftest.er1 11029 ac_status=$? 11030 grep -v '^ *+' conftest.er1 >conftest.err 11031 rm -f conftest.er1 11032 cat conftest.err >&5 11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11034 (exit $ac_status); } && 11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11036 { (case "(($ac_try" in 11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11038 *) ac_try_echo=$ac_try;; 11039esac 11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11041 (eval "$ac_try") 2>&5 11042 ac_status=$? 11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11044 (exit $ac_status); }; } && 11045 { ac_try='test -s conftest$ac_exeext' 11046 { (case "(($ac_try" in 11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11048 *) ac_try_echo=$ac_try;; 11049esac 11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11051 (eval "$ac_try") 2>&5 11052 ac_status=$? 11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11054 (exit $ac_status); }; }; then 11055 ac_cv_lib_dl_dlopen=yes 11056else 11057 echo "$as_me: failed program was:" >&5 11058sed 's/^/| /' conftest.$ac_ext >&5 11059 11060 ac_cv_lib_dl_dlopen=no 11061fi 11062 11063rm -f core conftest.err conftest.$ac_objext \ 11064 conftest$ac_exeext conftest.$ac_ext 11065LIBS=$ac_check_lib_save_LIBS 11066fi 11067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11068echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11069if test $ac_cv_lib_dl_dlopen = yes; then 11070 11071cat >>confdefs.h <<\_ACEOF 11072#define HAVE_LIBDL 1 11073_ACEOF 11074 11075 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 11076else 11077 cat >conftest.$ac_ext <<_ACEOF 11078/* confdefs.h. */ 11079_ACEOF 11080cat confdefs.h >>conftest.$ac_ext 11081cat >>conftest.$ac_ext <<_ACEOF 11082/* end confdefs.h. */ 11083#if HAVE_DLFCN_H 11084# include <dlfcn.h> 11085#endif 11086 11087int 11088main () 11089{ 11090dlopen(0, 0); 11091 ; 11092 return 0; 11093} 11094_ACEOF 11095rm -f conftest.$ac_objext conftest$ac_exeext 11096if { (ac_try="$ac_link" 11097case "(($ac_try" in 11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11099 *) ac_try_echo=$ac_try;; 11100esac 11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11102 (eval "$ac_link") 2>conftest.er1 11103 ac_status=$? 11104 grep -v '^ *+' conftest.er1 >conftest.err 11105 rm -f conftest.er1 11106 cat conftest.err >&5 11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11108 (exit $ac_status); } && 11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11110 { (case "(($ac_try" in 11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11112 *) ac_try_echo=$ac_try;; 11113esac 11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11115 (eval "$ac_try") 2>&5 11116 ac_status=$? 11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11118 (exit $ac_status); }; } && 11119 { ac_try='test -s conftest$ac_exeext' 11120 { (case "(($ac_try" in 11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11122 *) ac_try_echo=$ac_try;; 11123esac 11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11125 (eval "$ac_try") 2>&5 11126 ac_status=$? 11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11128 (exit $ac_status); }; }; then 11129 11130cat >>confdefs.h <<\_ACEOF 11131#define HAVE_LIBDL 1 11132_ACEOF 11133 libltdl_cv_func_dlopen="yes" 11134else 11135 echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11139echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11140if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11141 echo $ECHO_N "(cached) $ECHO_C" >&6 11142else 11143 ac_check_lib_save_LIBS=$LIBS 11144LIBS="-lsvld $LIBS" 11145cat >conftest.$ac_ext <<_ACEOF 11146/* confdefs.h. */ 11147_ACEOF 11148cat confdefs.h >>conftest.$ac_ext 11149cat >>conftest.$ac_ext <<_ACEOF 11150/* end confdefs.h. */ 11151 11152/* Override any GCC internal prototype to avoid an error. 11153 Use char because int might match the return type of a GCC 11154 builtin and then its argument prototype would still apply. */ 11155#ifdef __cplusplus 11156extern "C" 11157#endif 11158char dlopen (); 11159int 11160main () 11161{ 11162return dlopen (); 11163 ; 11164 return 0; 11165} 11166_ACEOF 11167rm -f conftest.$ac_objext conftest$ac_exeext 11168if { (ac_try="$ac_link" 11169case "(($ac_try" in 11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11171 *) ac_try_echo=$ac_try;; 11172esac 11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11174 (eval "$ac_link") 2>conftest.er1 11175 ac_status=$? 11176 grep -v '^ *+' conftest.er1 >conftest.err 11177 rm -f conftest.er1 11178 cat conftest.err >&5 11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11180 (exit $ac_status); } && 11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11182 { (case "(($ac_try" in 11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11184 *) ac_try_echo=$ac_try;; 11185esac 11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11187 (eval "$ac_try") 2>&5 11188 ac_status=$? 11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11190 (exit $ac_status); }; } && 11191 { ac_try='test -s conftest$ac_exeext' 11192 { (case "(($ac_try" in 11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11194 *) ac_try_echo=$ac_try;; 11195esac 11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11197 (eval "$ac_try") 2>&5 11198 ac_status=$? 11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11200 (exit $ac_status); }; }; then 11201 ac_cv_lib_svld_dlopen=yes 11202else 11203 echo "$as_me: failed program was:" >&5 11204sed 's/^/| /' conftest.$ac_ext >&5 11205 11206 ac_cv_lib_svld_dlopen=no 11207fi 11208 11209rm -f core conftest.err conftest.$ac_objext \ 11210 conftest$ac_exeext conftest.$ac_ext 11211LIBS=$ac_check_lib_save_LIBS 11212fi 11213{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11214echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11215if test $ac_cv_lib_svld_dlopen = yes; then 11216 11217cat >>confdefs.h <<\_ACEOF 11218#define HAVE_LIBDL 1 11219_ACEOF 11220 11221 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 11222else 11223 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11224echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11225if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11226 echo $ECHO_N "(cached) $ECHO_C" >&6 11227else 11228 ac_check_lib_save_LIBS=$LIBS 11229LIBS="-ldld $LIBS" 11230cat >conftest.$ac_ext <<_ACEOF 11231/* confdefs.h. */ 11232_ACEOF 11233cat confdefs.h >>conftest.$ac_ext 11234cat >>conftest.$ac_ext <<_ACEOF 11235/* end confdefs.h. */ 11236 11237/* Override any GCC internal prototype to avoid an error. 11238 Use char because int might match the return type of a GCC 11239 builtin and then its argument prototype would still apply. */ 11240#ifdef __cplusplus 11241extern "C" 11242#endif 11243char dld_link (); 11244int 11245main () 11246{ 11247return dld_link (); 11248 ; 11249 return 0; 11250} 11251_ACEOF 11252rm -f conftest.$ac_objext conftest$ac_exeext 11253if { (ac_try="$ac_link" 11254case "(($ac_try" in 11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11256 *) ac_try_echo=$ac_try;; 11257esac 11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11259 (eval "$ac_link") 2>conftest.er1 11260 ac_status=$? 11261 grep -v '^ *+' conftest.er1 >conftest.err 11262 rm -f conftest.er1 11263 cat conftest.err >&5 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); } && 11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11267 { (case "(($ac_try" in 11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11269 *) ac_try_echo=$ac_try;; 11270esac 11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11272 (eval "$ac_try") 2>&5 11273 ac_status=$? 11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11275 (exit $ac_status); }; } && 11276 { ac_try='test -s conftest$ac_exeext' 11277 { (case "(($ac_try" in 11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11279 *) ac_try_echo=$ac_try;; 11280esac 11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11282 (eval "$ac_try") 2>&5 11283 ac_status=$? 11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11285 (exit $ac_status); }; }; then 11286 ac_cv_lib_dld_dld_link=yes 11287else 11288 echo "$as_me: failed program was:" >&5 11289sed 's/^/| /' conftest.$ac_ext >&5 11290 11291 ac_cv_lib_dld_dld_link=no 11292fi 11293 11294rm -f core conftest.err conftest.$ac_objext \ 11295 conftest$ac_exeext conftest.$ac_ext 11296LIBS=$ac_check_lib_save_LIBS 11297fi 11298{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11299echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11300if test $ac_cv_lib_dld_dld_link = yes; then 11301 11302cat >>confdefs.h <<\_ACEOF 11303#define HAVE_DLD 1 11304_ACEOF 11305 11306 LIBADD_DL="$LIBADD_DL -ldld" 11307else 11308 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 11309echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 11310if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 11311 echo $ECHO_N "(cached) $ECHO_C" >&6 11312else 11313 cat >conftest.$ac_ext <<_ACEOF 11314/* confdefs.h. */ 11315_ACEOF 11316cat confdefs.h >>conftest.$ac_ext 11317cat >>conftest.$ac_ext <<_ACEOF 11318/* end confdefs.h. */ 11319/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 11320 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11321#define _dyld_func_lookup innocuous__dyld_func_lookup 11322 11323/* System header to define __stub macros and hopefully few prototypes, 11324 which can conflict with char _dyld_func_lookup (); below. 11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11326 <limits.h> exists even on freestanding compilers. */ 11327 11328#ifdef __STDC__ 11329# include <limits.h> 11330#else 11331# include <assert.h> 11332#endif 11333 11334#undef _dyld_func_lookup 11335 11336/* Override any GCC internal prototype to avoid an error. 11337 Use char because int might match the return type of a GCC 11338 builtin and then its argument prototype would still apply. */ 11339#ifdef __cplusplus 11340extern "C" 11341#endif 11342char _dyld_func_lookup (); 11343/* The GNU C library defines this for functions which it implements 11344 to always fail with ENOSYS. Some functions are actually named 11345 something starting with __ and the normal name is an alias. */ 11346#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 11347choke me 11348#endif 11349 11350int 11351main () 11352{ 11353return _dyld_func_lookup (); 11354 ; 11355 return 0; 11356} 11357_ACEOF 11358rm -f conftest.$ac_objext conftest$ac_exeext 11359if { (ac_try="$ac_link" 11360case "(($ac_try" in 11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11362 *) ac_try_echo=$ac_try;; 11363esac 11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11365 (eval "$ac_link") 2>conftest.er1 11366 ac_status=$? 11367 grep -v '^ *+' conftest.er1 >conftest.err 11368 rm -f conftest.er1 11369 cat conftest.err >&5 11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11371 (exit $ac_status); } && 11372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11373 { (case "(($ac_try" in 11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11375 *) ac_try_echo=$ac_try;; 11376esac 11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11378 (eval "$ac_try") 2>&5 11379 ac_status=$? 11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11381 (exit $ac_status); }; } && 11382 { ac_try='test -s conftest$ac_exeext' 11383 { (case "(($ac_try" in 11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11385 *) ac_try_echo=$ac_try;; 11386esac 11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11388 (eval "$ac_try") 2>&5 11389 ac_status=$? 11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11391 (exit $ac_status); }; }; then 11392 ac_cv_func__dyld_func_lookup=yes 11393else 11394 echo "$as_me: failed program was:" >&5 11395sed 's/^/| /' conftest.$ac_ext >&5 11396 11397 ac_cv_func__dyld_func_lookup=no 11398fi 11399 11400rm -f core conftest.err conftest.$ac_objext \ 11401 conftest$ac_exeext conftest.$ac_ext 11402fi 11403{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 11404echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 11405if test $ac_cv_func__dyld_func_lookup = yes; then 11406 11407cat >>confdefs.h <<\_ACEOF 11408#define HAVE_DYLD 1 11409_ACEOF 11410 11411fi 11412 11413 11414fi 11415 11416 11417fi 11418 11419 11420fi 11421 11422rm -f core conftest.err conftest.$ac_objext \ 11423 conftest$ac_exeext conftest.$ac_ext 11424 11425fi 11426 11427 11428fi 11429 11430 11431fi 11432 11433 11434if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 11435then 11436 lt_save_LIBS="$LIBS" 11437 LIBS="$LIBS $LIBADD_DL" 11438 11439for ac_func in dlerror 11440do 11441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11442{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11445 echo $ECHO_N "(cached) $ECHO_C" >&6 11446else 11447 cat >conftest.$ac_ext <<_ACEOF 11448/* confdefs.h. */ 11449_ACEOF 11450cat confdefs.h >>conftest.$ac_ext 11451cat >>conftest.$ac_ext <<_ACEOF 11452/* end confdefs.h. */ 11453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11454 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11455#define $ac_func innocuous_$ac_func 11456 11457/* System header to define __stub macros and hopefully few prototypes, 11458 which can conflict with char $ac_func (); below. 11459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11460 <limits.h> exists even on freestanding compilers. */ 11461 11462#ifdef __STDC__ 11463# include <limits.h> 11464#else 11465# include <assert.h> 11466#endif 11467 11468#undef $ac_func 11469 11470/* Override any GCC internal prototype to avoid an error. 11471 Use char because int might match the return type of a GCC 11472 builtin and then its argument prototype would still apply. */ 11473#ifdef __cplusplus 11474extern "C" 11475#endif 11476char $ac_func (); 11477/* The GNU C library defines this for functions which it implements 11478 to always fail with ENOSYS. Some functions are actually named 11479 something starting with __ and the normal name is an alias. */ 11480#if defined __stub_$ac_func || defined __stub___$ac_func 11481choke me 11482#endif 11483 11484int 11485main () 11486{ 11487return $ac_func (); 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492rm -f conftest.$ac_objext conftest$ac_exeext 11493if { (ac_try="$ac_link" 11494case "(($ac_try" in 11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11496 *) ac_try_echo=$ac_try;; 11497esac 11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11499 (eval "$ac_link") 2>conftest.er1 11500 ac_status=$? 11501 grep -v '^ *+' conftest.er1 >conftest.err 11502 rm -f conftest.er1 11503 cat conftest.err >&5 11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11505 (exit $ac_status); } && 11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11507 { (case "(($ac_try" in 11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11509 *) ac_try_echo=$ac_try;; 11510esac 11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11512 (eval "$ac_try") 2>&5 11513 ac_status=$? 11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11515 (exit $ac_status); }; } && 11516 { ac_try='test -s conftest$ac_exeext' 11517 { (case "(($ac_try" in 11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11519 *) ac_try_echo=$ac_try;; 11520esac 11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11522 (eval "$ac_try") 2>&5 11523 ac_status=$? 11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11525 (exit $ac_status); }; }; then 11526 eval "$as_ac_var=yes" 11527else 11528 echo "$as_me: failed program was:" >&5 11529sed 's/^/| /' conftest.$ac_ext >&5 11530 11531 eval "$as_ac_var=no" 11532fi 11533 11534rm -f core conftest.err conftest.$ac_objext \ 11535 conftest$ac_exeext conftest.$ac_ext 11536fi 11537ac_res=`eval echo '${'$as_ac_var'}'` 11538 { echo "$as_me:$LINENO: result: $ac_res" >&5 11539echo "${ECHO_T}$ac_res" >&6; } 11540if test `eval echo '${'$as_ac_var'}'` = yes; then 11541 cat >>confdefs.h <<_ACEOF 11542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11543_ACEOF 11544 11545fi 11546done 11547 11548 LIBS="$lt_save_LIBS" 11549fi 11550ac_ext=c 11551ac_cpp='$CPP $CPPFLAGS' 11552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11554ac_compiler_gnu=$ac_cv_c_compiler_gnu 11555 11556 11557 11558{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 11559echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 11560if test "${ac_cv_sys_symbol_underscore+set}" = set; then 11561 echo $ECHO_N "(cached) $ECHO_C" >&6 11562else 11563 ac_cv_sys_symbol_underscore=no 11564 cat > conftest.$ac_ext <<EOF 11565void nm_test_func(){} 11566int main(){nm_test_func;return 0;} 11567EOF 11568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11569 (eval $ac_compile) 2>&5 11570 ac_status=$? 11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 (exit $ac_status); }; then 11573 # Now try to grab the symbols. 11574 ac_nlist=conftest.nm 11575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 11576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 11577 ac_status=$? 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); } && test -s "$ac_nlist"; then 11580 # See whether the symbols have a leading underscore. 11581 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 11582 ac_cv_sys_symbol_underscore=yes 11583 else 11584 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 11585 : 11586 else 11587 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 11588 fi 11589 fi 11590 else 11591 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 11592 fi 11593 else 11594 echo "configure: failed program was:" >&5 11595 cat conftest.c >&5 11596 fi 11597 rm -rf conftest* 11598 11599fi 11600{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 11601echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 11602 11603 11604if test x"$ac_cv_sys_symbol_underscore" = xyes; then 11605 if test x"$libltdl_cv_func_dlopen" = xyes || 11606 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 11607 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 11608echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 11609if test "${libltdl_cv_need_uscore+set}" = set; then 11610 echo $ECHO_N "(cached) $ECHO_C" >&6 11611else 11612 libltdl_cv_need_uscore=unknown 11613 save_LIBS="$LIBS" 11614 LIBS="$LIBS $LIBADD_DL" 11615 if test "$cross_compiling" = yes; then : 11616 libltdl_cv_need_uscore=cross 11617else 11618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11619 lt_status=$lt_dlunknown 11620 cat > conftest.$ac_ext <<EOF 11621#line 11621 "configure" 11622#include "confdefs.h" 11623 11624#if HAVE_DLFCN_H 11625#include <dlfcn.h> 11626#endif 11627 11628#include <stdio.h> 11629 11630#ifdef RTLD_GLOBAL 11631# define LT_DLGLOBAL RTLD_GLOBAL 11632#else 11633# ifdef DL_GLOBAL 11634# define LT_DLGLOBAL DL_GLOBAL 11635# else 11636# define LT_DLGLOBAL 0 11637# endif 11638#endif 11639 11640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11641 find out it does not work in some platform. */ 11642#ifndef LT_DLLAZY_OR_NOW 11643# ifdef RTLD_LAZY 11644# define LT_DLLAZY_OR_NOW RTLD_LAZY 11645# else 11646# ifdef DL_LAZY 11647# define LT_DLLAZY_OR_NOW DL_LAZY 11648# else 11649# ifdef RTLD_NOW 11650# define LT_DLLAZY_OR_NOW RTLD_NOW 11651# else 11652# ifdef DL_NOW 11653# define LT_DLLAZY_OR_NOW DL_NOW 11654# else 11655# define LT_DLLAZY_OR_NOW 0 11656# endif 11657# endif 11658# endif 11659# endif 11660#endif 11661 11662#ifdef __cplusplus 11663extern "C" void exit (int); 11664#endif 11665 11666void fnord() { int i=42;} 11667int main () 11668{ 11669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11670 int status = $lt_dlunknown; 11671 11672 if (self) 11673 { 11674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11676 /* dlclose (self); */ 11677 } 11678 else 11679 puts (dlerror ()); 11680 11681 exit (status); 11682} 11683EOF 11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11685 (eval $ac_link) 2>&5 11686 ac_status=$? 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11689 (./conftest; exit; ) >&5 2>/dev/null 11690 lt_status=$? 11691 case x$lt_status in 11692 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 11693 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 11694 x$lt_dlunknown|x*) ;; 11695 esac 11696 else : 11697 # compilation failed 11698 11699 fi 11700fi 11701rm -fr conftest* 11702 11703 LIBS="$save_LIBS" 11704 11705fi 11706{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 11707echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 11708 fi 11709fi 11710 11711if test x"$libltdl_cv_need_uscore" = xyes; then 11712 11713cat >>confdefs.h <<\_ACEOF 11714#define NEED_USCORE 1 11715_ACEOF 11716 11717fi 11718 11719 11720{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 11721echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 11722if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 11723 echo $ECHO_N "(cached) $ECHO_C" >&6 11724else 11725 # PORTME does your system automatically load deplibs for dlopen? 11726 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 11727 # For now, we just catch OSes we know something about -- in the 11728 # future, we'll try test this programmatically. 11729 libltdl_cv_sys_dlopen_deplibs=unknown 11730 case "$host_os" in 11731 aix3*|aix4.1.*|aix4.2.*) 11732 # Unknown whether this is true for these versions of AIX, but 11733 # we want this `case' here to explicitly catch those versions. 11734 libltdl_cv_sys_dlopen_deplibs=unknown 11735 ;; 11736 aix[45]*) 11737 libltdl_cv_sys_dlopen_deplibs=yes 11738 ;; 11739 darwin*) 11740 # Assuming the user has installed a libdl from somewhere, this is true 11741 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 11742 libltdl_cv_sys_dlopen_deplibs=yes 11743 ;; 11744 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 11745 # GNU and its variants, using gnu ld.so (Glibc) 11746 libltdl_cv_sys_dlopen_deplibs=yes 11747 ;; 11748 hpux10*|hpux11*) 11749 libltdl_cv_sys_dlopen_deplibs=yes 11750 ;; 11751 interix*) 11752 libltdl_cv_sys_dlopen_deplibs=yes 11753 ;; 11754 irix[12345]*|irix6.[01]*) 11755 # Catch all versions of IRIX before 6.2, and indicate that we don't 11756 # know how it worked for any of those versions. 11757 libltdl_cv_sys_dlopen_deplibs=unknown 11758 ;; 11759 irix*) 11760 # The case above catches anything before 6.2, and it's known that 11761 # at 6.2 and later dlopen does load deplibs. 11762 libltdl_cv_sys_dlopen_deplibs=yes 11763 ;; 11764 netbsd*) 11765 libltdl_cv_sys_dlopen_deplibs=yes 11766 ;; 11767 openbsd*) 11768 libltdl_cv_sys_dlopen_deplibs=yes 11769 ;; 11770 osf[1234]*) 11771 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 11772 # it did *not* use an RPATH in a shared library to find objects the 11773 # library depends on, so we explicitly say `no'. 11774 libltdl_cv_sys_dlopen_deplibs=no 11775 ;; 11776 osf5.0|osf5.0a|osf5.1) 11777 # dlopen *does* load deplibs and with the right loader patch applied 11778 # it even uses RPATH in a shared library to search for shared objects 11779 # that the library depends on, but there's no easy way to know if that 11780 # patch is installed. Since this is the case, all we can really 11781 # say is unknown -- it depends on the patch being installed. If 11782 # it is, this changes to `yes'. Without it, it would be `no'. 11783 libltdl_cv_sys_dlopen_deplibs=unknown 11784 ;; 11785 osf*) 11786 # the two cases above should catch all versions of osf <= 5.1. Read 11787 # the comments above for what we know about them. 11788 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 11789 # is used to find them so we can finally say `yes'. 11790 libltdl_cv_sys_dlopen_deplibs=yes 11791 ;; 11792 solaris*) 11793 libltdl_cv_sys_dlopen_deplibs=yes 11794 ;; 11795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11796 libltdl_cv_sys_dlopen_deplibs=yes 11797 ;; 11798 esac 11799 11800fi 11801{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 11802echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 11803if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 11804 11805cat >>confdefs.h <<\_ACEOF 11806#define LTDL_DLOPEN_DEPLIBS 1 11807_ACEOF 11808 11809fi 11810 11811 11812for ac_header in argz.h 11813do 11814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11816 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11819 echo $ECHO_N "(cached) $ECHO_C" >&6 11820fi 11821ac_res=`eval echo '${'$as_ac_Header'}'` 11822 { echo "$as_me:$LINENO: result: $ac_res" >&5 11823echo "${ECHO_T}$ac_res" >&6; } 11824else 11825 # Is the header compilable? 11826{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11828cat >conftest.$ac_ext <<_ACEOF 11829/* confdefs.h. */ 11830_ACEOF 11831cat confdefs.h >>conftest.$ac_ext 11832cat >>conftest.$ac_ext <<_ACEOF 11833/* end confdefs.h. */ 11834$ac_includes_default 11835#include <$ac_header> 11836_ACEOF 11837rm -f conftest.$ac_objext 11838if { (ac_try="$ac_compile" 11839case "(($ac_try" in 11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11841 *) ac_try_echo=$ac_try;; 11842esac 11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11844 (eval "$ac_compile") 2>conftest.er1 11845 ac_status=$? 11846 grep -v '^ *+' conftest.er1 >conftest.err 11847 rm -f conftest.er1 11848 cat conftest.err >&5 11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 (exit $ac_status); } && 11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11852 { (case "(($ac_try" in 11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11854 *) ac_try_echo=$ac_try;; 11855esac 11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11857 (eval "$ac_try") 2>&5 11858 ac_status=$? 11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); }; } && 11861 { ac_try='test -s conftest.$ac_objext' 11862 { (case "(($ac_try" in 11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11864 *) ac_try_echo=$ac_try;; 11865esac 11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11867 (eval "$ac_try") 2>&5 11868 ac_status=$? 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11870 (exit $ac_status); }; }; then 11871 ac_header_compiler=yes 11872else 11873 echo "$as_me: failed program was:" >&5 11874sed 's/^/| /' conftest.$ac_ext >&5 11875 11876 ac_header_compiler=no 11877fi 11878 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11880{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11881echo "${ECHO_T}$ac_header_compiler" >&6; } 11882 11883# Is the header present? 11884{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11886cat >conftest.$ac_ext <<_ACEOF 11887/* confdefs.h. */ 11888_ACEOF 11889cat confdefs.h >>conftest.$ac_ext 11890cat >>conftest.$ac_ext <<_ACEOF 11891/* end confdefs.h. */ 11892#include <$ac_header> 11893_ACEOF 11894if { (ac_try="$ac_cpp conftest.$ac_ext" 11895case "(($ac_try" in 11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11897 *) ac_try_echo=$ac_try;; 11898esac 11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11901 ac_status=$? 11902 grep -v '^ *+' conftest.er1 >conftest.err 11903 rm -f conftest.er1 11904 cat conftest.err >&5 11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11906 (exit $ac_status); } >/dev/null; then 11907 if test -s conftest.err; then 11908 ac_cpp_err=$ac_c_preproc_warn_flag 11909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11910 else 11911 ac_cpp_err= 11912 fi 11913else 11914 ac_cpp_err=yes 11915fi 11916if test -z "$ac_cpp_err"; then 11917 ac_header_preproc=yes 11918else 11919 echo "$as_me: failed program was:" >&5 11920sed 's/^/| /' conftest.$ac_ext >&5 11921 11922 ac_header_preproc=no 11923fi 11924 11925rm -f conftest.err conftest.$ac_ext 11926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11927echo "${ECHO_T}$ac_header_preproc" >&6; } 11928 11929# So? What about this header? 11930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11931 yes:no: ) 11932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11936 ac_header_preproc=yes 11937 ;; 11938 no:yes:* ) 11939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11951 ( cat <<\_ASBOX 11952## ----------------------------------- ## 11953## Report this to llvmbugs@cs.uiuc.edu ## 11954## ----------------------------------- ## 11955_ASBOX 11956 ) | sed "s/^/$as_me: WARNING: /" >&2 11957 ;; 11958esac 11959{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11962 echo $ECHO_N "(cached) $ECHO_C" >&6 11963else 11964 eval "$as_ac_Header=\$ac_header_preproc" 11965fi 11966ac_res=`eval echo '${'$as_ac_Header'}'` 11967 { echo "$as_me:$LINENO: result: $ac_res" >&5 11968echo "${ECHO_T}$ac_res" >&6; } 11969 11970fi 11971if test `eval echo '${'$as_ac_Header'}'` = yes; then 11972 cat >>confdefs.h <<_ACEOF 11973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11974_ACEOF 11975 11976fi 11977 11978done 11979 11980 11981{ echo "$as_me:$LINENO: checking for error_t" >&5 11982echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 11983if test "${ac_cv_type_error_t+set}" = set; then 11984 echo $ECHO_N "(cached) $ECHO_C" >&6 11985else 11986 cat >conftest.$ac_ext <<_ACEOF 11987/* confdefs.h. */ 11988_ACEOF 11989cat confdefs.h >>conftest.$ac_ext 11990cat >>conftest.$ac_ext <<_ACEOF 11991/* end confdefs.h. */ 11992#if HAVE_ARGZ_H 11993# include <argz.h> 11994#endif 11995 11996typedef error_t ac__type_new_; 11997int 11998main () 11999{ 12000if ((ac__type_new_ *) 0) 12001 return 0; 12002if (sizeof (ac__type_new_)) 12003 return 0; 12004 ; 12005 return 0; 12006} 12007_ACEOF 12008rm -f conftest.$ac_objext 12009if { (ac_try="$ac_compile" 12010case "(($ac_try" in 12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12012 *) ac_try_echo=$ac_try;; 12013esac 12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12015 (eval "$ac_compile") 2>conftest.er1 12016 ac_status=$? 12017 grep -v '^ *+' conftest.er1 >conftest.err 12018 rm -f conftest.er1 12019 cat conftest.err >&5 12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); } && 12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12023 { (case "(($ac_try" in 12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12025 *) ac_try_echo=$ac_try;; 12026esac 12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12028 (eval "$ac_try") 2>&5 12029 ac_status=$? 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); }; } && 12032 { ac_try='test -s conftest.$ac_objext' 12033 { (case "(($ac_try" in 12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12035 *) ac_try_echo=$ac_try;; 12036esac 12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12038 (eval "$ac_try") 2>&5 12039 ac_status=$? 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); }; }; then 12042 ac_cv_type_error_t=yes 12043else 12044 echo "$as_me: failed program was:" >&5 12045sed 's/^/| /' conftest.$ac_ext >&5 12046 12047 ac_cv_type_error_t=no 12048fi 12049 12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12051fi 12052{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 12053echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 12054if test $ac_cv_type_error_t = yes; then 12055 12056cat >>confdefs.h <<_ACEOF 12057#define HAVE_ERROR_T 1 12058_ACEOF 12059 12060 12061else 12062 12063cat >>confdefs.h <<\_ACEOF 12064#define error_t int 12065_ACEOF 12066 12067fi 12068 12069 12070 12071 12072 12073 12074 12075for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 12076do 12077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12078{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12081 echo $ECHO_N "(cached) $ECHO_C" >&6 12082else 12083 cat >conftest.$ac_ext <<_ACEOF 12084/* confdefs.h. */ 12085_ACEOF 12086cat confdefs.h >>conftest.$ac_ext 12087cat >>conftest.$ac_ext <<_ACEOF 12088/* end confdefs.h. */ 12089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12091#define $ac_func innocuous_$ac_func 12092 12093/* System header to define __stub macros and hopefully few prototypes, 12094 which can conflict with char $ac_func (); below. 12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12096 <limits.h> exists even on freestanding compilers. */ 12097 12098#ifdef __STDC__ 12099# include <limits.h> 12100#else 12101# include <assert.h> 12102#endif 12103 12104#undef $ac_func 12105 12106/* Override any GCC internal prototype to avoid an error. 12107 Use char because int might match the return type of a GCC 12108 builtin and then its argument prototype would still apply. */ 12109#ifdef __cplusplus 12110extern "C" 12111#endif 12112char $ac_func (); 12113/* The GNU C library defines this for functions which it implements 12114 to always fail with ENOSYS. Some functions are actually named 12115 something starting with __ and the normal name is an alias. */ 12116#if defined __stub_$ac_func || defined __stub___$ac_func 12117choke me 12118#endif 12119 12120int 12121main () 12122{ 12123return $ac_func (); 12124 ; 12125 return 0; 12126} 12127_ACEOF 12128rm -f conftest.$ac_objext conftest$ac_exeext 12129if { (ac_try="$ac_link" 12130case "(($ac_try" in 12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12132 *) ac_try_echo=$ac_try;; 12133esac 12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12135 (eval "$ac_link") 2>conftest.er1 12136 ac_status=$? 12137 grep -v '^ *+' conftest.er1 >conftest.err 12138 rm -f conftest.er1 12139 cat conftest.err >&5 12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12141 (exit $ac_status); } && 12142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12143 { (case "(($ac_try" in 12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12145 *) ac_try_echo=$ac_try;; 12146esac 12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12148 (eval "$ac_try") 2>&5 12149 ac_status=$? 12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12151 (exit $ac_status); }; } && 12152 { ac_try='test -s conftest$ac_exeext' 12153 { (case "(($ac_try" in 12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12155 *) ac_try_echo=$ac_try;; 12156esac 12157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12158 (eval "$ac_try") 2>&5 12159 ac_status=$? 12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12161 (exit $ac_status); }; }; then 12162 eval "$as_ac_var=yes" 12163else 12164 echo "$as_me: failed program was:" >&5 12165sed 's/^/| /' conftest.$ac_ext >&5 12166 12167 eval "$as_ac_var=no" 12168fi 12169 12170rm -f core conftest.err conftest.$ac_objext \ 12171 conftest$ac_exeext conftest.$ac_ext 12172fi 12173ac_res=`eval echo '${'$as_ac_var'}'` 12174 { echo "$as_me:$LINENO: result: $ac_res" >&5 12175echo "${ECHO_T}$ac_res" >&6; } 12176if test `eval echo '${'$as_ac_var'}'` = yes; then 12177 cat >>confdefs.h <<_ACEOF 12178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12179_ACEOF 12180 12181fi 12182done 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 12212 stdio.h unistd.h 12213do 12214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12219 echo $ECHO_N "(cached) $ECHO_C" >&6 12220fi 12221ac_res=`eval echo '${'$as_ac_Header'}'` 12222 { echo "$as_me:$LINENO: result: $ac_res" >&5 12223echo "${ECHO_T}$ac_res" >&6; } 12224else 12225 # Is the header compilable? 12226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12228cat >conftest.$ac_ext <<_ACEOF 12229/* confdefs.h. */ 12230_ACEOF 12231cat confdefs.h >>conftest.$ac_ext 12232cat >>conftest.$ac_ext <<_ACEOF 12233/* end confdefs.h. */ 12234$ac_includes_default 12235#include <$ac_header> 12236_ACEOF 12237rm -f conftest.$ac_objext 12238if { (ac_try="$ac_compile" 12239case "(($ac_try" in 12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12241 *) ac_try_echo=$ac_try;; 12242esac 12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12244 (eval "$ac_compile") 2>conftest.er1 12245 ac_status=$? 12246 grep -v '^ *+' conftest.er1 >conftest.err 12247 rm -f conftest.er1 12248 cat conftest.err >&5 12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12250 (exit $ac_status); } && 12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12252 { (case "(($ac_try" in 12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12254 *) ac_try_echo=$ac_try;; 12255esac 12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12257 (eval "$ac_try") 2>&5 12258 ac_status=$? 12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12260 (exit $ac_status); }; } && 12261 { ac_try='test -s conftest.$ac_objext' 12262 { (case "(($ac_try" in 12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12264 *) ac_try_echo=$ac_try;; 12265esac 12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12267 (eval "$ac_try") 2>&5 12268 ac_status=$? 12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12270 (exit $ac_status); }; }; then 12271 ac_header_compiler=yes 12272else 12273 echo "$as_me: failed program was:" >&5 12274sed 's/^/| /' conftest.$ac_ext >&5 12275 12276 ac_header_compiler=no 12277fi 12278 12279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12281echo "${ECHO_T}$ac_header_compiler" >&6; } 12282 12283# Is the header present? 12284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12286cat >conftest.$ac_ext <<_ACEOF 12287/* confdefs.h. */ 12288_ACEOF 12289cat confdefs.h >>conftest.$ac_ext 12290cat >>conftest.$ac_ext <<_ACEOF 12291/* end confdefs.h. */ 12292#include <$ac_header> 12293_ACEOF 12294if { (ac_try="$ac_cpp conftest.$ac_ext" 12295case "(($ac_try" in 12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12297 *) ac_try_echo=$ac_try;; 12298esac 12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12301 ac_status=$? 12302 grep -v '^ *+' conftest.er1 >conftest.err 12303 rm -f conftest.er1 12304 cat conftest.err >&5 12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12306 (exit $ac_status); } >/dev/null; then 12307 if test -s conftest.err; then 12308 ac_cpp_err=$ac_c_preproc_warn_flag 12309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12310 else 12311 ac_cpp_err= 12312 fi 12313else 12314 ac_cpp_err=yes 12315fi 12316if test -z "$ac_cpp_err"; then 12317 ac_header_preproc=yes 12318else 12319 echo "$as_me: failed program was:" >&5 12320sed 's/^/| /' conftest.$ac_ext >&5 12321 12322 ac_header_preproc=no 12323fi 12324 12325rm -f conftest.err conftest.$ac_ext 12326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12327echo "${ECHO_T}$ac_header_preproc" >&6; } 12328 12329# So? What about this header? 12330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12331 yes:no: ) 12332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12336 ac_header_preproc=yes 12337 ;; 12338 no:yes:* ) 12339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12351 ( cat <<\_ASBOX 12352## ----------------------------------- ## 12353## Report this to llvmbugs@cs.uiuc.edu ## 12354## ----------------------------------- ## 12355_ASBOX 12356 ) | sed "s/^/$as_me: WARNING: /" >&2 12357 ;; 12358esac 12359{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12362 echo $ECHO_N "(cached) $ECHO_C" >&6 12363else 12364 eval "$as_ac_Header=\$ac_header_preproc" 12365fi 12366ac_res=`eval echo '${'$as_ac_Header'}'` 12367 { echo "$as_me:$LINENO: result: $ac_res" >&5 12368echo "${ECHO_T}$ac_res" >&6; } 12369 12370fi 12371if test `eval echo '${'$as_ac_Header'}'` = yes; then 12372 cat >>confdefs.h <<_ACEOF 12373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12374_ACEOF 12375 12376fi 12377 12378done 12379 12380 12381 12382 12383 12384for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 12385do 12386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12391 echo $ECHO_N "(cached) $ECHO_C" >&6 12392fi 12393ac_res=`eval echo '${'$as_ac_Header'}'` 12394 { echo "$as_me:$LINENO: result: $ac_res" >&5 12395echo "${ECHO_T}$ac_res" >&6; } 12396else 12397 # Is the header compilable? 12398{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12400cat >conftest.$ac_ext <<_ACEOF 12401/* confdefs.h. */ 12402_ACEOF 12403cat confdefs.h >>conftest.$ac_ext 12404cat >>conftest.$ac_ext <<_ACEOF 12405/* end confdefs.h. */ 12406$ac_includes_default 12407#include <$ac_header> 12408_ACEOF 12409rm -f conftest.$ac_objext 12410if { (ac_try="$ac_compile" 12411case "(($ac_try" in 12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12413 *) ac_try_echo=$ac_try;; 12414esac 12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12416 (eval "$ac_compile") 2>conftest.er1 12417 ac_status=$? 12418 grep -v '^ *+' conftest.er1 >conftest.err 12419 rm -f conftest.er1 12420 cat conftest.err >&5 12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12422 (exit $ac_status); } && 12423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12424 { (case "(($ac_try" in 12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12426 *) ac_try_echo=$ac_try;; 12427esac 12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12429 (eval "$ac_try") 2>&5 12430 ac_status=$? 12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12432 (exit $ac_status); }; } && 12433 { ac_try='test -s conftest.$ac_objext' 12434 { (case "(($ac_try" in 12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12436 *) ac_try_echo=$ac_try;; 12437esac 12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12439 (eval "$ac_try") 2>&5 12440 ac_status=$? 12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12442 (exit $ac_status); }; }; then 12443 ac_header_compiler=yes 12444else 12445 echo "$as_me: failed program was:" >&5 12446sed 's/^/| /' conftest.$ac_ext >&5 12447 12448 ac_header_compiler=no 12449fi 12450 12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12453echo "${ECHO_T}$ac_header_compiler" >&6; } 12454 12455# Is the header present? 12456{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12458cat >conftest.$ac_ext <<_ACEOF 12459/* confdefs.h. */ 12460_ACEOF 12461cat confdefs.h >>conftest.$ac_ext 12462cat >>conftest.$ac_ext <<_ACEOF 12463/* end confdefs.h. */ 12464#include <$ac_header> 12465_ACEOF 12466if { (ac_try="$ac_cpp conftest.$ac_ext" 12467case "(($ac_try" in 12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12469 *) ac_try_echo=$ac_try;; 12470esac 12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12473 ac_status=$? 12474 grep -v '^ *+' conftest.er1 >conftest.err 12475 rm -f conftest.er1 12476 cat conftest.err >&5 12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12478 (exit $ac_status); } >/dev/null; then 12479 if test -s conftest.err; then 12480 ac_cpp_err=$ac_c_preproc_warn_flag 12481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12482 else 12483 ac_cpp_err= 12484 fi 12485else 12486 ac_cpp_err=yes 12487fi 12488if test -z "$ac_cpp_err"; then 12489 ac_header_preproc=yes 12490else 12491 echo "$as_me: failed program was:" >&5 12492sed 's/^/| /' conftest.$ac_ext >&5 12493 12494 ac_header_preproc=no 12495fi 12496 12497rm -f conftest.err conftest.$ac_ext 12498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12499echo "${ECHO_T}$ac_header_preproc" >&6; } 12500 12501# So? What about this header? 12502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12503 yes:no: ) 12504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12508 ac_header_preproc=yes 12509 ;; 12510 no:yes:* ) 12511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12523 ( cat <<\_ASBOX 12524## ----------------------------------- ## 12525## Report this to llvmbugs@cs.uiuc.edu ## 12526## ----------------------------------- ## 12527_ASBOX 12528 ) | sed "s/^/$as_me: WARNING: /" >&2 12529 ;; 12530esac 12531{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12534 echo $ECHO_N "(cached) $ECHO_C" >&6 12535else 12536 eval "$as_ac_Header=\$ac_header_preproc" 12537fi 12538ac_res=`eval echo '${'$as_ac_Header'}'` 12539 { echo "$as_me:$LINENO: result: $ac_res" >&5 12540echo "${ECHO_T}$ac_res" >&6; } 12541 12542fi 12543if test `eval echo '${'$as_ac_Header'}'` = yes; then 12544 cat >>confdefs.h <<_ACEOF 12545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12546_ACEOF 12547 12548fi 12549 12550done 12551 12552 12553 12554for ac_header in string.h strings.h 12555do 12556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12558 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12561 echo $ECHO_N "(cached) $ECHO_C" >&6 12562fi 12563ac_res=`eval echo '${'$as_ac_Header'}'` 12564 { echo "$as_me:$LINENO: result: $ac_res" >&5 12565echo "${ECHO_T}$ac_res" >&6; } 12566else 12567 # Is the header compilable? 12568{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12570cat >conftest.$ac_ext <<_ACEOF 12571/* confdefs.h. */ 12572_ACEOF 12573cat confdefs.h >>conftest.$ac_ext 12574cat >>conftest.$ac_ext <<_ACEOF 12575/* end confdefs.h. */ 12576$ac_includes_default 12577#include <$ac_header> 12578_ACEOF 12579rm -f conftest.$ac_objext 12580if { (ac_try="$ac_compile" 12581case "(($ac_try" in 12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12583 *) ac_try_echo=$ac_try;; 12584esac 12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12586 (eval "$ac_compile") 2>conftest.er1 12587 ac_status=$? 12588 grep -v '^ *+' conftest.er1 >conftest.err 12589 rm -f conftest.er1 12590 cat conftest.err >&5 12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12592 (exit $ac_status); } && 12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12594 { (case "(($ac_try" in 12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12596 *) ac_try_echo=$ac_try;; 12597esac 12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12599 (eval "$ac_try") 2>&5 12600 ac_status=$? 12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12602 (exit $ac_status); }; } && 12603 { ac_try='test -s conftest.$ac_objext' 12604 { (case "(($ac_try" in 12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12606 *) ac_try_echo=$ac_try;; 12607esac 12608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12609 (eval "$ac_try") 2>&5 12610 ac_status=$? 12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12612 (exit $ac_status); }; }; then 12613 ac_header_compiler=yes 12614else 12615 echo "$as_me: failed program was:" >&5 12616sed 's/^/| /' conftest.$ac_ext >&5 12617 12618 ac_header_compiler=no 12619fi 12620 12621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12622{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12623echo "${ECHO_T}$ac_header_compiler" >&6; } 12624 12625# Is the header present? 12626{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12628cat >conftest.$ac_ext <<_ACEOF 12629/* confdefs.h. */ 12630_ACEOF 12631cat confdefs.h >>conftest.$ac_ext 12632cat >>conftest.$ac_ext <<_ACEOF 12633/* end confdefs.h. */ 12634#include <$ac_header> 12635_ACEOF 12636if { (ac_try="$ac_cpp conftest.$ac_ext" 12637case "(($ac_try" in 12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12639 *) ac_try_echo=$ac_try;; 12640esac 12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12643 ac_status=$? 12644 grep -v '^ *+' conftest.er1 >conftest.err 12645 rm -f conftest.er1 12646 cat conftest.err >&5 12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12648 (exit $ac_status); } >/dev/null; then 12649 if test -s conftest.err; then 12650 ac_cpp_err=$ac_c_preproc_warn_flag 12651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12652 else 12653 ac_cpp_err= 12654 fi 12655else 12656 ac_cpp_err=yes 12657fi 12658if test -z "$ac_cpp_err"; then 12659 ac_header_preproc=yes 12660else 12661 echo "$as_me: failed program was:" >&5 12662sed 's/^/| /' conftest.$ac_ext >&5 12663 12664 ac_header_preproc=no 12665fi 12666 12667rm -f conftest.err conftest.$ac_ext 12668{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12669echo "${ECHO_T}$ac_header_preproc" >&6; } 12670 12671# So? What about this header? 12672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12673 yes:no: ) 12674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12678 ac_header_preproc=yes 12679 ;; 12680 no:yes:* ) 12681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12693 ( cat <<\_ASBOX 12694## ----------------------------------- ## 12695## Report this to llvmbugs@cs.uiuc.edu ## 12696## ----------------------------------- ## 12697_ASBOX 12698 ) | sed "s/^/$as_me: WARNING: /" >&2 12699 ;; 12700esac 12701{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12704 echo $ECHO_N "(cached) $ECHO_C" >&6 12705else 12706 eval "$as_ac_Header=\$ac_header_preproc" 12707fi 12708ac_res=`eval echo '${'$as_ac_Header'}'` 12709 { echo "$as_me:$LINENO: result: $ac_res" >&5 12710echo "${ECHO_T}$ac_res" >&6; } 12711 12712fi 12713if test `eval echo '${'$as_ac_Header'}'` = yes; then 12714 cat >>confdefs.h <<_ACEOF 12715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12716_ACEOF 12717 break 12718fi 12719 12720done 12721 12722 12723 12724 12725for ac_func in strchr index 12726do 12727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12728{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12731 echo $ECHO_N "(cached) $ECHO_C" >&6 12732else 12733 cat >conftest.$ac_ext <<_ACEOF 12734/* confdefs.h. */ 12735_ACEOF 12736cat confdefs.h >>conftest.$ac_ext 12737cat >>conftest.$ac_ext <<_ACEOF 12738/* end confdefs.h. */ 12739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12740 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12741#define $ac_func innocuous_$ac_func 12742 12743/* System header to define __stub macros and hopefully few prototypes, 12744 which can conflict with char $ac_func (); below. 12745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12746 <limits.h> exists even on freestanding compilers. */ 12747 12748#ifdef __STDC__ 12749# include <limits.h> 12750#else 12751# include <assert.h> 12752#endif 12753 12754#undef $ac_func 12755 12756/* Override any GCC internal prototype to avoid an error. 12757 Use char because int might match the return type of a GCC 12758 builtin and then its argument prototype would still apply. */ 12759#ifdef __cplusplus 12760extern "C" 12761#endif 12762char $ac_func (); 12763/* The GNU C library defines this for functions which it implements 12764 to always fail with ENOSYS. Some functions are actually named 12765 something starting with __ and the normal name is an alias. */ 12766#if defined __stub_$ac_func || defined __stub___$ac_func 12767choke me 12768#endif 12769 12770int 12771main () 12772{ 12773return $ac_func (); 12774 ; 12775 return 0; 12776} 12777_ACEOF 12778rm -f conftest.$ac_objext conftest$ac_exeext 12779if { (ac_try="$ac_link" 12780case "(($ac_try" in 12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12782 *) ac_try_echo=$ac_try;; 12783esac 12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12785 (eval "$ac_link") 2>conftest.er1 12786 ac_status=$? 12787 grep -v '^ *+' conftest.er1 >conftest.err 12788 rm -f conftest.er1 12789 cat conftest.err >&5 12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); } && 12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12793 { (case "(($ac_try" in 12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12795 *) ac_try_echo=$ac_try;; 12796esac 12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12798 (eval "$ac_try") 2>&5 12799 ac_status=$? 12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12801 (exit $ac_status); }; } && 12802 { ac_try='test -s conftest$ac_exeext' 12803 { (case "(($ac_try" in 12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12805 *) ac_try_echo=$ac_try;; 12806esac 12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12808 (eval "$ac_try") 2>&5 12809 ac_status=$? 12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); }; }; then 12812 eval "$as_ac_var=yes" 12813else 12814 echo "$as_me: failed program was:" >&5 12815sed 's/^/| /' conftest.$ac_ext >&5 12816 12817 eval "$as_ac_var=no" 12818fi 12819 12820rm -f core conftest.err conftest.$ac_objext \ 12821 conftest$ac_exeext conftest.$ac_ext 12822fi 12823ac_res=`eval echo '${'$as_ac_var'}'` 12824 { echo "$as_me:$LINENO: result: $ac_res" >&5 12825echo "${ECHO_T}$ac_res" >&6; } 12826if test `eval echo '${'$as_ac_var'}'` = yes; then 12827 cat >>confdefs.h <<_ACEOF 12828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12829_ACEOF 12830 break 12831fi 12832done 12833 12834 12835 12836for ac_func in strrchr rindex 12837do 12838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12839{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12842 echo $ECHO_N "(cached) $ECHO_C" >&6 12843else 12844 cat >conftest.$ac_ext <<_ACEOF 12845/* confdefs.h. */ 12846_ACEOF 12847cat confdefs.h >>conftest.$ac_ext 12848cat >>conftest.$ac_ext <<_ACEOF 12849/* end confdefs.h. */ 12850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12852#define $ac_func innocuous_$ac_func 12853 12854/* System header to define __stub macros and hopefully few prototypes, 12855 which can conflict with char $ac_func (); below. 12856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12857 <limits.h> exists even on freestanding compilers. */ 12858 12859#ifdef __STDC__ 12860# include <limits.h> 12861#else 12862# include <assert.h> 12863#endif 12864 12865#undef $ac_func 12866 12867/* Override any GCC internal prototype to avoid an error. 12868 Use char because int might match the return type of a GCC 12869 builtin and then its argument prototype would still apply. */ 12870#ifdef __cplusplus 12871extern "C" 12872#endif 12873char $ac_func (); 12874/* The GNU C library defines this for functions which it implements 12875 to always fail with ENOSYS. Some functions are actually named 12876 something starting with __ and the normal name is an alias. */ 12877#if defined __stub_$ac_func || defined __stub___$ac_func 12878choke me 12879#endif 12880 12881int 12882main () 12883{ 12884return $ac_func (); 12885 ; 12886 return 0; 12887} 12888_ACEOF 12889rm -f conftest.$ac_objext conftest$ac_exeext 12890if { (ac_try="$ac_link" 12891case "(($ac_try" in 12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12893 *) ac_try_echo=$ac_try;; 12894esac 12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12896 (eval "$ac_link") 2>conftest.er1 12897 ac_status=$? 12898 grep -v '^ *+' conftest.er1 >conftest.err 12899 rm -f conftest.er1 12900 cat conftest.err >&5 12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12902 (exit $ac_status); } && 12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12904 { (case "(($ac_try" in 12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12906 *) ac_try_echo=$ac_try;; 12907esac 12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12909 (eval "$ac_try") 2>&5 12910 ac_status=$? 12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12912 (exit $ac_status); }; } && 12913 { ac_try='test -s conftest$ac_exeext' 12914 { (case "(($ac_try" in 12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12916 *) ac_try_echo=$ac_try;; 12917esac 12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12919 (eval "$ac_try") 2>&5 12920 ac_status=$? 12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); }; }; then 12923 eval "$as_ac_var=yes" 12924else 12925 echo "$as_me: failed program was:" >&5 12926sed 's/^/| /' conftest.$ac_ext >&5 12927 12928 eval "$as_ac_var=no" 12929fi 12930 12931rm -f core conftest.err conftest.$ac_objext \ 12932 conftest$ac_exeext conftest.$ac_ext 12933fi 12934ac_res=`eval echo '${'$as_ac_var'}'` 12935 { echo "$as_me:$LINENO: result: $ac_res" >&5 12936echo "${ECHO_T}$ac_res" >&6; } 12937if test `eval echo '${'$as_ac_var'}'` = yes; then 12938 cat >>confdefs.h <<_ACEOF 12939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12940_ACEOF 12941 break 12942fi 12943done 12944 12945 12946 12947for ac_func in memcpy bcopy 12948do 12949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12950{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12953 echo $ECHO_N "(cached) $ECHO_C" >&6 12954else 12955 cat >conftest.$ac_ext <<_ACEOF 12956/* confdefs.h. */ 12957_ACEOF 12958cat confdefs.h >>conftest.$ac_ext 12959cat >>conftest.$ac_ext <<_ACEOF 12960/* end confdefs.h. */ 12961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12963#define $ac_func innocuous_$ac_func 12964 12965/* System header to define __stub macros and hopefully few prototypes, 12966 which can conflict with char $ac_func (); below. 12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12968 <limits.h> exists even on freestanding compilers. */ 12969 12970#ifdef __STDC__ 12971# include <limits.h> 12972#else 12973# include <assert.h> 12974#endif 12975 12976#undef $ac_func 12977 12978/* Override any GCC internal prototype to avoid an error. 12979 Use char because int might match the return type of a GCC 12980 builtin and then its argument prototype would still apply. */ 12981#ifdef __cplusplus 12982extern "C" 12983#endif 12984char $ac_func (); 12985/* The GNU C library defines this for functions which it implements 12986 to always fail with ENOSYS. Some functions are actually named 12987 something starting with __ and the normal name is an alias. */ 12988#if defined __stub_$ac_func || defined __stub___$ac_func 12989choke me 12990#endif 12991 12992int 12993main () 12994{ 12995return $ac_func (); 12996 ; 12997 return 0; 12998} 12999_ACEOF 13000rm -f conftest.$ac_objext conftest$ac_exeext 13001if { (ac_try="$ac_link" 13002case "(($ac_try" in 13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13004 *) ac_try_echo=$ac_try;; 13005esac 13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13007 (eval "$ac_link") 2>conftest.er1 13008 ac_status=$? 13009 grep -v '^ *+' conftest.er1 >conftest.err 13010 rm -f conftest.er1 13011 cat conftest.err >&5 13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13013 (exit $ac_status); } && 13014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13015 { (case "(($ac_try" in 13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13017 *) ac_try_echo=$ac_try;; 13018esac 13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13020 (eval "$ac_try") 2>&5 13021 ac_status=$? 13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13023 (exit $ac_status); }; } && 13024 { ac_try='test -s conftest$ac_exeext' 13025 { (case "(($ac_try" in 13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13027 *) ac_try_echo=$ac_try;; 13028esac 13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13030 (eval "$ac_try") 2>&5 13031 ac_status=$? 13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13033 (exit $ac_status); }; }; then 13034 eval "$as_ac_var=yes" 13035else 13036 echo "$as_me: failed program was:" >&5 13037sed 's/^/| /' conftest.$ac_ext >&5 13038 13039 eval "$as_ac_var=no" 13040fi 13041 13042rm -f core conftest.err conftest.$ac_objext \ 13043 conftest$ac_exeext conftest.$ac_ext 13044fi 13045ac_res=`eval echo '${'$as_ac_var'}'` 13046 { echo "$as_me:$LINENO: result: $ac_res" >&5 13047echo "${ECHO_T}$ac_res" >&6; } 13048if test `eval echo '${'$as_ac_var'}'` = yes; then 13049 cat >>confdefs.h <<_ACEOF 13050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13051_ACEOF 13052 break 13053fi 13054done 13055 13056 13057 13058for ac_func in memmove strcmp 13059do 13060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13061{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13064 echo $ECHO_N "(cached) $ECHO_C" >&6 13065else 13066 cat >conftest.$ac_ext <<_ACEOF 13067/* confdefs.h. */ 13068_ACEOF 13069cat confdefs.h >>conftest.$ac_ext 13070cat >>conftest.$ac_ext <<_ACEOF 13071/* end confdefs.h. */ 13072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13074#define $ac_func innocuous_$ac_func 13075 13076/* System header to define __stub macros and hopefully few prototypes, 13077 which can conflict with char $ac_func (); below. 13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13079 <limits.h> exists even on freestanding compilers. */ 13080 13081#ifdef __STDC__ 13082# include <limits.h> 13083#else 13084# include <assert.h> 13085#endif 13086 13087#undef $ac_func 13088 13089/* Override any GCC internal prototype to avoid an error. 13090 Use char because int might match the return type of a GCC 13091 builtin and then its argument prototype would still apply. */ 13092#ifdef __cplusplus 13093extern "C" 13094#endif 13095char $ac_func (); 13096/* The GNU C library defines this for functions which it implements 13097 to always fail with ENOSYS. Some functions are actually named 13098 something starting with __ and the normal name is an alias. */ 13099#if defined __stub_$ac_func || defined __stub___$ac_func 13100choke me 13101#endif 13102 13103int 13104main () 13105{ 13106return $ac_func (); 13107 ; 13108 return 0; 13109} 13110_ACEOF 13111rm -f conftest.$ac_objext conftest$ac_exeext 13112if { (ac_try="$ac_link" 13113case "(($ac_try" in 13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13115 *) ac_try_echo=$ac_try;; 13116esac 13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13118 (eval "$ac_link") 2>conftest.er1 13119 ac_status=$? 13120 grep -v '^ *+' conftest.er1 >conftest.err 13121 rm -f conftest.er1 13122 cat conftest.err >&5 13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13124 (exit $ac_status); } && 13125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13126 { (case "(($ac_try" in 13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13128 *) ac_try_echo=$ac_try;; 13129esac 13130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13131 (eval "$ac_try") 2>&5 13132 ac_status=$? 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); }; } && 13135 { ac_try='test -s conftest$ac_exeext' 13136 { (case "(($ac_try" in 13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13138 *) ac_try_echo=$ac_try;; 13139esac 13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13141 (eval "$ac_try") 2>&5 13142 ac_status=$? 13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13144 (exit $ac_status); }; }; then 13145 eval "$as_ac_var=yes" 13146else 13147 echo "$as_me: failed program was:" >&5 13148sed 's/^/| /' conftest.$ac_ext >&5 13149 13150 eval "$as_ac_var=no" 13151fi 13152 13153rm -f core conftest.err conftest.$ac_objext \ 13154 conftest$ac_exeext conftest.$ac_ext 13155fi 13156ac_res=`eval echo '${'$as_ac_var'}'` 13157 { echo "$as_me:$LINENO: result: $ac_res" >&5 13158echo "${ECHO_T}$ac_res" >&6; } 13159if test `eval echo '${'$as_ac_var'}'` = yes; then 13160 cat >>confdefs.h <<_ACEOF 13161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13162_ACEOF 13163 13164fi 13165done 13166 13167 13168 13169 13170for ac_func in closedir opendir readdir 13171do 13172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13173{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13176 echo $ECHO_N "(cached) $ECHO_C" >&6 13177else 13178 cat >conftest.$ac_ext <<_ACEOF 13179/* confdefs.h. */ 13180_ACEOF 13181cat confdefs.h >>conftest.$ac_ext 13182cat >>conftest.$ac_ext <<_ACEOF 13183/* end confdefs.h. */ 13184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13186#define $ac_func innocuous_$ac_func 13187 13188/* System header to define __stub macros and hopefully few prototypes, 13189 which can conflict with char $ac_func (); below. 13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13191 <limits.h> exists even on freestanding compilers. */ 13192 13193#ifdef __STDC__ 13194# include <limits.h> 13195#else 13196# include <assert.h> 13197#endif 13198 13199#undef $ac_func 13200 13201/* Override any GCC internal prototype to avoid an error. 13202 Use char because int might match the return type of a GCC 13203 builtin and then its argument prototype would still apply. */ 13204#ifdef __cplusplus 13205extern "C" 13206#endif 13207char $ac_func (); 13208/* The GNU C library defines this for functions which it implements 13209 to always fail with ENOSYS. Some functions are actually named 13210 something starting with __ and the normal name is an alias. */ 13211#if defined __stub_$ac_func || defined __stub___$ac_func 13212choke me 13213#endif 13214 13215int 13216main () 13217{ 13218return $ac_func (); 13219 ; 13220 return 0; 13221} 13222_ACEOF 13223rm -f conftest.$ac_objext conftest$ac_exeext 13224if { (ac_try="$ac_link" 13225case "(($ac_try" in 13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13227 *) ac_try_echo=$ac_try;; 13228esac 13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13230 (eval "$ac_link") 2>conftest.er1 13231 ac_status=$? 13232 grep -v '^ *+' conftest.er1 >conftest.err 13233 rm -f conftest.er1 13234 cat conftest.err >&5 13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13236 (exit $ac_status); } && 13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13238 { (case "(($ac_try" in 13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13240 *) ac_try_echo=$ac_try;; 13241esac 13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13243 (eval "$ac_try") 2>&5 13244 ac_status=$? 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); }; } && 13247 { ac_try='test -s conftest$ac_exeext' 13248 { (case "(($ac_try" in 13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13250 *) ac_try_echo=$ac_try;; 13251esac 13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13253 (eval "$ac_try") 2>&5 13254 ac_status=$? 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); }; }; then 13257 eval "$as_ac_var=yes" 13258else 13259 echo "$as_me: failed program was:" >&5 13260sed 's/^/| /' conftest.$ac_ext >&5 13261 13262 eval "$as_ac_var=no" 13263fi 13264 13265rm -f core conftest.err conftest.$ac_objext \ 13266 conftest$ac_exeext conftest.$ac_ext 13267fi 13268ac_res=`eval echo '${'$as_ac_var'}'` 13269 { echo "$as_me:$LINENO: result: $ac_res" >&5 13270echo "${ECHO_T}$ac_res" >&6; } 13271if test `eval echo '${'$as_ac_var'}'` = yes; then 13272 cat >>confdefs.h <<_ACEOF 13273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13274_ACEOF 13275 13276fi 13277done 13278 13279 13280 13281if test "$WITH_LLVMGCCDIR" = "default" ; then 13282 LLVMGCC="llvm-gcc${EXEEXT}" 13283 LLVMGXX="llvm-g++${EXEEXT}" 13284 LLVMGCCCOMMAND="$LLVMGCC" 13285 LLVMGXXCOMMAND="$LLVMGXX" 13286 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13287 13288 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13289 13290 # Extract the first word of "$LLVMGCC", so it can be a program name with args. 13291set dummy $LLVMGCC; ac_word=$2 13292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13294if test "${ac_cv_path_LLVMGCC+set}" = set; then 13295 echo $ECHO_N "(cached) $ECHO_C" >&6 13296else 13297 case $LLVMGCC in 13298 [\\/]* | ?:[\\/]*) 13299 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. 13300 ;; 13301 *) 13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13303for as_dir in $PATH 13304do 13305 IFS=$as_save_IFS 13306 test -z "$as_dir" && as_dir=. 13307 for ac_exec_ext in '' $ac_executable_extensions; do 13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13309 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" 13310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13311 break 2 13312 fi 13313done 13314done 13315IFS=$as_save_IFS 13316 13317 ;; 13318esac 13319fi 13320LLVMGCC=$ac_cv_path_LLVMGCC 13321if test -n "$LLVMGCC"; then 13322 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 13323echo "${ECHO_T}$LLVMGCC" >&6; } 13324else 13325 { echo "$as_me:$LINENO: result: no" >&5 13326echo "${ECHO_T}no" >&6; } 13327fi 13328 13329 13330 # Extract the first word of "$LLVMGXX", so it can be a program name with args. 13331set dummy $LLVMGXX; ac_word=$2 13332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13334if test "${ac_cv_path_LLVMGXX+set}" = set; then 13335 echo $ECHO_N "(cached) $ECHO_C" >&6 13336else 13337 case $LLVMGXX in 13338 [\\/]* | ?:[\\/]*) 13339 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. 13340 ;; 13341 *) 13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13343for as_dir in $PATH 13344do 13345 IFS=$as_save_IFS 13346 test -z "$as_dir" && as_dir=. 13347 for ac_exec_ext in '' $ac_executable_extensions; do 13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13349 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" 13350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13351 break 2 13352 fi 13353done 13354done 13355IFS=$as_save_IFS 13356 13357 ;; 13358esac 13359fi 13360LLVMGXX=$ac_cv_path_LLVMGXX 13361if test -n "$LLVMGXX"; then 13362 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 13363echo "${ECHO_T}$LLVMGXX" >&6; } 13364else 13365 { echo "$as_me:$LINENO: result: no" >&5 13366echo "${ECHO_T}no" >&6; } 13367fi 13368 13369 13370else 13371 if test -z "$LLVMGCC"; then 13372 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" 13373 LLVMGCCCOMMAND="$LLVMGCC" 13374 fi 13375 if test -z "$LLVMGXX"; then 13376 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" 13377 LLVMGXXCOMMAND="$LLVMGXX" 13378 fi 13379 13380 LLVMGCC=$LLVMGCC 13381 13382 LLVMGXX=$LLVMGXX 13383 13384 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13385 13386 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13387 13388fi 13389 13390 13391# Check whether --with-llvmcc was given. 13392if test "${with_llvmcc+set}" = set; then 13393 withval=$with_llvmcc; 13394else 13395 with_llvmcc=check 13396fi 13397 13398{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 13399echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } 13400if test "$with_llvmcc" != "check"; then 13401 if (test "$with_llvmcc" != "llvm-gcc" && 13402 test "$with_llvmcc" != "clang" && 13403 test "$with_llvmcc" != "none"); then 13404 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 13405echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} 13406 { (exit 1); exit 1; }; } 13407 fi 13408 WITH_LLVMCC="$with_llvmcc" 13409elif test -n "$LLVMGCC"; then 13410 WITH_LLVMCC=llvm-gcc 13411elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then 13412 WITH_LLVMCC=clang 13413else 13414 WITH_LLVMCC=none 13415fi 13416{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 13417echo "${ECHO_T}$WITH_LLVMCC" >&6; } 13418LLVMCC_OPTION=$WITH_LLVMCC 13419 13420 13421{ echo "$as_me:$LINENO: checking tool compatibility" >&5 13422echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 13423 13424ICC=no 13425IXX=no 13426case $CC in 13427 icc*|icpc*) 13428 ICC=yes 13429 IXX=yes 13430 ;; 13431 *) 13432 ;; 13433esac 13434 13435if test "$GCC" != "yes" && test "$ICC" != "yes" 13436then 13437 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 13438echo "$as_me: error: gcc|icc required but not found" >&2;} 13439 { (exit 1); exit 1; }; } 13440fi 13441 13442if test "$GXX" != "yes" && test "$IXX" != "yes" 13443then 13444 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 13445echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 13446 { (exit 1); exit 1; }; } 13447fi 13448 13449if test "$GCC" = "yes" 13450then 13451 cat >conftest.$ac_ext <<_ACEOF 13452#if !defined(__GNUC__) || __GNUC__ < 3 13453#error Unsupported GCC version 13454#endif 13455 13456_ACEOF 13457rm -f conftest.$ac_objext 13458if { (ac_try="$ac_compile" 13459case "(($ac_try" in 13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13461 *) ac_try_echo=$ac_try;; 13462esac 13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13464 (eval "$ac_compile") 2>conftest.er1 13465 ac_status=$? 13466 grep -v '^ *+' conftest.er1 >conftest.err 13467 rm -f conftest.er1 13468 cat conftest.err >&5 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); } && 13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13472 { (case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13477 (eval "$ac_try") 2>&5 13478 ac_status=$? 13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13480 (exit $ac_status); }; } && 13481 { ac_try='test -s conftest.$ac_objext' 13482 { (case "(($ac_try" in 13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13484 *) ac_try_echo=$ac_try;; 13485esac 13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13487 (eval "$ac_try") 2>&5 13488 ac_status=$? 13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13490 (exit $ac_status); }; }; then 13491 : 13492else 13493 echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 13497echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 13498 { (exit 1); exit 1; }; } 13499fi 13500 13501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13502fi 13503 13504if test -z "$llvm_cv_gnu_make_command" 13505then 13506 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 13507echo "$as_me: error: GNU Make required but not found" >&2;} 13508 { (exit 1); exit 1; }; } 13509fi 13510 13511{ echo "$as_me:$LINENO: result: ok" >&5 13512echo "${ECHO_T}ok" >&6; } 13513 13514{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 13515echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 13516NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 13517 13518NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 13519 13520{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 13521echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 13522 13523 13524 13525{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 13526echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 13527if test "${ac_cv_lib_m_sin+set}" = set; then 13528 echo $ECHO_N "(cached) $ECHO_C" >&6 13529else 13530 ac_check_lib_save_LIBS=$LIBS 13531LIBS="-lm $LIBS" 13532cat >conftest.$ac_ext <<_ACEOF 13533/* confdefs.h. */ 13534_ACEOF 13535cat confdefs.h >>conftest.$ac_ext 13536cat >>conftest.$ac_ext <<_ACEOF 13537/* end confdefs.h. */ 13538 13539/* Override any GCC internal prototype to avoid an error. 13540 Use char because int might match the return type of a GCC 13541 builtin and then its argument prototype would still apply. */ 13542#ifdef __cplusplus 13543extern "C" 13544#endif 13545char sin (); 13546int 13547main () 13548{ 13549return sin (); 13550 ; 13551 return 0; 13552} 13553_ACEOF 13554rm -f conftest.$ac_objext conftest$ac_exeext 13555if { (ac_try="$ac_link" 13556case "(($ac_try" in 13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13558 *) ac_try_echo=$ac_try;; 13559esac 13560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13561 (eval "$ac_link") 2>conftest.er1 13562 ac_status=$? 13563 grep -v '^ *+' conftest.er1 >conftest.err 13564 rm -f conftest.er1 13565 cat conftest.err >&5 13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13567 (exit $ac_status); } && 13568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13569 { (case "(($ac_try" in 13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13571 *) ac_try_echo=$ac_try;; 13572esac 13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13574 (eval "$ac_try") 2>&5 13575 ac_status=$? 13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13577 (exit $ac_status); }; } && 13578 { ac_try='test -s conftest$ac_exeext' 13579 { (case "(($ac_try" in 13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13581 *) ac_try_echo=$ac_try;; 13582esac 13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13584 (eval "$ac_try") 2>&5 13585 ac_status=$? 13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13587 (exit $ac_status); }; }; then 13588 ac_cv_lib_m_sin=yes 13589else 13590 echo "$as_me: failed program was:" >&5 13591sed 's/^/| /' conftest.$ac_ext >&5 13592 13593 ac_cv_lib_m_sin=no 13594fi 13595 13596rm -f core conftest.err conftest.$ac_objext \ 13597 conftest$ac_exeext conftest.$ac_ext 13598LIBS=$ac_check_lib_save_LIBS 13599fi 13600{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 13601echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 13602if test $ac_cv_lib_m_sin = yes; then 13603 cat >>confdefs.h <<_ACEOF 13604#define HAVE_LIBM 1 13605_ACEOF 13606 13607 LIBS="-lm $LIBS" 13608 13609fi 13610 13611if test "$llvm_cv_os_type" = "MingW" ; then 13612 13613{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 13614echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 13615if test "${ac_cv_lib_imagehlp_main+set}" = set; then 13616 echo $ECHO_N "(cached) $ECHO_C" >&6 13617else 13618 ac_check_lib_save_LIBS=$LIBS 13619LIBS="-limagehlp $LIBS" 13620cat >conftest.$ac_ext <<_ACEOF 13621/* confdefs.h. */ 13622_ACEOF 13623cat confdefs.h >>conftest.$ac_ext 13624cat >>conftest.$ac_ext <<_ACEOF 13625/* end confdefs.h. */ 13626 13627 13628int 13629main () 13630{ 13631return main (); 13632 ; 13633 return 0; 13634} 13635_ACEOF 13636rm -f conftest.$ac_objext conftest$ac_exeext 13637if { (ac_try="$ac_link" 13638case "(($ac_try" in 13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13640 *) ac_try_echo=$ac_try;; 13641esac 13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13643 (eval "$ac_link") 2>conftest.er1 13644 ac_status=$? 13645 grep -v '^ *+' conftest.er1 >conftest.err 13646 rm -f conftest.er1 13647 cat conftest.err >&5 13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13649 (exit $ac_status); } && 13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13651 { (case "(($ac_try" in 13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13653 *) ac_try_echo=$ac_try;; 13654esac 13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13656 (eval "$ac_try") 2>&5 13657 ac_status=$? 13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13659 (exit $ac_status); }; } && 13660 { ac_try='test -s conftest$ac_exeext' 13661 { (case "(($ac_try" in 13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13663 *) ac_try_echo=$ac_try;; 13664esac 13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13666 (eval "$ac_try") 2>&5 13667 ac_status=$? 13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13669 (exit $ac_status); }; }; then 13670 ac_cv_lib_imagehlp_main=yes 13671else 13672 echo "$as_me: failed program was:" >&5 13673sed 's/^/| /' conftest.$ac_ext >&5 13674 13675 ac_cv_lib_imagehlp_main=no 13676fi 13677 13678rm -f core conftest.err conftest.$ac_objext \ 13679 conftest$ac_exeext conftest.$ac_ext 13680LIBS=$ac_check_lib_save_LIBS 13681fi 13682{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 13683echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 13684if test $ac_cv_lib_imagehlp_main = yes; then 13685 cat >>confdefs.h <<_ACEOF 13686#define HAVE_LIBIMAGEHLP 1 13687_ACEOF 13688 13689 LIBS="-limagehlp $LIBS" 13690 13691fi 13692 13693 13694{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 13695echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 13696if test "${ac_cv_lib_psapi_main+set}" = set; then 13697 echo $ECHO_N "(cached) $ECHO_C" >&6 13698else 13699 ac_check_lib_save_LIBS=$LIBS 13700LIBS="-lpsapi $LIBS" 13701cat >conftest.$ac_ext <<_ACEOF 13702/* confdefs.h. */ 13703_ACEOF 13704cat confdefs.h >>conftest.$ac_ext 13705cat >>conftest.$ac_ext <<_ACEOF 13706/* end confdefs.h. */ 13707 13708 13709int 13710main () 13711{ 13712return main (); 13713 ; 13714 return 0; 13715} 13716_ACEOF 13717rm -f conftest.$ac_objext conftest$ac_exeext 13718if { (ac_try="$ac_link" 13719case "(($ac_try" in 13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13721 *) ac_try_echo=$ac_try;; 13722esac 13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13724 (eval "$ac_link") 2>conftest.er1 13725 ac_status=$? 13726 grep -v '^ *+' conftest.er1 >conftest.err 13727 rm -f conftest.er1 13728 cat conftest.err >&5 13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13730 (exit $ac_status); } && 13731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13732 { (case "(($ac_try" in 13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13734 *) ac_try_echo=$ac_try;; 13735esac 13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13737 (eval "$ac_try") 2>&5 13738 ac_status=$? 13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13740 (exit $ac_status); }; } && 13741 { ac_try='test -s conftest$ac_exeext' 13742 { (case "(($ac_try" in 13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13744 *) ac_try_echo=$ac_try;; 13745esac 13746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13747 (eval "$ac_try") 2>&5 13748 ac_status=$? 13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13750 (exit $ac_status); }; }; then 13751 ac_cv_lib_psapi_main=yes 13752else 13753 echo "$as_me: failed program was:" >&5 13754sed 's/^/| /' conftest.$ac_ext >&5 13755 13756 ac_cv_lib_psapi_main=no 13757fi 13758 13759rm -f core conftest.err conftest.$ac_objext \ 13760 conftest$ac_exeext conftest.$ac_ext 13761LIBS=$ac_check_lib_save_LIBS 13762fi 13763{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 13764echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 13765if test $ac_cv_lib_psapi_main = yes; then 13766 cat >>confdefs.h <<_ACEOF 13767#define HAVE_LIBPSAPI 1 13768_ACEOF 13769 13770 LIBS="-lpsapi $LIBS" 13771 13772fi 13773 13774fi 13775 13776{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13777echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 13778if test "${ac_cv_search_dlopen+set}" = set; then 13779 echo $ECHO_N "(cached) $ECHO_C" >&6 13780else 13781 ac_func_search_save_LIBS=$LIBS 13782cat >conftest.$ac_ext <<_ACEOF 13783/* confdefs.h. */ 13784_ACEOF 13785cat confdefs.h >>conftest.$ac_ext 13786cat >>conftest.$ac_ext <<_ACEOF 13787/* end confdefs.h. */ 13788 13789/* Override any GCC internal prototype to avoid an error. 13790 Use char because int might match the return type of a GCC 13791 builtin and then its argument prototype would still apply. */ 13792#ifdef __cplusplus 13793extern "C" 13794#endif 13795char dlopen (); 13796int 13797main () 13798{ 13799return dlopen (); 13800 ; 13801 return 0; 13802} 13803_ACEOF 13804for ac_lib in '' dl; do 13805 if test -z "$ac_lib"; then 13806 ac_res="none required" 13807 else 13808 ac_res=-l$ac_lib 13809 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13810 fi 13811 rm -f conftest.$ac_objext conftest$ac_exeext 13812if { (ac_try="$ac_link" 13813case "(($ac_try" in 13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13815 *) ac_try_echo=$ac_try;; 13816esac 13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13818 (eval "$ac_link") 2>conftest.er1 13819 ac_status=$? 13820 grep -v '^ *+' conftest.er1 >conftest.err 13821 rm -f conftest.er1 13822 cat conftest.err >&5 13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13824 (exit $ac_status); } && 13825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13826 { (case "(($ac_try" in 13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13828 *) ac_try_echo=$ac_try;; 13829esac 13830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13831 (eval "$ac_try") 2>&5 13832 ac_status=$? 13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13834 (exit $ac_status); }; } && 13835 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 13845 ac_cv_search_dlopen=$ac_res 13846else 13847 echo "$as_me: failed program was:" >&5 13848sed 's/^/| /' conftest.$ac_ext >&5 13849 13850 13851fi 13852 13853rm -f core conftest.err conftest.$ac_objext \ 13854 conftest$ac_exeext 13855 if test "${ac_cv_search_dlopen+set}" = set; then 13856 break 13857fi 13858done 13859if test "${ac_cv_search_dlopen+set}" = set; then 13860 : 13861else 13862 ac_cv_search_dlopen=no 13863fi 13864rm conftest.$ac_ext 13865LIBS=$ac_func_search_save_LIBS 13866fi 13867{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13868echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 13869ac_res=$ac_cv_search_dlopen 13870if test "$ac_res" != no; then 13871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13872 13873cat >>confdefs.h <<\_ACEOF 13874#define HAVE_DLOPEN 1 13875_ACEOF 13876 13877else 13878 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 13879echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 13880fi 13881 13882 13883if test "$llvm_cv_enable_libffi" = "yes" ; then 13884 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 13885echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 13886if test "${ac_cv_search_ffi_call+set}" = set; then 13887 echo $ECHO_N "(cached) $ECHO_C" >&6 13888else 13889 ac_func_search_save_LIBS=$LIBS 13890cat >conftest.$ac_ext <<_ACEOF 13891/* confdefs.h. */ 13892_ACEOF 13893cat confdefs.h >>conftest.$ac_ext 13894cat >>conftest.$ac_ext <<_ACEOF 13895/* end confdefs.h. */ 13896 13897/* Override any GCC internal prototype to avoid an error. 13898 Use char because int might match the return type of a GCC 13899 builtin and then its argument prototype would still apply. */ 13900#ifdef __cplusplus 13901extern "C" 13902#endif 13903char ffi_call (); 13904int 13905main () 13906{ 13907return ffi_call (); 13908 ; 13909 return 0; 13910} 13911_ACEOF 13912for ac_lib in '' ffi; do 13913 if test -z "$ac_lib"; then 13914 ac_res="none required" 13915 else 13916 ac_res=-l$ac_lib 13917 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13918 fi 13919 rm -f conftest.$ac_objext conftest$ac_exeext 13920if { (ac_try="$ac_link" 13921case "(($ac_try" in 13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13923 *) ac_try_echo=$ac_try;; 13924esac 13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13926 (eval "$ac_link") 2>conftest.er1 13927 ac_status=$? 13928 grep -v '^ *+' conftest.er1 >conftest.err 13929 rm -f conftest.er1 13930 cat conftest.err >&5 13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13932 (exit $ac_status); } && 13933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13934 { (case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937esac 13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_try") 2>&5 13940 ac_status=$? 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13942 (exit $ac_status); }; } && 13943 { ac_try='test -s conftest$ac_exeext' 13944 { (case "(($ac_try" in 13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13946 *) ac_try_echo=$ac_try;; 13947esac 13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13949 (eval "$ac_try") 2>&5 13950 ac_status=$? 13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13952 (exit $ac_status); }; }; then 13953 ac_cv_search_ffi_call=$ac_res 13954else 13955 echo "$as_me: failed program was:" >&5 13956sed 's/^/| /' conftest.$ac_ext >&5 13957 13958 13959fi 13960 13961rm -f core conftest.err conftest.$ac_objext \ 13962 conftest$ac_exeext 13963 if test "${ac_cv_search_ffi_call+set}" = set; then 13964 break 13965fi 13966done 13967if test "${ac_cv_search_ffi_call+set}" = set; then 13968 : 13969else 13970 ac_cv_search_ffi_call=no 13971fi 13972rm conftest.$ac_ext 13973LIBS=$ac_func_search_save_LIBS 13974fi 13975{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 13976echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 13977ac_res=$ac_cv_search_ffi_call 13978if test "$ac_res" != no; then 13979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13980 13981cat >>confdefs.h <<\_ACEOF 13982#define HAVE_FFI_CALL 1 13983_ACEOF 13984 13985else 13986 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 13987echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 13988 { (exit 1); exit 1; }; } 13989fi 13990 13991fi 13992 13993{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 13994echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 13995if test "${ac_cv_search_mallinfo+set}" = set; then 13996 echo $ECHO_N "(cached) $ECHO_C" >&6 13997else 13998 ac_func_search_save_LIBS=$LIBS 13999cat >conftest.$ac_ext <<_ACEOF 14000/* confdefs.h. */ 14001_ACEOF 14002cat confdefs.h >>conftest.$ac_ext 14003cat >>conftest.$ac_ext <<_ACEOF 14004/* end confdefs.h. */ 14005 14006/* Override any GCC internal prototype to avoid an error. 14007 Use char because int might match the return type of a GCC 14008 builtin and then its argument prototype would still apply. */ 14009#ifdef __cplusplus 14010extern "C" 14011#endif 14012char mallinfo (); 14013int 14014main () 14015{ 14016return mallinfo (); 14017 ; 14018 return 0; 14019} 14020_ACEOF 14021for ac_lib in '' malloc; do 14022 if test -z "$ac_lib"; then 14023 ac_res="none required" 14024 else 14025 ac_res=-l$ac_lib 14026 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14027 fi 14028 rm -f conftest.$ac_objext conftest$ac_exeext 14029if { (ac_try="$ac_link" 14030case "(($ac_try" in 14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14032 *) ac_try_echo=$ac_try;; 14033esac 14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14035 (eval "$ac_link") 2>conftest.er1 14036 ac_status=$? 14037 grep -v '^ *+' conftest.er1 >conftest.err 14038 rm -f conftest.er1 14039 cat conftest.err >&5 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } && 14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14043 { (case "(($ac_try" in 14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14045 *) ac_try_echo=$ac_try;; 14046esac 14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14048 (eval "$ac_try") 2>&5 14049 ac_status=$? 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14051 (exit $ac_status); }; } && 14052 { ac_try='test -s conftest$ac_exeext' 14053 { (case "(($ac_try" in 14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14055 *) ac_try_echo=$ac_try;; 14056esac 14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14058 (eval "$ac_try") 2>&5 14059 ac_status=$? 14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14061 (exit $ac_status); }; }; then 14062 ac_cv_search_mallinfo=$ac_res 14063else 14064 echo "$as_me: failed program was:" >&5 14065sed 's/^/| /' conftest.$ac_ext >&5 14066 14067 14068fi 14069 14070rm -f core conftest.err conftest.$ac_objext \ 14071 conftest$ac_exeext 14072 if test "${ac_cv_search_mallinfo+set}" = set; then 14073 break 14074fi 14075done 14076if test "${ac_cv_search_mallinfo+set}" = set; then 14077 : 14078else 14079 ac_cv_search_mallinfo=no 14080fi 14081rm conftest.$ac_ext 14082LIBS=$ac_func_search_save_LIBS 14083fi 14084{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 14085echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 14086ac_res=$ac_cv_search_mallinfo 14087if test "$ac_res" != no; then 14088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14089 14090cat >>confdefs.h <<\_ACEOF 14091#define HAVE_MALLINFO 1 14092_ACEOF 14093 14094fi 14095 14096 14097if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 14098 14099{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 14100echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 14101if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 14102 echo $ECHO_N "(cached) $ECHO_C" >&6 14103else 14104 ac_check_lib_save_LIBS=$LIBS 14105LIBS="-lpthread $LIBS" 14106cat >conftest.$ac_ext <<_ACEOF 14107/* confdefs.h. */ 14108_ACEOF 14109cat confdefs.h >>conftest.$ac_ext 14110cat >>conftest.$ac_ext <<_ACEOF 14111/* end confdefs.h. */ 14112 14113/* Override any GCC internal prototype to avoid an error. 14114 Use char because int might match the return type of a GCC 14115 builtin and then its argument prototype would still apply. */ 14116#ifdef __cplusplus 14117extern "C" 14118#endif 14119char pthread_mutex_init (); 14120int 14121main () 14122{ 14123return pthread_mutex_init (); 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128rm -f conftest.$ac_objext conftest$ac_exeext 14129if { (ac_try="$ac_link" 14130case "(($ac_try" in 14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14132 *) ac_try_echo=$ac_try;; 14133esac 14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14135 (eval "$ac_link") 2>conftest.er1 14136 ac_status=$? 14137 grep -v '^ *+' conftest.er1 >conftest.err 14138 rm -f conftest.er1 14139 cat conftest.err >&5 14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14141 (exit $ac_status); } && 14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14143 { (case "(($ac_try" in 14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14145 *) ac_try_echo=$ac_try;; 14146esac 14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14148 (eval "$ac_try") 2>&5 14149 ac_status=$? 14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14151 (exit $ac_status); }; } && 14152 { ac_try='test -s conftest$ac_exeext' 14153 { (case "(($ac_try" in 14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14155 *) ac_try_echo=$ac_try;; 14156esac 14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14158 (eval "$ac_try") 2>&5 14159 ac_status=$? 14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14161 (exit $ac_status); }; }; then 14162 ac_cv_lib_pthread_pthread_mutex_init=yes 14163else 14164 echo "$as_me: failed program was:" >&5 14165sed 's/^/| /' conftest.$ac_ext >&5 14166 14167 ac_cv_lib_pthread_pthread_mutex_init=no 14168fi 14169 14170rm -f core conftest.err conftest.$ac_objext \ 14171 conftest$ac_exeext conftest.$ac_ext 14172LIBS=$ac_check_lib_save_LIBS 14173fi 14174{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 14175echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 14176if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 14177 cat >>confdefs.h <<_ACEOF 14178#define HAVE_LIBPTHREAD 1 14179_ACEOF 14180 14181 LIBS="-lpthread $LIBS" 14182 14183fi 14184 14185 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 14186echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 14187if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14188 echo $ECHO_N "(cached) $ECHO_C" >&6 14189else 14190 ac_func_search_save_LIBS=$LIBS 14191cat >conftest.$ac_ext <<_ACEOF 14192/* confdefs.h. */ 14193_ACEOF 14194cat confdefs.h >>conftest.$ac_ext 14195cat >>conftest.$ac_ext <<_ACEOF 14196/* end confdefs.h. */ 14197 14198/* Override any GCC internal prototype to avoid an error. 14199 Use char because int might match the return type of a GCC 14200 builtin and then its argument prototype would still apply. */ 14201#ifdef __cplusplus 14202extern "C" 14203#endif 14204char pthread_mutex_lock (); 14205int 14206main () 14207{ 14208return pthread_mutex_lock (); 14209 ; 14210 return 0; 14211} 14212_ACEOF 14213for ac_lib in '' pthread; do 14214 if test -z "$ac_lib"; then 14215 ac_res="none required" 14216 else 14217 ac_res=-l$ac_lib 14218 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14219 fi 14220 rm -f conftest.$ac_objext conftest$ac_exeext 14221if { (ac_try="$ac_link" 14222case "(($ac_try" in 14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14224 *) ac_try_echo=$ac_try;; 14225esac 14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14227 (eval "$ac_link") 2>conftest.er1 14228 ac_status=$? 14229 grep -v '^ *+' conftest.er1 >conftest.err 14230 rm -f conftest.er1 14231 cat conftest.err >&5 14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14233 (exit $ac_status); } && 14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14235 { (case "(($ac_try" in 14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14237 *) ac_try_echo=$ac_try;; 14238esac 14239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14240 (eval "$ac_try") 2>&5 14241 ac_status=$? 14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14243 (exit $ac_status); }; } && 14244 { ac_try='test -s conftest$ac_exeext' 14245 { (case "(($ac_try" in 14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14247 *) ac_try_echo=$ac_try;; 14248esac 14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14250 (eval "$ac_try") 2>&5 14251 ac_status=$? 14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14253 (exit $ac_status); }; }; then 14254 ac_cv_search_pthread_mutex_lock=$ac_res 14255else 14256 echo "$as_me: failed program was:" >&5 14257sed 's/^/| /' conftest.$ac_ext >&5 14258 14259 14260fi 14261 14262rm -f core conftest.err conftest.$ac_objext \ 14263 conftest$ac_exeext 14264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14265 break 14266fi 14267done 14268if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14269 : 14270else 14271 ac_cv_search_pthread_mutex_lock=no 14272fi 14273rm conftest.$ac_ext 14274LIBS=$ac_func_search_save_LIBS 14275fi 14276{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 14277echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 14278ac_res=$ac_cv_search_pthread_mutex_lock 14279if test "$ac_res" != no; then 14280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14281 14282cat >>confdefs.h <<\_ACEOF 14283#define HAVE_PTHREAD_MUTEX_LOCK 1 14284_ACEOF 14285 14286fi 14287 14288 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 14289echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 14290if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14291 echo $ECHO_N "(cached) $ECHO_C" >&6 14292else 14293 ac_func_search_save_LIBS=$LIBS 14294cat >conftest.$ac_ext <<_ACEOF 14295/* confdefs.h. */ 14296_ACEOF 14297cat confdefs.h >>conftest.$ac_ext 14298cat >>conftest.$ac_ext <<_ACEOF 14299/* end confdefs.h. */ 14300 14301/* Override any GCC internal prototype to avoid an error. 14302 Use char because int might match the return type of a GCC 14303 builtin and then its argument prototype would still apply. */ 14304#ifdef __cplusplus 14305extern "C" 14306#endif 14307char pthread_rwlock_init (); 14308int 14309main () 14310{ 14311return pthread_rwlock_init (); 14312 ; 14313 return 0; 14314} 14315_ACEOF 14316for ac_lib in '' pthread; do 14317 if test -z "$ac_lib"; then 14318 ac_res="none required" 14319 else 14320 ac_res=-l$ac_lib 14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14322 fi 14323 rm -f conftest.$ac_objext conftest$ac_exeext 14324if { (ac_try="$ac_link" 14325case "(($ac_try" in 14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14327 *) ac_try_echo=$ac_try;; 14328esac 14329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14330 (eval "$ac_link") 2>conftest.er1 14331 ac_status=$? 14332 grep -v '^ *+' conftest.er1 >conftest.err 14333 rm -f conftest.er1 14334 cat conftest.err >&5 14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14336 (exit $ac_status); } && 14337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14338 { (case "(($ac_try" in 14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14340 *) ac_try_echo=$ac_try;; 14341esac 14342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14343 (eval "$ac_try") 2>&5 14344 ac_status=$? 14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14346 (exit $ac_status); }; } && 14347 { ac_try='test -s conftest$ac_exeext' 14348 { (case "(($ac_try" in 14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14350 *) ac_try_echo=$ac_try;; 14351esac 14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14353 (eval "$ac_try") 2>&5 14354 ac_status=$? 14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14356 (exit $ac_status); }; }; then 14357 ac_cv_search_pthread_rwlock_init=$ac_res 14358else 14359 echo "$as_me: failed program was:" >&5 14360sed 's/^/| /' conftest.$ac_ext >&5 14361 14362 14363fi 14364 14365rm -f core conftest.err conftest.$ac_objext \ 14366 conftest$ac_exeext 14367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14368 break 14369fi 14370done 14371if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14372 : 14373else 14374 ac_cv_search_pthread_rwlock_init=no 14375fi 14376rm conftest.$ac_ext 14377LIBS=$ac_func_search_save_LIBS 14378fi 14379{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 14380echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 14381ac_res=$ac_cv_search_pthread_rwlock_init 14382if test "$ac_res" != no; then 14383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14384 14385cat >>confdefs.h <<\_ACEOF 14386#define HAVE_PTHREAD_RWLOCK_INIT 1 14387_ACEOF 14388 14389fi 14390 14391 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 14392echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 14393if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14394 echo $ECHO_N "(cached) $ECHO_C" >&6 14395else 14396 ac_func_search_save_LIBS=$LIBS 14397cat >conftest.$ac_ext <<_ACEOF 14398/* confdefs.h. */ 14399_ACEOF 14400cat confdefs.h >>conftest.$ac_ext 14401cat >>conftest.$ac_ext <<_ACEOF 14402/* end confdefs.h. */ 14403 14404/* Override any GCC internal prototype to avoid an error. 14405 Use char because int might match the return type of a GCC 14406 builtin and then its argument prototype would still apply. */ 14407#ifdef __cplusplus 14408extern "C" 14409#endif 14410char pthread_getspecific (); 14411int 14412main () 14413{ 14414return pthread_getspecific (); 14415 ; 14416 return 0; 14417} 14418_ACEOF 14419for ac_lib in '' pthread; do 14420 if test -z "$ac_lib"; then 14421 ac_res="none required" 14422 else 14423 ac_res=-l$ac_lib 14424 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14425 fi 14426 rm -f conftest.$ac_objext conftest$ac_exeext 14427if { (ac_try="$ac_link" 14428case "(($ac_try" in 14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14430 *) ac_try_echo=$ac_try;; 14431esac 14432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14433 (eval "$ac_link") 2>conftest.er1 14434 ac_status=$? 14435 grep -v '^ *+' conftest.er1 >conftest.err 14436 rm -f conftest.er1 14437 cat conftest.err >&5 14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14439 (exit $ac_status); } && 14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14441 { (case "(($ac_try" in 14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14443 *) ac_try_echo=$ac_try;; 14444esac 14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14446 (eval "$ac_try") 2>&5 14447 ac_status=$? 14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14449 (exit $ac_status); }; } && 14450 { ac_try='test -s conftest$ac_exeext' 14451 { (case "(($ac_try" in 14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14453 *) ac_try_echo=$ac_try;; 14454esac 14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14456 (eval "$ac_try") 2>&5 14457 ac_status=$? 14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14459 (exit $ac_status); }; }; then 14460 ac_cv_search_pthread_getspecific=$ac_res 14461else 14462 echo "$as_me: failed program was:" >&5 14463sed 's/^/| /' conftest.$ac_ext >&5 14464 14465 14466fi 14467 14468rm -f core conftest.err conftest.$ac_objext \ 14469 conftest$ac_exeext 14470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14471 break 14472fi 14473done 14474if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14475 : 14476else 14477 ac_cv_search_pthread_getspecific=no 14478fi 14479rm conftest.$ac_ext 14480LIBS=$ac_func_search_save_LIBS 14481fi 14482{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 14483echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 14484ac_res=$ac_cv_search_pthread_getspecific 14485if test "$ac_res" != no; then 14486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14487 14488cat >>confdefs.h <<\_ACEOF 14489#define HAVE_PTHREAD_GETSPECIFIC 1 14490_ACEOF 14491 14492fi 14493 14494fi 14495 14496 14497# Check whether --with-udis86 was given. 14498if test "${with_udis86+set}" = set; then 14499 withval=$with_udis86; 14500 USE_UDIS86=1 14501 14502 case "$withval" in 14503 /usr/lib|yes) ;; 14504 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 14505 esac 14506 14507{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 14508echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 14509if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 14510 echo $ECHO_N "(cached) $ECHO_C" >&6 14511else 14512 ac_check_lib_save_LIBS=$LIBS 14513LIBS="-ludis86 $LIBS" 14514cat >conftest.$ac_ext <<_ACEOF 14515/* confdefs.h. */ 14516_ACEOF 14517cat confdefs.h >>conftest.$ac_ext 14518cat >>conftest.$ac_ext <<_ACEOF 14519/* end confdefs.h. */ 14520 14521/* Override any GCC internal prototype to avoid an error. 14522 Use char because int might match the return type of a GCC 14523 builtin and then its argument prototype would still apply. */ 14524#ifdef __cplusplus 14525extern "C" 14526#endif 14527char ud_init (); 14528int 14529main () 14530{ 14531return ud_init (); 14532 ; 14533 return 0; 14534} 14535_ACEOF 14536rm -f conftest.$ac_objext conftest$ac_exeext 14537if { (ac_try="$ac_link" 14538case "(($ac_try" in 14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14540 *) ac_try_echo=$ac_try;; 14541esac 14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14543 (eval "$ac_link") 2>conftest.er1 14544 ac_status=$? 14545 grep -v '^ *+' conftest.er1 >conftest.err 14546 rm -f conftest.er1 14547 cat conftest.err >&5 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 (exit $ac_status); } && 14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14551 { (case "(($ac_try" in 14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14553 *) ac_try_echo=$ac_try;; 14554esac 14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14556 (eval "$ac_try") 2>&5 14557 ac_status=$? 14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14559 (exit $ac_status); }; } && 14560 { ac_try='test -s conftest$ac_exeext' 14561 { (case "(($ac_try" in 14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14563 *) ac_try_echo=$ac_try;; 14564esac 14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14566 (eval "$ac_try") 2>&5 14567 ac_status=$? 14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14569 (exit $ac_status); }; }; then 14570 ac_cv_lib_udis86_ud_init=yes 14571else 14572 echo "$as_me: failed program was:" >&5 14573sed 's/^/| /' conftest.$ac_ext >&5 14574 14575 ac_cv_lib_udis86_ud_init=no 14576fi 14577 14578rm -f core conftest.err conftest.$ac_objext \ 14579 conftest$ac_exeext conftest.$ac_ext 14580LIBS=$ac_check_lib_save_LIBS 14581fi 14582{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 14583echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 14584if test $ac_cv_lib_udis86_ud_init = yes; then 14585 cat >>confdefs.h <<_ACEOF 14586#define HAVE_LIBUDIS86 1 14587_ACEOF 14588 14589 LIBS="-ludis86 $LIBS" 14590 14591else 14592 14593 echo "Error! You need to have libudis86 around." 14594 exit -1 14595 14596fi 14597 14598 14599else 14600 USE_UDIS86=0 14601 14602fi 14603 14604 14605cat >>confdefs.h <<_ACEOF 14606#define USE_UDIS86 $USE_UDIS86 14607_ACEOF 14608 14609 14610 14611# Check whether --with-oprofile was given. 14612if test "${with_oprofile+set}" = set; then 14613 withval=$with_oprofile; 14614 USE_OPROFILE=1 14615 14616 case "$withval" in 14617 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 14618 no) llvm_cv_oppath= 14619 USE_OPROFILE=0 14620 ;; 14621 *) llvm_cv_oppath="${withval}/lib/oprofile" 14622 CPPFLAGS="-I${withval}/include";; 14623 esac 14624 if test -n "$llvm_cv_oppath" ; then 14625 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 14626 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 14627echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 14628if test "${ac_cv_search_bfd_init+set}" = set; then 14629 echo $ECHO_N "(cached) $ECHO_C" >&6 14630else 14631 ac_func_search_save_LIBS=$LIBS 14632cat >conftest.$ac_ext <<_ACEOF 14633/* confdefs.h. */ 14634_ACEOF 14635cat confdefs.h >>conftest.$ac_ext 14636cat >>conftest.$ac_ext <<_ACEOF 14637/* end confdefs.h. */ 14638 14639/* Override any GCC internal prototype to avoid an error. 14640 Use char because int might match the return type of a GCC 14641 builtin and then its argument prototype would still apply. */ 14642#ifdef __cplusplus 14643extern "C" 14644#endif 14645char bfd_init (); 14646int 14647main () 14648{ 14649return bfd_init (); 14650 ; 14651 return 0; 14652} 14653_ACEOF 14654for ac_lib in '' bfd; do 14655 if test -z "$ac_lib"; then 14656 ac_res="none required" 14657 else 14658 ac_res=-l$ac_lib 14659 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14660 fi 14661 rm -f conftest.$ac_objext conftest$ac_exeext 14662if { (ac_try="$ac_link" 14663case "(($ac_try" in 14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14665 *) ac_try_echo=$ac_try;; 14666esac 14667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14668 (eval "$ac_link") 2>conftest.er1 14669 ac_status=$? 14670 grep -v '^ *+' conftest.er1 >conftest.err 14671 rm -f conftest.er1 14672 cat conftest.err >&5 14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14674 (exit $ac_status); } && 14675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14676 { (case "(($ac_try" in 14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14678 *) ac_try_echo=$ac_try;; 14679esac 14680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14681 (eval "$ac_try") 2>&5 14682 ac_status=$? 14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14684 (exit $ac_status); }; } && 14685 { ac_try='test -s conftest$ac_exeext' 14686 { (case "(($ac_try" in 14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14688 *) ac_try_echo=$ac_try;; 14689esac 14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14691 (eval "$ac_try") 2>&5 14692 ac_status=$? 14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14694 (exit $ac_status); }; }; then 14695 ac_cv_search_bfd_init=$ac_res 14696else 14697 echo "$as_me: failed program was:" >&5 14698sed 's/^/| /' conftest.$ac_ext >&5 14699 14700 14701fi 14702 14703rm -f core conftest.err conftest.$ac_objext \ 14704 conftest$ac_exeext 14705 if test "${ac_cv_search_bfd_init+set}" = set; then 14706 break 14707fi 14708done 14709if test "${ac_cv_search_bfd_init+set}" = set; then 14710 : 14711else 14712 ac_cv_search_bfd_init=no 14713fi 14714rm conftest.$ac_ext 14715LIBS=$ac_func_search_save_LIBS 14716fi 14717{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 14718echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 14719ac_res=$ac_cv_search_bfd_init 14720if test "$ac_res" != no; then 14721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14722 14723fi 14724 14725 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 14726echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 14727if test "${ac_cv_search_op_open_agent+set}" = set; then 14728 echo $ECHO_N "(cached) $ECHO_C" >&6 14729else 14730 ac_func_search_save_LIBS=$LIBS 14731cat >conftest.$ac_ext <<_ACEOF 14732/* confdefs.h. */ 14733_ACEOF 14734cat confdefs.h >>conftest.$ac_ext 14735cat >>conftest.$ac_ext <<_ACEOF 14736/* end confdefs.h. */ 14737 14738/* Override any GCC internal prototype to avoid an error. 14739 Use char because int might match the return type of a GCC 14740 builtin and then its argument prototype would still apply. */ 14741#ifdef __cplusplus 14742extern "C" 14743#endif 14744char op_open_agent (); 14745int 14746main () 14747{ 14748return op_open_agent (); 14749 ; 14750 return 0; 14751} 14752_ACEOF 14753for ac_lib in '' opagent; do 14754 if test -z "$ac_lib"; then 14755 ac_res="none required" 14756 else 14757 ac_res=-l$ac_lib 14758 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14759 fi 14760 rm -f conftest.$ac_objext conftest$ac_exeext 14761if { (ac_try="$ac_link" 14762case "(($ac_try" in 14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14764 *) ac_try_echo=$ac_try;; 14765esac 14766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14767 (eval "$ac_link") 2>conftest.er1 14768 ac_status=$? 14769 grep -v '^ *+' conftest.er1 >conftest.err 14770 rm -f conftest.er1 14771 cat conftest.err >&5 14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14773 (exit $ac_status); } && 14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14775 { (case "(($ac_try" in 14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14777 *) ac_try_echo=$ac_try;; 14778esac 14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14780 (eval "$ac_try") 2>&5 14781 ac_status=$? 14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14783 (exit $ac_status); }; } && 14784 { ac_try='test -s conftest$ac_exeext' 14785 { (case "(($ac_try" in 14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14787 *) ac_try_echo=$ac_try;; 14788esac 14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14790 (eval "$ac_try") 2>&5 14791 ac_status=$? 14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14793 (exit $ac_status); }; }; then 14794 ac_cv_search_op_open_agent=$ac_res 14795else 14796 echo "$as_me: failed program was:" >&5 14797sed 's/^/| /' conftest.$ac_ext >&5 14798 14799 14800fi 14801 14802rm -f core conftest.err conftest.$ac_objext \ 14803 conftest$ac_exeext 14804 if test "${ac_cv_search_op_open_agent+set}" = set; then 14805 break 14806fi 14807done 14808if test "${ac_cv_search_op_open_agent+set}" = set; then 14809 : 14810else 14811 ac_cv_search_op_open_agent=no 14812fi 14813rm conftest.$ac_ext 14814LIBS=$ac_func_search_save_LIBS 14815fi 14816{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 14817echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 14818ac_res=$ac_cv_search_op_open_agent 14819if test "$ac_res" != no; then 14820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14821 14822else 14823 14824 echo "Error! You need to have libopagent around." 14825 exit -1 14826 14827fi 14828 14829 if test "${ac_cv_header_opagent_h+set}" = set; then 14830 { echo "$as_me:$LINENO: checking for opagent.h" >&5 14831echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14832if test "${ac_cv_header_opagent_h+set}" = set; then 14833 echo $ECHO_N "(cached) $ECHO_C" >&6 14834fi 14835{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14836echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14837else 14838 # Is the header compilable? 14839{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 14840echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 14841cat >conftest.$ac_ext <<_ACEOF 14842/* confdefs.h. */ 14843_ACEOF 14844cat confdefs.h >>conftest.$ac_ext 14845cat >>conftest.$ac_ext <<_ACEOF 14846/* end confdefs.h. */ 14847$ac_includes_default 14848#include <opagent.h> 14849_ACEOF 14850rm -f conftest.$ac_objext 14851if { (ac_try="$ac_compile" 14852case "(($ac_try" in 14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14854 *) ac_try_echo=$ac_try;; 14855esac 14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14857 (eval "$ac_compile") 2>conftest.er1 14858 ac_status=$? 14859 grep -v '^ *+' conftest.er1 >conftest.err 14860 rm -f conftest.er1 14861 cat conftest.err >&5 14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14863 (exit $ac_status); } && 14864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14865 { (case "(($ac_try" in 14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14867 *) ac_try_echo=$ac_try;; 14868esac 14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14870 (eval "$ac_try") 2>&5 14871 ac_status=$? 14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14873 (exit $ac_status); }; } && 14874 { ac_try='test -s conftest.$ac_objext' 14875 { (case "(($ac_try" in 14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14877 *) ac_try_echo=$ac_try;; 14878esac 14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14880 (eval "$ac_try") 2>&5 14881 ac_status=$? 14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14883 (exit $ac_status); }; }; then 14884 ac_header_compiler=yes 14885else 14886 echo "$as_me: failed program was:" >&5 14887sed 's/^/| /' conftest.$ac_ext >&5 14888 14889 ac_header_compiler=no 14890fi 14891 14892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14894echo "${ECHO_T}$ac_header_compiler" >&6; } 14895 14896# Is the header present? 14897{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 14898echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 14899cat >conftest.$ac_ext <<_ACEOF 14900/* confdefs.h. */ 14901_ACEOF 14902cat confdefs.h >>conftest.$ac_ext 14903cat >>conftest.$ac_ext <<_ACEOF 14904/* end confdefs.h. */ 14905#include <opagent.h> 14906_ACEOF 14907if { (ac_try="$ac_cpp conftest.$ac_ext" 14908case "(($ac_try" in 14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14910 *) ac_try_echo=$ac_try;; 14911esac 14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14914 ac_status=$? 14915 grep -v '^ *+' conftest.er1 >conftest.err 14916 rm -f conftest.er1 14917 cat conftest.err >&5 14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14919 (exit $ac_status); } >/dev/null; then 14920 if test -s conftest.err; then 14921 ac_cpp_err=$ac_c_preproc_warn_flag 14922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14923 else 14924 ac_cpp_err= 14925 fi 14926else 14927 ac_cpp_err=yes 14928fi 14929if test -z "$ac_cpp_err"; then 14930 ac_header_preproc=yes 14931else 14932 echo "$as_me: failed program was:" >&5 14933sed 's/^/| /' conftest.$ac_ext >&5 14934 14935 ac_header_preproc=no 14936fi 14937 14938rm -f conftest.err conftest.$ac_ext 14939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14940echo "${ECHO_T}$ac_header_preproc" >&6; } 14941 14942# So? What about this header? 14943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14944 yes:no: ) 14945 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14946echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14947 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14948echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14949 ac_header_preproc=yes 14950 ;; 14951 no:yes:* ) 14952 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14953echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14954 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14955echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14956 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14957echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14958 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14959echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14961echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14962 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14963echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14964 ( cat <<\_ASBOX 14965## ----------------------------------- ## 14966## Report this to llvmbugs@cs.uiuc.edu ## 14967## ----------------------------------- ## 14968_ASBOX 14969 ) | sed "s/^/$as_me: WARNING: /" >&2 14970 ;; 14971esac 14972{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14973echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14974if test "${ac_cv_header_opagent_h+set}" = set; then 14975 echo $ECHO_N "(cached) $ECHO_C" >&6 14976else 14977 ac_cv_header_opagent_h=$ac_header_preproc 14978fi 14979{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14980echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14981 14982fi 14983if test $ac_cv_header_opagent_h = yes; then 14984 : 14985else 14986 14987 echo "Error! You need to have opagent.h around." 14988 exit -1 14989 14990fi 14991 14992 14993 fi 14994 14995else 14996 14997 USE_OPROFILE=0 14998 14999 15000fi 15001 15002 15003cat >>confdefs.h <<_ACEOF 15004#define USE_OPROFILE $USE_OPROFILE 15005_ACEOF 15006 15007 15008 15009 15010 15011 15012 15013 15014ac_header_dirent=no 15015for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 15016 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 15017{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 15018echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 15019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15020 echo $ECHO_N "(cached) $ECHO_C" >&6 15021else 15022 cat >conftest.$ac_ext <<_ACEOF 15023/* confdefs.h. */ 15024_ACEOF 15025cat confdefs.h >>conftest.$ac_ext 15026cat >>conftest.$ac_ext <<_ACEOF 15027/* end confdefs.h. */ 15028#include <sys/types.h> 15029#include <$ac_hdr> 15030 15031int 15032main () 15033{ 15034if ((DIR *) 0) 15035return 0; 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040rm -f conftest.$ac_objext 15041if { (ac_try="$ac_compile" 15042case "(($ac_try" in 15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15044 *) ac_try_echo=$ac_try;; 15045esac 15046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15047 (eval "$ac_compile") 2>conftest.er1 15048 ac_status=$? 15049 grep -v '^ *+' conftest.er1 >conftest.err 15050 rm -f conftest.er1 15051 cat conftest.err >&5 15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15053 (exit $ac_status); } && 15054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15055 { (case "(($ac_try" in 15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15057 *) ac_try_echo=$ac_try;; 15058esac 15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15060 (eval "$ac_try") 2>&5 15061 ac_status=$? 15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15063 (exit $ac_status); }; } && 15064 { ac_try='test -s conftest.$ac_objext' 15065 { (case "(($ac_try" in 15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15067 *) ac_try_echo=$ac_try;; 15068esac 15069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15070 (eval "$ac_try") 2>&5 15071 ac_status=$? 15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15073 (exit $ac_status); }; }; then 15074 eval "$as_ac_Header=yes" 15075else 15076 echo "$as_me: failed program was:" >&5 15077sed 's/^/| /' conftest.$ac_ext >&5 15078 15079 eval "$as_ac_Header=no" 15080fi 15081 15082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15083fi 15084ac_res=`eval echo '${'$as_ac_Header'}'` 15085 { echo "$as_me:$LINENO: result: $ac_res" >&5 15086echo "${ECHO_T}$ac_res" >&6; } 15087if test `eval echo '${'$as_ac_Header'}'` = yes; then 15088 cat >>confdefs.h <<_ACEOF 15089#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 15090_ACEOF 15091 15092ac_header_dirent=$ac_hdr; break 15093fi 15094 15095done 15096# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15097if test $ac_header_dirent = dirent.h; then 15098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 15099echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 15100if test "${ac_cv_search_opendir+set}" = set; then 15101 echo $ECHO_N "(cached) $ECHO_C" >&6 15102else 15103 ac_func_search_save_LIBS=$LIBS 15104cat >conftest.$ac_ext <<_ACEOF 15105/* confdefs.h. */ 15106_ACEOF 15107cat confdefs.h >>conftest.$ac_ext 15108cat >>conftest.$ac_ext <<_ACEOF 15109/* end confdefs.h. */ 15110 15111/* Override any GCC internal prototype to avoid an error. 15112 Use char because int might match the return type of a GCC 15113 builtin and then its argument prototype would still apply. */ 15114#ifdef __cplusplus 15115extern "C" 15116#endif 15117char opendir (); 15118int 15119main () 15120{ 15121return opendir (); 15122 ; 15123 return 0; 15124} 15125_ACEOF 15126for ac_lib in '' dir; do 15127 if test -z "$ac_lib"; then 15128 ac_res="none required" 15129 else 15130 ac_res=-l$ac_lib 15131 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15132 fi 15133 rm -f conftest.$ac_objext conftest$ac_exeext 15134if { (ac_try="$ac_link" 15135case "(($ac_try" in 15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15137 *) ac_try_echo=$ac_try;; 15138esac 15139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15140 (eval "$ac_link") 2>conftest.er1 15141 ac_status=$? 15142 grep -v '^ *+' conftest.er1 >conftest.err 15143 rm -f conftest.er1 15144 cat conftest.err >&5 15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15146 (exit $ac_status); } && 15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15148 { (case "(($ac_try" in 15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15150 *) ac_try_echo=$ac_try;; 15151esac 15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15153 (eval "$ac_try") 2>&5 15154 ac_status=$? 15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15156 (exit $ac_status); }; } && 15157 { ac_try='test -s conftest$ac_exeext' 15158 { (case "(($ac_try" in 15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15160 *) ac_try_echo=$ac_try;; 15161esac 15162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15163 (eval "$ac_try") 2>&5 15164 ac_status=$? 15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15166 (exit $ac_status); }; }; then 15167 ac_cv_search_opendir=$ac_res 15168else 15169 echo "$as_me: failed program was:" >&5 15170sed 's/^/| /' conftest.$ac_ext >&5 15171 15172 15173fi 15174 15175rm -f core conftest.err conftest.$ac_objext \ 15176 conftest$ac_exeext 15177 if test "${ac_cv_search_opendir+set}" = set; then 15178 break 15179fi 15180done 15181if test "${ac_cv_search_opendir+set}" = set; then 15182 : 15183else 15184 ac_cv_search_opendir=no 15185fi 15186rm conftest.$ac_ext 15187LIBS=$ac_func_search_save_LIBS 15188fi 15189{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15190echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15191ac_res=$ac_cv_search_opendir 15192if test "$ac_res" != no; then 15193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15194 15195fi 15196 15197else 15198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 15199echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 15200if test "${ac_cv_search_opendir+set}" = set; then 15201 echo $ECHO_N "(cached) $ECHO_C" >&6 15202else 15203 ac_func_search_save_LIBS=$LIBS 15204cat >conftest.$ac_ext <<_ACEOF 15205/* confdefs.h. */ 15206_ACEOF 15207cat confdefs.h >>conftest.$ac_ext 15208cat >>conftest.$ac_ext <<_ACEOF 15209/* end confdefs.h. */ 15210 15211/* Override any GCC internal prototype to avoid an error. 15212 Use char because int might match the return type of a GCC 15213 builtin and then its argument prototype would still apply. */ 15214#ifdef __cplusplus 15215extern "C" 15216#endif 15217char opendir (); 15218int 15219main () 15220{ 15221return opendir (); 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226for ac_lib in '' x; do 15227 if test -z "$ac_lib"; then 15228 ac_res="none required" 15229 else 15230 ac_res=-l$ac_lib 15231 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15232 fi 15233 rm -f conftest.$ac_objext conftest$ac_exeext 15234if { (ac_try="$ac_link" 15235case "(($ac_try" in 15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15237 *) ac_try_echo=$ac_try;; 15238esac 15239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15240 (eval "$ac_link") 2>conftest.er1 15241 ac_status=$? 15242 grep -v '^ *+' conftest.er1 >conftest.err 15243 rm -f conftest.er1 15244 cat conftest.err >&5 15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15246 (exit $ac_status); } && 15247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15248 { (case "(($ac_try" in 15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15250 *) ac_try_echo=$ac_try;; 15251esac 15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15253 (eval "$ac_try") 2>&5 15254 ac_status=$? 15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15256 (exit $ac_status); }; } && 15257 { ac_try='test -s conftest$ac_exeext' 15258 { (case "(($ac_try" in 15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15260 *) ac_try_echo=$ac_try;; 15261esac 15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15263 (eval "$ac_try") 2>&5 15264 ac_status=$? 15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15266 (exit $ac_status); }; }; then 15267 ac_cv_search_opendir=$ac_res 15268else 15269 echo "$as_me: failed program was:" >&5 15270sed 's/^/| /' conftest.$ac_ext >&5 15271 15272 15273fi 15274 15275rm -f core conftest.err conftest.$ac_objext \ 15276 conftest$ac_exeext 15277 if test "${ac_cv_search_opendir+set}" = set; then 15278 break 15279fi 15280done 15281if test "${ac_cv_search_opendir+set}" = set; then 15282 : 15283else 15284 ac_cv_search_opendir=no 15285fi 15286rm conftest.$ac_ext 15287LIBS=$ac_func_search_save_LIBS 15288fi 15289{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15290echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15291ac_res=$ac_cv_search_opendir 15292if test "$ac_res" != no; then 15293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15294 15295fi 15296 15297fi 15298 15299{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 15300echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 15301if test "${ac_cv_header_mmap_anon+set}" = set; then 15302 echo $ECHO_N "(cached) $ECHO_C" >&6 15303else 15304 ac_ext=c 15305ac_cpp='$CPP $CPPFLAGS' 15306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15308ac_compiler_gnu=$ac_cv_c_compiler_gnu 15309 15310 cat >conftest.$ac_ext <<_ACEOF 15311/* confdefs.h. */ 15312_ACEOF 15313cat confdefs.h >>conftest.$ac_ext 15314cat >>conftest.$ac_ext <<_ACEOF 15315/* end confdefs.h. */ 15316#include <sys/mman.h> 15317#include <unistd.h> 15318#include <fcntl.h> 15319int 15320main () 15321{ 15322mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 15323 ; 15324 return 0; 15325} 15326_ACEOF 15327rm -f conftest.$ac_objext 15328if { (ac_try="$ac_compile" 15329case "(($ac_try" in 15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15331 *) ac_try_echo=$ac_try;; 15332esac 15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15334 (eval "$ac_compile") 2>conftest.er1 15335 ac_status=$? 15336 grep -v '^ *+' conftest.er1 >conftest.err 15337 rm -f conftest.er1 15338 cat conftest.err >&5 15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15340 (exit $ac_status); } && 15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15342 { (case "(($ac_try" in 15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15344 *) ac_try_echo=$ac_try;; 15345esac 15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15347 (eval "$ac_try") 2>&5 15348 ac_status=$? 15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15350 (exit $ac_status); }; } && 15351 { ac_try='test -s conftest.$ac_objext' 15352 { (case "(($ac_try" in 15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15354 *) ac_try_echo=$ac_try;; 15355esac 15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15357 (eval "$ac_try") 2>&5 15358 ac_status=$? 15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15360 (exit $ac_status); }; }; then 15361 ac_cv_header_mmap_anon=yes 15362else 15363 echo "$as_me: failed program was:" >&5 15364sed 's/^/| /' conftest.$ac_ext >&5 15365 15366 ac_cv_header_mmap_anon=no 15367fi 15368 15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15370 ac_ext=c 15371ac_cpp='$CPP $CPPFLAGS' 15372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15374ac_compiler_gnu=$ac_cv_c_compiler_gnu 15375 15376 15377fi 15378{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 15379echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 15380if test "$ac_cv_header_mmap_anon" = yes; then 15381 15382cat >>confdefs.h <<\_ACEOF 15383#define HAVE_MMAP_ANONYMOUS 1 15384_ACEOF 15385 15386fi 15387 15388{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 15389echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 15390if test "${ac_cv_header_stat_broken+set}" = set; then 15391 echo $ECHO_N "(cached) $ECHO_C" >&6 15392else 15393 cat >conftest.$ac_ext <<_ACEOF 15394/* confdefs.h. */ 15395_ACEOF 15396cat confdefs.h >>conftest.$ac_ext 15397cat >>conftest.$ac_ext <<_ACEOF 15398/* end confdefs.h. */ 15399#include <sys/types.h> 15400#include <sys/stat.h> 15401 15402#if defined S_ISBLK && defined S_IFDIR 15403# if S_ISBLK (S_IFDIR) 15404You lose. 15405# endif 15406#endif 15407 15408#if defined S_ISBLK && defined S_IFCHR 15409# if S_ISBLK (S_IFCHR) 15410You lose. 15411# endif 15412#endif 15413 15414#if defined S_ISLNK && defined S_IFREG 15415# if S_ISLNK (S_IFREG) 15416You lose. 15417# endif 15418#endif 15419 15420#if defined S_ISSOCK && defined S_IFREG 15421# if S_ISSOCK (S_IFREG) 15422You lose. 15423# endif 15424#endif 15425 15426_ACEOF 15427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15428 $EGREP "You lose" >/dev/null 2>&1; then 15429 ac_cv_header_stat_broken=yes 15430else 15431 ac_cv_header_stat_broken=no 15432fi 15433rm -f conftest* 15434 15435fi 15436{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 15437echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 15438if test $ac_cv_header_stat_broken = yes; then 15439 15440cat >>confdefs.h <<\_ACEOF 15441#define STAT_MACROS_BROKEN 1 15442_ACEOF 15443 15444fi 15445 15446{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15447echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 15448if test "${ac_cv_header_stdc+set}" = set; then 15449 echo $ECHO_N "(cached) $ECHO_C" >&6 15450else 15451 cat >conftest.$ac_ext <<_ACEOF 15452/* confdefs.h. */ 15453_ACEOF 15454cat confdefs.h >>conftest.$ac_ext 15455cat >>conftest.$ac_ext <<_ACEOF 15456/* end confdefs.h. */ 15457#include <stdlib.h> 15458#include <stdarg.h> 15459#include <string.h> 15460#include <float.h> 15461 15462int 15463main () 15464{ 15465 15466 ; 15467 return 0; 15468} 15469_ACEOF 15470rm -f conftest.$ac_objext 15471if { (ac_try="$ac_compile" 15472case "(($ac_try" in 15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15474 *) ac_try_echo=$ac_try;; 15475esac 15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15477 (eval "$ac_compile") 2>conftest.er1 15478 ac_status=$? 15479 grep -v '^ *+' conftest.er1 >conftest.err 15480 rm -f conftest.er1 15481 cat conftest.err >&5 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); } && 15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15485 { (case "(($ac_try" in 15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15487 *) ac_try_echo=$ac_try;; 15488esac 15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15490 (eval "$ac_try") 2>&5 15491 ac_status=$? 15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15493 (exit $ac_status); }; } && 15494 { ac_try='test -s conftest.$ac_objext' 15495 { (case "(($ac_try" in 15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15497 *) ac_try_echo=$ac_try;; 15498esac 15499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15500 (eval "$ac_try") 2>&5 15501 ac_status=$? 15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15503 (exit $ac_status); }; }; then 15504 ac_cv_header_stdc=yes 15505else 15506 echo "$as_me: failed program was:" >&5 15507sed 's/^/| /' conftest.$ac_ext >&5 15508 15509 ac_cv_header_stdc=no 15510fi 15511 15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15513 15514if test $ac_cv_header_stdc = yes; then 15515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15516 cat >conftest.$ac_ext <<_ACEOF 15517/* confdefs.h. */ 15518_ACEOF 15519cat confdefs.h >>conftest.$ac_ext 15520cat >>conftest.$ac_ext <<_ACEOF 15521/* end confdefs.h. */ 15522#include <string.h> 15523 15524_ACEOF 15525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15526 $EGREP "memchr" >/dev/null 2>&1; then 15527 : 15528else 15529 ac_cv_header_stdc=no 15530fi 15531rm -f conftest* 15532 15533fi 15534 15535if test $ac_cv_header_stdc = yes; then 15536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15537 cat >conftest.$ac_ext <<_ACEOF 15538/* confdefs.h. */ 15539_ACEOF 15540cat confdefs.h >>conftest.$ac_ext 15541cat >>conftest.$ac_ext <<_ACEOF 15542/* end confdefs.h. */ 15543#include <stdlib.h> 15544 15545_ACEOF 15546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15547 $EGREP "free" >/dev/null 2>&1; then 15548 : 15549else 15550 ac_cv_header_stdc=no 15551fi 15552rm -f conftest* 15553 15554fi 15555 15556if test $ac_cv_header_stdc = yes; then 15557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15558 if test "$cross_compiling" = yes; then 15559 : 15560else 15561 cat >conftest.$ac_ext <<_ACEOF 15562/* confdefs.h. */ 15563_ACEOF 15564cat confdefs.h >>conftest.$ac_ext 15565cat >>conftest.$ac_ext <<_ACEOF 15566/* end confdefs.h. */ 15567#include <ctype.h> 15568#include <stdlib.h> 15569#if ((' ' & 0x0FF) == 0x020) 15570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15572#else 15573# define ISLOWER(c) \ 15574 (('a' <= (c) && (c) <= 'i') \ 15575 || ('j' <= (c) && (c) <= 'r') \ 15576 || ('s' <= (c) && (c) <= 'z')) 15577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15578#endif 15579 15580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15581int 15582main () 15583{ 15584 int i; 15585 for (i = 0; i < 256; i++) 15586 if (XOR (islower (i), ISLOWER (i)) 15587 || toupper (i) != TOUPPER (i)) 15588 return 2; 15589 return 0; 15590} 15591_ACEOF 15592rm -f conftest$ac_exeext 15593if { (ac_try="$ac_link" 15594case "(($ac_try" in 15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15596 *) ac_try_echo=$ac_try;; 15597esac 15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15599 (eval "$ac_link") 2>&5 15600 ac_status=$? 15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15603 { (case "(($ac_try" in 15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15605 *) ac_try_echo=$ac_try;; 15606esac 15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15608 (eval "$ac_try") 2>&5 15609 ac_status=$? 15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15611 (exit $ac_status); }; }; then 15612 : 15613else 15614 echo "$as_me: program exited with status $ac_status" >&5 15615echo "$as_me: failed program was:" >&5 15616sed 's/^/| /' conftest.$ac_ext >&5 15617 15618( exit $ac_status ) 15619ac_cv_header_stdc=no 15620fi 15621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15622fi 15623 15624 15625fi 15626fi 15627{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15628echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15629if test $ac_cv_header_stdc = yes; then 15630 15631cat >>confdefs.h <<\_ACEOF 15632#define STDC_HEADERS 1 15633_ACEOF 15634 15635fi 15636 15637{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 15638echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 15639if test "${ac_cv_header_sys_wait_h+set}" = set; then 15640 echo $ECHO_N "(cached) $ECHO_C" >&6 15641else 15642 cat >conftest.$ac_ext <<_ACEOF 15643/* confdefs.h. */ 15644_ACEOF 15645cat confdefs.h >>conftest.$ac_ext 15646cat >>conftest.$ac_ext <<_ACEOF 15647/* end confdefs.h. */ 15648#include <sys/types.h> 15649#include <sys/wait.h> 15650#ifndef WEXITSTATUS 15651# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15652#endif 15653#ifndef WIFEXITED 15654# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15655#endif 15656 15657int 15658main () 15659{ 15660 int s; 15661 wait (&s); 15662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15663 ; 15664 return 0; 15665} 15666_ACEOF 15667rm -f conftest.$ac_objext 15668if { (ac_try="$ac_compile" 15669case "(($ac_try" in 15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15671 *) ac_try_echo=$ac_try;; 15672esac 15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15674 (eval "$ac_compile") 2>conftest.er1 15675 ac_status=$? 15676 grep -v '^ *+' conftest.er1 >conftest.err 15677 rm -f conftest.er1 15678 cat conftest.err >&5 15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15680 (exit $ac_status); } && 15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15682 { (case "(($ac_try" in 15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15684 *) ac_try_echo=$ac_try;; 15685esac 15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15687 (eval "$ac_try") 2>&5 15688 ac_status=$? 15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15690 (exit $ac_status); }; } && 15691 { ac_try='test -s conftest.$ac_objext' 15692 { (case "(($ac_try" in 15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15694 *) ac_try_echo=$ac_try;; 15695esac 15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15697 (eval "$ac_try") 2>&5 15698 ac_status=$? 15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15700 (exit $ac_status); }; }; then 15701 ac_cv_header_sys_wait_h=yes 15702else 15703 echo "$as_me: failed program was:" >&5 15704sed 's/^/| /' conftest.$ac_ext >&5 15705 15706 ac_cv_header_sys_wait_h=no 15707fi 15708 15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15710fi 15711{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 15712echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 15713if test $ac_cv_header_sys_wait_h = yes; then 15714 15715cat >>confdefs.h <<\_ACEOF 15716#define HAVE_SYS_WAIT_H 1 15717_ACEOF 15718 15719fi 15720 15721{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15722echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 15723if test "${ac_cv_header_time+set}" = set; then 15724 echo $ECHO_N "(cached) $ECHO_C" >&6 15725else 15726 cat >conftest.$ac_ext <<_ACEOF 15727/* confdefs.h. */ 15728_ACEOF 15729cat confdefs.h >>conftest.$ac_ext 15730cat >>conftest.$ac_ext <<_ACEOF 15731/* end confdefs.h. */ 15732#include <sys/types.h> 15733#include <sys/time.h> 15734#include <time.h> 15735 15736int 15737main () 15738{ 15739if ((struct tm *) 0) 15740return 0; 15741 ; 15742 return 0; 15743} 15744_ACEOF 15745rm -f conftest.$ac_objext 15746if { (ac_try="$ac_compile" 15747case "(($ac_try" in 15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15749 *) ac_try_echo=$ac_try;; 15750esac 15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15752 (eval "$ac_compile") 2>conftest.er1 15753 ac_status=$? 15754 grep -v '^ *+' conftest.er1 >conftest.err 15755 rm -f conftest.er1 15756 cat conftest.err >&5 15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15758 (exit $ac_status); } && 15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15760 { (case "(($ac_try" in 15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15762 *) ac_try_echo=$ac_try;; 15763esac 15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15765 (eval "$ac_try") 2>&5 15766 ac_status=$? 15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15768 (exit $ac_status); }; } && 15769 { ac_try='test -s conftest.$ac_objext' 15770 { (case "(($ac_try" in 15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15772 *) ac_try_echo=$ac_try;; 15773esac 15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15775 (eval "$ac_try") 2>&5 15776 ac_status=$? 15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15778 (exit $ac_status); }; }; then 15779 ac_cv_header_time=yes 15780else 15781 echo "$as_me: failed program was:" >&5 15782sed 's/^/| /' conftest.$ac_ext >&5 15783 15784 ac_cv_header_time=no 15785fi 15786 15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15788fi 15789{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15790echo "${ECHO_T}$ac_cv_header_time" >&6; } 15791if test $ac_cv_header_time = yes; then 15792 15793cat >>confdefs.h <<\_ACEOF 15794#define TIME_WITH_SYS_TIME 1 15795_ACEOF 15796 15797fi 15798 15799 15800 15801 15802 15803 15804 15805 15806for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15807do 15808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15813 echo $ECHO_N "(cached) $ECHO_C" >&6 15814fi 15815ac_res=`eval echo '${'$as_ac_Header'}'` 15816 { echo "$as_me:$LINENO: result: $ac_res" >&5 15817echo "${ECHO_T}$ac_res" >&6; } 15818else 15819 # Is the header compilable? 15820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15822cat >conftest.$ac_ext <<_ACEOF 15823/* confdefs.h. */ 15824_ACEOF 15825cat confdefs.h >>conftest.$ac_ext 15826cat >>conftest.$ac_ext <<_ACEOF 15827/* end confdefs.h. */ 15828$ac_includes_default 15829#include <$ac_header> 15830_ACEOF 15831rm -f conftest.$ac_objext 15832if { (ac_try="$ac_compile" 15833case "(($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_compile") 2>conftest.er1 15839 ac_status=$? 15840 grep -v '^ *+' conftest.er1 >conftest.err 15841 rm -f conftest.er1 15842 cat conftest.err >&5 15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15844 (exit $ac_status); } && 15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15846 { (case "(($ac_try" in 15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15848 *) ac_try_echo=$ac_try;; 15849esac 15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15851 (eval "$ac_try") 2>&5 15852 ac_status=$? 15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15854 (exit $ac_status); }; } && 15855 { ac_try='test -s conftest.$ac_objext' 15856 { (case "(($ac_try" in 15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15858 *) ac_try_echo=$ac_try;; 15859esac 15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15861 (eval "$ac_try") 2>&5 15862 ac_status=$? 15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15864 (exit $ac_status); }; }; then 15865 ac_header_compiler=yes 15866else 15867 echo "$as_me: failed program was:" >&5 15868sed 's/^/| /' conftest.$ac_ext >&5 15869 15870 ac_header_compiler=no 15871fi 15872 15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15875echo "${ECHO_T}$ac_header_compiler" >&6; } 15876 15877# Is the header present? 15878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15880cat >conftest.$ac_ext <<_ACEOF 15881/* confdefs.h. */ 15882_ACEOF 15883cat confdefs.h >>conftest.$ac_ext 15884cat >>conftest.$ac_ext <<_ACEOF 15885/* end confdefs.h. */ 15886#include <$ac_header> 15887_ACEOF 15888if { (ac_try="$ac_cpp conftest.$ac_ext" 15889case "(($ac_try" in 15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15891 *) ac_try_echo=$ac_try;; 15892esac 15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15895 ac_status=$? 15896 grep -v '^ *+' conftest.er1 >conftest.err 15897 rm -f conftest.er1 15898 cat conftest.err >&5 15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15900 (exit $ac_status); } >/dev/null; then 15901 if test -s conftest.err; then 15902 ac_cpp_err=$ac_c_preproc_warn_flag 15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15904 else 15905 ac_cpp_err= 15906 fi 15907else 15908 ac_cpp_err=yes 15909fi 15910if test -z "$ac_cpp_err"; then 15911 ac_header_preproc=yes 15912else 15913 echo "$as_me: failed program was:" >&5 15914sed 's/^/| /' conftest.$ac_ext >&5 15915 15916 ac_header_preproc=no 15917fi 15918 15919rm -f conftest.err conftest.$ac_ext 15920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15921echo "${ECHO_T}$ac_header_preproc" >&6; } 15922 15923# So? What about this header? 15924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15925 yes:no: ) 15926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15930 ac_header_preproc=yes 15931 ;; 15932 no:yes:* ) 15933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15945 ( cat <<\_ASBOX 15946## ----------------------------------- ## 15947## Report this to llvmbugs@cs.uiuc.edu ## 15948## ----------------------------------- ## 15949_ASBOX 15950 ) | sed "s/^/$as_me: WARNING: /" >&2 15951 ;; 15952esac 15953{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15956 echo $ECHO_N "(cached) $ECHO_C" >&6 15957else 15958 eval "$as_ac_Header=\$ac_header_preproc" 15959fi 15960ac_res=`eval echo '${'$as_ac_Header'}'` 15961 { echo "$as_me:$LINENO: result: $ac_res" >&5 15962echo "${ECHO_T}$ac_res" >&6; } 15963 15964fi 15965if test `eval echo '${'$as_ac_Header'}'` = yes; then 15966 cat >>confdefs.h <<_ACEOF 15967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15968_ACEOF 15969 15970fi 15971 15972done 15973 15974 15975 15976 15977 15978 15979 15980for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15981do 15982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15987 echo $ECHO_N "(cached) $ECHO_C" >&6 15988fi 15989ac_res=`eval echo '${'$as_ac_Header'}'` 15990 { echo "$as_me:$LINENO: result: $ac_res" >&5 15991echo "${ECHO_T}$ac_res" >&6; } 15992else 15993 # Is the header compilable? 15994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15996cat >conftest.$ac_ext <<_ACEOF 15997/* confdefs.h. */ 15998_ACEOF 15999cat confdefs.h >>conftest.$ac_ext 16000cat >>conftest.$ac_ext <<_ACEOF 16001/* end confdefs.h. */ 16002$ac_includes_default 16003#include <$ac_header> 16004_ACEOF 16005rm -f conftest.$ac_objext 16006if { (ac_try="$ac_compile" 16007case "(($ac_try" in 16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16009 *) ac_try_echo=$ac_try;; 16010esac 16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16012 (eval "$ac_compile") 2>conftest.er1 16013 ac_status=$? 16014 grep -v '^ *+' conftest.er1 >conftest.err 16015 rm -f conftest.er1 16016 cat conftest.err >&5 16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16018 (exit $ac_status); } && 16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16020 { (case "(($ac_try" in 16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16022 *) ac_try_echo=$ac_try;; 16023esac 16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16025 (eval "$ac_try") 2>&5 16026 ac_status=$? 16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16028 (exit $ac_status); }; } && 16029 { ac_try='test -s conftest.$ac_objext' 16030 { (case "(($ac_try" in 16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16032 *) ac_try_echo=$ac_try;; 16033esac 16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16035 (eval "$ac_try") 2>&5 16036 ac_status=$? 16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16038 (exit $ac_status); }; }; then 16039 ac_header_compiler=yes 16040else 16041 echo "$as_me: failed program was:" >&5 16042sed 's/^/| /' conftest.$ac_ext >&5 16043 16044 ac_header_compiler=no 16045fi 16046 16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16049echo "${ECHO_T}$ac_header_compiler" >&6; } 16050 16051# Is the header present? 16052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16054cat >conftest.$ac_ext <<_ACEOF 16055/* confdefs.h. */ 16056_ACEOF 16057cat confdefs.h >>conftest.$ac_ext 16058cat >>conftest.$ac_ext <<_ACEOF 16059/* end confdefs.h. */ 16060#include <$ac_header> 16061_ACEOF 16062if { (ac_try="$ac_cpp conftest.$ac_ext" 16063case "(($ac_try" in 16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16065 *) ac_try_echo=$ac_try;; 16066esac 16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16069 ac_status=$? 16070 grep -v '^ *+' conftest.er1 >conftest.err 16071 rm -f conftest.er1 16072 cat conftest.err >&5 16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16074 (exit $ac_status); } >/dev/null; then 16075 if test -s conftest.err; then 16076 ac_cpp_err=$ac_c_preproc_warn_flag 16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16078 else 16079 ac_cpp_err= 16080 fi 16081else 16082 ac_cpp_err=yes 16083fi 16084if test -z "$ac_cpp_err"; then 16085 ac_header_preproc=yes 16086else 16087 echo "$as_me: failed program was:" >&5 16088sed 's/^/| /' conftest.$ac_ext >&5 16089 16090 ac_header_preproc=no 16091fi 16092 16093rm -f conftest.err conftest.$ac_ext 16094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16095echo "${ECHO_T}$ac_header_preproc" >&6; } 16096 16097# So? What about this header? 16098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16099 yes:no: ) 16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16104 ac_header_preproc=yes 16105 ;; 16106 no:yes:* ) 16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16119 ( cat <<\_ASBOX 16120## ----------------------------------- ## 16121## Report this to llvmbugs@cs.uiuc.edu ## 16122## ----------------------------------- ## 16123_ASBOX 16124 ) | sed "s/^/$as_me: WARNING: /" >&2 16125 ;; 16126esac 16127{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16130 echo $ECHO_N "(cached) $ECHO_C" >&6 16131else 16132 eval "$as_ac_Header=\$ac_header_preproc" 16133fi 16134ac_res=`eval echo '${'$as_ac_Header'}'` 16135 { echo "$as_me:$LINENO: result: $ac_res" >&5 16136echo "${ECHO_T}$ac_res" >&6; } 16137 16138fi 16139if test `eval echo '${'$as_ac_Header'}'` = yes; then 16140 cat >>confdefs.h <<_ACEOF 16141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16142_ACEOF 16143 16144fi 16145 16146done 16147 16148 16149 16150for ac_header in utime.h windows.h 16151do 16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16157 echo $ECHO_N "(cached) $ECHO_C" >&6 16158fi 16159ac_res=`eval echo '${'$as_ac_Header'}'` 16160 { echo "$as_me:$LINENO: result: $ac_res" >&5 16161echo "${ECHO_T}$ac_res" >&6; } 16162else 16163 # Is the header compilable? 16164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16166cat >conftest.$ac_ext <<_ACEOF 16167/* confdefs.h. */ 16168_ACEOF 16169cat confdefs.h >>conftest.$ac_ext 16170cat >>conftest.$ac_ext <<_ACEOF 16171/* end confdefs.h. */ 16172$ac_includes_default 16173#include <$ac_header> 16174_ACEOF 16175rm -f conftest.$ac_objext 16176if { (ac_try="$ac_compile" 16177case "(($ac_try" in 16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16179 *) ac_try_echo=$ac_try;; 16180esac 16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16182 (eval "$ac_compile") 2>conftest.er1 16183 ac_status=$? 16184 grep -v '^ *+' conftest.er1 >conftest.err 16185 rm -f conftest.er1 16186 cat conftest.err >&5 16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16188 (exit $ac_status); } && 16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16190 { (case "(($ac_try" in 16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16192 *) ac_try_echo=$ac_try;; 16193esac 16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16195 (eval "$ac_try") 2>&5 16196 ac_status=$? 16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16198 (exit $ac_status); }; } && 16199 { ac_try='test -s conftest.$ac_objext' 16200 { (case "(($ac_try" in 16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16202 *) ac_try_echo=$ac_try;; 16203esac 16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16205 (eval "$ac_try") 2>&5 16206 ac_status=$? 16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16208 (exit $ac_status); }; }; then 16209 ac_header_compiler=yes 16210else 16211 echo "$as_me: failed program was:" >&5 16212sed 's/^/| /' conftest.$ac_ext >&5 16213 16214 ac_header_compiler=no 16215fi 16216 16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16219echo "${ECHO_T}$ac_header_compiler" >&6; } 16220 16221# Is the header present? 16222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16224cat >conftest.$ac_ext <<_ACEOF 16225/* confdefs.h. */ 16226_ACEOF 16227cat confdefs.h >>conftest.$ac_ext 16228cat >>conftest.$ac_ext <<_ACEOF 16229/* end confdefs.h. */ 16230#include <$ac_header> 16231_ACEOF 16232if { (ac_try="$ac_cpp conftest.$ac_ext" 16233case "(($ac_try" in 16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16235 *) ac_try_echo=$ac_try;; 16236esac 16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16239 ac_status=$? 16240 grep -v '^ *+' conftest.er1 >conftest.err 16241 rm -f conftest.er1 16242 cat conftest.err >&5 16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16244 (exit $ac_status); } >/dev/null; then 16245 if test -s conftest.err; then 16246 ac_cpp_err=$ac_c_preproc_warn_flag 16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16248 else 16249 ac_cpp_err= 16250 fi 16251else 16252 ac_cpp_err=yes 16253fi 16254if test -z "$ac_cpp_err"; then 16255 ac_header_preproc=yes 16256else 16257 echo "$as_me: failed program was:" >&5 16258sed 's/^/| /' conftest.$ac_ext >&5 16259 16260 ac_header_preproc=no 16261fi 16262 16263rm -f conftest.err conftest.$ac_ext 16264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16265echo "${ECHO_T}$ac_header_preproc" >&6; } 16266 16267# So? What about this header? 16268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16269 yes:no: ) 16270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16274 ac_header_preproc=yes 16275 ;; 16276 no:yes:* ) 16277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16289 ( cat <<\_ASBOX 16290## ----------------------------------- ## 16291## Report this to llvmbugs@cs.uiuc.edu ## 16292## ----------------------------------- ## 16293_ASBOX 16294 ) | sed "s/^/$as_me: WARNING: /" >&2 16295 ;; 16296esac 16297{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16300 echo $ECHO_N "(cached) $ECHO_C" >&6 16301else 16302 eval "$as_ac_Header=\$ac_header_preproc" 16303fi 16304ac_res=`eval echo '${'$as_ac_Header'}'` 16305 { echo "$as_me:$LINENO: result: $ac_res" >&5 16306echo "${ECHO_T}$ac_res" >&6; } 16307 16308fi 16309if test `eval echo '${'$as_ac_Header'}'` = yes; then 16310 cat >>confdefs.h <<_ACEOF 16311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16312_ACEOF 16313 16314fi 16315 16316done 16317 16318 16319 16320 16321 16322 16323for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 16324do 16325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16327 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16330 echo $ECHO_N "(cached) $ECHO_C" >&6 16331fi 16332ac_res=`eval echo '${'$as_ac_Header'}'` 16333 { echo "$as_me:$LINENO: result: $ac_res" >&5 16334echo "${ECHO_T}$ac_res" >&6; } 16335else 16336 # Is the header compilable? 16337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16339cat >conftest.$ac_ext <<_ACEOF 16340/* confdefs.h. */ 16341_ACEOF 16342cat confdefs.h >>conftest.$ac_ext 16343cat >>conftest.$ac_ext <<_ACEOF 16344/* end confdefs.h. */ 16345$ac_includes_default 16346#include <$ac_header> 16347_ACEOF 16348rm -f conftest.$ac_objext 16349if { (ac_try="$ac_compile" 16350case "(($ac_try" in 16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16352 *) ac_try_echo=$ac_try;; 16353esac 16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16355 (eval "$ac_compile") 2>conftest.er1 16356 ac_status=$? 16357 grep -v '^ *+' conftest.er1 >conftest.err 16358 rm -f conftest.er1 16359 cat conftest.err >&5 16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16361 (exit $ac_status); } && 16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16363 { (case "(($ac_try" in 16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16365 *) ac_try_echo=$ac_try;; 16366esac 16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16368 (eval "$ac_try") 2>&5 16369 ac_status=$? 16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16371 (exit $ac_status); }; } && 16372 { ac_try='test -s conftest.$ac_objext' 16373 { (case "(($ac_try" in 16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16375 *) ac_try_echo=$ac_try;; 16376esac 16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16378 (eval "$ac_try") 2>&5 16379 ac_status=$? 16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16381 (exit $ac_status); }; }; then 16382 ac_header_compiler=yes 16383else 16384 echo "$as_me: failed program was:" >&5 16385sed 's/^/| /' conftest.$ac_ext >&5 16386 16387 ac_header_compiler=no 16388fi 16389 16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16392echo "${ECHO_T}$ac_header_compiler" >&6; } 16393 16394# Is the header present? 16395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16397cat >conftest.$ac_ext <<_ACEOF 16398/* confdefs.h. */ 16399_ACEOF 16400cat confdefs.h >>conftest.$ac_ext 16401cat >>conftest.$ac_ext <<_ACEOF 16402/* end confdefs.h. */ 16403#include <$ac_header> 16404_ACEOF 16405if { (ac_try="$ac_cpp conftest.$ac_ext" 16406case "(($ac_try" in 16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16408 *) ac_try_echo=$ac_try;; 16409esac 16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16412 ac_status=$? 16413 grep -v '^ *+' conftest.er1 >conftest.err 16414 rm -f conftest.er1 16415 cat conftest.err >&5 16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16417 (exit $ac_status); } >/dev/null; then 16418 if test -s conftest.err; then 16419 ac_cpp_err=$ac_c_preproc_warn_flag 16420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16421 else 16422 ac_cpp_err= 16423 fi 16424else 16425 ac_cpp_err=yes 16426fi 16427if test -z "$ac_cpp_err"; then 16428 ac_header_preproc=yes 16429else 16430 echo "$as_me: failed program was:" >&5 16431sed 's/^/| /' conftest.$ac_ext >&5 16432 16433 ac_header_preproc=no 16434fi 16435 16436rm -f conftest.err conftest.$ac_ext 16437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16438echo "${ECHO_T}$ac_header_preproc" >&6; } 16439 16440# So? What about this header? 16441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16442 yes:no: ) 16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16447 ac_header_preproc=yes 16448 ;; 16449 no:yes:* ) 16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16462 ( cat <<\_ASBOX 16463## ----------------------------------- ## 16464## Report this to llvmbugs@cs.uiuc.edu ## 16465## ----------------------------------- ## 16466_ASBOX 16467 ) | sed "s/^/$as_me: WARNING: /" >&2 16468 ;; 16469esac 16470{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16473 echo $ECHO_N "(cached) $ECHO_C" >&6 16474else 16475 eval "$as_ac_Header=\$ac_header_preproc" 16476fi 16477ac_res=`eval echo '${'$as_ac_Header'}'` 16478 { echo "$as_me:$LINENO: result: $ac_res" >&5 16479echo "${ECHO_T}$ac_res" >&6; } 16480 16481fi 16482if test `eval echo '${'$as_ac_Header'}'` = yes; then 16483 cat >>confdefs.h <<_ACEOF 16484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16485_ACEOF 16486 16487fi 16488 16489done 16490 16491 16492 16493 16494 16495for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 16496do 16497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16502 echo $ECHO_N "(cached) $ECHO_C" >&6 16503fi 16504ac_res=`eval echo '${'$as_ac_Header'}'` 16505 { echo "$as_me:$LINENO: result: $ac_res" >&5 16506echo "${ECHO_T}$ac_res" >&6; } 16507else 16508 # Is the header compilable? 16509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16511cat >conftest.$ac_ext <<_ACEOF 16512/* confdefs.h. */ 16513_ACEOF 16514cat confdefs.h >>conftest.$ac_ext 16515cat >>conftest.$ac_ext <<_ACEOF 16516/* end confdefs.h. */ 16517$ac_includes_default 16518#include <$ac_header> 16519_ACEOF 16520rm -f conftest.$ac_objext 16521if { (ac_try="$ac_compile" 16522case "(($ac_try" in 16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16524 *) ac_try_echo=$ac_try;; 16525esac 16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16527 (eval "$ac_compile") 2>conftest.er1 16528 ac_status=$? 16529 grep -v '^ *+' conftest.er1 >conftest.err 16530 rm -f conftest.er1 16531 cat conftest.err >&5 16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16533 (exit $ac_status); } && 16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16535 { (case "(($ac_try" in 16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16537 *) ac_try_echo=$ac_try;; 16538esac 16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16540 (eval "$ac_try") 2>&5 16541 ac_status=$? 16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16543 (exit $ac_status); }; } && 16544 { ac_try='test -s conftest.$ac_objext' 16545 { (case "(($ac_try" in 16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16547 *) ac_try_echo=$ac_try;; 16548esac 16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16550 (eval "$ac_try") 2>&5 16551 ac_status=$? 16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16553 (exit $ac_status); }; }; then 16554 ac_header_compiler=yes 16555else 16556 echo "$as_me: failed program was:" >&5 16557sed 's/^/| /' conftest.$ac_ext >&5 16558 16559 ac_header_compiler=no 16560fi 16561 16562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16564echo "${ECHO_T}$ac_header_compiler" >&6; } 16565 16566# Is the header present? 16567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16569cat >conftest.$ac_ext <<_ACEOF 16570/* confdefs.h. */ 16571_ACEOF 16572cat confdefs.h >>conftest.$ac_ext 16573cat >>conftest.$ac_ext <<_ACEOF 16574/* end confdefs.h. */ 16575#include <$ac_header> 16576_ACEOF 16577if { (ac_try="$ac_cpp conftest.$ac_ext" 16578case "(($ac_try" in 16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16580 *) ac_try_echo=$ac_try;; 16581esac 16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16584 ac_status=$? 16585 grep -v '^ *+' conftest.er1 >conftest.err 16586 rm -f conftest.er1 16587 cat conftest.err >&5 16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16589 (exit $ac_status); } >/dev/null; then 16590 if test -s conftest.err; then 16591 ac_cpp_err=$ac_c_preproc_warn_flag 16592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16593 else 16594 ac_cpp_err= 16595 fi 16596else 16597 ac_cpp_err=yes 16598fi 16599if test -z "$ac_cpp_err"; then 16600 ac_header_preproc=yes 16601else 16602 echo "$as_me: failed program was:" >&5 16603sed 's/^/| /' conftest.$ac_ext >&5 16604 16605 ac_header_preproc=no 16606fi 16607 16608rm -f conftest.err conftest.$ac_ext 16609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16610echo "${ECHO_T}$ac_header_preproc" >&6; } 16611 16612# So? What about this header? 16613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16614 yes:no: ) 16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16619 ac_header_preproc=yes 16620 ;; 16621 no:yes:* ) 16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16634 ( cat <<\_ASBOX 16635## ----------------------------------- ## 16636## Report this to llvmbugs@cs.uiuc.edu ## 16637## ----------------------------------- ## 16638_ASBOX 16639 ) | sed "s/^/$as_me: WARNING: /" >&2 16640 ;; 16641esac 16642{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16645 echo $ECHO_N "(cached) $ECHO_C" >&6 16646else 16647 eval "$as_ac_Header=\$ac_header_preproc" 16648fi 16649ac_res=`eval echo '${'$as_ac_Header'}'` 16650 { echo "$as_me:$LINENO: result: $ac_res" >&5 16651echo "${ECHO_T}$ac_res" >&6; } 16652 16653fi 16654if test `eval echo '${'$as_ac_Header'}'` = yes; then 16655 cat >>confdefs.h <<_ACEOF 16656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16657_ACEOF 16658 16659fi 16660 16661done 16662 16663 16664for ac_header in valgrind/valgrind.h 16665do 16666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16668 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16671 echo $ECHO_N "(cached) $ECHO_C" >&6 16672fi 16673ac_res=`eval echo '${'$as_ac_Header'}'` 16674 { echo "$as_me:$LINENO: result: $ac_res" >&5 16675echo "${ECHO_T}$ac_res" >&6; } 16676else 16677 # Is the header compilable? 16678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16680cat >conftest.$ac_ext <<_ACEOF 16681/* confdefs.h. */ 16682_ACEOF 16683cat confdefs.h >>conftest.$ac_ext 16684cat >>conftest.$ac_ext <<_ACEOF 16685/* end confdefs.h. */ 16686$ac_includes_default 16687#include <$ac_header> 16688_ACEOF 16689rm -f conftest.$ac_objext 16690if { (ac_try="$ac_compile" 16691case "(($ac_try" in 16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16693 *) ac_try_echo=$ac_try;; 16694esac 16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16696 (eval "$ac_compile") 2>conftest.er1 16697 ac_status=$? 16698 grep -v '^ *+' conftest.er1 >conftest.err 16699 rm -f conftest.er1 16700 cat conftest.err >&5 16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16702 (exit $ac_status); } && 16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16704 { (case "(($ac_try" in 16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16706 *) ac_try_echo=$ac_try;; 16707esac 16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16709 (eval "$ac_try") 2>&5 16710 ac_status=$? 16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16712 (exit $ac_status); }; } && 16713 { ac_try='test -s conftest.$ac_objext' 16714 { (case "(($ac_try" in 16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16716 *) ac_try_echo=$ac_try;; 16717esac 16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16719 (eval "$ac_try") 2>&5 16720 ac_status=$? 16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16722 (exit $ac_status); }; }; then 16723 ac_header_compiler=yes 16724else 16725 echo "$as_me: failed program was:" >&5 16726sed 's/^/| /' conftest.$ac_ext >&5 16727 16728 ac_header_compiler=no 16729fi 16730 16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16733echo "${ECHO_T}$ac_header_compiler" >&6; } 16734 16735# Is the header present? 16736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16738cat >conftest.$ac_ext <<_ACEOF 16739/* confdefs.h. */ 16740_ACEOF 16741cat confdefs.h >>conftest.$ac_ext 16742cat >>conftest.$ac_ext <<_ACEOF 16743/* end confdefs.h. */ 16744#include <$ac_header> 16745_ACEOF 16746if { (ac_try="$ac_cpp conftest.$ac_ext" 16747case "(($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_cpp conftest.$ac_ext") 2>conftest.er1 16753 ac_status=$? 16754 grep -v '^ *+' conftest.er1 >conftest.err 16755 rm -f conftest.er1 16756 cat conftest.err >&5 16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16758 (exit $ac_status); } >/dev/null; then 16759 if test -s conftest.err; then 16760 ac_cpp_err=$ac_c_preproc_warn_flag 16761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16762 else 16763 ac_cpp_err= 16764 fi 16765else 16766 ac_cpp_err=yes 16767fi 16768if test -z "$ac_cpp_err"; then 16769 ac_header_preproc=yes 16770else 16771 echo "$as_me: failed program was:" >&5 16772sed 's/^/| /' conftest.$ac_ext >&5 16773 16774 ac_header_preproc=no 16775fi 16776 16777rm -f conftest.err conftest.$ac_ext 16778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16779echo "${ECHO_T}$ac_header_preproc" >&6; } 16780 16781# So? What about this header? 16782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16783 yes:no: ) 16784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16788 ac_header_preproc=yes 16789 ;; 16790 no:yes:* ) 16791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16803 ( cat <<\_ASBOX 16804## ----------------------------------- ## 16805## Report this to llvmbugs@cs.uiuc.edu ## 16806## ----------------------------------- ## 16807_ASBOX 16808 ) | sed "s/^/$as_me: WARNING: /" >&2 16809 ;; 16810esac 16811{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16814 echo $ECHO_N "(cached) $ECHO_C" >&6 16815else 16816 eval "$as_ac_Header=\$ac_header_preproc" 16817fi 16818ac_res=`eval echo '${'$as_ac_Header'}'` 16819 { echo "$as_me:$LINENO: result: $ac_res" >&5 16820echo "${ECHO_T}$ac_res" >&6; } 16821 16822fi 16823if test `eval echo '${'$as_ac_Header'}'` = yes; then 16824 cat >>confdefs.h <<_ACEOF 16825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16826_ACEOF 16827 16828fi 16829 16830done 16831 16832 16833for ac_header in fenv.h 16834do 16835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16837 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16840 echo $ECHO_N "(cached) $ECHO_C" >&6 16841fi 16842ac_res=`eval echo '${'$as_ac_Header'}'` 16843 { echo "$as_me:$LINENO: result: $ac_res" >&5 16844echo "${ECHO_T}$ac_res" >&6; } 16845else 16846 # Is the header compilable? 16847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16849cat >conftest.$ac_ext <<_ACEOF 16850/* confdefs.h. */ 16851_ACEOF 16852cat confdefs.h >>conftest.$ac_ext 16853cat >>conftest.$ac_ext <<_ACEOF 16854/* end confdefs.h. */ 16855$ac_includes_default 16856#include <$ac_header> 16857_ACEOF 16858rm -f conftest.$ac_objext 16859if { (ac_try="$ac_compile" 16860case "(($ac_try" in 16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16862 *) ac_try_echo=$ac_try;; 16863esac 16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16865 (eval "$ac_compile") 2>conftest.er1 16866 ac_status=$? 16867 grep -v '^ *+' conftest.er1 >conftest.err 16868 rm -f conftest.er1 16869 cat conftest.err >&5 16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16871 (exit $ac_status); } && 16872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16873 { (case "(($ac_try" in 16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16875 *) ac_try_echo=$ac_try;; 16876esac 16877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16878 (eval "$ac_try") 2>&5 16879 ac_status=$? 16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16881 (exit $ac_status); }; } && 16882 { ac_try='test -s conftest.$ac_objext' 16883 { (case "(($ac_try" in 16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16885 *) ac_try_echo=$ac_try;; 16886esac 16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16888 (eval "$ac_try") 2>&5 16889 ac_status=$? 16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16891 (exit $ac_status); }; }; then 16892 ac_header_compiler=yes 16893else 16894 echo "$as_me: failed program was:" >&5 16895sed 's/^/| /' conftest.$ac_ext >&5 16896 16897 ac_header_compiler=no 16898fi 16899 16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16902echo "${ECHO_T}$ac_header_compiler" >&6; } 16903 16904# Is the header present? 16905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16907cat >conftest.$ac_ext <<_ACEOF 16908/* confdefs.h. */ 16909_ACEOF 16910cat confdefs.h >>conftest.$ac_ext 16911cat >>conftest.$ac_ext <<_ACEOF 16912/* end confdefs.h. */ 16913#include <$ac_header> 16914_ACEOF 16915if { (ac_try="$ac_cpp conftest.$ac_ext" 16916case "(($ac_try" in 16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16918 *) ac_try_echo=$ac_try;; 16919esac 16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16922 ac_status=$? 16923 grep -v '^ *+' conftest.er1 >conftest.err 16924 rm -f conftest.er1 16925 cat conftest.err >&5 16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16927 (exit $ac_status); } >/dev/null; then 16928 if test -s conftest.err; then 16929 ac_cpp_err=$ac_c_preproc_warn_flag 16930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16931 else 16932 ac_cpp_err= 16933 fi 16934else 16935 ac_cpp_err=yes 16936fi 16937if test -z "$ac_cpp_err"; then 16938 ac_header_preproc=yes 16939else 16940 echo "$as_me: failed program was:" >&5 16941sed 's/^/| /' conftest.$ac_ext >&5 16942 16943 ac_header_preproc=no 16944fi 16945 16946rm -f conftest.err conftest.$ac_ext 16947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16948echo "${ECHO_T}$ac_header_preproc" >&6; } 16949 16950# So? What about this header? 16951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16952 yes:no: ) 16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16957 ac_header_preproc=yes 16958 ;; 16959 no:yes:* ) 16960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16972 ( cat <<\_ASBOX 16973## ----------------------------------- ## 16974## Report this to llvmbugs@cs.uiuc.edu ## 16975## ----------------------------------- ## 16976_ASBOX 16977 ) | sed "s/^/$as_me: WARNING: /" >&2 16978 ;; 16979esac 16980{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16983 echo $ECHO_N "(cached) $ECHO_C" >&6 16984else 16985 eval "$as_ac_Header=\$ac_header_preproc" 16986fi 16987ac_res=`eval echo '${'$as_ac_Header'}'` 16988 { echo "$as_me:$LINENO: result: $ac_res" >&5 16989echo "${ECHO_T}$ac_res" >&6; } 16990 16991fi 16992if test `eval echo '${'$as_ac_Header'}'` = yes; then 16993 cat >>confdefs.h <<_ACEOF 16994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16995_ACEOF 16996 16997fi 16998 16999done 17000 17001if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 17002 17003for ac_header in pthread.h 17004do 17005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17010 echo $ECHO_N "(cached) $ECHO_C" >&6 17011fi 17012ac_res=`eval echo '${'$as_ac_Header'}'` 17013 { echo "$as_me:$LINENO: result: $ac_res" >&5 17014echo "${ECHO_T}$ac_res" >&6; } 17015else 17016 # Is the header compilable? 17017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17019cat >conftest.$ac_ext <<_ACEOF 17020/* confdefs.h. */ 17021_ACEOF 17022cat confdefs.h >>conftest.$ac_ext 17023cat >>conftest.$ac_ext <<_ACEOF 17024/* end confdefs.h. */ 17025$ac_includes_default 17026#include <$ac_header> 17027_ACEOF 17028rm -f conftest.$ac_objext 17029if { (ac_try="$ac_compile" 17030case "(($ac_try" in 17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17032 *) ac_try_echo=$ac_try;; 17033esac 17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17035 (eval "$ac_compile") 2>conftest.er1 17036 ac_status=$? 17037 grep -v '^ *+' conftest.er1 >conftest.err 17038 rm -f conftest.er1 17039 cat conftest.err >&5 17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17041 (exit $ac_status); } && 17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17043 { (case "(($ac_try" in 17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17045 *) ac_try_echo=$ac_try;; 17046esac 17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17048 (eval "$ac_try") 2>&5 17049 ac_status=$? 17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17051 (exit $ac_status); }; } && 17052 { ac_try='test -s conftest.$ac_objext' 17053 { (case "(($ac_try" in 17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17055 *) ac_try_echo=$ac_try;; 17056esac 17057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17058 (eval "$ac_try") 2>&5 17059 ac_status=$? 17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17061 (exit $ac_status); }; }; then 17062 ac_header_compiler=yes 17063else 17064 echo "$as_me: failed program was:" >&5 17065sed 's/^/| /' conftest.$ac_ext >&5 17066 17067 ac_header_compiler=no 17068fi 17069 17070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17072echo "${ECHO_T}$ac_header_compiler" >&6; } 17073 17074# Is the header present? 17075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17077cat >conftest.$ac_ext <<_ACEOF 17078/* confdefs.h. */ 17079_ACEOF 17080cat confdefs.h >>conftest.$ac_ext 17081cat >>conftest.$ac_ext <<_ACEOF 17082/* end confdefs.h. */ 17083#include <$ac_header> 17084_ACEOF 17085if { (ac_try="$ac_cpp conftest.$ac_ext" 17086case "(($ac_try" in 17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17088 *) ac_try_echo=$ac_try;; 17089esac 17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17092 ac_status=$? 17093 grep -v '^ *+' conftest.er1 >conftest.err 17094 rm -f conftest.er1 17095 cat conftest.err >&5 17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17097 (exit $ac_status); } >/dev/null; then 17098 if test -s conftest.err; then 17099 ac_cpp_err=$ac_c_preproc_warn_flag 17100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17101 else 17102 ac_cpp_err= 17103 fi 17104else 17105 ac_cpp_err=yes 17106fi 17107if test -z "$ac_cpp_err"; then 17108 ac_header_preproc=yes 17109else 17110 echo "$as_me: failed program was:" >&5 17111sed 's/^/| /' conftest.$ac_ext >&5 17112 17113 ac_header_preproc=no 17114fi 17115 17116rm -f conftest.err conftest.$ac_ext 17117{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17118echo "${ECHO_T}$ac_header_preproc" >&6; } 17119 17120# So? What about this header? 17121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17122 yes:no: ) 17123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17127 ac_header_preproc=yes 17128 ;; 17129 no:yes:* ) 17130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17142 ( cat <<\_ASBOX 17143## ----------------------------------- ## 17144## Report this to llvmbugs@cs.uiuc.edu ## 17145## ----------------------------------- ## 17146_ASBOX 17147 ) | sed "s/^/$as_me: WARNING: /" >&2 17148 ;; 17149esac 17150{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17153 echo $ECHO_N "(cached) $ECHO_C" >&6 17154else 17155 eval "$as_ac_Header=\$ac_header_preproc" 17156fi 17157ac_res=`eval echo '${'$as_ac_Header'}'` 17158 { echo "$as_me:$LINENO: result: $ac_res" >&5 17159echo "${ECHO_T}$ac_res" >&6; } 17160 17161fi 17162if test `eval echo '${'$as_ac_Header'}'` = yes; then 17163 cat >>confdefs.h <<_ACEOF 17164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17165_ACEOF 17166 HAVE_PTHREAD=1 17167 17168else 17169 HAVE_PTHREAD=0 17170 17171fi 17172 17173done 17174 17175else 17176 HAVE_PTHREAD=0 17177 17178fi 17179 17180if test "$llvm_cv_enable_libffi" = "yes" ; then 17181 17182 17183for ac_header in ffi.h ffi/ffi.h 17184do 17185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17187 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17190 echo $ECHO_N "(cached) $ECHO_C" >&6 17191fi 17192ac_res=`eval echo '${'$as_ac_Header'}'` 17193 { echo "$as_me:$LINENO: result: $ac_res" >&5 17194echo "${ECHO_T}$ac_res" >&6; } 17195else 17196 # Is the header compilable? 17197{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17199cat >conftest.$ac_ext <<_ACEOF 17200/* confdefs.h. */ 17201_ACEOF 17202cat confdefs.h >>conftest.$ac_ext 17203cat >>conftest.$ac_ext <<_ACEOF 17204/* end confdefs.h. */ 17205$ac_includes_default 17206#include <$ac_header> 17207_ACEOF 17208rm -f conftest.$ac_objext 17209if { (ac_try="$ac_compile" 17210case "(($ac_try" in 17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17212 *) ac_try_echo=$ac_try;; 17213esac 17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17215 (eval "$ac_compile") 2>conftest.er1 17216 ac_status=$? 17217 grep -v '^ *+' conftest.er1 >conftest.err 17218 rm -f conftest.er1 17219 cat conftest.err >&5 17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17221 (exit $ac_status); } && 17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17223 { (case "(($ac_try" in 17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17225 *) ac_try_echo=$ac_try;; 17226esac 17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17228 (eval "$ac_try") 2>&5 17229 ac_status=$? 17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17231 (exit $ac_status); }; } && 17232 { ac_try='test -s conftest.$ac_objext' 17233 { (case "(($ac_try" in 17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17235 *) ac_try_echo=$ac_try;; 17236esac 17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17238 (eval "$ac_try") 2>&5 17239 ac_status=$? 17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17241 (exit $ac_status); }; }; then 17242 ac_header_compiler=yes 17243else 17244 echo "$as_me: failed program was:" >&5 17245sed 's/^/| /' conftest.$ac_ext >&5 17246 17247 ac_header_compiler=no 17248fi 17249 17250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17252echo "${ECHO_T}$ac_header_compiler" >&6; } 17253 17254# Is the header present? 17255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17257cat >conftest.$ac_ext <<_ACEOF 17258/* confdefs.h. */ 17259_ACEOF 17260cat confdefs.h >>conftest.$ac_ext 17261cat >>conftest.$ac_ext <<_ACEOF 17262/* end confdefs.h. */ 17263#include <$ac_header> 17264_ACEOF 17265if { (ac_try="$ac_cpp conftest.$ac_ext" 17266case "(($ac_try" in 17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17268 *) ac_try_echo=$ac_try;; 17269esac 17270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17272 ac_status=$? 17273 grep -v '^ *+' conftest.er1 >conftest.err 17274 rm -f conftest.er1 17275 cat conftest.err >&5 17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17277 (exit $ac_status); } >/dev/null; then 17278 if test -s conftest.err; then 17279 ac_cpp_err=$ac_c_preproc_warn_flag 17280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17281 else 17282 ac_cpp_err= 17283 fi 17284else 17285 ac_cpp_err=yes 17286fi 17287if test -z "$ac_cpp_err"; then 17288 ac_header_preproc=yes 17289else 17290 echo "$as_me: failed program was:" >&5 17291sed 's/^/| /' conftest.$ac_ext >&5 17292 17293 ac_header_preproc=no 17294fi 17295 17296rm -f conftest.err conftest.$ac_ext 17297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17298echo "${ECHO_T}$ac_header_preproc" >&6; } 17299 17300# So? What about this header? 17301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17302 yes:no: ) 17303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17307 ac_header_preproc=yes 17308 ;; 17309 no:yes:* ) 17310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17322 ( cat <<\_ASBOX 17323## ----------------------------------- ## 17324## Report this to llvmbugs@cs.uiuc.edu ## 17325## ----------------------------------- ## 17326_ASBOX 17327 ) | sed "s/^/$as_me: WARNING: /" >&2 17328 ;; 17329esac 17330{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17333 echo $ECHO_N "(cached) $ECHO_C" >&6 17334else 17335 eval "$as_ac_Header=\$ac_header_preproc" 17336fi 17337ac_res=`eval echo '${'$as_ac_Header'}'` 17338 { echo "$as_me:$LINENO: result: $ac_res" >&5 17339echo "${ECHO_T}$ac_res" >&6; } 17340 17341fi 17342if test `eval echo '${'$as_ac_Header'}'` = yes; then 17343 cat >>confdefs.h <<_ACEOF 17344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17345_ACEOF 17346 17347fi 17348 17349done 17350 17351fi 17352 17353 17354for ac_header in CrashReporterClient.h 17355do 17356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17358 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17361 echo $ECHO_N "(cached) $ECHO_C" >&6 17362fi 17363ac_res=`eval echo '${'$as_ac_Header'}'` 17364 { echo "$as_me:$LINENO: result: $ac_res" >&5 17365echo "${ECHO_T}$ac_res" >&6; } 17366else 17367 # Is the header compilable? 17368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17370cat >conftest.$ac_ext <<_ACEOF 17371/* confdefs.h. */ 17372_ACEOF 17373cat confdefs.h >>conftest.$ac_ext 17374cat >>conftest.$ac_ext <<_ACEOF 17375/* end confdefs.h. */ 17376$ac_includes_default 17377#include <$ac_header> 17378_ACEOF 17379rm -f conftest.$ac_objext 17380if { (ac_try="$ac_compile" 17381case "(($ac_try" in 17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17383 *) ac_try_echo=$ac_try;; 17384esac 17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17386 (eval "$ac_compile") 2>conftest.er1 17387 ac_status=$? 17388 grep -v '^ *+' conftest.er1 >conftest.err 17389 rm -f conftest.er1 17390 cat conftest.err >&5 17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17392 (exit $ac_status); } && 17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17394 { (case "(($ac_try" in 17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17396 *) ac_try_echo=$ac_try;; 17397esac 17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17399 (eval "$ac_try") 2>&5 17400 ac_status=$? 17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17402 (exit $ac_status); }; } && 17403 { ac_try='test -s conftest.$ac_objext' 17404 { (case "(($ac_try" in 17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17406 *) ac_try_echo=$ac_try;; 17407esac 17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17409 (eval "$ac_try") 2>&5 17410 ac_status=$? 17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17412 (exit $ac_status); }; }; then 17413 ac_header_compiler=yes 17414else 17415 echo "$as_me: failed program was:" >&5 17416sed 's/^/| /' conftest.$ac_ext >&5 17417 17418 ac_header_compiler=no 17419fi 17420 17421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17422{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17423echo "${ECHO_T}$ac_header_compiler" >&6; } 17424 17425# Is the header present? 17426{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17428cat >conftest.$ac_ext <<_ACEOF 17429/* confdefs.h. */ 17430_ACEOF 17431cat confdefs.h >>conftest.$ac_ext 17432cat >>conftest.$ac_ext <<_ACEOF 17433/* end confdefs.h. */ 17434#include <$ac_header> 17435_ACEOF 17436if { (ac_try="$ac_cpp conftest.$ac_ext" 17437case "(($ac_try" in 17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17439 *) ac_try_echo=$ac_try;; 17440esac 17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17443 ac_status=$? 17444 grep -v '^ *+' conftest.er1 >conftest.err 17445 rm -f conftest.er1 17446 cat conftest.err >&5 17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17448 (exit $ac_status); } >/dev/null; then 17449 if test -s conftest.err; then 17450 ac_cpp_err=$ac_c_preproc_warn_flag 17451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17452 else 17453 ac_cpp_err= 17454 fi 17455else 17456 ac_cpp_err=yes 17457fi 17458if test -z "$ac_cpp_err"; then 17459 ac_header_preproc=yes 17460else 17461 echo "$as_me: failed program was:" >&5 17462sed 's/^/| /' conftest.$ac_ext >&5 17463 17464 ac_header_preproc=no 17465fi 17466 17467rm -f conftest.err conftest.$ac_ext 17468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17469echo "${ECHO_T}$ac_header_preproc" >&6; } 17470 17471# So? What about this header? 17472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17473 yes:no: ) 17474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17478 ac_header_preproc=yes 17479 ;; 17480 no:yes:* ) 17481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17493 ( cat <<\_ASBOX 17494## ----------------------------------- ## 17495## Report this to llvmbugs@cs.uiuc.edu ## 17496## ----------------------------------- ## 17497_ASBOX 17498 ) | sed "s/^/$as_me: WARNING: /" >&2 17499 ;; 17500esac 17501{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17504 echo $ECHO_N "(cached) $ECHO_C" >&6 17505else 17506 eval "$as_ac_Header=\$ac_header_preproc" 17507fi 17508ac_res=`eval echo '${'$as_ac_Header'}'` 17509 { echo "$as_me:$LINENO: result: $ac_res" >&5 17510echo "${ECHO_T}$ac_res" >&6; } 17511 17512fi 17513if test `eval echo '${'$as_ac_Header'}'` = yes; then 17514 cat >>confdefs.h <<_ACEOF 17515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17516_ACEOF 17517 17518fi 17519 17520done 17521 17522 17523{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 17524echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 17525cat >conftest.$ac_ext <<_ACEOF 17526/* confdefs.h. */ 17527_ACEOF 17528cat confdefs.h >>conftest.$ac_ext 17529cat >>conftest.$ac_ext <<_ACEOF 17530/* end confdefs.h. */ 17531extern const char *__crashreporter_info__; 17532 int main() { 17533 __crashreporter_info__ = "test"; 17534 return 0; 17535 } 17536 17537_ACEOF 17538rm -f conftest.$ac_objext conftest$ac_exeext 17539if { (ac_try="$ac_link" 17540case "(($ac_try" in 17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17542 *) ac_try_echo=$ac_try;; 17543esac 17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17545 (eval "$ac_link") 2>conftest.er1 17546 ac_status=$? 17547 grep -v '^ *+' conftest.er1 >conftest.err 17548 rm -f conftest.er1 17549 cat conftest.err >&5 17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17551 (exit $ac_status); } && 17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17553 { (case "(($ac_try" in 17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17555 *) ac_try_echo=$ac_try;; 17556esac 17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17558 (eval "$ac_try") 2>&5 17559 ac_status=$? 17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17561 (exit $ac_status); }; } && 17562 { ac_try='test -s conftest$ac_exeext' 17563 { (case "(($ac_try" in 17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17565 *) ac_try_echo=$ac_try;; 17566esac 17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17568 (eval "$ac_try") 2>&5 17569 ac_status=$? 17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17571 (exit $ac_status); }; }; then 17572 { echo "$as_me:$LINENO: result: yes" >&5 17573echo "${ECHO_T}yes" >&6; } 17574 17575cat >>confdefs.h <<\_ACEOF 17576#define HAVE_CRASHREPORTER_INFO 1 17577_ACEOF 17578 17579else 17580 echo "$as_me: failed program was:" >&5 17581sed 's/^/| /' conftest.$ac_ext >&5 17582 17583 { echo "$as_me:$LINENO: result: no" >&5 17584echo "${ECHO_T}no" >&6; } 17585 17586cat >>confdefs.h <<\_ACEOF 17587#define HAVE_CRASHREPORTER_INFO 0 17588_ACEOF 17589 17590fi 17591 17592rm -f core conftest.err conftest.$ac_objext \ 17593 conftest$ac_exeext conftest.$ac_ext 17594 17595 17596 17597 17598 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 17599echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 17600if test "${ac_cv_huge_val_sanity+set}" = set; then 17601 echo $ECHO_N "(cached) $ECHO_C" >&6 17602else 17603 17604 ac_ext=cpp 17605ac_cpp='$CXXCPP $CPPFLAGS' 17606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17609 17610 ac_save_CXXFLAGS=$CXXFLAGS 17611 CXXFLAGS=-pedantic 17612 if test "$cross_compiling" = yes; then 17613 ac_cv_huge_val_sanity=yes 17614else 17615 cat >conftest.$ac_ext <<_ACEOF 17616/* confdefs.h. */ 17617_ACEOF 17618cat confdefs.h >>conftest.$ac_ext 17619cat >>conftest.$ac_ext <<_ACEOF 17620/* end confdefs.h. */ 17621#include <math.h> 17622int 17623main () 17624{ 17625double x = HUGE_VAL; return x != x; 17626 ; 17627 return 0; 17628} 17629_ACEOF 17630rm -f conftest$ac_exeext 17631if { (ac_try="$ac_link" 17632case "(($ac_try" in 17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17634 *) ac_try_echo=$ac_try;; 17635esac 17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17637 (eval "$ac_link") 2>&5 17638 ac_status=$? 17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17641 { (case "(($ac_try" in 17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17643 *) ac_try_echo=$ac_try;; 17644esac 17645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17646 (eval "$ac_try") 2>&5 17647 ac_status=$? 17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17649 (exit $ac_status); }; }; then 17650 ac_cv_huge_val_sanity=yes 17651else 17652 echo "$as_me: program exited with status $ac_status" >&5 17653echo "$as_me: failed program was:" >&5 17654sed 's/^/| /' conftest.$ac_ext >&5 17655 17656( exit $ac_status ) 17657ac_cv_huge_val_sanity=no 17658fi 17659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17660fi 17661 17662 17663 CXXFLAGS=$ac_save_CXXFLAGS 17664 ac_ext=c 17665ac_cpp='$CPP $CPPFLAGS' 17666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17668ac_compiler_gnu=$ac_cv_c_compiler_gnu 17669 17670 17671fi 17672{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 17673echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 17674 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 17675 17676 17677{ echo "$as_me:$LINENO: checking for pid_t" >&5 17678echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 17679if test "${ac_cv_type_pid_t+set}" = set; then 17680 echo $ECHO_N "(cached) $ECHO_C" >&6 17681else 17682 cat >conftest.$ac_ext <<_ACEOF 17683/* confdefs.h. */ 17684_ACEOF 17685cat confdefs.h >>conftest.$ac_ext 17686cat >>conftest.$ac_ext <<_ACEOF 17687/* end confdefs.h. */ 17688$ac_includes_default 17689typedef pid_t ac__type_new_; 17690int 17691main () 17692{ 17693if ((ac__type_new_ *) 0) 17694 return 0; 17695if (sizeof (ac__type_new_)) 17696 return 0; 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701rm -f conftest.$ac_objext 17702if { (ac_try="$ac_compile" 17703case "(($ac_try" in 17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17705 *) ac_try_echo=$ac_try;; 17706esac 17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17708 (eval "$ac_compile") 2>conftest.er1 17709 ac_status=$? 17710 grep -v '^ *+' conftest.er1 >conftest.err 17711 rm -f conftest.er1 17712 cat conftest.err >&5 17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17714 (exit $ac_status); } && 17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17716 { (case "(($ac_try" in 17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17718 *) ac_try_echo=$ac_try;; 17719esac 17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17721 (eval "$ac_try") 2>&5 17722 ac_status=$? 17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17724 (exit $ac_status); }; } && 17725 { ac_try='test -s conftest.$ac_objext' 17726 { (case "(($ac_try" in 17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17728 *) ac_try_echo=$ac_try;; 17729esac 17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17731 (eval "$ac_try") 2>&5 17732 ac_status=$? 17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17734 (exit $ac_status); }; }; then 17735 ac_cv_type_pid_t=yes 17736else 17737 echo "$as_me: failed program was:" >&5 17738sed 's/^/| /' conftest.$ac_ext >&5 17739 17740 ac_cv_type_pid_t=no 17741fi 17742 17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17744fi 17745{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 17746echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 17747if test $ac_cv_type_pid_t = yes; then 17748 : 17749else 17750 17751cat >>confdefs.h <<_ACEOF 17752#define pid_t int 17753_ACEOF 17754 17755fi 17756 17757{ echo "$as_me:$LINENO: checking for size_t" >&5 17758echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17759if test "${ac_cv_type_size_t+set}" = set; then 17760 echo $ECHO_N "(cached) $ECHO_C" >&6 17761else 17762 cat >conftest.$ac_ext <<_ACEOF 17763/* confdefs.h. */ 17764_ACEOF 17765cat confdefs.h >>conftest.$ac_ext 17766cat >>conftest.$ac_ext <<_ACEOF 17767/* end confdefs.h. */ 17768$ac_includes_default 17769typedef size_t ac__type_new_; 17770int 17771main () 17772{ 17773if ((ac__type_new_ *) 0) 17774 return 0; 17775if (sizeof (ac__type_new_)) 17776 return 0; 17777 ; 17778 return 0; 17779} 17780_ACEOF 17781rm -f conftest.$ac_objext 17782if { (ac_try="$ac_compile" 17783case "(($ac_try" in 17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17785 *) ac_try_echo=$ac_try;; 17786esac 17787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17788 (eval "$ac_compile") 2>conftest.er1 17789 ac_status=$? 17790 grep -v '^ *+' conftest.er1 >conftest.err 17791 rm -f conftest.er1 17792 cat conftest.err >&5 17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17794 (exit $ac_status); } && 17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17796 { (case "(($ac_try" in 17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17798 *) ac_try_echo=$ac_try;; 17799esac 17800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17801 (eval "$ac_try") 2>&5 17802 ac_status=$? 17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17804 (exit $ac_status); }; } && 17805 { ac_try='test -s conftest.$ac_objext' 17806 { (case "(($ac_try" in 17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17808 *) ac_try_echo=$ac_try;; 17809esac 17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17811 (eval "$ac_try") 2>&5 17812 ac_status=$? 17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17814 (exit $ac_status); }; }; then 17815 ac_cv_type_size_t=yes 17816else 17817 echo "$as_me: failed program was:" >&5 17818sed 's/^/| /' conftest.$ac_ext >&5 17819 17820 ac_cv_type_size_t=no 17821fi 17822 17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17824fi 17825{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17826echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17827if test $ac_cv_type_size_t = yes; then 17828 : 17829else 17830 17831cat >>confdefs.h <<_ACEOF 17832#define size_t unsigned int 17833_ACEOF 17834 17835fi 17836 17837 17838cat >>confdefs.h <<_ACEOF 17839#define RETSIGTYPE void 17840_ACEOF 17841 17842{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17843echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17844if test "${ac_cv_struct_tm+set}" = set; then 17845 echo $ECHO_N "(cached) $ECHO_C" >&6 17846else 17847 cat >conftest.$ac_ext <<_ACEOF 17848/* confdefs.h. */ 17849_ACEOF 17850cat confdefs.h >>conftest.$ac_ext 17851cat >>conftest.$ac_ext <<_ACEOF 17852/* end confdefs.h. */ 17853#include <sys/types.h> 17854#include <time.h> 17855 17856int 17857main () 17858{ 17859struct tm *tp; tp->tm_sec; 17860 ; 17861 return 0; 17862} 17863_ACEOF 17864rm -f conftest.$ac_objext 17865if { (ac_try="$ac_compile" 17866case "(($ac_try" in 17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17868 *) ac_try_echo=$ac_try;; 17869esac 17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17871 (eval "$ac_compile") 2>conftest.er1 17872 ac_status=$? 17873 grep -v '^ *+' conftest.er1 >conftest.err 17874 rm -f conftest.er1 17875 cat conftest.err >&5 17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17877 (exit $ac_status); } && 17878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17879 { (case "(($ac_try" in 17880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17881 *) ac_try_echo=$ac_try;; 17882esac 17883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17884 (eval "$ac_try") 2>&5 17885 ac_status=$? 17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17887 (exit $ac_status); }; } && 17888 { ac_try='test -s conftest.$ac_objext' 17889 { (case "(($ac_try" in 17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17891 *) ac_try_echo=$ac_try;; 17892esac 17893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17894 (eval "$ac_try") 2>&5 17895 ac_status=$? 17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17897 (exit $ac_status); }; }; then 17898 ac_cv_struct_tm=time.h 17899else 17900 echo "$as_me: failed program was:" >&5 17901sed 's/^/| /' conftest.$ac_ext >&5 17902 17903 ac_cv_struct_tm=sys/time.h 17904fi 17905 17906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17907fi 17908{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17909echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17910if test $ac_cv_struct_tm = sys/time.h; then 17911 17912cat >>confdefs.h <<\_ACEOF 17913#define TM_IN_SYS_TIME 1 17914_ACEOF 17915 17916fi 17917 17918{ echo "$as_me:$LINENO: checking for int64_t" >&5 17919echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17920if test "${ac_cv_type_int64_t+set}" = set; then 17921 echo $ECHO_N "(cached) $ECHO_C" >&6 17922else 17923 cat >conftest.$ac_ext <<_ACEOF 17924/* confdefs.h. */ 17925_ACEOF 17926cat confdefs.h >>conftest.$ac_ext 17927cat >>conftest.$ac_ext <<_ACEOF 17928/* end confdefs.h. */ 17929$ac_includes_default 17930typedef int64_t ac__type_new_; 17931int 17932main () 17933{ 17934if ((ac__type_new_ *) 0) 17935 return 0; 17936if (sizeof (ac__type_new_)) 17937 return 0; 17938 ; 17939 return 0; 17940} 17941_ACEOF 17942rm -f conftest.$ac_objext 17943if { (ac_try="$ac_compile" 17944case "(($ac_try" in 17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17946 *) ac_try_echo=$ac_try;; 17947esac 17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17949 (eval "$ac_compile") 2>conftest.er1 17950 ac_status=$? 17951 grep -v '^ *+' conftest.er1 >conftest.err 17952 rm -f conftest.er1 17953 cat conftest.err >&5 17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17955 (exit $ac_status); } && 17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17957 { (case "(($ac_try" in 17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17959 *) ac_try_echo=$ac_try;; 17960esac 17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17962 (eval "$ac_try") 2>&5 17963 ac_status=$? 17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17965 (exit $ac_status); }; } && 17966 { ac_try='test -s conftest.$ac_objext' 17967 { (case "(($ac_try" in 17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17969 *) ac_try_echo=$ac_try;; 17970esac 17971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17972 (eval "$ac_try") 2>&5 17973 ac_status=$? 17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17975 (exit $ac_status); }; }; then 17976 ac_cv_type_int64_t=yes 17977else 17978 echo "$as_me: failed program was:" >&5 17979sed 's/^/| /' conftest.$ac_ext >&5 17980 17981 ac_cv_type_int64_t=no 17982fi 17983 17984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17985fi 17986{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17987echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17988if test $ac_cv_type_int64_t = yes; then 17989 17990cat >>confdefs.h <<_ACEOF 17991#define HAVE_INT64_T 1 17992_ACEOF 17993 17994 17995else 17996 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17997echo "$as_me: error: Type int64_t required but not found" >&2;} 17998 { (exit 1); exit 1; }; } 17999fi 18000 18001{ echo "$as_me:$LINENO: checking for uint64_t" >&5 18002echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 18003if test "${ac_cv_type_uint64_t+set}" = set; then 18004 echo $ECHO_N "(cached) $ECHO_C" >&6 18005else 18006 cat >conftest.$ac_ext <<_ACEOF 18007/* confdefs.h. */ 18008_ACEOF 18009cat confdefs.h >>conftest.$ac_ext 18010cat >>conftest.$ac_ext <<_ACEOF 18011/* end confdefs.h. */ 18012$ac_includes_default 18013typedef uint64_t ac__type_new_; 18014int 18015main () 18016{ 18017if ((ac__type_new_ *) 0) 18018 return 0; 18019if (sizeof (ac__type_new_)) 18020 return 0; 18021 ; 18022 return 0; 18023} 18024_ACEOF 18025rm -f conftest.$ac_objext 18026if { (ac_try="$ac_compile" 18027case "(($ac_try" in 18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18029 *) ac_try_echo=$ac_try;; 18030esac 18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18032 (eval "$ac_compile") 2>conftest.er1 18033 ac_status=$? 18034 grep -v '^ *+' conftest.er1 >conftest.err 18035 rm -f conftest.er1 18036 cat conftest.err >&5 18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18038 (exit $ac_status); } && 18039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18040 { (case "(($ac_try" in 18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18042 *) ac_try_echo=$ac_try;; 18043esac 18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18045 (eval "$ac_try") 2>&5 18046 ac_status=$? 18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18048 (exit $ac_status); }; } && 18049 { ac_try='test -s conftest.$ac_objext' 18050 { (case "(($ac_try" in 18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18052 *) ac_try_echo=$ac_try;; 18053esac 18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18055 (eval "$ac_try") 2>&5 18056 ac_status=$? 18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18058 (exit $ac_status); }; }; then 18059 ac_cv_type_uint64_t=yes 18060else 18061 echo "$as_me: failed program was:" >&5 18062sed 's/^/| /' conftest.$ac_ext >&5 18063 18064 ac_cv_type_uint64_t=no 18065fi 18066 18067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18068fi 18069{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 18070echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 18071if test $ac_cv_type_uint64_t = yes; then 18072 18073cat >>confdefs.h <<_ACEOF 18074#define HAVE_UINT64_T 1 18075_ACEOF 18076 18077 18078else 18079 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 18080echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 18081if test "${ac_cv_type_u_int64_t+set}" = set; then 18082 echo $ECHO_N "(cached) $ECHO_C" >&6 18083else 18084 cat >conftest.$ac_ext <<_ACEOF 18085/* confdefs.h. */ 18086_ACEOF 18087cat confdefs.h >>conftest.$ac_ext 18088cat >>conftest.$ac_ext <<_ACEOF 18089/* end confdefs.h. */ 18090$ac_includes_default 18091typedef u_int64_t ac__type_new_; 18092int 18093main () 18094{ 18095if ((ac__type_new_ *) 0) 18096 return 0; 18097if (sizeof (ac__type_new_)) 18098 return 0; 18099 ; 18100 return 0; 18101} 18102_ACEOF 18103rm -f conftest.$ac_objext 18104if { (ac_try="$ac_compile" 18105case "(($ac_try" in 18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18107 *) ac_try_echo=$ac_try;; 18108esac 18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18110 (eval "$ac_compile") 2>conftest.er1 18111 ac_status=$? 18112 grep -v '^ *+' conftest.er1 >conftest.err 18113 rm -f conftest.er1 18114 cat conftest.err >&5 18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18116 (exit $ac_status); } && 18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18118 { (case "(($ac_try" in 18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18120 *) ac_try_echo=$ac_try;; 18121esac 18122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18123 (eval "$ac_try") 2>&5 18124 ac_status=$? 18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18126 (exit $ac_status); }; } && 18127 { ac_try='test -s conftest.$ac_objext' 18128 { (case "(($ac_try" in 18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18130 *) ac_try_echo=$ac_try;; 18131esac 18132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18133 (eval "$ac_try") 2>&5 18134 ac_status=$? 18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18136 (exit $ac_status); }; }; then 18137 ac_cv_type_u_int64_t=yes 18138else 18139 echo "$as_me: failed program was:" >&5 18140sed 's/^/| /' conftest.$ac_ext >&5 18141 18142 ac_cv_type_u_int64_t=no 18143fi 18144 18145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18146fi 18147{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 18148echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 18149if test $ac_cv_type_u_int64_t = yes; then 18150 18151cat >>confdefs.h <<_ACEOF 18152#define HAVE_U_INT64_T 1 18153_ACEOF 18154 18155 18156else 18157 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 18158echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 18159 { (exit 1); exit 1; }; } 18160fi 18161 18162fi 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 18174do 18175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18176{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18178if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18179 echo $ECHO_N "(cached) $ECHO_C" >&6 18180else 18181 cat >conftest.$ac_ext <<_ACEOF 18182/* confdefs.h. */ 18183_ACEOF 18184cat confdefs.h >>conftest.$ac_ext 18185cat >>conftest.$ac_ext <<_ACEOF 18186/* end confdefs.h. */ 18187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18189#define $ac_func innocuous_$ac_func 18190 18191/* System header to define __stub macros and hopefully few prototypes, 18192 which can conflict with char $ac_func (); below. 18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18194 <limits.h> exists even on freestanding compilers. */ 18195 18196#ifdef __STDC__ 18197# include <limits.h> 18198#else 18199# include <assert.h> 18200#endif 18201 18202#undef $ac_func 18203 18204/* Override any GCC internal prototype to avoid an error. 18205 Use char because int might match the return type of a GCC 18206 builtin and then its argument prototype would still apply. */ 18207#ifdef __cplusplus 18208extern "C" 18209#endif 18210char $ac_func (); 18211/* The GNU C library defines this for functions which it implements 18212 to always fail with ENOSYS. Some functions are actually named 18213 something starting with __ and the normal name is an alias. */ 18214#if defined __stub_$ac_func || defined __stub___$ac_func 18215choke me 18216#endif 18217 18218int 18219main () 18220{ 18221return $ac_func (); 18222 ; 18223 return 0; 18224} 18225_ACEOF 18226rm -f conftest.$ac_objext conftest$ac_exeext 18227if { (ac_try="$ac_link" 18228case "(($ac_try" in 18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18230 *) ac_try_echo=$ac_try;; 18231esac 18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18233 (eval "$ac_link") 2>conftest.er1 18234 ac_status=$? 18235 grep -v '^ *+' conftest.er1 >conftest.err 18236 rm -f conftest.er1 18237 cat conftest.err >&5 18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18239 (exit $ac_status); } && 18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18241 { (case "(($ac_try" in 18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18243 *) ac_try_echo=$ac_try;; 18244esac 18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18246 (eval "$ac_try") 2>&5 18247 ac_status=$? 18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18249 (exit $ac_status); }; } && 18250 { ac_try='test -s conftest$ac_exeext' 18251 { (case "(($ac_try" in 18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18253 *) ac_try_echo=$ac_try;; 18254esac 18255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18256 (eval "$ac_try") 2>&5 18257 ac_status=$? 18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18259 (exit $ac_status); }; }; then 18260 eval "$as_ac_var=yes" 18261else 18262 echo "$as_me: failed program was:" >&5 18263sed 's/^/| /' conftest.$ac_ext >&5 18264 18265 eval "$as_ac_var=no" 18266fi 18267 18268rm -f core conftest.err conftest.$ac_objext \ 18269 conftest$ac_exeext conftest.$ac_ext 18270fi 18271ac_res=`eval echo '${'$as_ac_var'}'` 18272 { echo "$as_me:$LINENO: result: $ac_res" >&5 18273echo "${ECHO_T}$ac_res" >&6; } 18274if test `eval echo '${'$as_ac_var'}'` = yes; then 18275 cat >>confdefs.h <<_ACEOF 18276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18277_ACEOF 18278 18279fi 18280done 18281 18282 18283 18284 18285 18286for ac_func in powf fmodf strtof round 18287do 18288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18289{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18292 echo $ECHO_N "(cached) $ECHO_C" >&6 18293else 18294 cat >conftest.$ac_ext <<_ACEOF 18295/* confdefs.h. */ 18296_ACEOF 18297cat confdefs.h >>conftest.$ac_ext 18298cat >>conftest.$ac_ext <<_ACEOF 18299/* end confdefs.h. */ 18300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18301 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18302#define $ac_func innocuous_$ac_func 18303 18304/* System header to define __stub macros and hopefully few prototypes, 18305 which can conflict with char $ac_func (); below. 18306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18307 <limits.h> exists even on freestanding compilers. */ 18308 18309#ifdef __STDC__ 18310# include <limits.h> 18311#else 18312# include <assert.h> 18313#endif 18314 18315#undef $ac_func 18316 18317/* Override any GCC internal prototype to avoid an error. 18318 Use char because int might match the return type of a GCC 18319 builtin and then its argument prototype would still apply. */ 18320#ifdef __cplusplus 18321extern "C" 18322#endif 18323char $ac_func (); 18324/* The GNU C library defines this for functions which it implements 18325 to always fail with ENOSYS. Some functions are actually named 18326 something starting with __ and the normal name is an alias. */ 18327#if defined __stub_$ac_func || defined __stub___$ac_func 18328choke me 18329#endif 18330 18331int 18332main () 18333{ 18334return $ac_func (); 18335 ; 18336 return 0; 18337} 18338_ACEOF 18339rm -f conftest.$ac_objext conftest$ac_exeext 18340if { (ac_try="$ac_link" 18341case "(($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_link") 2>conftest.er1 18347 ac_status=$? 18348 grep -v '^ *+' conftest.er1 >conftest.err 18349 rm -f conftest.er1 18350 cat conftest.err >&5 18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18352 (exit $ac_status); } && 18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18354 { (case "(($ac_try" in 18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18356 *) ac_try_echo=$ac_try;; 18357esac 18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18359 (eval "$ac_try") 2>&5 18360 ac_status=$? 18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18362 (exit $ac_status); }; } && 18363 { ac_try='test -s conftest$ac_exeext' 18364 { (case "(($ac_try" in 18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18366 *) ac_try_echo=$ac_try;; 18367esac 18368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18369 (eval "$ac_try") 2>&5 18370 ac_status=$? 18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18372 (exit $ac_status); }; }; then 18373 eval "$as_ac_var=yes" 18374else 18375 echo "$as_me: failed program was:" >&5 18376sed 's/^/| /' conftest.$ac_ext >&5 18377 18378 eval "$as_ac_var=no" 18379fi 18380 18381rm -f core conftest.err conftest.$ac_objext \ 18382 conftest$ac_exeext conftest.$ac_ext 18383fi 18384ac_res=`eval echo '${'$as_ac_var'}'` 18385 { echo "$as_me:$LINENO: result: $ac_res" >&5 18386echo "${ECHO_T}$ac_res" >&6; } 18387if test `eval echo '${'$as_ac_var'}'` = yes; then 18388 cat >>confdefs.h <<_ACEOF 18389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18390_ACEOF 18391 18392fi 18393done 18394 18395 18396 18397 18398 18399 18400for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 18401do 18402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18403{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18405if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18406 echo $ECHO_N "(cached) $ECHO_C" >&6 18407else 18408 cat >conftest.$ac_ext <<_ACEOF 18409/* confdefs.h. */ 18410_ACEOF 18411cat confdefs.h >>conftest.$ac_ext 18412cat >>conftest.$ac_ext <<_ACEOF 18413/* end confdefs.h. */ 18414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18416#define $ac_func innocuous_$ac_func 18417 18418/* System header to define __stub macros and hopefully few prototypes, 18419 which can conflict with char $ac_func (); below. 18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18421 <limits.h> exists even on freestanding compilers. */ 18422 18423#ifdef __STDC__ 18424# include <limits.h> 18425#else 18426# include <assert.h> 18427#endif 18428 18429#undef $ac_func 18430 18431/* Override any GCC internal prototype to avoid an error. 18432 Use char because int might match the return type of a GCC 18433 builtin and then its argument prototype would still apply. */ 18434#ifdef __cplusplus 18435extern "C" 18436#endif 18437char $ac_func (); 18438/* The GNU C library defines this for functions which it implements 18439 to always fail with ENOSYS. Some functions are actually named 18440 something starting with __ and the normal name is an alias. */ 18441#if defined __stub_$ac_func || defined __stub___$ac_func 18442choke me 18443#endif 18444 18445int 18446main () 18447{ 18448return $ac_func (); 18449 ; 18450 return 0; 18451} 18452_ACEOF 18453rm -f conftest.$ac_objext conftest$ac_exeext 18454if { (ac_try="$ac_link" 18455case "(($ac_try" in 18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18457 *) ac_try_echo=$ac_try;; 18458esac 18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18460 (eval "$ac_link") 2>conftest.er1 18461 ac_status=$? 18462 grep -v '^ *+' conftest.er1 >conftest.err 18463 rm -f conftest.er1 18464 cat conftest.err >&5 18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18466 (exit $ac_status); } && 18467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18468 { (case "(($ac_try" in 18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18470 *) ac_try_echo=$ac_try;; 18471esac 18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18473 (eval "$ac_try") 2>&5 18474 ac_status=$? 18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18476 (exit $ac_status); }; } && 18477 { ac_try='test -s conftest$ac_exeext' 18478 { (case "(($ac_try" in 18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18480 *) ac_try_echo=$ac_try;; 18481esac 18482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18483 (eval "$ac_try") 2>&5 18484 ac_status=$? 18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18486 (exit $ac_status); }; }; then 18487 eval "$as_ac_var=yes" 18488else 18489 echo "$as_me: failed program was:" >&5 18490sed 's/^/| /' conftest.$ac_ext >&5 18491 18492 eval "$as_ac_var=no" 18493fi 18494 18495rm -f core conftest.err conftest.$ac_objext \ 18496 conftest$ac_exeext conftest.$ac_ext 18497fi 18498ac_res=`eval echo '${'$as_ac_var'}'` 18499 { echo "$as_me:$LINENO: result: $ac_res" >&5 18500echo "${ECHO_T}$ac_res" >&6; } 18501if test `eval echo '${'$as_ac_var'}'` = yes; then 18502 cat >>confdefs.h <<_ACEOF 18503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18504_ACEOF 18505 18506fi 18507done 18508 18509 18510 18511 18512for ac_func in isatty mkdtemp mkstemp 18513do 18514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18515{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18518 echo $ECHO_N "(cached) $ECHO_C" >&6 18519else 18520 cat >conftest.$ac_ext <<_ACEOF 18521/* confdefs.h. */ 18522_ACEOF 18523cat confdefs.h >>conftest.$ac_ext 18524cat >>conftest.$ac_ext <<_ACEOF 18525/* end confdefs.h. */ 18526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18527 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18528#define $ac_func innocuous_$ac_func 18529 18530/* System header to define __stub macros and hopefully few prototypes, 18531 which can conflict with char $ac_func (); below. 18532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18533 <limits.h> exists even on freestanding compilers. */ 18534 18535#ifdef __STDC__ 18536# include <limits.h> 18537#else 18538# include <assert.h> 18539#endif 18540 18541#undef $ac_func 18542 18543/* Override any GCC internal prototype to avoid an error. 18544 Use char because int might match the return type of a GCC 18545 builtin and then its argument prototype would still apply. */ 18546#ifdef __cplusplus 18547extern "C" 18548#endif 18549char $ac_func (); 18550/* The GNU C library defines this for functions which it implements 18551 to always fail with ENOSYS. Some functions are actually named 18552 something starting with __ and the normal name is an alias. */ 18553#if defined __stub_$ac_func || defined __stub___$ac_func 18554choke me 18555#endif 18556 18557int 18558main () 18559{ 18560return $ac_func (); 18561 ; 18562 return 0; 18563} 18564_ACEOF 18565rm -f conftest.$ac_objext conftest$ac_exeext 18566if { (ac_try="$ac_link" 18567case "(($ac_try" in 18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18569 *) ac_try_echo=$ac_try;; 18570esac 18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18572 (eval "$ac_link") 2>conftest.er1 18573 ac_status=$? 18574 grep -v '^ *+' conftest.er1 >conftest.err 18575 rm -f conftest.er1 18576 cat conftest.err >&5 18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18578 (exit $ac_status); } && 18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18580 { (case "(($ac_try" in 18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18582 *) ac_try_echo=$ac_try;; 18583esac 18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18585 (eval "$ac_try") 2>&5 18586 ac_status=$? 18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18588 (exit $ac_status); }; } && 18589 { ac_try='test -s conftest$ac_exeext' 18590 { (case "(($ac_try" in 18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18592 *) ac_try_echo=$ac_try;; 18593esac 18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18595 (eval "$ac_try") 2>&5 18596 ac_status=$? 18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18598 (exit $ac_status); }; }; then 18599 eval "$as_ac_var=yes" 18600else 18601 echo "$as_me: failed program was:" >&5 18602sed 's/^/| /' conftest.$ac_ext >&5 18603 18604 eval "$as_ac_var=no" 18605fi 18606 18607rm -f core conftest.err conftest.$ac_objext \ 18608 conftest$ac_exeext conftest.$ac_ext 18609fi 18610ac_res=`eval echo '${'$as_ac_var'}'` 18611 { echo "$as_me:$LINENO: result: $ac_res" >&5 18612echo "${ECHO_T}$ac_res" >&6; } 18613if test `eval echo '${'$as_ac_var'}'` = yes; then 18614 cat >>confdefs.h <<_ACEOF 18615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18616_ACEOF 18617 18618fi 18619done 18620 18621 18622 18623 18624 18625 18626 18627for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 18628do 18629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18630{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18633 echo $ECHO_N "(cached) $ECHO_C" >&6 18634else 18635 cat >conftest.$ac_ext <<_ACEOF 18636/* confdefs.h. */ 18637_ACEOF 18638cat confdefs.h >>conftest.$ac_ext 18639cat >>conftest.$ac_ext <<_ACEOF 18640/* end confdefs.h. */ 18641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18642 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18643#define $ac_func innocuous_$ac_func 18644 18645/* System header to define __stub macros and hopefully few prototypes, 18646 which can conflict with char $ac_func (); below. 18647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18648 <limits.h> exists even on freestanding compilers. */ 18649 18650#ifdef __STDC__ 18651# include <limits.h> 18652#else 18653# include <assert.h> 18654#endif 18655 18656#undef $ac_func 18657 18658/* Override any GCC internal prototype to avoid an error. 18659 Use char because int might match the return type of a GCC 18660 builtin and then its argument prototype would still apply. */ 18661#ifdef __cplusplus 18662extern "C" 18663#endif 18664char $ac_func (); 18665/* The GNU C library defines this for functions which it implements 18666 to always fail with ENOSYS. Some functions are actually named 18667 something starting with __ and the normal name is an alias. */ 18668#if defined __stub_$ac_func || defined __stub___$ac_func 18669choke me 18670#endif 18671 18672int 18673main () 18674{ 18675return $ac_func (); 18676 ; 18677 return 0; 18678} 18679_ACEOF 18680rm -f conftest.$ac_objext conftest$ac_exeext 18681if { (ac_try="$ac_link" 18682case "(($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_link") 2>conftest.er1 18688 ac_status=$? 18689 grep -v '^ *+' conftest.er1 >conftest.err 18690 rm -f conftest.er1 18691 cat conftest.err >&5 18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18693 (exit $ac_status); } && 18694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18695 { (case "(($ac_try" in 18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18697 *) ac_try_echo=$ac_try;; 18698esac 18699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18700 (eval "$ac_try") 2>&5 18701 ac_status=$? 18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18703 (exit $ac_status); }; } && 18704 { ac_try='test -s conftest$ac_exeext' 18705 { (case "(($ac_try" in 18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18707 *) ac_try_echo=$ac_try;; 18708esac 18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18710 (eval "$ac_try") 2>&5 18711 ac_status=$? 18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18713 (exit $ac_status); }; }; then 18714 eval "$as_ac_var=yes" 18715else 18716 echo "$as_me: failed program was:" >&5 18717sed 's/^/| /' conftest.$ac_ext >&5 18718 18719 eval "$as_ac_var=no" 18720fi 18721 18722rm -f core conftest.err conftest.$ac_objext \ 18723 conftest$ac_exeext conftest.$ac_ext 18724fi 18725ac_res=`eval echo '${'$as_ac_var'}'` 18726 { echo "$as_me:$LINENO: result: $ac_res" >&5 18727echo "${ECHO_T}$ac_res" >&6; } 18728if test `eval echo '${'$as_ac_var'}'` = yes; then 18729 cat >>confdefs.h <<_ACEOF 18730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18731_ACEOF 18732 18733fi 18734done 18735 18736 18737 18738 18739for ac_func in strerror strerror_r setenv 18740do 18741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18742{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18745 echo $ECHO_N "(cached) $ECHO_C" >&6 18746else 18747 cat >conftest.$ac_ext <<_ACEOF 18748/* confdefs.h. */ 18749_ACEOF 18750cat confdefs.h >>conftest.$ac_ext 18751cat >>conftest.$ac_ext <<_ACEOF 18752/* end confdefs.h. */ 18753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18755#define $ac_func innocuous_$ac_func 18756 18757/* System header to define __stub macros and hopefully few prototypes, 18758 which can conflict with char $ac_func (); below. 18759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18760 <limits.h> exists even on freestanding compilers. */ 18761 18762#ifdef __STDC__ 18763# include <limits.h> 18764#else 18765# include <assert.h> 18766#endif 18767 18768#undef $ac_func 18769 18770/* Override any GCC internal prototype to avoid an error. 18771 Use char because int might match the return type of a GCC 18772 builtin and then its argument prototype would still apply. */ 18773#ifdef __cplusplus 18774extern "C" 18775#endif 18776char $ac_func (); 18777/* The GNU C library defines this for functions which it implements 18778 to always fail with ENOSYS. Some functions are actually named 18779 something starting with __ and the normal name is an alias. */ 18780#if defined __stub_$ac_func || defined __stub___$ac_func 18781choke me 18782#endif 18783 18784int 18785main () 18786{ 18787return $ac_func (); 18788 ; 18789 return 0; 18790} 18791_ACEOF 18792rm -f conftest.$ac_objext conftest$ac_exeext 18793if { (ac_try="$ac_link" 18794case "(($ac_try" in 18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18796 *) ac_try_echo=$ac_try;; 18797esac 18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18799 (eval "$ac_link") 2>conftest.er1 18800 ac_status=$? 18801 grep -v '^ *+' conftest.er1 >conftest.err 18802 rm -f conftest.er1 18803 cat conftest.err >&5 18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18805 (exit $ac_status); } && 18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18807 { (case "(($ac_try" in 18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18809 *) ac_try_echo=$ac_try;; 18810esac 18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18812 (eval "$ac_try") 2>&5 18813 ac_status=$? 18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18815 (exit $ac_status); }; } && 18816 { ac_try='test -s conftest$ac_exeext' 18817 { (case "(($ac_try" in 18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18819 *) ac_try_echo=$ac_try;; 18820esac 18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18822 (eval "$ac_try") 2>&5 18823 ac_status=$? 18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18825 (exit $ac_status); }; }; then 18826 eval "$as_ac_var=yes" 18827else 18828 echo "$as_me: failed program was:" >&5 18829sed 's/^/| /' conftest.$ac_ext >&5 18830 18831 eval "$as_ac_var=no" 18832fi 18833 18834rm -f core conftest.err conftest.$ac_objext \ 18835 conftest$ac_exeext conftest.$ac_ext 18836fi 18837ac_res=`eval echo '${'$as_ac_var'}'` 18838 { echo "$as_me:$LINENO: result: $ac_res" >&5 18839echo "${ECHO_T}$ac_res" >&6; } 18840if test `eval echo '${'$as_ac_var'}'` = yes; then 18841 cat >>confdefs.h <<_ACEOF 18842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18843_ACEOF 18844 18845fi 18846done 18847 18848 18849 18850 18851 18852for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18853do 18854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18855{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18858 echo $ECHO_N "(cached) $ECHO_C" >&6 18859else 18860 cat >conftest.$ac_ext <<_ACEOF 18861/* confdefs.h. */ 18862_ACEOF 18863cat confdefs.h >>conftest.$ac_ext 18864cat >>conftest.$ac_ext <<_ACEOF 18865/* end confdefs.h. */ 18866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18868#define $ac_func innocuous_$ac_func 18869 18870/* System header to define __stub macros and hopefully few prototypes, 18871 which can conflict with char $ac_func (); below. 18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18873 <limits.h> exists even on freestanding compilers. */ 18874 18875#ifdef __STDC__ 18876# include <limits.h> 18877#else 18878# include <assert.h> 18879#endif 18880 18881#undef $ac_func 18882 18883/* Override any GCC internal prototype to avoid an error. 18884 Use char because int might match the return type of a GCC 18885 builtin and then its argument prototype would still apply. */ 18886#ifdef __cplusplus 18887extern "C" 18888#endif 18889char $ac_func (); 18890/* The GNU C library defines this for functions which it implements 18891 to always fail with ENOSYS. Some functions are actually named 18892 something starting with __ and the normal name is an alias. */ 18893#if defined __stub_$ac_func || defined __stub___$ac_func 18894choke me 18895#endif 18896 18897int 18898main () 18899{ 18900return $ac_func (); 18901 ; 18902 return 0; 18903} 18904_ACEOF 18905rm -f conftest.$ac_objext conftest$ac_exeext 18906if { (ac_try="$ac_link" 18907case "(($ac_try" in 18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18909 *) ac_try_echo=$ac_try;; 18910esac 18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18912 (eval "$ac_link") 2>conftest.er1 18913 ac_status=$? 18914 grep -v '^ *+' conftest.er1 >conftest.err 18915 rm -f conftest.er1 18916 cat conftest.err >&5 18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18918 (exit $ac_status); } && 18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18920 { (case "(($ac_try" in 18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18922 *) ac_try_echo=$ac_try;; 18923esac 18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18925 (eval "$ac_try") 2>&5 18926 ac_status=$? 18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18928 (exit $ac_status); }; } && 18929 { ac_try='test -s conftest$ac_exeext' 18930 { (case "(($ac_try" in 18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18932 *) ac_try_echo=$ac_try;; 18933esac 18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18935 (eval "$ac_try") 2>&5 18936 ac_status=$? 18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18938 (exit $ac_status); }; }; then 18939 eval "$as_ac_var=yes" 18940else 18941 echo "$as_me: failed program was:" >&5 18942sed 's/^/| /' conftest.$ac_ext >&5 18943 18944 eval "$as_ac_var=no" 18945fi 18946 18947rm -f core conftest.err conftest.$ac_objext \ 18948 conftest$ac_exeext conftest.$ac_ext 18949fi 18950ac_res=`eval echo '${'$as_ac_var'}'` 18951 { echo "$as_me:$LINENO: result: $ac_res" >&5 18952echo "${ECHO_T}$ac_res" >&6; } 18953if test `eval echo '${'$as_ac_var'}'` = yes; then 18954 cat >>confdefs.h <<_ACEOF 18955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18956_ACEOF 18957 18958fi 18959done 18960 18961 18962 18963 18964 18965 18966for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18967do 18968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18969{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18972 echo $ECHO_N "(cached) $ECHO_C" >&6 18973else 18974 cat >conftest.$ac_ext <<_ACEOF 18975/* confdefs.h. */ 18976_ACEOF 18977cat confdefs.h >>conftest.$ac_ext 18978cat >>conftest.$ac_ext <<_ACEOF 18979/* end confdefs.h. */ 18980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18981 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18982#define $ac_func innocuous_$ac_func 18983 18984/* System header to define __stub macros and hopefully few prototypes, 18985 which can conflict with char $ac_func (); below. 18986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18987 <limits.h> exists even on freestanding compilers. */ 18988 18989#ifdef __STDC__ 18990# include <limits.h> 18991#else 18992# include <assert.h> 18993#endif 18994 18995#undef $ac_func 18996 18997/* Override any GCC internal prototype to avoid an error. 18998 Use char because int might match the return type of a GCC 18999 builtin and then its argument prototype would still apply. */ 19000#ifdef __cplusplus 19001extern "C" 19002#endif 19003char $ac_func (); 19004/* The GNU C library defines this for functions which it implements 19005 to always fail with ENOSYS. Some functions are actually named 19006 something starting with __ and the normal name is an alias. */ 19007#if defined __stub_$ac_func || defined __stub___$ac_func 19008choke me 19009#endif 19010 19011int 19012main () 19013{ 19014return $ac_func (); 19015 ; 19016 return 0; 19017} 19018_ACEOF 19019rm -f conftest.$ac_objext conftest$ac_exeext 19020if { (ac_try="$ac_link" 19021case "(($ac_try" in 19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19023 *) ac_try_echo=$ac_try;; 19024esac 19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19026 (eval "$ac_link") 2>conftest.er1 19027 ac_status=$? 19028 grep -v '^ *+' conftest.er1 >conftest.err 19029 rm -f conftest.er1 19030 cat conftest.err >&5 19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19032 (exit $ac_status); } && 19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19034 { (case "(($ac_try" in 19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19036 *) ac_try_echo=$ac_try;; 19037esac 19038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19039 (eval "$ac_try") 2>&5 19040 ac_status=$? 19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19042 (exit $ac_status); }; } && 19043 { ac_try='test -s conftest$ac_exeext' 19044 { (case "(($ac_try" in 19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19046 *) ac_try_echo=$ac_try;; 19047esac 19048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19049 (eval "$ac_try") 2>&5 19050 ac_status=$? 19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19052 (exit $ac_status); }; }; then 19053 eval "$as_ac_var=yes" 19054else 19055 echo "$as_me: failed program was:" >&5 19056sed 's/^/| /' conftest.$ac_ext >&5 19057 19058 eval "$as_ac_var=no" 19059fi 19060 19061rm -f core conftest.err conftest.$ac_objext \ 19062 conftest$ac_exeext conftest.$ac_ext 19063fi 19064ac_res=`eval echo '${'$as_ac_var'}'` 19065 { echo "$as_me:$LINENO: result: $ac_res" >&5 19066echo "${ECHO_T}$ac_res" >&6; } 19067if test `eval echo '${'$as_ac_var'}'` = yes; then 19068 cat >>confdefs.h <<_ACEOF 19069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19070_ACEOF 19071 19072fi 19073done 19074 19075{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 19076echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 19077if test "${llvm_cv_c_printf_a+set}" = set; then 19078 echo $ECHO_N "(cached) $ECHO_C" >&6 19079else 19080 ac_ext=c 19081ac_cpp='$CPP $CPPFLAGS' 19082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19084ac_compiler_gnu=$ac_cv_c_compiler_gnu 19085 19086 if test "$cross_compiling" = yes; then 19087 llvmac_cv_c_printf_a=no 19088else 19089 cat >conftest.$ac_ext <<_ACEOF 19090 19091 /* confdefs.h. */ 19092_ACEOF 19093cat confdefs.h >>conftest.$ac_ext 19094cat >>conftest.$ac_ext <<_ACEOF 19095/* end confdefs.h. */ 19096 19097#include <stdio.h> 19098#include <stdlib.h> 19099 19100int 19101main () 19102{ 19103 19104volatile double A, B; 19105char Buffer[100]; 19106A = 1; 19107A /= 10.0; 19108sprintf(Buffer, "%a", A); 19109B = atof(Buffer); 19110if (A != B) 19111 return (1); 19112if (A != 0x1.999999999999ap-4) 19113 return (1); 19114return (0); 19115 ; 19116 return 0; 19117} 19118_ACEOF 19119rm -f conftest$ac_exeext 19120if { (ac_try="$ac_link" 19121case "(($ac_try" in 19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19123 *) ac_try_echo=$ac_try;; 19124esac 19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19126 (eval "$ac_link") 2>&5 19127 ac_status=$? 19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19130 { (case "(($ac_try" in 19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19132 *) ac_try_echo=$ac_try;; 19133esac 19134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19135 (eval "$ac_try") 2>&5 19136 ac_status=$? 19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19138 (exit $ac_status); }; }; then 19139 llvm_cv_c_printf_a=yes 19140else 19141 echo "$as_me: program exited with status $ac_status" >&5 19142echo "$as_me: failed program was:" >&5 19143sed 's/^/| /' conftest.$ac_ext >&5 19144 19145( exit $ac_status ) 19146llvmac_cv_c_printf_a=no 19147fi 19148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19149fi 19150 19151 19152 ac_ext=c 19153ac_cpp='$CPP $CPPFLAGS' 19154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19156ac_compiler_gnu=$ac_cv_c_compiler_gnu 19157 19158fi 19159{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 19160echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 19161 if test "$llvm_cv_c_printf_a" = "yes"; then 19162 19163cat >>confdefs.h <<\_ACEOF 19164#define HAVE_PRINTF_A 1 19165_ACEOF 19166 19167 fi 19168 19169 19170{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 19171echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 19172if test "${ac_cv_func_rand48+set}" = set; then 19173 echo $ECHO_N "(cached) $ECHO_C" >&6 19174else 19175 ac_ext=cpp 19176ac_cpp='$CXXCPP $CPPFLAGS' 19177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19180 19181 cat >conftest.$ac_ext <<_ACEOF 19182/* confdefs.h. */ 19183_ACEOF 19184cat confdefs.h >>conftest.$ac_ext 19185cat >>conftest.$ac_ext <<_ACEOF 19186/* end confdefs.h. */ 19187#include <stdlib.h> 19188int 19189main () 19190{ 19191srand48(0);lrand48();drand48(); 19192 ; 19193 return 0; 19194} 19195_ACEOF 19196rm -f conftest.$ac_objext 19197if { (ac_try="$ac_compile" 19198case "(($ac_try" in 19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19200 *) ac_try_echo=$ac_try;; 19201esac 19202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19203 (eval "$ac_compile") 2>conftest.er1 19204 ac_status=$? 19205 grep -v '^ *+' conftest.er1 >conftest.err 19206 rm -f conftest.er1 19207 cat conftest.err >&5 19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19209 (exit $ac_status); } && 19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19211 { (case "(($ac_try" in 19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19213 *) ac_try_echo=$ac_try;; 19214esac 19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19216 (eval "$ac_try") 2>&5 19217 ac_status=$? 19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19219 (exit $ac_status); }; } && 19220 { ac_try='test -s conftest.$ac_objext' 19221 { (case "(($ac_try" in 19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19223 *) ac_try_echo=$ac_try;; 19224esac 19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19226 (eval "$ac_try") 2>&5 19227 ac_status=$? 19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19229 (exit $ac_status); }; }; then 19230 ac_cv_func_rand48=yes 19231else 19232 echo "$as_me: failed program was:" >&5 19233sed 's/^/| /' conftest.$ac_ext >&5 19234 19235 ac_cv_func_rand48=no 19236fi 19237 19238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19239 ac_ext=c 19240ac_cpp='$CPP $CPPFLAGS' 19241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19243ac_compiler_gnu=$ac_cv_c_compiler_gnu 19244 19245fi 19246{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 19247echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 19248 19249if test "$ac_cv_func_rand48" = "yes" ; then 19250 19251cat >>confdefs.h <<\_ACEOF 19252#define HAVE_RAND48 1 19253_ACEOF 19254 19255fi 19256 19257 19258{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 19259echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 19260if test "${ac_cv_have_decl_strerror_s+set}" = set; then 19261 echo $ECHO_N "(cached) $ECHO_C" >&6 19262else 19263 cat >conftest.$ac_ext <<_ACEOF 19264/* confdefs.h. */ 19265_ACEOF 19266cat confdefs.h >>conftest.$ac_ext 19267cat >>conftest.$ac_ext <<_ACEOF 19268/* end confdefs.h. */ 19269$ac_includes_default 19270int 19271main () 19272{ 19273#ifndef strerror_s 19274 char *p = (char *) strerror_s; 19275 return !p; 19276#endif 19277 19278 ; 19279 return 0; 19280} 19281_ACEOF 19282rm -f conftest.$ac_objext 19283if { (ac_try="$ac_compile" 19284case "(($ac_try" in 19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19286 *) ac_try_echo=$ac_try;; 19287esac 19288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19289 (eval "$ac_compile") 2>conftest.er1 19290 ac_status=$? 19291 grep -v '^ *+' conftest.er1 >conftest.err 19292 rm -f conftest.er1 19293 cat conftest.err >&5 19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19295 (exit $ac_status); } && 19296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19297 { (case "(($ac_try" in 19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19299 *) ac_try_echo=$ac_try;; 19300esac 19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19302 (eval "$ac_try") 2>&5 19303 ac_status=$? 19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19305 (exit $ac_status); }; } && 19306 { ac_try='test -s conftest.$ac_objext' 19307 { (case "(($ac_try" in 19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19309 *) ac_try_echo=$ac_try;; 19310esac 19311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19312 (eval "$ac_try") 2>&5 19313 ac_status=$? 19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19315 (exit $ac_status); }; }; then 19316 ac_cv_have_decl_strerror_s=yes 19317else 19318 echo "$as_me: failed program was:" >&5 19319sed 's/^/| /' conftest.$ac_ext >&5 19320 19321 ac_cv_have_decl_strerror_s=no 19322fi 19323 19324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19325fi 19326{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 19327echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 19328if test $ac_cv_have_decl_strerror_s = yes; then 19329 19330cat >>confdefs.h <<_ACEOF 19331#define HAVE_DECL_STRERROR_S 1 19332_ACEOF 19333 19334 19335else 19336 cat >>confdefs.h <<_ACEOF 19337#define HAVE_DECL_STRERROR_S 0 19338_ACEOF 19339 19340 19341fi 19342 19343 19344 19345if test "$llvm_cv_os_type" = "MingW" ; then 19346 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 19347echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 19348if test "${ac_cv_lib_gcc__alloca+set}" = set; then 19349 echo $ECHO_N "(cached) $ECHO_C" >&6 19350else 19351 ac_check_lib_save_LIBS=$LIBS 19352LIBS="-lgcc $LIBS" 19353cat >conftest.$ac_ext <<_ACEOF 19354/* confdefs.h. */ 19355_ACEOF 19356cat confdefs.h >>conftest.$ac_ext 19357cat >>conftest.$ac_ext <<_ACEOF 19358/* end confdefs.h. */ 19359 19360/* Override any GCC internal prototype to avoid an error. 19361 Use char because int might match the return type of a GCC 19362 builtin and then its argument prototype would still apply. */ 19363#ifdef __cplusplus 19364extern "C" 19365#endif 19366char _alloca (); 19367int 19368main () 19369{ 19370return _alloca (); 19371 ; 19372 return 0; 19373} 19374_ACEOF 19375rm -f conftest.$ac_objext conftest$ac_exeext 19376if { (ac_try="$ac_link" 19377case "(($ac_try" in 19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19379 *) ac_try_echo=$ac_try;; 19380esac 19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19382 (eval "$ac_link") 2>conftest.er1 19383 ac_status=$? 19384 grep -v '^ *+' conftest.er1 >conftest.err 19385 rm -f conftest.er1 19386 cat conftest.err >&5 19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19388 (exit $ac_status); } && 19389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19390 { (case "(($ac_try" in 19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19392 *) ac_try_echo=$ac_try;; 19393esac 19394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19395 (eval "$ac_try") 2>&5 19396 ac_status=$? 19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19398 (exit $ac_status); }; } && 19399 { ac_try='test -s conftest$ac_exeext' 19400 { (case "(($ac_try" in 19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19402 *) ac_try_echo=$ac_try;; 19403esac 19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19405 (eval "$ac_try") 2>&5 19406 ac_status=$? 19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19408 (exit $ac_status); }; }; then 19409 ac_cv_lib_gcc__alloca=yes 19410else 19411 echo "$as_me: failed program was:" >&5 19412sed 's/^/| /' conftest.$ac_ext >&5 19413 19414 ac_cv_lib_gcc__alloca=no 19415fi 19416 19417rm -f core conftest.err conftest.$ac_objext \ 19418 conftest$ac_exeext conftest.$ac_ext 19419LIBS=$ac_check_lib_save_LIBS 19420fi 19421{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 19422echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 19423if test $ac_cv_lib_gcc__alloca = yes; then 19424 19425cat >>confdefs.h <<\_ACEOF 19426#define HAVE__ALLOCA 1 19427_ACEOF 19428 19429fi 19430 19431 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 19432echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 19433if test "${ac_cv_lib_gcc___alloca+set}" = set; then 19434 echo $ECHO_N "(cached) $ECHO_C" >&6 19435else 19436 ac_check_lib_save_LIBS=$LIBS 19437LIBS="-lgcc $LIBS" 19438cat >conftest.$ac_ext <<_ACEOF 19439/* confdefs.h. */ 19440_ACEOF 19441cat confdefs.h >>conftest.$ac_ext 19442cat >>conftest.$ac_ext <<_ACEOF 19443/* end confdefs.h. */ 19444 19445/* Override any GCC internal prototype to avoid an error. 19446 Use char because int might match the return type of a GCC 19447 builtin and then its argument prototype would still apply. */ 19448#ifdef __cplusplus 19449extern "C" 19450#endif 19451char __alloca (); 19452int 19453main () 19454{ 19455return __alloca (); 19456 ; 19457 return 0; 19458} 19459_ACEOF 19460rm -f conftest.$ac_objext conftest$ac_exeext 19461if { (ac_try="$ac_link" 19462case "(($ac_try" in 19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19464 *) ac_try_echo=$ac_try;; 19465esac 19466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19467 (eval "$ac_link") 2>conftest.er1 19468 ac_status=$? 19469 grep -v '^ *+' conftest.er1 >conftest.err 19470 rm -f conftest.er1 19471 cat conftest.err >&5 19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19473 (exit $ac_status); } && 19474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19475 { (case "(($ac_try" in 19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19477 *) ac_try_echo=$ac_try;; 19478esac 19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19480 (eval "$ac_try") 2>&5 19481 ac_status=$? 19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19483 (exit $ac_status); }; } && 19484 { ac_try='test -s conftest$ac_exeext' 19485 { (case "(($ac_try" in 19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19487 *) ac_try_echo=$ac_try;; 19488esac 19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19490 (eval "$ac_try") 2>&5 19491 ac_status=$? 19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19493 (exit $ac_status); }; }; then 19494 ac_cv_lib_gcc___alloca=yes 19495else 19496 echo "$as_me: failed program was:" >&5 19497sed 's/^/| /' conftest.$ac_ext >&5 19498 19499 ac_cv_lib_gcc___alloca=no 19500fi 19501 19502rm -f core conftest.err conftest.$ac_objext \ 19503 conftest$ac_exeext conftest.$ac_ext 19504LIBS=$ac_check_lib_save_LIBS 19505fi 19506{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 19507echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 19508if test $ac_cv_lib_gcc___alloca = yes; then 19509 19510cat >>confdefs.h <<\_ACEOF 19511#define HAVE___ALLOCA 1 19512_ACEOF 19513 19514fi 19515 19516 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 19517echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 19518if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 19519 echo $ECHO_N "(cached) $ECHO_C" >&6 19520else 19521 ac_check_lib_save_LIBS=$LIBS 19522LIBS="-lgcc $LIBS" 19523cat >conftest.$ac_ext <<_ACEOF 19524/* confdefs.h. */ 19525_ACEOF 19526cat confdefs.h >>conftest.$ac_ext 19527cat >>conftest.$ac_ext <<_ACEOF 19528/* end confdefs.h. */ 19529 19530/* Override any GCC internal prototype to avoid an error. 19531 Use char because int might match the return type of a GCC 19532 builtin and then its argument prototype would still apply. */ 19533#ifdef __cplusplus 19534extern "C" 19535#endif 19536char __chkstk (); 19537int 19538main () 19539{ 19540return __chkstk (); 19541 ; 19542 return 0; 19543} 19544_ACEOF 19545rm -f conftest.$ac_objext conftest$ac_exeext 19546if { (ac_try="$ac_link" 19547case "(($ac_try" in 19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19549 *) ac_try_echo=$ac_try;; 19550esac 19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19552 (eval "$ac_link") 2>conftest.er1 19553 ac_status=$? 19554 grep -v '^ *+' conftest.er1 >conftest.err 19555 rm -f conftest.er1 19556 cat conftest.err >&5 19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19558 (exit $ac_status); } && 19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19560 { (case "(($ac_try" in 19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19562 *) ac_try_echo=$ac_try;; 19563esac 19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19565 (eval "$ac_try") 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; } && 19569 { ac_try='test -s conftest$ac_exeext' 19570 { (case "(($ac_try" in 19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19572 *) ac_try_echo=$ac_try;; 19573esac 19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19575 (eval "$ac_try") 2>&5 19576 ac_status=$? 19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19578 (exit $ac_status); }; }; then 19579 ac_cv_lib_gcc___chkstk=yes 19580else 19581 echo "$as_me: failed program was:" >&5 19582sed 's/^/| /' conftest.$ac_ext >&5 19583 19584 ac_cv_lib_gcc___chkstk=no 19585fi 19586 19587rm -f core conftest.err conftest.$ac_objext \ 19588 conftest$ac_exeext conftest.$ac_ext 19589LIBS=$ac_check_lib_save_LIBS 19590fi 19591{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 19592echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 19593if test $ac_cv_lib_gcc___chkstk = yes; then 19594 19595cat >>confdefs.h <<\_ACEOF 19596#define HAVE___CHKSTK 1 19597_ACEOF 19598 19599fi 19600 19601 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 19602echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 19603if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 19604 echo $ECHO_N "(cached) $ECHO_C" >&6 19605else 19606 ac_check_lib_save_LIBS=$LIBS 19607LIBS="-lgcc $LIBS" 19608cat >conftest.$ac_ext <<_ACEOF 19609/* confdefs.h. */ 19610_ACEOF 19611cat confdefs.h >>conftest.$ac_ext 19612cat >>conftest.$ac_ext <<_ACEOF 19613/* end confdefs.h. */ 19614 19615/* Override any GCC internal prototype to avoid an error. 19616 Use char because int might match the return type of a GCC 19617 builtin and then its argument prototype would still apply. */ 19618#ifdef __cplusplus 19619extern "C" 19620#endif 19621char ___chkstk (); 19622int 19623main () 19624{ 19625return ___chkstk (); 19626 ; 19627 return 0; 19628} 19629_ACEOF 19630rm -f conftest.$ac_objext conftest$ac_exeext 19631if { (ac_try="$ac_link" 19632case "(($ac_try" in 19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19634 *) ac_try_echo=$ac_try;; 19635esac 19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19637 (eval "$ac_link") 2>conftest.er1 19638 ac_status=$? 19639 grep -v '^ *+' conftest.er1 >conftest.err 19640 rm -f conftest.er1 19641 cat conftest.err >&5 19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19643 (exit $ac_status); } && 19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19645 { (case "(($ac_try" in 19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19647 *) ac_try_echo=$ac_try;; 19648esac 19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19650 (eval "$ac_try") 2>&5 19651 ac_status=$? 19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19653 (exit $ac_status); }; } && 19654 { ac_try='test -s conftest$ac_exeext' 19655 { (case "(($ac_try" in 19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19657 *) ac_try_echo=$ac_try;; 19658esac 19659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19660 (eval "$ac_try") 2>&5 19661 ac_status=$? 19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19663 (exit $ac_status); }; }; then 19664 ac_cv_lib_gcc____chkstk=yes 19665else 19666 echo "$as_me: failed program was:" >&5 19667sed 's/^/| /' conftest.$ac_ext >&5 19668 19669 ac_cv_lib_gcc____chkstk=no 19670fi 19671 19672rm -f core conftest.err conftest.$ac_objext \ 19673 conftest$ac_exeext conftest.$ac_ext 19674LIBS=$ac_check_lib_save_LIBS 19675fi 19676{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 19677echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 19678if test $ac_cv_lib_gcc____chkstk = yes; then 19679 19680cat >>confdefs.h <<\_ACEOF 19681#define HAVE____CHKSTK 1 19682_ACEOF 19683 19684fi 19685 19686 19687 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 19688echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 19689if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 19690 echo $ECHO_N "(cached) $ECHO_C" >&6 19691else 19692 ac_check_lib_save_LIBS=$LIBS 19693LIBS="-lgcc $LIBS" 19694cat >conftest.$ac_ext <<_ACEOF 19695/* confdefs.h. */ 19696_ACEOF 19697cat confdefs.h >>conftest.$ac_ext 19698cat >>conftest.$ac_ext <<_ACEOF 19699/* end confdefs.h. */ 19700 19701/* Override any GCC internal prototype to avoid an error. 19702 Use char because int might match the return type of a GCC 19703 builtin and then its argument prototype would still apply. */ 19704#ifdef __cplusplus 19705extern "C" 19706#endif 19707char __ashldi3 (); 19708int 19709main () 19710{ 19711return __ashldi3 (); 19712 ; 19713 return 0; 19714} 19715_ACEOF 19716rm -f conftest.$ac_objext conftest$ac_exeext 19717if { (ac_try="$ac_link" 19718case "(($ac_try" in 19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19720 *) ac_try_echo=$ac_try;; 19721esac 19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19723 (eval "$ac_link") 2>conftest.er1 19724 ac_status=$? 19725 grep -v '^ *+' conftest.er1 >conftest.err 19726 rm -f conftest.er1 19727 cat conftest.err >&5 19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19729 (exit $ac_status); } && 19730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19731 { (case "(($ac_try" in 19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19733 *) ac_try_echo=$ac_try;; 19734esac 19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19736 (eval "$ac_try") 2>&5 19737 ac_status=$? 19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19739 (exit $ac_status); }; } && 19740 { ac_try='test -s conftest$ac_exeext' 19741 { (case "(($ac_try" in 19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19743 *) ac_try_echo=$ac_try;; 19744esac 19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19746 (eval "$ac_try") 2>&5 19747 ac_status=$? 19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); }; }; then 19750 ac_cv_lib_gcc___ashldi3=yes 19751else 19752 echo "$as_me: failed program was:" >&5 19753sed 's/^/| /' conftest.$ac_ext >&5 19754 19755 ac_cv_lib_gcc___ashldi3=no 19756fi 19757 19758rm -f core conftest.err conftest.$ac_objext \ 19759 conftest$ac_exeext conftest.$ac_ext 19760LIBS=$ac_check_lib_save_LIBS 19761fi 19762{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 19763echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 19764if test $ac_cv_lib_gcc___ashldi3 = yes; then 19765 19766cat >>confdefs.h <<\_ACEOF 19767#define HAVE___ASHLDI3 1 19768_ACEOF 19769 19770fi 19771 19772 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 19773echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 19774if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 19775 echo $ECHO_N "(cached) $ECHO_C" >&6 19776else 19777 ac_check_lib_save_LIBS=$LIBS 19778LIBS="-lgcc $LIBS" 19779cat >conftest.$ac_ext <<_ACEOF 19780/* confdefs.h. */ 19781_ACEOF 19782cat confdefs.h >>conftest.$ac_ext 19783cat >>conftest.$ac_ext <<_ACEOF 19784/* end confdefs.h. */ 19785 19786/* Override any GCC internal prototype to avoid an error. 19787 Use char because int might match the return type of a GCC 19788 builtin and then its argument prototype would still apply. */ 19789#ifdef __cplusplus 19790extern "C" 19791#endif 19792char __ashrdi3 (); 19793int 19794main () 19795{ 19796return __ashrdi3 (); 19797 ; 19798 return 0; 19799} 19800_ACEOF 19801rm -f conftest.$ac_objext conftest$ac_exeext 19802if { (ac_try="$ac_link" 19803case "(($ac_try" in 19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19805 *) ac_try_echo=$ac_try;; 19806esac 19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19808 (eval "$ac_link") 2>conftest.er1 19809 ac_status=$? 19810 grep -v '^ *+' conftest.er1 >conftest.err 19811 rm -f conftest.er1 19812 cat conftest.err >&5 19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19814 (exit $ac_status); } && 19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19816 { (case "(($ac_try" in 19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19818 *) ac_try_echo=$ac_try;; 19819esac 19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19821 (eval "$ac_try") 2>&5 19822 ac_status=$? 19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19824 (exit $ac_status); }; } && 19825 { ac_try='test -s conftest$ac_exeext' 19826 { (case "(($ac_try" in 19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19828 *) ac_try_echo=$ac_try;; 19829esac 19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19831 (eval "$ac_try") 2>&5 19832 ac_status=$? 19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19834 (exit $ac_status); }; }; then 19835 ac_cv_lib_gcc___ashrdi3=yes 19836else 19837 echo "$as_me: failed program was:" >&5 19838sed 's/^/| /' conftest.$ac_ext >&5 19839 19840 ac_cv_lib_gcc___ashrdi3=no 19841fi 19842 19843rm -f core conftest.err conftest.$ac_objext \ 19844 conftest$ac_exeext conftest.$ac_ext 19845LIBS=$ac_check_lib_save_LIBS 19846fi 19847{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 19848echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 19849if test $ac_cv_lib_gcc___ashrdi3 = yes; then 19850 19851cat >>confdefs.h <<\_ACEOF 19852#define HAVE___ASHRDI3 1 19853_ACEOF 19854 19855fi 19856 19857 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 19858echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 19859if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 19860 echo $ECHO_N "(cached) $ECHO_C" >&6 19861else 19862 ac_check_lib_save_LIBS=$LIBS 19863LIBS="-lgcc $LIBS" 19864cat >conftest.$ac_ext <<_ACEOF 19865/* confdefs.h. */ 19866_ACEOF 19867cat confdefs.h >>conftest.$ac_ext 19868cat >>conftest.$ac_ext <<_ACEOF 19869/* end confdefs.h. */ 19870 19871/* Override any GCC internal prototype to avoid an error. 19872 Use char because int might match the return type of a GCC 19873 builtin and then its argument prototype would still apply. */ 19874#ifdef __cplusplus 19875extern "C" 19876#endif 19877char __divdi3 (); 19878int 19879main () 19880{ 19881return __divdi3 (); 19882 ; 19883 return 0; 19884} 19885_ACEOF 19886rm -f conftest.$ac_objext conftest$ac_exeext 19887if { (ac_try="$ac_link" 19888case "(($ac_try" in 19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19890 *) ac_try_echo=$ac_try;; 19891esac 19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19893 (eval "$ac_link") 2>conftest.er1 19894 ac_status=$? 19895 grep -v '^ *+' conftest.er1 >conftest.err 19896 rm -f conftest.er1 19897 cat conftest.err >&5 19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19899 (exit $ac_status); } && 19900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19901 { (case "(($ac_try" in 19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19903 *) ac_try_echo=$ac_try;; 19904esac 19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19906 (eval "$ac_try") 2>&5 19907 ac_status=$? 19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19909 (exit $ac_status); }; } && 19910 { ac_try='test -s conftest$ac_exeext' 19911 { (case "(($ac_try" in 19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19913 *) ac_try_echo=$ac_try;; 19914esac 19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19916 (eval "$ac_try") 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; }; then 19920 ac_cv_lib_gcc___divdi3=yes 19921else 19922 echo "$as_me: failed program was:" >&5 19923sed 's/^/| /' conftest.$ac_ext >&5 19924 19925 ac_cv_lib_gcc___divdi3=no 19926fi 19927 19928rm -f core conftest.err conftest.$ac_objext \ 19929 conftest$ac_exeext conftest.$ac_ext 19930LIBS=$ac_check_lib_save_LIBS 19931fi 19932{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19933echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19934if test $ac_cv_lib_gcc___divdi3 = yes; then 19935 19936cat >>confdefs.h <<\_ACEOF 19937#define HAVE___DIVDI3 1 19938_ACEOF 19939 19940fi 19941 19942 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19943echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19944if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19945 echo $ECHO_N "(cached) $ECHO_C" >&6 19946else 19947 ac_check_lib_save_LIBS=$LIBS 19948LIBS="-lgcc $LIBS" 19949cat >conftest.$ac_ext <<_ACEOF 19950/* confdefs.h. */ 19951_ACEOF 19952cat confdefs.h >>conftest.$ac_ext 19953cat >>conftest.$ac_ext <<_ACEOF 19954/* end confdefs.h. */ 19955 19956/* Override any GCC internal prototype to avoid an error. 19957 Use char because int might match the return type of a GCC 19958 builtin and then its argument prototype would still apply. */ 19959#ifdef __cplusplus 19960extern "C" 19961#endif 19962char __fixdfdi (); 19963int 19964main () 19965{ 19966return __fixdfdi (); 19967 ; 19968 return 0; 19969} 19970_ACEOF 19971rm -f conftest.$ac_objext conftest$ac_exeext 19972if { (ac_try="$ac_link" 19973case "(($ac_try" in 19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19975 *) ac_try_echo=$ac_try;; 19976esac 19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19978 (eval "$ac_link") 2>conftest.er1 19979 ac_status=$? 19980 grep -v '^ *+' conftest.er1 >conftest.err 19981 rm -f conftest.er1 19982 cat conftest.err >&5 19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19984 (exit $ac_status); } && 19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19986 { (case "(($ac_try" in 19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19988 *) ac_try_echo=$ac_try;; 19989esac 19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19991 (eval "$ac_try") 2>&5 19992 ac_status=$? 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); }; } && 19995 { ac_try='test -s conftest$ac_exeext' 19996 { (case "(($ac_try" in 19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19998 *) ac_try_echo=$ac_try;; 19999esac 20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20001 (eval "$ac_try") 2>&5 20002 ac_status=$? 20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20004 (exit $ac_status); }; }; then 20005 ac_cv_lib_gcc___fixdfdi=yes 20006else 20007 echo "$as_me: failed program was:" >&5 20008sed 's/^/| /' conftest.$ac_ext >&5 20009 20010 ac_cv_lib_gcc___fixdfdi=no 20011fi 20012 20013rm -f core conftest.err conftest.$ac_objext \ 20014 conftest$ac_exeext conftest.$ac_ext 20015LIBS=$ac_check_lib_save_LIBS 20016fi 20017{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 20018echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 20019if test $ac_cv_lib_gcc___fixdfdi = yes; then 20020 20021cat >>confdefs.h <<\_ACEOF 20022#define HAVE___FIXDFDI 1 20023_ACEOF 20024 20025fi 20026 20027 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 20028echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 20029if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 20030 echo $ECHO_N "(cached) $ECHO_C" >&6 20031else 20032 ac_check_lib_save_LIBS=$LIBS 20033LIBS="-lgcc $LIBS" 20034cat >conftest.$ac_ext <<_ACEOF 20035/* confdefs.h. */ 20036_ACEOF 20037cat confdefs.h >>conftest.$ac_ext 20038cat >>conftest.$ac_ext <<_ACEOF 20039/* end confdefs.h. */ 20040 20041/* Override any GCC internal prototype to avoid an error. 20042 Use char because int might match the return type of a GCC 20043 builtin and then its argument prototype would still apply. */ 20044#ifdef __cplusplus 20045extern "C" 20046#endif 20047char __fixsfdi (); 20048int 20049main () 20050{ 20051return __fixsfdi (); 20052 ; 20053 return 0; 20054} 20055_ACEOF 20056rm -f conftest.$ac_objext conftest$ac_exeext 20057if { (ac_try="$ac_link" 20058case "(($ac_try" in 20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20060 *) ac_try_echo=$ac_try;; 20061esac 20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20063 (eval "$ac_link") 2>conftest.er1 20064 ac_status=$? 20065 grep -v '^ *+' conftest.er1 >conftest.err 20066 rm -f conftest.er1 20067 cat conftest.err >&5 20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20069 (exit $ac_status); } && 20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20071 { (case "(($ac_try" in 20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20073 *) ac_try_echo=$ac_try;; 20074esac 20075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20076 (eval "$ac_try") 2>&5 20077 ac_status=$? 20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20079 (exit $ac_status); }; } && 20080 { ac_try='test -s conftest$ac_exeext' 20081 { (case "(($ac_try" in 20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20083 *) ac_try_echo=$ac_try;; 20084esac 20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20086 (eval "$ac_try") 2>&5 20087 ac_status=$? 20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20089 (exit $ac_status); }; }; then 20090 ac_cv_lib_gcc___fixsfdi=yes 20091else 20092 echo "$as_me: failed program was:" >&5 20093sed 's/^/| /' conftest.$ac_ext >&5 20094 20095 ac_cv_lib_gcc___fixsfdi=no 20096fi 20097 20098rm -f core conftest.err conftest.$ac_objext \ 20099 conftest$ac_exeext conftest.$ac_ext 20100LIBS=$ac_check_lib_save_LIBS 20101fi 20102{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 20103echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 20104if test $ac_cv_lib_gcc___fixsfdi = yes; then 20105 20106cat >>confdefs.h <<\_ACEOF 20107#define HAVE___FIXSFDI 1 20108_ACEOF 20109 20110fi 20111 20112 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 20113echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 20114if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 20115 echo $ECHO_N "(cached) $ECHO_C" >&6 20116else 20117 ac_check_lib_save_LIBS=$LIBS 20118LIBS="-lgcc $LIBS" 20119cat >conftest.$ac_ext <<_ACEOF 20120/* confdefs.h. */ 20121_ACEOF 20122cat confdefs.h >>conftest.$ac_ext 20123cat >>conftest.$ac_ext <<_ACEOF 20124/* end confdefs.h. */ 20125 20126/* Override any GCC internal prototype to avoid an error. 20127 Use char because int might match the return type of a GCC 20128 builtin and then its argument prototype would still apply. */ 20129#ifdef __cplusplus 20130extern "C" 20131#endif 20132char __floatdidf (); 20133int 20134main () 20135{ 20136return __floatdidf (); 20137 ; 20138 return 0; 20139} 20140_ACEOF 20141rm -f conftest.$ac_objext conftest$ac_exeext 20142if { (ac_try="$ac_link" 20143case "(($ac_try" in 20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20145 *) ac_try_echo=$ac_try;; 20146esac 20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20148 (eval "$ac_link") 2>conftest.er1 20149 ac_status=$? 20150 grep -v '^ *+' conftest.er1 >conftest.err 20151 rm -f conftest.er1 20152 cat conftest.err >&5 20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20154 (exit $ac_status); } && 20155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20156 { (case "(($ac_try" in 20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20158 *) ac_try_echo=$ac_try;; 20159esac 20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20161 (eval "$ac_try") 2>&5 20162 ac_status=$? 20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20164 (exit $ac_status); }; } && 20165 { ac_try='test -s conftest$ac_exeext' 20166 { (case "(($ac_try" in 20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20168 *) ac_try_echo=$ac_try;; 20169esac 20170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20171 (eval "$ac_try") 2>&5 20172 ac_status=$? 20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20174 (exit $ac_status); }; }; then 20175 ac_cv_lib_gcc___floatdidf=yes 20176else 20177 echo "$as_me: failed program was:" >&5 20178sed 's/^/| /' conftest.$ac_ext >&5 20179 20180 ac_cv_lib_gcc___floatdidf=no 20181fi 20182 20183rm -f core conftest.err conftest.$ac_objext \ 20184 conftest$ac_exeext conftest.$ac_ext 20185LIBS=$ac_check_lib_save_LIBS 20186fi 20187{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 20188echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 20189if test $ac_cv_lib_gcc___floatdidf = yes; then 20190 20191cat >>confdefs.h <<\_ACEOF 20192#define HAVE___FLOATDIDF 1 20193_ACEOF 20194 20195fi 20196 20197 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 20198echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 20199if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 20200 echo $ECHO_N "(cached) $ECHO_C" >&6 20201else 20202 ac_check_lib_save_LIBS=$LIBS 20203LIBS="-lgcc $LIBS" 20204cat >conftest.$ac_ext <<_ACEOF 20205/* confdefs.h. */ 20206_ACEOF 20207cat confdefs.h >>conftest.$ac_ext 20208cat >>conftest.$ac_ext <<_ACEOF 20209/* end confdefs.h. */ 20210 20211/* Override any GCC internal prototype to avoid an error. 20212 Use char because int might match the return type of a GCC 20213 builtin and then its argument prototype would still apply. */ 20214#ifdef __cplusplus 20215extern "C" 20216#endif 20217char __lshrdi3 (); 20218int 20219main () 20220{ 20221return __lshrdi3 (); 20222 ; 20223 return 0; 20224} 20225_ACEOF 20226rm -f conftest.$ac_objext conftest$ac_exeext 20227if { (ac_try="$ac_link" 20228case "(($ac_try" in 20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20230 *) ac_try_echo=$ac_try;; 20231esac 20232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20233 (eval "$ac_link") 2>conftest.er1 20234 ac_status=$? 20235 grep -v '^ *+' conftest.er1 >conftest.err 20236 rm -f conftest.er1 20237 cat conftest.err >&5 20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20239 (exit $ac_status); } && 20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20241 { (case "(($ac_try" in 20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20243 *) ac_try_echo=$ac_try;; 20244esac 20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20246 (eval "$ac_try") 2>&5 20247 ac_status=$? 20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20249 (exit $ac_status); }; } && 20250 { ac_try='test -s conftest$ac_exeext' 20251 { (case "(($ac_try" in 20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20253 *) ac_try_echo=$ac_try;; 20254esac 20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20256 (eval "$ac_try") 2>&5 20257 ac_status=$? 20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20259 (exit $ac_status); }; }; then 20260 ac_cv_lib_gcc___lshrdi3=yes 20261else 20262 echo "$as_me: failed program was:" >&5 20263sed 's/^/| /' conftest.$ac_ext >&5 20264 20265 ac_cv_lib_gcc___lshrdi3=no 20266fi 20267 20268rm -f core conftest.err conftest.$ac_objext \ 20269 conftest$ac_exeext conftest.$ac_ext 20270LIBS=$ac_check_lib_save_LIBS 20271fi 20272{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 20273echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 20274if test $ac_cv_lib_gcc___lshrdi3 = yes; then 20275 20276cat >>confdefs.h <<\_ACEOF 20277#define HAVE___LSHRDI3 1 20278_ACEOF 20279 20280fi 20281 20282 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 20283echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 20284if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 20285 echo $ECHO_N "(cached) $ECHO_C" >&6 20286else 20287 ac_check_lib_save_LIBS=$LIBS 20288LIBS="-lgcc $LIBS" 20289cat >conftest.$ac_ext <<_ACEOF 20290/* confdefs.h. */ 20291_ACEOF 20292cat confdefs.h >>conftest.$ac_ext 20293cat >>conftest.$ac_ext <<_ACEOF 20294/* end confdefs.h. */ 20295 20296/* Override any GCC internal prototype to avoid an error. 20297 Use char because int might match the return type of a GCC 20298 builtin and then its argument prototype would still apply. */ 20299#ifdef __cplusplus 20300extern "C" 20301#endif 20302char __moddi3 (); 20303int 20304main () 20305{ 20306return __moddi3 (); 20307 ; 20308 return 0; 20309} 20310_ACEOF 20311rm -f conftest.$ac_objext conftest$ac_exeext 20312if { (ac_try="$ac_link" 20313case "(($ac_try" in 20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20315 *) ac_try_echo=$ac_try;; 20316esac 20317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20318 (eval "$ac_link") 2>conftest.er1 20319 ac_status=$? 20320 grep -v '^ *+' conftest.er1 >conftest.err 20321 rm -f conftest.er1 20322 cat conftest.err >&5 20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20324 (exit $ac_status); } && 20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20326 { (case "(($ac_try" in 20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20328 *) ac_try_echo=$ac_try;; 20329esac 20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20331 (eval "$ac_try") 2>&5 20332 ac_status=$? 20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20334 (exit $ac_status); }; } && 20335 { ac_try='test -s conftest$ac_exeext' 20336 { (case "(($ac_try" in 20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20338 *) ac_try_echo=$ac_try;; 20339esac 20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20341 (eval "$ac_try") 2>&5 20342 ac_status=$? 20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20344 (exit $ac_status); }; }; then 20345 ac_cv_lib_gcc___moddi3=yes 20346else 20347 echo "$as_me: failed program was:" >&5 20348sed 's/^/| /' conftest.$ac_ext >&5 20349 20350 ac_cv_lib_gcc___moddi3=no 20351fi 20352 20353rm -f core conftest.err conftest.$ac_objext \ 20354 conftest$ac_exeext conftest.$ac_ext 20355LIBS=$ac_check_lib_save_LIBS 20356fi 20357{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 20358echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 20359if test $ac_cv_lib_gcc___moddi3 = yes; then 20360 20361cat >>confdefs.h <<\_ACEOF 20362#define HAVE___MODDI3 1 20363_ACEOF 20364 20365fi 20366 20367 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 20368echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 20369if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 20370 echo $ECHO_N "(cached) $ECHO_C" >&6 20371else 20372 ac_check_lib_save_LIBS=$LIBS 20373LIBS="-lgcc $LIBS" 20374cat >conftest.$ac_ext <<_ACEOF 20375/* confdefs.h. */ 20376_ACEOF 20377cat confdefs.h >>conftest.$ac_ext 20378cat >>conftest.$ac_ext <<_ACEOF 20379/* end confdefs.h. */ 20380 20381/* Override any GCC internal prototype to avoid an error. 20382 Use char because int might match the return type of a GCC 20383 builtin and then its argument prototype would still apply. */ 20384#ifdef __cplusplus 20385extern "C" 20386#endif 20387char __udivdi3 (); 20388int 20389main () 20390{ 20391return __udivdi3 (); 20392 ; 20393 return 0; 20394} 20395_ACEOF 20396rm -f conftest.$ac_objext conftest$ac_exeext 20397if { (ac_try="$ac_link" 20398case "(($ac_try" in 20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20400 *) ac_try_echo=$ac_try;; 20401esac 20402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20403 (eval "$ac_link") 2>conftest.er1 20404 ac_status=$? 20405 grep -v '^ *+' conftest.er1 >conftest.err 20406 rm -f conftest.er1 20407 cat conftest.err >&5 20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20409 (exit $ac_status); } && 20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20411 { (case "(($ac_try" in 20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20413 *) ac_try_echo=$ac_try;; 20414esac 20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20416 (eval "$ac_try") 2>&5 20417 ac_status=$? 20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20419 (exit $ac_status); }; } && 20420 { ac_try='test -s conftest$ac_exeext' 20421 { (case "(($ac_try" in 20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20423 *) ac_try_echo=$ac_try;; 20424esac 20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20426 (eval "$ac_try") 2>&5 20427 ac_status=$? 20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20429 (exit $ac_status); }; }; then 20430 ac_cv_lib_gcc___udivdi3=yes 20431else 20432 echo "$as_me: failed program was:" >&5 20433sed 's/^/| /' conftest.$ac_ext >&5 20434 20435 ac_cv_lib_gcc___udivdi3=no 20436fi 20437 20438rm -f core conftest.err conftest.$ac_objext \ 20439 conftest$ac_exeext conftest.$ac_ext 20440LIBS=$ac_check_lib_save_LIBS 20441fi 20442{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 20443echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 20444if test $ac_cv_lib_gcc___udivdi3 = yes; then 20445 20446cat >>confdefs.h <<\_ACEOF 20447#define HAVE___UDIVDI3 1 20448_ACEOF 20449 20450fi 20451 20452 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 20453echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 20454if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 20455 echo $ECHO_N "(cached) $ECHO_C" >&6 20456else 20457 ac_check_lib_save_LIBS=$LIBS 20458LIBS="-lgcc $LIBS" 20459cat >conftest.$ac_ext <<_ACEOF 20460/* confdefs.h. */ 20461_ACEOF 20462cat confdefs.h >>conftest.$ac_ext 20463cat >>conftest.$ac_ext <<_ACEOF 20464/* end confdefs.h. */ 20465 20466/* Override any GCC internal prototype to avoid an error. 20467 Use char because int might match the return type of a GCC 20468 builtin and then its argument prototype would still apply. */ 20469#ifdef __cplusplus 20470extern "C" 20471#endif 20472char __umoddi3 (); 20473int 20474main () 20475{ 20476return __umoddi3 (); 20477 ; 20478 return 0; 20479} 20480_ACEOF 20481rm -f conftest.$ac_objext conftest$ac_exeext 20482if { (ac_try="$ac_link" 20483case "(($ac_try" in 20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20485 *) ac_try_echo=$ac_try;; 20486esac 20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20488 (eval "$ac_link") 2>conftest.er1 20489 ac_status=$? 20490 grep -v '^ *+' conftest.er1 >conftest.err 20491 rm -f conftest.er1 20492 cat conftest.err >&5 20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20494 (exit $ac_status); } && 20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20496 { (case "(($ac_try" in 20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20498 *) ac_try_echo=$ac_try;; 20499esac 20500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20501 (eval "$ac_try") 2>&5 20502 ac_status=$? 20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20504 (exit $ac_status); }; } && 20505 { ac_try='test -s conftest$ac_exeext' 20506 { (case "(($ac_try" in 20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20508 *) ac_try_echo=$ac_try;; 20509esac 20510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20511 (eval "$ac_try") 2>&5 20512 ac_status=$? 20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20514 (exit $ac_status); }; }; then 20515 ac_cv_lib_gcc___umoddi3=yes 20516else 20517 echo "$as_me: failed program was:" >&5 20518sed 's/^/| /' conftest.$ac_ext >&5 20519 20520 ac_cv_lib_gcc___umoddi3=no 20521fi 20522 20523rm -f core conftest.err conftest.$ac_objext \ 20524 conftest$ac_exeext conftest.$ac_ext 20525LIBS=$ac_check_lib_save_LIBS 20526fi 20527{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 20528echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 20529if test $ac_cv_lib_gcc___umoddi3 = yes; then 20530 20531cat >>confdefs.h <<\_ACEOF 20532#define HAVE___UMODDI3 1 20533_ACEOF 20534 20535fi 20536 20537 20538 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 20539echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 20540if test "${ac_cv_lib_gcc___main+set}" = set; then 20541 echo $ECHO_N "(cached) $ECHO_C" >&6 20542else 20543 ac_check_lib_save_LIBS=$LIBS 20544LIBS="-lgcc $LIBS" 20545cat >conftest.$ac_ext <<_ACEOF 20546/* confdefs.h. */ 20547_ACEOF 20548cat confdefs.h >>conftest.$ac_ext 20549cat >>conftest.$ac_ext <<_ACEOF 20550/* end confdefs.h. */ 20551 20552/* Override any GCC internal prototype to avoid an error. 20553 Use char because int might match the return type of a GCC 20554 builtin and then its argument prototype would still apply. */ 20555#ifdef __cplusplus 20556extern "C" 20557#endif 20558char __main (); 20559int 20560main () 20561{ 20562return __main (); 20563 ; 20564 return 0; 20565} 20566_ACEOF 20567rm -f conftest.$ac_objext conftest$ac_exeext 20568if { (ac_try="$ac_link" 20569case "(($ac_try" in 20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20571 *) ac_try_echo=$ac_try;; 20572esac 20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20574 (eval "$ac_link") 2>conftest.er1 20575 ac_status=$? 20576 grep -v '^ *+' conftest.er1 >conftest.err 20577 rm -f conftest.er1 20578 cat conftest.err >&5 20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20580 (exit $ac_status); } && 20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20582 { (case "(($ac_try" in 20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20584 *) ac_try_echo=$ac_try;; 20585esac 20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20587 (eval "$ac_try") 2>&5 20588 ac_status=$? 20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20590 (exit $ac_status); }; } && 20591 { ac_try='test -s conftest$ac_exeext' 20592 { (case "(($ac_try" in 20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20594 *) ac_try_echo=$ac_try;; 20595esac 20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20597 (eval "$ac_try") 2>&5 20598 ac_status=$? 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); }; }; then 20601 ac_cv_lib_gcc___main=yes 20602else 20603 echo "$as_me: failed program was:" >&5 20604sed 's/^/| /' conftest.$ac_ext >&5 20605 20606 ac_cv_lib_gcc___main=no 20607fi 20608 20609rm -f core conftest.err conftest.$ac_objext \ 20610 conftest$ac_exeext conftest.$ac_ext 20611LIBS=$ac_check_lib_save_LIBS 20612fi 20613{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 20614echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 20615if test $ac_cv_lib_gcc___main = yes; then 20616 20617cat >>confdefs.h <<\_ACEOF 20618#define HAVE___MAIN 1 20619_ACEOF 20620 20621fi 20622 20623 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 20624echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 20625if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 20626 echo $ECHO_N "(cached) $ECHO_C" >&6 20627else 20628 ac_check_lib_save_LIBS=$LIBS 20629LIBS="-lgcc $LIBS" 20630cat >conftest.$ac_ext <<_ACEOF 20631/* confdefs.h. */ 20632_ACEOF 20633cat confdefs.h >>conftest.$ac_ext 20634cat >>conftest.$ac_ext <<_ACEOF 20635/* end confdefs.h. */ 20636 20637/* Override any GCC internal prototype to avoid an error. 20638 Use char because int might match the return type of a GCC 20639 builtin and then its argument prototype would still apply. */ 20640#ifdef __cplusplus 20641extern "C" 20642#endif 20643char __cmpdi2 (); 20644int 20645main () 20646{ 20647return __cmpdi2 (); 20648 ; 20649 return 0; 20650} 20651_ACEOF 20652rm -f conftest.$ac_objext conftest$ac_exeext 20653if { (ac_try="$ac_link" 20654case "(($ac_try" in 20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20656 *) ac_try_echo=$ac_try;; 20657esac 20658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20659 (eval "$ac_link") 2>conftest.er1 20660 ac_status=$? 20661 grep -v '^ *+' conftest.er1 >conftest.err 20662 rm -f conftest.er1 20663 cat conftest.err >&5 20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20665 (exit $ac_status); } && 20666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20667 { (case "(($ac_try" in 20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20669 *) ac_try_echo=$ac_try;; 20670esac 20671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20672 (eval "$ac_try") 2>&5 20673 ac_status=$? 20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20675 (exit $ac_status); }; } && 20676 { ac_try='test -s conftest$ac_exeext' 20677 { (case "(($ac_try" in 20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20679 *) ac_try_echo=$ac_try;; 20680esac 20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20682 (eval "$ac_try") 2>&5 20683 ac_status=$? 20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20685 (exit $ac_status); }; }; then 20686 ac_cv_lib_gcc___cmpdi2=yes 20687else 20688 echo "$as_me: failed program was:" >&5 20689sed 's/^/| /' conftest.$ac_ext >&5 20690 20691 ac_cv_lib_gcc___cmpdi2=no 20692fi 20693 20694rm -f core conftest.err conftest.$ac_objext \ 20695 conftest$ac_exeext conftest.$ac_ext 20696LIBS=$ac_check_lib_save_LIBS 20697fi 20698{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 20699echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 20700if test $ac_cv_lib_gcc___cmpdi2 = yes; then 20701 20702cat >>confdefs.h <<\_ACEOF 20703#define HAVE___CMPDI2 1 20704_ACEOF 20705 20706fi 20707 20708fi 20709 20710if test "$llvm_cv_os_type" = "MingW" ; then 20711 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 20712echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 20713 cat >conftest.$ac_ext <<_ACEOF 20714#include <windows.h> 20715#include <imagehlp.h> 20716extern void foo(PENUMLOADED_MODULES_CALLBACK); 20717extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 20718_ACEOF 20719rm -f conftest.$ac_objext 20720if { (ac_try="$ac_compile" 20721case "(($ac_try" in 20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20723 *) ac_try_echo=$ac_try;; 20724esac 20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20726 (eval "$ac_compile") 2>conftest.er1 20727 ac_status=$? 20728 grep -v '^ *+' conftest.er1 >conftest.err 20729 rm -f conftest.er1 20730 cat conftest.err >&5 20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20732 (exit $ac_status); } && 20733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20734 { (case "(($ac_try" in 20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20736 *) ac_try_echo=$ac_try;; 20737esac 20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20739 (eval "$ac_try") 2>&5 20740 ac_status=$? 20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20742 (exit $ac_status); }; } && 20743 { ac_try='test -s conftest.$ac_objext' 20744 { (case "(($ac_try" in 20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20746 *) ac_try_echo=$ac_try;; 20747esac 20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20749 (eval "$ac_try") 2>&5 20750 ac_status=$? 20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20752 (exit $ac_status); }; }; then 20753 20754 { echo "$as_me:$LINENO: result: yes" >&5 20755echo "${ECHO_T}yes" >&6; } 20756 llvm_cv_win32_elmcb_pcstr="PCSTR" 20757 20758else 20759 echo "$as_me: failed program was:" >&5 20760sed 's/^/| /' conftest.$ac_ext >&5 20761 20762 20763 { echo "$as_me:$LINENO: result: no" >&5 20764echo "${ECHO_T}no" >&6; } 20765 llvm_cv_win32_elmcb_pcstr="PSTR" 20766 20767fi 20768 20769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20770 20771cat >>confdefs.h <<_ACEOF 20772#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 20773_ACEOF 20774 20775fi 20776 20777 20778{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20779echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 20780if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20781 echo $ECHO_N "(cached) $ECHO_C" >&6 20782else 20783 ac_ext=cpp 20784ac_cpp='$CXXCPP $CPPFLAGS' 20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20788 20789 cat >conftest.$ac_ext <<_ACEOF 20790/* confdefs.h. */ 20791_ACEOF 20792cat confdefs.h >>conftest.$ac_ext 20793cat >>conftest.$ac_ext <<_ACEOF 20794/* end confdefs.h. */ 20795#include <math.h> 20796int 20797main () 20798{ 20799float f; isnan(f); 20800 ; 20801 return 0; 20802} 20803_ACEOF 20804rm -f conftest.$ac_objext 20805if { (ac_try="$ac_compile" 20806case "(($ac_try" in 20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20808 *) ac_try_echo=$ac_try;; 20809esac 20810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20811 (eval "$ac_compile") 2>conftest.er1 20812 ac_status=$? 20813 grep -v '^ *+' conftest.er1 >conftest.err 20814 rm -f conftest.er1 20815 cat conftest.err >&5 20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20817 (exit $ac_status); } && 20818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20819 { (case "(($ac_try" in 20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20821 *) ac_try_echo=$ac_try;; 20822esac 20823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20824 (eval "$ac_try") 2>&5 20825 ac_status=$? 20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20827 (exit $ac_status); }; } && 20828 { ac_try='test -s conftest.$ac_objext' 20829 { (case "(($ac_try" in 20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20831 *) ac_try_echo=$ac_try;; 20832esac 20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20834 (eval "$ac_try") 2>&5 20835 ac_status=$? 20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20837 (exit $ac_status); }; }; then 20838 ac_cv_func_isnan_in_math_h=yes 20839else 20840 echo "$as_me: failed program was:" >&5 20841sed 's/^/| /' conftest.$ac_ext >&5 20842 20843 ac_cv_func_isnan_in_math_h=no 20844fi 20845 20846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20847 ac_ext=c 20848ac_cpp='$CPP $CPPFLAGS' 20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20851ac_compiler_gnu=$ac_cv_c_compiler_gnu 20852 20853fi 20854{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20855echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 20856 20857 20858if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 20859 20860cat >>confdefs.h <<\_ACEOF 20861#define HAVE_ISNAN_IN_MATH_H 1 20862_ACEOF 20863 20864fi 20865 20866{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20867echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 20868if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20869 echo $ECHO_N "(cached) $ECHO_C" >&6 20870else 20871 ac_ext=cpp 20872ac_cpp='$CXXCPP $CPPFLAGS' 20873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20876 20877 cat >conftest.$ac_ext <<_ACEOF 20878/* confdefs.h. */ 20879_ACEOF 20880cat confdefs.h >>conftest.$ac_ext 20881cat >>conftest.$ac_ext <<_ACEOF 20882/* end confdefs.h. */ 20883#include <cmath> 20884int 20885main () 20886{ 20887float f; isnan(f); 20888 ; 20889 return 0; 20890} 20891_ACEOF 20892rm -f conftest.$ac_objext 20893if { (ac_try="$ac_compile" 20894case "(($ac_try" in 20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20896 *) ac_try_echo=$ac_try;; 20897esac 20898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20899 (eval "$ac_compile") 2>conftest.er1 20900 ac_status=$? 20901 grep -v '^ *+' conftest.er1 >conftest.err 20902 rm -f conftest.er1 20903 cat conftest.err >&5 20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20905 (exit $ac_status); } && 20906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20907 { (case "(($ac_try" in 20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20909 *) ac_try_echo=$ac_try;; 20910esac 20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20912 (eval "$ac_try") 2>&5 20913 ac_status=$? 20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20915 (exit $ac_status); }; } && 20916 { ac_try='test -s conftest.$ac_objext' 20917 { (case "(($ac_try" in 20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20919 *) ac_try_echo=$ac_try;; 20920esac 20921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20922 (eval "$ac_try") 2>&5 20923 ac_status=$? 20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20925 (exit $ac_status); }; }; then 20926 ac_cv_func_isnan_in_cmath=yes 20927else 20928 echo "$as_me: failed program was:" >&5 20929sed 's/^/| /' conftest.$ac_ext >&5 20930 20931 ac_cv_func_isnan_in_cmath=no 20932fi 20933 20934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20935 ac_ext=c 20936ac_cpp='$CPP $CPPFLAGS' 20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20939ac_compiler_gnu=$ac_cv_c_compiler_gnu 20940 20941fi 20942{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20943echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20944 20945if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20946 20947cat >>confdefs.h <<\_ACEOF 20948#define HAVE_ISNAN_IN_CMATH 1 20949_ACEOF 20950 20951fi 20952 20953{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20954echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20955if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20956 echo $ECHO_N "(cached) $ECHO_C" >&6 20957else 20958 ac_ext=cpp 20959ac_cpp='$CXXCPP $CPPFLAGS' 20960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20963 20964 cat >conftest.$ac_ext <<_ACEOF 20965/* confdefs.h. */ 20966_ACEOF 20967cat confdefs.h >>conftest.$ac_ext 20968cat >>conftest.$ac_ext <<_ACEOF 20969/* end confdefs.h. */ 20970#include <cmath> 20971int 20972main () 20973{ 20974float f; std::isnan(f); 20975 ; 20976 return 0; 20977} 20978_ACEOF 20979rm -f conftest.$ac_objext 20980if { (ac_try="$ac_compile" 20981case "(($ac_try" in 20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20983 *) ac_try_echo=$ac_try;; 20984esac 20985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20986 (eval "$ac_compile") 2>conftest.er1 20987 ac_status=$? 20988 grep -v '^ *+' conftest.er1 >conftest.err 20989 rm -f conftest.er1 20990 cat conftest.err >&5 20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20992 (exit $ac_status); } && 20993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20994 { (case "(($ac_try" in 20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20996 *) ac_try_echo=$ac_try;; 20997esac 20998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20999 (eval "$ac_try") 2>&5 21000 ac_status=$? 21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21002 (exit $ac_status); }; } && 21003 { ac_try='test -s conftest.$ac_objext' 21004 { (case "(($ac_try" in 21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21006 *) ac_try_echo=$ac_try;; 21007esac 21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21009 (eval "$ac_try") 2>&5 21010 ac_status=$? 21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21012 (exit $ac_status); }; }; then 21013 ac_cv_func_std_isnan_in_cmath=yes 21014else 21015 echo "$as_me: failed program was:" >&5 21016sed 's/^/| /' conftest.$ac_ext >&5 21017 21018 ac_cv_func_std_isnan_in_cmath=no 21019fi 21020 21021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21022 ac_ext=c 21023ac_cpp='$CPP $CPPFLAGS' 21024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21026ac_compiler_gnu=$ac_cv_c_compiler_gnu 21027 21028fi 21029{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 21030echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 21031 21032if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 21033 21034cat >>confdefs.h <<\_ACEOF 21035#define HAVE_STD_ISNAN_IN_CMATH 1 21036_ACEOF 21037 21038fi 21039 21040 21041{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 21042echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 21043if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 21044 echo $ECHO_N "(cached) $ECHO_C" >&6 21045else 21046 ac_ext=cpp 21047ac_cpp='$CXXCPP $CPPFLAGS' 21048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21051 21052 cat >conftest.$ac_ext <<_ACEOF 21053/* confdefs.h. */ 21054_ACEOF 21055cat confdefs.h >>conftest.$ac_ext 21056cat >>conftest.$ac_ext <<_ACEOF 21057/* end confdefs.h. */ 21058#include <math.h> 21059int 21060main () 21061{ 21062float f; isinf(f); 21063 ; 21064 return 0; 21065} 21066_ACEOF 21067rm -f conftest.$ac_objext 21068if { (ac_try="$ac_compile" 21069case "(($ac_try" in 21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21071 *) ac_try_echo=$ac_try;; 21072esac 21073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21074 (eval "$ac_compile") 2>conftest.er1 21075 ac_status=$? 21076 grep -v '^ *+' conftest.er1 >conftest.err 21077 rm -f conftest.er1 21078 cat conftest.err >&5 21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21080 (exit $ac_status); } && 21081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21082 { (case "(($ac_try" in 21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21084 *) ac_try_echo=$ac_try;; 21085esac 21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21087 (eval "$ac_try") 2>&5 21088 ac_status=$? 21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21090 (exit $ac_status); }; } && 21091 { ac_try='test -s conftest.$ac_objext' 21092 { (case "(($ac_try" in 21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21094 *) ac_try_echo=$ac_try;; 21095esac 21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21097 (eval "$ac_try") 2>&5 21098 ac_status=$? 21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21100 (exit $ac_status); }; }; then 21101 ac_cv_func_isinf_in_math_h=yes 21102else 21103 echo "$as_me: failed program was:" >&5 21104sed 's/^/| /' conftest.$ac_ext >&5 21105 21106 ac_cv_func_isinf_in_math_h=no 21107fi 21108 21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21110 ac_ext=c 21111ac_cpp='$CPP $CPPFLAGS' 21112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21114ac_compiler_gnu=$ac_cv_c_compiler_gnu 21115 21116fi 21117{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 21118echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 21119 21120if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 21121 21122cat >>confdefs.h <<\_ACEOF 21123#define HAVE_ISINF_IN_MATH_H 1 21124_ACEOF 21125 21126fi 21127 21128{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 21129echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 21130if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 21131 echo $ECHO_N "(cached) $ECHO_C" >&6 21132else 21133 ac_ext=cpp 21134ac_cpp='$CXXCPP $CPPFLAGS' 21135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21138 21139 cat >conftest.$ac_ext <<_ACEOF 21140/* confdefs.h. */ 21141_ACEOF 21142cat confdefs.h >>conftest.$ac_ext 21143cat >>conftest.$ac_ext <<_ACEOF 21144/* end confdefs.h. */ 21145#include <cmath> 21146int 21147main () 21148{ 21149float f; isinf(f); 21150 ; 21151 return 0; 21152} 21153_ACEOF 21154rm -f conftest.$ac_objext 21155if { (ac_try="$ac_compile" 21156case "(($ac_try" in 21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21158 *) ac_try_echo=$ac_try;; 21159esac 21160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21161 (eval "$ac_compile") 2>conftest.er1 21162 ac_status=$? 21163 grep -v '^ *+' conftest.er1 >conftest.err 21164 rm -f conftest.er1 21165 cat conftest.err >&5 21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21167 (exit $ac_status); } && 21168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21169 { (case "(($ac_try" in 21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21171 *) ac_try_echo=$ac_try;; 21172esac 21173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21174 (eval "$ac_try") 2>&5 21175 ac_status=$? 21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21177 (exit $ac_status); }; } && 21178 { ac_try='test -s conftest.$ac_objext' 21179 { (case "(($ac_try" in 21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21181 *) ac_try_echo=$ac_try;; 21182esac 21183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21184 (eval "$ac_try") 2>&5 21185 ac_status=$? 21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21187 (exit $ac_status); }; }; then 21188 ac_cv_func_isinf_in_cmath=yes 21189else 21190 echo "$as_me: failed program was:" >&5 21191sed 's/^/| /' conftest.$ac_ext >&5 21192 21193 ac_cv_func_isinf_in_cmath=no 21194fi 21195 21196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21197 ac_ext=c 21198ac_cpp='$CPP $CPPFLAGS' 21199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21201ac_compiler_gnu=$ac_cv_c_compiler_gnu 21202 21203fi 21204{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 21205echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 21206 21207if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 21208 21209cat >>confdefs.h <<\_ACEOF 21210#define HAVE_ISINF_IN_CMATH 1 21211_ACEOF 21212 21213fi 21214 21215{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 21216echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 21217if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 21218 echo $ECHO_N "(cached) $ECHO_C" >&6 21219else 21220 ac_ext=cpp 21221ac_cpp='$CXXCPP $CPPFLAGS' 21222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21225 21226 cat >conftest.$ac_ext <<_ACEOF 21227/* confdefs.h. */ 21228_ACEOF 21229cat confdefs.h >>conftest.$ac_ext 21230cat >>conftest.$ac_ext <<_ACEOF 21231/* end confdefs.h. */ 21232#include <cmath> 21233int 21234main () 21235{ 21236float f; std::isinf(f)} 21237 ; 21238 return 0; 21239} 21240_ACEOF 21241rm -f conftest.$ac_objext 21242if { (ac_try="$ac_compile" 21243case "(($ac_try" in 21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21245 *) ac_try_echo=$ac_try;; 21246esac 21247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21248 (eval "$ac_compile") 2>conftest.er1 21249 ac_status=$? 21250 grep -v '^ *+' conftest.er1 >conftest.err 21251 rm -f conftest.er1 21252 cat conftest.err >&5 21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21254 (exit $ac_status); } && 21255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21256 { (case "(($ac_try" in 21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21258 *) ac_try_echo=$ac_try;; 21259esac 21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21261 (eval "$ac_try") 2>&5 21262 ac_status=$? 21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21264 (exit $ac_status); }; } && 21265 { ac_try='test -s conftest.$ac_objext' 21266 { (case "(($ac_try" in 21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21268 *) ac_try_echo=$ac_try;; 21269esac 21270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21271 (eval "$ac_try") 2>&5 21272 ac_status=$? 21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21274 (exit $ac_status); }; }; then 21275 ac_cv_func_std_isinf_in_cmath=yes 21276else 21277 echo "$as_me: failed program was:" >&5 21278sed 's/^/| /' conftest.$ac_ext >&5 21279 21280 ac_cv_func_std_isinf_in_cmath=no 21281fi 21282 21283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21284 ac_ext=c 21285ac_cpp='$CPP $CPPFLAGS' 21286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21288ac_compiler_gnu=$ac_cv_c_compiler_gnu 21289 21290fi 21291{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 21292echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 21293 21294if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 21295 21296cat >>confdefs.h <<\_ACEOF 21297#define HAVE_STD_ISINF_IN_CMATH 1 21298_ACEOF 21299 21300fi 21301 21302{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 21303echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 21304if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 21305 echo $ECHO_N "(cached) $ECHO_C" >&6 21306else 21307 ac_ext=cpp 21308ac_cpp='$CXXCPP $CPPFLAGS' 21309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21312 21313 cat >conftest.$ac_ext <<_ACEOF 21314/* confdefs.h. */ 21315_ACEOF 21316cat confdefs.h >>conftest.$ac_ext 21317cat >>conftest.$ac_ext <<_ACEOF 21318/* end confdefs.h. */ 21319#include <ieeefp.h> 21320int 21321main () 21322{ 21323float f; finite(f); 21324 ; 21325 return 0; 21326} 21327_ACEOF 21328rm -f conftest.$ac_objext 21329if { (ac_try="$ac_compile" 21330case "(($ac_try" in 21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21332 *) ac_try_echo=$ac_try;; 21333esac 21334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21335 (eval "$ac_compile") 2>conftest.er1 21336 ac_status=$? 21337 grep -v '^ *+' conftest.er1 >conftest.err 21338 rm -f conftest.er1 21339 cat conftest.err >&5 21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21341 (exit $ac_status); } && 21342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21343 { (case "(($ac_try" in 21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21345 *) ac_try_echo=$ac_try;; 21346esac 21347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21348 (eval "$ac_try") 2>&5 21349 ac_status=$? 21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21351 (exit $ac_status); }; } && 21352 { ac_try='test -s conftest.$ac_objext' 21353 { (case "(($ac_try" in 21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21355 *) ac_try_echo=$ac_try;; 21356esac 21357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21358 (eval "$ac_try") 2>&5 21359 ac_status=$? 21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21361 (exit $ac_status); }; }; then 21362 ac_cv_func_finite_in_ieeefp_h=yes 21363else 21364 echo "$as_me: failed program was:" >&5 21365sed 's/^/| /' conftest.$ac_ext >&5 21366 21367 ac_cv_func_finite_in_ieeefp_h=no 21368fi 21369 21370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21371 ac_ext=c 21372ac_cpp='$CPP $CPPFLAGS' 21373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21375ac_compiler_gnu=$ac_cv_c_compiler_gnu 21376 21377fi 21378{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 21379echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 21380 21381if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 21382 21383cat >>confdefs.h <<\_ACEOF 21384#define HAVE_FINITE_IN_IEEEFP_H 1 21385_ACEOF 21386 21387fi 21388 21389 21390 21391if test "$llvm_cv_platform_type" = "Unix" ; then 21392 21393 21394for ac_header in stdlib.h unistd.h 21395do 21396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21398 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21401 echo $ECHO_N "(cached) $ECHO_C" >&6 21402fi 21403ac_res=`eval echo '${'$as_ac_Header'}'` 21404 { echo "$as_me:$LINENO: result: $ac_res" >&5 21405echo "${ECHO_T}$ac_res" >&6; } 21406else 21407 # Is the header compilable? 21408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21410cat >conftest.$ac_ext <<_ACEOF 21411/* confdefs.h. */ 21412_ACEOF 21413cat confdefs.h >>conftest.$ac_ext 21414cat >>conftest.$ac_ext <<_ACEOF 21415/* end confdefs.h. */ 21416$ac_includes_default 21417#include <$ac_header> 21418_ACEOF 21419rm -f conftest.$ac_objext 21420if { (ac_try="$ac_compile" 21421case "(($ac_try" in 21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21423 *) ac_try_echo=$ac_try;; 21424esac 21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21426 (eval "$ac_compile") 2>conftest.er1 21427 ac_status=$? 21428 grep -v '^ *+' conftest.er1 >conftest.err 21429 rm -f conftest.er1 21430 cat conftest.err >&5 21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21432 (exit $ac_status); } && 21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21434 { (case "(($ac_try" in 21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21436 *) ac_try_echo=$ac_try;; 21437esac 21438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21439 (eval "$ac_try") 2>&5 21440 ac_status=$? 21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21442 (exit $ac_status); }; } && 21443 { ac_try='test -s conftest.$ac_objext' 21444 { (case "(($ac_try" in 21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21446 *) ac_try_echo=$ac_try;; 21447esac 21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21449 (eval "$ac_try") 2>&5 21450 ac_status=$? 21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21452 (exit $ac_status); }; }; then 21453 ac_header_compiler=yes 21454else 21455 echo "$as_me: failed program was:" >&5 21456sed 's/^/| /' conftest.$ac_ext >&5 21457 21458 ac_header_compiler=no 21459fi 21460 21461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21463echo "${ECHO_T}$ac_header_compiler" >&6; } 21464 21465# Is the header present? 21466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21468cat >conftest.$ac_ext <<_ACEOF 21469/* confdefs.h. */ 21470_ACEOF 21471cat confdefs.h >>conftest.$ac_ext 21472cat >>conftest.$ac_ext <<_ACEOF 21473/* end confdefs.h. */ 21474#include <$ac_header> 21475_ACEOF 21476if { (ac_try="$ac_cpp conftest.$ac_ext" 21477case "(($ac_try" in 21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21479 *) ac_try_echo=$ac_try;; 21480esac 21481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21483 ac_status=$? 21484 grep -v '^ *+' conftest.er1 >conftest.err 21485 rm -f conftest.er1 21486 cat conftest.err >&5 21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21488 (exit $ac_status); } >/dev/null; then 21489 if test -s conftest.err; then 21490 ac_cpp_err=$ac_c_preproc_warn_flag 21491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21492 else 21493 ac_cpp_err= 21494 fi 21495else 21496 ac_cpp_err=yes 21497fi 21498if test -z "$ac_cpp_err"; then 21499 ac_header_preproc=yes 21500else 21501 echo "$as_me: failed program was:" >&5 21502sed 's/^/| /' conftest.$ac_ext >&5 21503 21504 ac_header_preproc=no 21505fi 21506 21507rm -f conftest.err conftest.$ac_ext 21508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21509echo "${ECHO_T}$ac_header_preproc" >&6; } 21510 21511# So? What about this header? 21512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21513 yes:no: ) 21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21518 ac_header_preproc=yes 21519 ;; 21520 no:yes:* ) 21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21533 ( cat <<\_ASBOX 21534## ----------------------------------- ## 21535## Report this to llvmbugs@cs.uiuc.edu ## 21536## ----------------------------------- ## 21537_ASBOX 21538 ) | sed "s/^/$as_me: WARNING: /" >&2 21539 ;; 21540esac 21541{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21544 echo $ECHO_N "(cached) $ECHO_C" >&6 21545else 21546 eval "$as_ac_Header=\$ac_header_preproc" 21547fi 21548ac_res=`eval echo '${'$as_ac_Header'}'` 21549 { echo "$as_me:$LINENO: result: $ac_res" >&5 21550echo "${ECHO_T}$ac_res" >&6; } 21551 21552fi 21553if test `eval echo '${'$as_ac_Header'}'` = yes; then 21554 cat >>confdefs.h <<_ACEOF 21555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21556_ACEOF 21557 21558fi 21559 21560done 21561 21562 21563for ac_func in getpagesize 21564do 21565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21566{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21569 echo $ECHO_N "(cached) $ECHO_C" >&6 21570else 21571 cat >conftest.$ac_ext <<_ACEOF 21572/* confdefs.h. */ 21573_ACEOF 21574cat confdefs.h >>conftest.$ac_ext 21575cat >>conftest.$ac_ext <<_ACEOF 21576/* end confdefs.h. */ 21577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21578 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21579#define $ac_func innocuous_$ac_func 21580 21581/* System header to define __stub macros and hopefully few prototypes, 21582 which can conflict with char $ac_func (); below. 21583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21584 <limits.h> exists even on freestanding compilers. */ 21585 21586#ifdef __STDC__ 21587# include <limits.h> 21588#else 21589# include <assert.h> 21590#endif 21591 21592#undef $ac_func 21593 21594/* Override any GCC internal prototype to avoid an error. 21595 Use char because int might match the return type of a GCC 21596 builtin and then its argument prototype would still apply. */ 21597#ifdef __cplusplus 21598extern "C" 21599#endif 21600char $ac_func (); 21601/* The GNU C library defines this for functions which it implements 21602 to always fail with ENOSYS. Some functions are actually named 21603 something starting with __ and the normal name is an alias. */ 21604#if defined __stub_$ac_func || defined __stub___$ac_func 21605choke me 21606#endif 21607 21608int 21609main () 21610{ 21611return $ac_func (); 21612 ; 21613 return 0; 21614} 21615_ACEOF 21616rm -f conftest.$ac_objext conftest$ac_exeext 21617if { (ac_try="$ac_link" 21618case "(($ac_try" in 21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21620 *) ac_try_echo=$ac_try;; 21621esac 21622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21623 (eval "$ac_link") 2>conftest.er1 21624 ac_status=$? 21625 grep -v '^ *+' conftest.er1 >conftest.err 21626 rm -f conftest.er1 21627 cat conftest.err >&5 21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21629 (exit $ac_status); } && 21630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21631 { (case "(($ac_try" in 21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21633 *) ac_try_echo=$ac_try;; 21634esac 21635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21636 (eval "$ac_try") 2>&5 21637 ac_status=$? 21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21639 (exit $ac_status); }; } && 21640 { ac_try='test -s conftest$ac_exeext' 21641 { (case "(($ac_try" in 21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21643 *) ac_try_echo=$ac_try;; 21644esac 21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21646 (eval "$ac_try") 2>&5 21647 ac_status=$? 21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21649 (exit $ac_status); }; }; then 21650 eval "$as_ac_var=yes" 21651else 21652 echo "$as_me: failed program was:" >&5 21653sed 's/^/| /' conftest.$ac_ext >&5 21654 21655 eval "$as_ac_var=no" 21656fi 21657 21658rm -f core conftest.err conftest.$ac_objext \ 21659 conftest$ac_exeext conftest.$ac_ext 21660fi 21661ac_res=`eval echo '${'$as_ac_var'}'` 21662 { echo "$as_me:$LINENO: result: $ac_res" >&5 21663echo "${ECHO_T}$ac_res" >&6; } 21664if test `eval echo '${'$as_ac_var'}'` = yes; then 21665 cat >>confdefs.h <<_ACEOF 21666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21667_ACEOF 21668 21669fi 21670done 21671 21672{ echo "$as_me:$LINENO: checking for working mmap" >&5 21673echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21674if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21675 echo $ECHO_N "(cached) $ECHO_C" >&6 21676else 21677 if test "$cross_compiling" = yes; then 21678 ac_cv_func_mmap_fixed_mapped=no 21679else 21680 cat >conftest.$ac_ext <<_ACEOF 21681/* confdefs.h. */ 21682_ACEOF 21683cat confdefs.h >>conftest.$ac_ext 21684cat >>conftest.$ac_ext <<_ACEOF 21685/* end confdefs.h. */ 21686$ac_includes_default 21687/* malloc might have been renamed as rpl_malloc. */ 21688#undef malloc 21689 21690/* Thanks to Mike Haertel and Jim Avera for this test. 21691 Here is a matrix of mmap possibilities: 21692 mmap private not fixed 21693 mmap private fixed at somewhere currently unmapped 21694 mmap private fixed at somewhere already mapped 21695 mmap shared not fixed 21696 mmap shared fixed at somewhere currently unmapped 21697 mmap shared fixed at somewhere already mapped 21698 For private mappings, we should verify that changes cannot be read() 21699 back from the file, nor mmap's back from the file at a different 21700 address. (There have been systems where private was not correctly 21701 implemented like the infamous i386 svr4.0, and systems where the 21702 VM page cache was not coherent with the file system buffer cache 21703 like early versions of FreeBSD and possibly contemporary NetBSD.) 21704 For shared mappings, we should conversely verify that changes get 21705 propagated back to all the places they're supposed to be. 21706 21707 Grep wants private fixed already mapped. 21708 The main things grep needs to know about mmap are: 21709 * does it exist and is it safe to write into the mmap'd area 21710 * how to use it (BSD variants) */ 21711 21712#include <fcntl.h> 21713#include <sys/mman.h> 21714 21715#if !STDC_HEADERS && !HAVE_STDLIB_H 21716char *malloc (); 21717#endif 21718 21719/* This mess was copied from the GNU getpagesize.h. */ 21720#if !HAVE_GETPAGESIZE 21721/* Assume that all systems that can run configure have sys/param.h. */ 21722# if !HAVE_SYS_PARAM_H 21723# define HAVE_SYS_PARAM_H 1 21724# endif 21725 21726# ifdef _SC_PAGESIZE 21727# define getpagesize() sysconf(_SC_PAGESIZE) 21728# else /* no _SC_PAGESIZE */ 21729# if HAVE_SYS_PARAM_H 21730# include <sys/param.h> 21731# ifdef EXEC_PAGESIZE 21732# define getpagesize() EXEC_PAGESIZE 21733# else /* no EXEC_PAGESIZE */ 21734# ifdef NBPG 21735# define getpagesize() NBPG * CLSIZE 21736# ifndef CLSIZE 21737# define CLSIZE 1 21738# endif /* no CLSIZE */ 21739# else /* no NBPG */ 21740# ifdef NBPC 21741# define getpagesize() NBPC 21742# else /* no NBPC */ 21743# ifdef PAGESIZE 21744# define getpagesize() PAGESIZE 21745# endif /* PAGESIZE */ 21746# endif /* no NBPC */ 21747# endif /* no NBPG */ 21748# endif /* no EXEC_PAGESIZE */ 21749# else /* no HAVE_SYS_PARAM_H */ 21750# define getpagesize() 8192 /* punt totally */ 21751# endif /* no HAVE_SYS_PARAM_H */ 21752# endif /* no _SC_PAGESIZE */ 21753 21754#endif /* no HAVE_GETPAGESIZE */ 21755 21756int 21757main () 21758{ 21759 char *data, *data2, *data3; 21760 int i, pagesize; 21761 int fd; 21762 21763 pagesize = getpagesize (); 21764 21765 /* First, make a file with some known garbage in it. */ 21766 data = (char *) malloc (pagesize); 21767 if (!data) 21768 return 1; 21769 for (i = 0; i < pagesize; ++i) 21770 *(data + i) = rand (); 21771 umask (0); 21772 fd = creat ("conftest.mmap", 0600); 21773 if (fd < 0) 21774 return 1; 21775 if (write (fd, data, pagesize) != pagesize) 21776 return 1; 21777 close (fd); 21778 21779 /* Next, try to mmap the file at a fixed address which already has 21780 something else allocated at it. If we can, also make sure that 21781 we see the same garbage. */ 21782 fd = open ("conftest.mmap", O_RDWR); 21783 if (fd < 0) 21784 return 1; 21785 data2 = (char *) malloc (2 * pagesize); 21786 if (!data2) 21787 return 1; 21788 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21790 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21791 return 1; 21792 for (i = 0; i < pagesize; ++i) 21793 if (*(data + i) != *(data2 + i)) 21794 return 1; 21795 21796 /* Finally, make sure that changes to the mapped area do not 21797 percolate back to the file as seen by read(). (This is a bug on 21798 some variants of i386 svr4.0.) */ 21799 for (i = 0; i < pagesize; ++i) 21800 *(data2 + i) = *(data2 + i) + 1; 21801 data3 = (char *) malloc (pagesize); 21802 if (!data3) 21803 return 1; 21804 if (read (fd, data3, pagesize) != pagesize) 21805 return 1; 21806 for (i = 0; i < pagesize; ++i) 21807 if (*(data + i) != *(data3 + i)) 21808 return 1; 21809 close (fd); 21810 return 0; 21811} 21812_ACEOF 21813rm -f conftest$ac_exeext 21814if { (ac_try="$ac_link" 21815case "(($ac_try" in 21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21817 *) ac_try_echo=$ac_try;; 21818esac 21819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21820 (eval "$ac_link") 2>&5 21821 ac_status=$? 21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21824 { (case "(($ac_try" in 21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21826 *) ac_try_echo=$ac_try;; 21827esac 21828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21829 (eval "$ac_try") 2>&5 21830 ac_status=$? 21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21832 (exit $ac_status); }; }; then 21833 ac_cv_func_mmap_fixed_mapped=yes 21834else 21835 echo "$as_me: program exited with status $ac_status" >&5 21836echo "$as_me: failed program was:" >&5 21837sed 's/^/| /' conftest.$ac_ext >&5 21838 21839( exit $ac_status ) 21840ac_cv_func_mmap_fixed_mapped=no 21841fi 21842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21843fi 21844 21845 21846fi 21847{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21848echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21849if test $ac_cv_func_mmap_fixed_mapped = yes; then 21850 21851cat >>confdefs.h <<\_ACEOF 21852#define HAVE_MMAP 1 21853_ACEOF 21854 21855fi 21856rm -f conftest.mmap 21857 21858 { echo "$as_me:$LINENO: checking for mmap of files" >&5 21859echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 21860if test "${ac_cv_func_mmap_file+set}" = set; then 21861 echo $ECHO_N "(cached) $ECHO_C" >&6 21862else 21863 ac_ext=c 21864ac_cpp='$CPP $CPPFLAGS' 21865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21867ac_compiler_gnu=$ac_cv_c_compiler_gnu 21868 21869 if test "$cross_compiling" = yes; then 21870 ac_cv_func_mmap_file=no 21871else 21872 cat >conftest.$ac_ext <<_ACEOF 21873 21874 /* confdefs.h. */ 21875_ACEOF 21876cat confdefs.h >>conftest.$ac_ext 21877cat >>conftest.$ac_ext <<_ACEOF 21878/* end confdefs.h. */ 21879 21880#include <sys/types.h> 21881#include <sys/mman.h> 21882#include <fcntl.h> 21883 21884int 21885main () 21886{ 21887 21888 int fd; 21889 fd = creat ("foo",0777); 21890 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 21891 unlink ("foo"); 21892 return (fd != (int) MAP_FAILED); 21893 ; 21894 return 0; 21895} 21896_ACEOF 21897rm -f conftest$ac_exeext 21898if { (ac_try="$ac_link" 21899case "(($ac_try" in 21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21901 *) ac_try_echo=$ac_try;; 21902esac 21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21904 (eval "$ac_link") 2>&5 21905 ac_status=$? 21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21908 { (case "(($ac_try" in 21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21910 *) ac_try_echo=$ac_try;; 21911esac 21912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21913 (eval "$ac_try") 2>&5 21914 ac_status=$? 21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21916 (exit $ac_status); }; }; then 21917 ac_cv_func_mmap_file=yes 21918else 21919 echo "$as_me: program exited with status $ac_status" >&5 21920echo "$as_me: failed program was:" >&5 21921sed 's/^/| /' conftest.$ac_ext >&5 21922 21923( exit $ac_status ) 21924ac_cv_func_mmap_file=no 21925fi 21926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21927fi 21928 21929 21930 ac_ext=c 21931ac_cpp='$CPP $CPPFLAGS' 21932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21934ac_compiler_gnu=$ac_cv_c_compiler_gnu 21935 21936 21937fi 21938{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21939echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21940if test "$ac_cv_func_mmap_file" = yes; then 21941 21942cat >>confdefs.h <<\_ACEOF 21943#define HAVE_MMAP_FILE 21944_ACEOF 21945 21946 MMAP_FILE=yes 21947 21948fi 21949 21950 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21951echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21952if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21953 echo $ECHO_N "(cached) $ECHO_C" >&6 21954else 21955 if test "$llvm_cv_os_type" = "Interix" ; then 21956 ac_cv_need_dev_zero_for_mmap=yes 21957 else 21958 ac_cv_need_dev_zero_for_mmap=no 21959 fi 21960 21961fi 21962{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21963echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21964if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21965 21966cat >>confdefs.h <<\_ACEOF 21967#define NEED_DEV_ZERO_FOR_MMAP 1 21968_ACEOF 21969 21970fi 21971 21972 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21973 then 21974 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21975echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21976 fi 21977 if test "$ac_cv_func_mmap_file" = "no" 21978 then 21979 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21980echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21981 fi 21982fi 21983 21984{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21985echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21986ac_ext=cpp 21987ac_cpp='$CXXCPP $CPPFLAGS' 21988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21991 21992cat >conftest.$ac_ext <<_ACEOF 21993/* confdefs.h. */ 21994_ACEOF 21995cat confdefs.h >>conftest.$ac_ext 21996cat >>conftest.$ac_ext <<_ACEOF 21997/* end confdefs.h. */ 21998int main() { 21999 volatile unsigned long val = 1; 22000 __sync_synchronize(); 22001 __sync_val_compare_and_swap(&val, 1, 0); 22002 __sync_add_and_fetch(&val, 1); 22003 __sync_sub_and_fetch(&val, 1); 22004 return 0; 22005 } 22006 22007_ACEOF 22008rm -f conftest.$ac_objext conftest$ac_exeext 22009if { (ac_try="$ac_link" 22010case "(($ac_try" in 22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22012 *) ac_try_echo=$ac_try;; 22013esac 22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22015 (eval "$ac_link") 2>conftest.er1 22016 ac_status=$? 22017 grep -v '^ *+' conftest.er1 >conftest.err 22018 rm -f conftest.er1 22019 cat conftest.err >&5 22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22021 (exit $ac_status); } && 22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22023 { (case "(($ac_try" in 22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22025 *) ac_try_echo=$ac_try;; 22026esac 22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22028 (eval "$ac_try") 2>&5 22029 ac_status=$? 22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22031 (exit $ac_status); }; } && 22032 { ac_try='test -s conftest$ac_exeext' 22033 { (case "(($ac_try" in 22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22035 *) ac_try_echo=$ac_try;; 22036esac 22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22038 (eval "$ac_try") 2>&5 22039 ac_status=$? 22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22041 (exit $ac_status); }; }; then 22042 ac_ext=c 22043ac_cpp='$CPP $CPPFLAGS' 22044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22046ac_compiler_gnu=$ac_cv_c_compiler_gnu 22047 22048 { echo "$as_me:$LINENO: result: yes" >&5 22049echo "${ECHO_T}yes" >&6; } 22050 22051cat >>confdefs.h <<\_ACEOF 22052#define LLVM_MULTITHREADED 1 22053_ACEOF 22054 22055else 22056 echo "$as_me: failed program was:" >&5 22057sed 's/^/| /' conftest.$ac_ext >&5 22058 22059 { echo "$as_me:$LINENO: result: no" >&5 22060echo "${ECHO_T}no" >&6; } 22061 22062cat >>confdefs.h <<\_ACEOF 22063#define LLVM_MULTITHREADED 0 22064_ACEOF 22065 22066 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 22067echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 22068fi 22069 22070rm -f core conftest.err conftest.$ac_objext \ 22071 conftest$ac_exeext conftest.$ac_ext 22072 22073 22074if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 22075 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 22076echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 22077if test "${llvm_cv_linux_mixed+set}" = set; then 22078 echo $ECHO_N "(cached) $ECHO_C" >&6 22079else 22080 ac_ext=c 22081ac_cpp='$CPP $CPPFLAGS' 22082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22084ac_compiler_gnu=$ac_cv_c_compiler_gnu 22085 22086 cat >conftest.$ac_ext <<_ACEOF 22087/* confdefs.h. */ 22088_ACEOF 22089cat confdefs.h >>conftest.$ac_ext 22090cat >>conftest.$ac_ext <<_ACEOF 22091/* end confdefs.h. */ 22092#ifndef __x86_64__ 22093 error: Not x86-64 even if uname says so! 22094 #endif 22095 22096int 22097main () 22098{ 22099 22100 ; 22101 return 0; 22102} 22103_ACEOF 22104rm -f conftest.$ac_objext 22105if { (ac_try="$ac_compile" 22106case "(($ac_try" in 22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22108 *) ac_try_echo=$ac_try;; 22109esac 22110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22111 (eval "$ac_compile") 2>conftest.er1 22112 ac_status=$? 22113 grep -v '^ *+' conftest.er1 >conftest.err 22114 rm -f conftest.er1 22115 cat conftest.err >&5 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); } && 22118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22119 { (case "(($ac_try" in 22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22121 *) ac_try_echo=$ac_try;; 22122esac 22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22124 (eval "$ac_try") 2>&5 22125 ac_status=$? 22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22127 (exit $ac_status); }; } && 22128 { ac_try='test -s conftest.$ac_objext' 22129 { (case "(($ac_try" in 22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22131 *) ac_try_echo=$ac_try;; 22132esac 22133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22134 (eval "$ac_try") 2>&5 22135 ac_status=$? 22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22137 (exit $ac_status); }; }; then 22138 llvm_cv_linux_mixed=no 22139else 22140 echo "$as_me: failed program was:" >&5 22141sed 's/^/| /' conftest.$ac_ext >&5 22142 22143 llvm_cv_linux_mixed=yes 22144fi 22145 22146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22147 ac_ext=c 22148ac_cpp='$CPP $CPPFLAGS' 22149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22151ac_compiler_gnu=$ac_cv_c_compiler_gnu 22152 22153 22154fi 22155{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 22156echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 22157 22158 if test "$llvm_cv_linux_mixed" = "yes"; then 22159 llvm_cv_target_arch="x86" 22160 ARCH="x86" 22161 fi 22162fi 22163 22164 22165for ac_func in __dso_handle 22166do 22167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22168{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22171 echo $ECHO_N "(cached) $ECHO_C" >&6 22172else 22173 cat >conftest.$ac_ext <<_ACEOF 22174/* confdefs.h. */ 22175_ACEOF 22176cat confdefs.h >>conftest.$ac_ext 22177cat >>conftest.$ac_ext <<_ACEOF 22178/* end confdefs.h. */ 22179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22180 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22181#define $ac_func innocuous_$ac_func 22182 22183/* System header to define __stub macros and hopefully few prototypes, 22184 which can conflict with char $ac_func (); below. 22185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22186 <limits.h> exists even on freestanding compilers. */ 22187 22188#ifdef __STDC__ 22189# include <limits.h> 22190#else 22191# include <assert.h> 22192#endif 22193 22194#undef $ac_func 22195 22196/* Override any GCC internal prototype to avoid an error. 22197 Use char because int might match the return type of a GCC 22198 builtin and then its argument prototype would still apply. */ 22199#ifdef __cplusplus 22200extern "C" 22201#endif 22202char $ac_func (); 22203/* The GNU C library defines this for functions which it implements 22204 to always fail with ENOSYS. Some functions are actually named 22205 something starting with __ and the normal name is an alias. */ 22206#if defined __stub_$ac_func || defined __stub___$ac_func 22207choke me 22208#endif 22209 22210int 22211main () 22212{ 22213return $ac_func (); 22214 ; 22215 return 0; 22216} 22217_ACEOF 22218rm -f conftest.$ac_objext conftest$ac_exeext 22219if { (ac_try="$ac_link" 22220case "(($ac_try" in 22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22222 *) ac_try_echo=$ac_try;; 22223esac 22224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22225 (eval "$ac_link") 2>conftest.er1 22226 ac_status=$? 22227 grep -v '^ *+' conftest.er1 >conftest.err 22228 rm -f conftest.er1 22229 cat conftest.err >&5 22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22231 (exit $ac_status); } && 22232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22233 { (case "(($ac_try" in 22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22235 *) ac_try_echo=$ac_try;; 22236esac 22237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22238 (eval "$ac_try") 2>&5 22239 ac_status=$? 22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22241 (exit $ac_status); }; } && 22242 { ac_try='test -s conftest$ac_exeext' 22243 { (case "(($ac_try" in 22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22245 *) ac_try_echo=$ac_try;; 22246esac 22247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22248 (eval "$ac_try") 2>&5 22249 ac_status=$? 22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22251 (exit $ac_status); }; }; then 22252 eval "$as_ac_var=yes" 22253else 22254 echo "$as_me: failed program was:" >&5 22255sed 's/^/| /' conftest.$ac_ext >&5 22256 22257 eval "$as_ac_var=no" 22258fi 22259 22260rm -f core conftest.err conftest.$ac_objext \ 22261 conftest$ac_exeext conftest.$ac_ext 22262fi 22263ac_res=`eval echo '${'$as_ac_var'}'` 22264 { echo "$as_me:$LINENO: result: $ac_res" >&5 22265echo "${ECHO_T}$ac_res" >&6; } 22266if test `eval echo '${'$as_ac_var'}'` = yes; then 22267 cat >>confdefs.h <<_ACEOF 22268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22269_ACEOF 22270 22271fi 22272done 22273 22274 22275{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5 22276echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; } 22277if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then 22278 echo $ECHO_N "(cached) $ECHO_C" >&6 22279else 22280 llvm_cv_llvmgcc_dragonegg="no" 22281if test -n "$LLVMGCC" ; then 22282 cp /dev/null conftest.c 22283 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1 22284 if test $? -eq 0 ; then 22285 llvm_cv_llvmgcc_dragonegg="yes" 22286 fi 22287 rm conftest.c 22288fi 22289fi 22290{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5 22291echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; } 22292 22293if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then 22294 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir" 22295 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0" 22296else 22297 LLVMCC_EMITIR_FLAG="-emit-llvm" 22298 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns" 22299fi 22300 22301 22302 22303{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 22304echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } 22305if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 22306 echo $ECHO_N "(cached) $ECHO_C" >&6 22307else 22308 llvm_cv_llvmgcc_sanity="no" 22309if test -n "$LLVMGCC" ; then 22310 cp /dev/null conftest.c 22311 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \ 22312 grep 'target datalayout =' > /dev/null 2>&1 22313 if test $? -eq 0 ; then 22314 llvm_cv_llvmgcc_sanity="yes" 22315 fi 22316 rm conftest.c 22317fi 22318fi 22319{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 22320echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } 22321 22322if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 22323 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 22324echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } 22325 llvmcc1path=`$LLVMGCC --print-prog-name=cc1` 22326 LLVMCC1=$llvmcc1path 22327 22328 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus` 22329 LLVMCC1PLUS=$llvmcc1pluspath 22330 22331 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` 22332 LLVMGCCDIR=$llvmgccdir 22333 22334 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` 22335 LLVMGCC_LANGS=$llvmgcclangs 22336 22337 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg 22338 22339 22340 { echo "$as_me:$LINENO: result: ok" >&5 22341echo "${ECHO_T}ok" >&6; } 22342fi 22343 22344SHLIBEXT=$libltdl_cv_shlibext 22345 22346 22347SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 22348 22349 22350# Translate the various configuration directories and other basic 22351# information into substitutions that will end up in Makefile.config.in 22352# that these configured values can be used by the makefiles 22353if test "${prefix}" = "NONE" ; then 22354 prefix="/usr/local" 22355fi 22356eval LLVM_PREFIX="${prefix}"; 22357eval LLVM_BINDIR="${prefix}/bin"; 22358eval LLVM_LIBDIR="${prefix}/lib"; 22359eval LLVM_DATADIR="${prefix}/share/llvm"; 22360eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 22361eval LLVM_ETCDIR="${prefix}/etc/llvm"; 22362eval LLVM_INCLUDEDIR="${prefix}/include"; 22363eval LLVM_INFODIR="${prefix}/info"; 22364eval LLVM_MANDIR="${prefix}/man"; 22365LLVM_CONFIGTIME=`date` 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377# Place the various directores into the config.h file as #defines so that we 22378# can know about the installation paths within LLVM. 22379 22380cat >>confdefs.h <<_ACEOF 22381#define LLVM_PREFIX "$LLVM_PREFIX" 22382_ACEOF 22383 22384 22385cat >>confdefs.h <<_ACEOF 22386#define LLVM_BINDIR "$LLVM_BINDIR" 22387_ACEOF 22388 22389 22390cat >>confdefs.h <<_ACEOF 22391#define LLVM_LIBDIR "$LLVM_LIBDIR" 22392_ACEOF 22393 22394 22395cat >>confdefs.h <<_ACEOF 22396#define LLVM_DATADIR "$LLVM_DATADIR" 22397_ACEOF 22398 22399 22400cat >>confdefs.h <<_ACEOF 22401#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 22402_ACEOF 22403 22404 22405cat >>confdefs.h <<_ACEOF 22406#define LLVM_ETCDIR "$LLVM_ETCDIR" 22407_ACEOF 22408 22409 22410cat >>confdefs.h <<_ACEOF 22411#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 22412_ACEOF 22413 22414 22415cat >>confdefs.h <<_ACEOF 22416#define LLVM_INFODIR "$LLVM_INFODIR" 22417_ACEOF 22418 22419 22420cat >>confdefs.h <<_ACEOF 22421#define LLVM_MANDIR "$LLVM_MANDIR" 22422_ACEOF 22423 22424 22425cat >>confdefs.h <<_ACEOF 22426#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 22427_ACEOF 22428 22429 22430cat >>confdefs.h <<_ACEOF 22431#define LLVM_HOSTTRIPLE "$host" 22432_ACEOF 22433 22434 22435# Determine which bindings to build. 22436if test "$BINDINGS_TO_BUILD" = auto ; then 22437 BINDINGS_TO_BUILD="" 22438 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 22439 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 22440 fi 22441fi 22442BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 22443 22444 22445# This isn't really configurey, but it avoids having to repeat the list in 22446# other files. 22447ALL_BINDINGS=ocaml 22448 22449 22450# Do any work necessary to ensure that bindings have what they need. 22451binding_prereqs_failed=0 22452for a_binding in $BINDINGS_TO_BUILD ; do 22453 case "$a_binding" in 22454 ocaml) 22455 if test "x$OCAMLC" = x ; then 22456 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 22457echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 22458 binding_prereqs_failed=1 22459 fi 22460 if test "x$OCAMLDEP" = x ; then 22461 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 22462echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 22463 binding_prereqs_failed=1 22464 fi 22465 if test "x$OCAMLOPT" = x ; then 22466 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 22467echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 22468 fi 22469 if test "x$with_ocaml_libdir" != xauto ; then 22470 OCAML_LIBDIR=$with_ocaml_libdir 22471 22472 else 22473 ocaml_stdlib="`"$OCAMLC" -where`" 22474 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 22475 then 22476 # ocaml stdlib is beneath our prefix; use stdlib 22477 OCAML_LIBDIR=$ocaml_stdlib 22478 22479 else 22480 # ocaml stdlib is outside our prefix; use libdir/ocaml 22481 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 22482 22483 fi 22484 fi 22485 ;; 22486 esac 22487done 22488if test "$binding_prereqs_failed" = 1 ; then 22489 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 22490echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 22491 { (exit 1); exit 1; }; } 22492fi 22493 22494{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 22495echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 22496if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 22497 echo $ECHO_N "(cached) $ECHO_C" >&6 22498else 22499 ac_ext=cpp 22500ac_cpp='$CXXCPP $CPPFLAGS' 22501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22504 22505 oldcxxflags="$CXXFLAGS" 22506 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 22507 cat >conftest.$ac_ext <<_ACEOF 22508/* confdefs.h. */ 22509_ACEOF 22510cat confdefs.h >>conftest.$ac_ext 22511cat >>conftest.$ac_ext <<_ACEOF 22512/* end confdefs.h. */ 22513 22514int 22515main () 22516{ 22517 22518 ; 22519 return 0; 22520} 22521_ACEOF 22522rm -f conftest.$ac_objext 22523if { (ac_try="$ac_compile" 22524case "(($ac_try" in 22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22526 *) ac_try_echo=$ac_try;; 22527esac 22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22529 (eval "$ac_compile") 2>conftest.er1 22530 ac_status=$? 22531 grep -v '^ *+' conftest.er1 >conftest.err 22532 rm -f conftest.er1 22533 cat conftest.err >&5 22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22535 (exit $ac_status); } && 22536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 22537 { (case "(($ac_try" in 22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22539 *) ac_try_echo=$ac_try;; 22540esac 22541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22542 (eval "$ac_try") 2>&5 22543 ac_status=$? 22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22545 (exit $ac_status); }; } && 22546 { ac_try='test -s conftest.$ac_objext' 22547 { (case "(($ac_try" in 22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22549 *) ac_try_echo=$ac_try;; 22550esac 22551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22552 (eval "$ac_try") 2>&5 22553 ac_status=$? 22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22555 (exit $ac_status); }; }; then 22556 llvm_cv_cxx_visibility_inlines_hidden=yes 22557else 22558 echo "$as_me: failed program was:" >&5 22559sed 's/^/| /' conftest.$ac_ext >&5 22560 22561 llvm_cv_cxx_visibility_inlines_hidden=no 22562fi 22563 22564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22565 CXXFLAGS="$oldcxxflags" 22566 ac_ext=c 22567ac_cpp='$CPP $CPPFLAGS' 22568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22570ac_compiler_gnu=$ac_cv_c_compiler_gnu 22571 22572 22573fi 22574{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 22575echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 22576if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 22577 ENABLE_VISIBILITY_INLINES_HIDDEN=1 22578 22579else 22580 ENABLE_VISIBILITY_INLINES_HIDDEN=0 22581 22582fi 22583 22584 22585if test "$llvm_cv_link_use_r" = "yes" ; then 22586 RPATH="-Wl,-R" 22587else 22588 RPATH="-Wl,-rpath" 22589fi 22590 22591 22592if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 22593 RDYNAMIC="-Wl,-export-dynamic" 22594else 22595 RDYNAMIC="" 22596fi 22597 22598 22599 22600ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 22601 22602 22603 22604 22605 22606 22607ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 22608 22609ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 22610 22611ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 22612 22613ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 22614 22615ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 22616 22617 22618ac_config_files="$ac_config_files Makefile.config" 22619 22620 22621ac_config_files="$ac_config_files llvm.spec" 22622 22623 22624ac_config_files="$ac_config_files docs/doxygen.cfg" 22625 22626if test -f ${srcdir}/tools/clang/README.txt; then 22627 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" 22628 22629fi 22630 22631ac_config_files="$ac_config_files tools/llvmc/src/Base.td" 22632 22633 22634ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 22635 22636 22637ac_config_commands="$ac_config_commands setup" 22638 22639ac_config_commands="$ac_config_commands Makefile" 22640 22641 22642ac_config_commands="$ac_config_commands Makefile.common" 22643 22644 22645ac_config_commands="$ac_config_commands examples/Makefile" 22646 22647 22648ac_config_commands="$ac_config_commands lib/Makefile" 22649 22650 22651ac_config_commands="$ac_config_commands runtime/Makefile" 22652 22653 22654ac_config_commands="$ac_config_commands test/Makefile" 22655 22656 22657ac_config_commands="$ac_config_commands test/Makefile.tests" 22658 22659 22660ac_config_commands="$ac_config_commands unittests/Makefile" 22661 22662 22663ac_config_commands="$ac_config_commands tools/Makefile" 22664 22665 22666ac_config_commands="$ac_config_commands utils/Makefile" 22667 22668 22669ac_config_commands="$ac_config_commands projects/Makefile" 22670 22671 22672ac_config_commands="$ac_config_commands bindings/Makefile" 22673 22674 22675ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 22676 22677 22678 22679cat >confcache <<\_ACEOF 22680# This file is a shell script that caches the results of configure 22681# tests run on this system so they can be shared between configure 22682# scripts and configure runs, see configure's option --config-cache. 22683# It is not useful on other systems. If it contains results you don't 22684# want to keep, you may remove or edit it. 22685# 22686# config.status only pays attention to the cache file if you give it 22687# the --recheck option to rerun configure. 22688# 22689# `ac_cv_env_foo' variables (set or unset) will be overridden when 22690# loading this file, other *unset* `ac_cv_foo' will be assigned the 22691# following values. 22692 22693_ACEOF 22694 22695# The following way of writing the cache mishandles newlines in values, 22696# but we know of no workaround that is simple, portable, and efficient. 22697# So, we kill variables containing newlines. 22698# Ultrix sh set writes to stderr and can't be redirected directly, 22699# and sets the high bit in the cache file unless we assign to the vars. 22700( 22701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22702 eval ac_val=\$$ac_var 22703 case $ac_val in #( 22704 *${as_nl}*) 22705 case $ac_var in #( 22706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22708 esac 22709 case $ac_var in #( 22710 _ | IFS | as_nl) ;; #( 22711 *) $as_unset $ac_var ;; 22712 esac ;; 22713 esac 22714 done 22715 22716 (set) 2>&1 | 22717 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22718 *${as_nl}ac_space=\ *) 22719 # `set' does not quote correctly, so add quotes (double-quote 22720 # substitution turns \\\\ into \\, and sed turns \\ into \). 22721 sed -n \ 22722 "s/'/'\\\\''/g; 22723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22724 ;; #( 22725 *) 22726 # `set' quotes correctly as required by POSIX, so do not add quotes. 22727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22728 ;; 22729 esac | 22730 sort 22731) | 22732 sed ' 22733 /^ac_cv_env_/b end 22734 t clear 22735 :clear 22736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22737 t end 22738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22739 :end' >>confcache 22740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22741 if test -w "$cache_file"; then 22742 test "x$cache_file" != "x/dev/null" && 22743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22744echo "$as_me: updating cache $cache_file" >&6;} 22745 cat confcache >$cache_file 22746 else 22747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22748echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22749 fi 22750fi 22751rm -f confcache 22752 22753test "x$prefix" = xNONE && prefix=$ac_default_prefix 22754# Let make expand exec_prefix. 22755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22756 22757DEFS=-DHAVE_CONFIG_H 22758 22759ac_libobjs= 22760ac_ltlibobjs= 22761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22762 # 1. Remove the extension, and $U if already installed. 22763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22764 ac_i=`echo "$ac_i" | sed "$ac_script"` 22765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22766 # will be set to the directory where LIBOBJS objects are built. 22767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22769done 22770LIBOBJS=$ac_libobjs 22771 22772LTLIBOBJS=$ac_ltlibobjs 22773 22774 22775if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 22776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 22777Usually this means the macro was only invoked conditionally." >&5 22778echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 22779Usually this means the macro was only invoked conditionally." >&2;} 22780 { (exit 1); exit 1; }; } 22781fi 22782if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 22783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22784Usually this means the macro was only invoked conditionally." >&5 22785echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22786Usually this means the macro was only invoked conditionally." >&2;} 22787 { (exit 1); exit 1; }; } 22788fi 22789 22790: ${CONFIG_STATUS=./config.status} 22791ac_clean_files_save=$ac_clean_files 22792ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22793{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22794echo "$as_me: creating $CONFIG_STATUS" >&6;} 22795cat >$CONFIG_STATUS <<_ACEOF 22796#! $SHELL 22797# Generated by $as_me. 22798# Run this file to recreate the current configuration. 22799# Compiler output produced by configure, useful for debugging 22800# configure, is in config.log if it exists. 22801 22802debug=false 22803ac_cs_recheck=false 22804ac_cs_silent=false 22805SHELL=\${CONFIG_SHELL-$SHELL} 22806_ACEOF 22807 22808cat >>$CONFIG_STATUS <<\_ACEOF 22809## --------------------- ## 22810## M4sh Initialization. ## 22811## --------------------- ## 22812 22813# Be Bourne compatible 22814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22815 emulate sh 22816 NULLCMD=: 22817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22818 # is contrary to our usage. Disable this feature. 22819 alias -g '${1+"$@"}'='"$@"' 22820 setopt NO_GLOB_SUBST 22821else 22822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22823fi 22824BIN_SH=xpg4; export BIN_SH # for Tru64 22825DUALCASE=1; export DUALCASE # for MKS sh 22826 22827 22828# PATH needs CR 22829# Avoid depending upon Character Ranges. 22830as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22832as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22833as_cr_digits='0123456789' 22834as_cr_alnum=$as_cr_Letters$as_cr_digits 22835 22836# The user is always right. 22837if test "${PATH_SEPARATOR+set}" != set; then 22838 echo "#! /bin/sh" >conf$$.sh 22839 echo "exit 0" >>conf$$.sh 22840 chmod +x conf$$.sh 22841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22842 PATH_SEPARATOR=';' 22843 else 22844 PATH_SEPARATOR=: 22845 fi 22846 rm -f conf$$.sh 22847fi 22848 22849# Support unset when possible. 22850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22851 as_unset=unset 22852else 22853 as_unset=false 22854fi 22855 22856 22857# IFS 22858# We need space, tab and new line, in precisely that order. Quoting is 22859# there to prevent editors from complaining about space-tab. 22860# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22861# splitting by setting IFS to empty value.) 22862as_nl=' 22863' 22864IFS=" "" $as_nl" 22865 22866# Find who we are. Look in the path if we contain no directory separator. 22867case $0 in 22868 *[\\/]* ) as_myself=$0 ;; 22869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22870for as_dir in $PATH 22871do 22872 IFS=$as_save_IFS 22873 test -z "$as_dir" && as_dir=. 22874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22875done 22876IFS=$as_save_IFS 22877 22878 ;; 22879esac 22880# We did not find ourselves, most probably we were run as `sh COMMAND' 22881# in which case we are not to be found in the path. 22882if test "x$as_myself" = x; then 22883 as_myself=$0 22884fi 22885if test ! -f "$as_myself"; then 22886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22887 { (exit 1); exit 1; } 22888fi 22889 22890# Work around bugs in pre-3.0 UWIN ksh. 22891for as_var in ENV MAIL MAILPATH 22892do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22893done 22894PS1='$ ' 22895PS2='> ' 22896PS4='+ ' 22897 22898# NLS nuisances. 22899for as_var in \ 22900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22902 LC_TELEPHONE LC_TIME 22903do 22904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22905 eval $as_var=C; export $as_var 22906 else 22907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22908 fi 22909done 22910 22911# Required to use basename. 22912if expr a : '\(a\)' >/dev/null 2>&1 && 22913 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22914 as_expr=expr 22915else 22916 as_expr=false 22917fi 22918 22919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22920 as_basename=basename 22921else 22922 as_basename=false 22923fi 22924 22925 22926# Name of the executable. 22927as_me=`$as_basename -- "$0" || 22928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22929 X"$0" : 'X\(//\)$' \| \ 22930 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22931echo X/"$0" | 22932 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22933 s//\1/ 22934 q 22935 } 22936 /^X\/\(\/\/\)$/{ 22937 s//\1/ 22938 q 22939 } 22940 /^X\/\(\/\).*/{ 22941 s//\1/ 22942 q 22943 } 22944 s/.*/./; q'` 22945 22946# CDPATH. 22947$as_unset CDPATH 22948 22949 22950 22951 as_lineno_1=$LINENO 22952 as_lineno_2=$LINENO 22953 test "x$as_lineno_1" != "x$as_lineno_2" && 22954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22955 22956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22957 # uniformly replaced by the line number. The first 'sed' inserts a 22958 # line-number line after each line using $LINENO; the second 'sed' 22959 # does the real work. The second script uses 'N' to pair each 22960 # line-number line with the line containing $LINENO, and appends 22961 # trailing '-' during substitution so that $LINENO is not a special 22962 # case at line end. 22963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22964 # scripts with optimization help from Paolo Bonzini. Blame Lee 22965 # E. McMahon (1931-1989) for sed's syntax. :-) 22966 sed -n ' 22967 p 22968 /[$]LINENO/= 22969 ' <$as_myself | 22970 sed ' 22971 s/[$]LINENO.*/&-/ 22972 t lineno 22973 b 22974 :lineno 22975 N 22976 :loop 22977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22978 t loop 22979 s/-\n.*// 22980 ' >$as_me.lineno && 22981 chmod +x "$as_me.lineno" || 22982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22983 { (exit 1); exit 1; }; } 22984 22985 # Don't try to exec as it changes $[0], causing all sort of problems 22986 # (the dirname of $[0] is not the place where we might find the 22987 # original and so on. Autoconf is especially sensitive to this). 22988 . "./$as_me.lineno" 22989 # Exit status is that of the last command. 22990 exit 22991} 22992 22993 22994if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22995 as_dirname=dirname 22996else 22997 as_dirname=false 22998fi 22999 23000ECHO_C= ECHO_N= ECHO_T= 23001case `echo -n x` in 23002-n*) 23003 case `echo 'x\c'` in 23004 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23005 *) ECHO_C='\c';; 23006 esac;; 23007*) 23008 ECHO_N='-n';; 23009esac 23010 23011if expr a : '\(a\)' >/dev/null 2>&1 && 23012 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23013 as_expr=expr 23014else 23015 as_expr=false 23016fi 23017 23018rm -f conf$$ conf$$.exe conf$$.file 23019if test -d conf$$.dir; then 23020 rm -f conf$$.dir/conf$$.file 23021else 23022 rm -f conf$$.dir 23023 mkdir conf$$.dir 23024fi 23025echo >conf$$.file 23026if ln -s conf$$.file conf$$ 2>/dev/null; then 23027 as_ln_s='ln -s' 23028 # ... but there are two gotchas: 23029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23031 # In both cases, we have to default to `cp -p'. 23032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23033 as_ln_s='cp -p' 23034elif ln conf$$.file conf$$ 2>/dev/null; then 23035 as_ln_s=ln 23036else 23037 as_ln_s='cp -p' 23038fi 23039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23040rmdir conf$$.dir 2>/dev/null 23041 23042if mkdir -p . 2>/dev/null; then 23043 as_mkdir_p=: 23044else 23045 test -d ./-p && rmdir ./-p 23046 as_mkdir_p=false 23047fi 23048 23049# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23050# systems may use methods other than mode bits to determine executability. 23051cat >conf$$.file <<_ASEOF 23052#! /bin/sh 23053exit 0 23054_ASEOF 23055chmod +x conf$$.file 23056if test -x conf$$.file >/dev/null 2>&1; then 23057 as_executable_p="test -x" 23058else 23059 as_executable_p=: 23060fi 23061rm -f conf$$.file 23062 23063# Sed expression to map a string onto a valid CPP name. 23064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23065 23066# Sed expression to map a string onto a valid variable name. 23067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23068 23069 23070exec 6>&1 23071 23072# Save the log message, to keep $[0] and so on meaningful, and to 23073# report actual input values of CONFIG_FILES etc. instead of their 23074# values after options handling. 23075ac_log=" 23076This file was extended by llvm $as_me 3.0svn, which was 23077generated by GNU Autoconf 2.60. Invocation command line was 23078 23079 CONFIG_FILES = $CONFIG_FILES 23080 CONFIG_HEADERS = $CONFIG_HEADERS 23081 CONFIG_LINKS = $CONFIG_LINKS 23082 CONFIG_COMMANDS = $CONFIG_COMMANDS 23083 $ $0 $@ 23084 23085on `(hostname || uname -n) 2>/dev/null | sed 1q` 23086" 23087 23088_ACEOF 23089 23090cat >>$CONFIG_STATUS <<_ACEOF 23091# Files that config.status was made for. 23092config_files="$ac_config_files" 23093config_headers="$ac_config_headers" 23094config_commands="$ac_config_commands" 23095 23096_ACEOF 23097 23098cat >>$CONFIG_STATUS <<\_ACEOF 23099ac_cs_usage="\ 23100\`$as_me' instantiates files from templates according to the 23101current configuration. 23102 23103Usage: $0 [OPTIONS] [FILE]... 23104 23105 -h, --help print this help, then exit 23106 -V, --version print version number, then exit 23107 -q, --quiet do not print progress messages 23108 -d, --debug don't remove temporary files 23109 --recheck update $as_me by reconfiguring in the same conditions 23110 --file=FILE[:TEMPLATE] 23111 instantiate the configuration file FILE 23112 --header=FILE[:TEMPLATE] 23113 instantiate the configuration header FILE 23114 23115Configuration files: 23116$config_files 23117 23118Configuration headers: 23119$config_headers 23120 23121Configuration commands: 23122$config_commands 23123 23124Report bugs to <bug-autoconf@gnu.org>." 23125 23126_ACEOF 23127cat >>$CONFIG_STATUS <<_ACEOF 23128ac_cs_version="\\ 23129llvm config.status 3.0svn 23130configured by $0, generated by GNU Autoconf 2.60, 23131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23132 23133Copyright (C) 2006 Free Software Foundation, Inc. 23134This config.status script is free software; the Free Software Foundation 23135gives unlimited permission to copy, distribute and modify it." 23136 23137ac_pwd='$ac_pwd' 23138srcdir='$srcdir' 23139INSTALL='$INSTALL' 23140_ACEOF 23141 23142cat >>$CONFIG_STATUS <<\_ACEOF 23143# If no file are specified by the user, then we need to provide default 23144# value. By we need to know if files were specified by the user. 23145ac_need_defaults=: 23146while test $# != 0 23147do 23148 case $1 in 23149 --*=*) 23150 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23152 ac_shift=: 23153 ;; 23154 *) 23155 ac_option=$1 23156 ac_optarg=$2 23157 ac_shift=shift 23158 ;; 23159 esac 23160 23161 case $ac_option in 23162 # Handling of the options. 23163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23164 ac_cs_recheck=: ;; 23165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23166 echo "$ac_cs_version"; exit ;; 23167 --debug | --debu | --deb | --de | --d | -d ) 23168 debug=: ;; 23169 --file | --fil | --fi | --f ) 23170 $ac_shift 23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23172 ac_need_defaults=false;; 23173 --header | --heade | --head | --hea ) 23174 $ac_shift 23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23176 ac_need_defaults=false;; 23177 --he | --h) 23178 # Conflict between --help and --header 23179 { echo "$as_me: error: ambiguous option: $1 23180Try \`$0 --help' for more information." >&2 23181 { (exit 1); exit 1; }; };; 23182 --help | --hel | -h ) 23183 echo "$ac_cs_usage"; exit ;; 23184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23185 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23186 ac_cs_silent=: ;; 23187 23188 # This is an error. 23189 -*) { echo "$as_me: error: unrecognized option: $1 23190Try \`$0 --help' for more information." >&2 23191 { (exit 1); exit 1; }; } ;; 23192 23193 *) ac_config_targets="$ac_config_targets $1" 23194 ac_need_defaults=false ;; 23195 23196 esac 23197 shift 23198done 23199 23200ac_configure_extra_args= 23201 23202if $ac_cs_silent; then 23203 exec 6>/dev/null 23204 ac_configure_extra_args="$ac_configure_extra_args --silent" 23205fi 23206 23207_ACEOF 23208cat >>$CONFIG_STATUS <<_ACEOF 23209if \$ac_cs_recheck; then 23210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23211 CONFIG_SHELL=$SHELL 23212 export CONFIG_SHELL 23213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23214fi 23215 23216_ACEOF 23217cat >>$CONFIG_STATUS <<\_ACEOF 23218exec 5>>config.log 23219{ 23220 echo 23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23222## Running $as_me. ## 23223_ASBOX 23224 echo "$ac_log" 23225} >&5 23226 23227_ACEOF 23228cat >>$CONFIG_STATUS <<_ACEOF 23229# 23230# INIT-COMMANDS 23231# 23232llvm_src="${srcdir}" 23233 23234_ACEOF 23235 23236cat >>$CONFIG_STATUS <<\_ACEOF 23237 23238# Handling of arguments. 23239for ac_config_target in $ac_config_targets 23240do 23241 case $ac_config_target in 23242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 23243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 23244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 23245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 23246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 23247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 23248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 23249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 23250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 23251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 23252 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; 23253 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; 23254 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 23255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 23256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 23259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23260 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23261 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23262 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23263 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 23264 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23265 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23266 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23267 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 23268 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 23269 23270 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23271echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23272 { (exit 1); exit 1; }; };; 23273 esac 23274done 23275 23276 23277# If the user did not use the arguments to specify the items to instantiate, 23278# then the envvar interface is used. Set only those that are not. 23279# We use the long form for the default assignment because of an extremely 23280# bizarre bug on SunOS 4.1.3. 23281if $ac_need_defaults; then 23282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23285fi 23286 23287# Have a temporary directory for convenience. Make it in the build tree 23288# simply because there is no reason against having it here, and in addition, 23289# creating and moving files from /tmp can sometimes cause problems. 23290# Hook for its removal unless debugging. 23291# Note that there is a small window in which the directory will not be cleaned: 23292# after its creation but before its name has been assigned to `$tmp'. 23293$debug || 23294{ 23295 tmp= 23296 trap 'exit_status=$? 23297 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23298' 0 23299 trap '{ (exit 1); exit 1; }' 1 2 13 15 23300} 23301# Create a (secure) tmp directory for tmp files. 23302 23303{ 23304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23305 test -n "$tmp" && test -d "$tmp" 23306} || 23307{ 23308 tmp=./conf$$-$RANDOM 23309 (umask 077 && mkdir "$tmp") 23310} || 23311{ 23312 echo "$me: cannot create a temporary directory in ." >&2 23313 { (exit 1); exit 1; } 23314} 23315 23316# 23317# Set up the sed scripts for CONFIG_FILES section. 23318# 23319 23320# No need to generate the scripts if there are no CONFIG_FILES. 23321# This happens for instance when ./config.status config.h 23322if test -n "$CONFIG_FILES"; then 23323 23324_ACEOF 23325 23326 23327 23328ac_delim='%!_!# ' 23329for ac_last_try in false false false false false :; do 23330 cat >conf$$subs.sed <<_ACEOF 23331SHELL!$SHELL$ac_delim 23332PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23333PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23334PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23335PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23336PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23337PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23338exec_prefix!$exec_prefix$ac_delim 23339prefix!$prefix$ac_delim 23340program_transform_name!$program_transform_name$ac_delim 23341bindir!$bindir$ac_delim 23342sbindir!$sbindir$ac_delim 23343libexecdir!$libexecdir$ac_delim 23344datarootdir!$datarootdir$ac_delim 23345datadir!$datadir$ac_delim 23346sysconfdir!$sysconfdir$ac_delim 23347sharedstatedir!$sharedstatedir$ac_delim 23348localstatedir!$localstatedir$ac_delim 23349includedir!$includedir$ac_delim 23350oldincludedir!$oldincludedir$ac_delim 23351docdir!$docdir$ac_delim 23352infodir!$infodir$ac_delim 23353htmldir!$htmldir$ac_delim 23354dvidir!$dvidir$ac_delim 23355pdfdir!$pdfdir$ac_delim 23356psdir!$psdir$ac_delim 23357libdir!$libdir$ac_delim 23358localedir!$localedir$ac_delim 23359mandir!$mandir$ac_delim 23360DEFS!$DEFS$ac_delim 23361ECHO_C!$ECHO_C$ac_delim 23362ECHO_N!$ECHO_N$ac_delim 23363ECHO_T!$ECHO_T$ac_delim 23364LIBS!$LIBS$ac_delim 23365build_alias!$build_alias$ac_delim 23366host_alias!$host_alias$ac_delim 23367target_alias!$target_alias$ac_delim 23368LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 23369subdirs!$subdirs$ac_delim 23370ENABLE_POLLY!$ENABLE_POLLY$ac_delim 23371LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 23372build!$build$ac_delim 23373build_cpu!$build_cpu$ac_delim 23374build_vendor!$build_vendor$ac_delim 23375build_os!$build_os$ac_delim 23376host!$host$ac_delim 23377host_cpu!$host_cpu$ac_delim 23378host_vendor!$host_vendor$ac_delim 23379host_os!$host_os$ac_delim 23380target!$target$ac_delim 23381target_cpu!$target_cpu$ac_delim 23382target_vendor!$target_vendor$ac_delim 23383target_os!$target_os$ac_delim 23384OS!$OS$ac_delim 23385HOST_OS!$HOST_OS$ac_delim 23386TARGET_OS!$TARGET_OS$ac_delim 23387LINKALL!$LINKALL$ac_delim 23388NOLINKALL!$NOLINKALL$ac_delim 23389LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 23390LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 23391ARCH!$ARCH$ac_delim 23392ENDIAN!$ENDIAN$ac_delim 23393CC!$CC$ac_delim 23394CFLAGS!$CFLAGS$ac_delim 23395LDFLAGS!$LDFLAGS$ac_delim 23396CPPFLAGS!$CPPFLAGS$ac_delim 23397ac_ct_CC!$ac_ct_CC$ac_delim 23398EXEEXT!$EXEEXT$ac_delim 23399OBJEXT!$OBJEXT$ac_delim 23400CPP!$CPP$ac_delim 23401GREP!$GREP$ac_delim 23402EGREP!$EGREP$ac_delim 23403LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 23404BUILD_CC!$BUILD_CC$ac_delim 23405BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 23406BUILD_CXX!$BUILD_CXX$ac_delim 23407CVSBUILD!$CVSBUILD$ac_delim 23408ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 23409ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 23410DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 23411ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 23412EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 23413DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 23414DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 23415JIT!$JIT$ac_delim 23416TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 23417ENABLE_DOCS!$ENABLE_DOCS$ac_delim 23418ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 23419ENABLE_THREADS!$ENABLE_THREADS$ac_delim 23420ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 23421ENABLE_PIC!$ENABLE_PIC$ac_delim 23422ENABLE_SHARED!$ENABLE_SHARED$ac_delim 23423ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 23424ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 23425TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 23426LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 23427LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 23428_ACEOF 23429 23430 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23431 break 23432 elif $ac_last_try; then 23433 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23434echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23435 { (exit 1); exit 1; }; } 23436 else 23437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23438 fi 23439done 23440 23441ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23442if test -n "$ac_eof"; then 23443 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23444 ac_eof=`expr $ac_eof + 1` 23445fi 23446 23447cat >>$CONFIG_STATUS <<_ACEOF 23448cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23449/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23450_ACEOF 23451sed ' 23452s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23453s/^/s,@/; s/!/@,|#_!!_#|/ 23454:n 23455t n 23456s/'"$ac_delim"'$/,g/; t 23457s/$/\\/; p 23458N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23459' >>$CONFIG_STATUS <conf$$subs.sed 23460rm -f conf$$subs.sed 23461cat >>$CONFIG_STATUS <<_ACEOF 23462CEOF$ac_eof 23463_ACEOF 23464 23465 23466ac_delim='%!_!# ' 23467for ac_last_try in false false false false false :; do 23468 cat >conf$$subs.sed <<_ACEOF 23469LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 23470LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 23471ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 23472CLANGPATH!$CLANGPATH$ac_delim 23473CLANGXXPATH!$CLANGXXPATH$ac_delim 23474ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim 23475OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 23476EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 23477EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 23478BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 23479CXX!$CXX$ac_delim 23480CXXFLAGS!$CXXFLAGS$ac_delim 23481ac_ct_CXX!$ac_ct_CXX$ac_delim 23482NM!$NM$ac_delim 23483ifGNUmake!$ifGNUmake$ac_delim 23484LN_S!$LN_S$ac_delim 23485CMP!$CMP$ac_delim 23486CP!$CP$ac_delim 23487DATE!$DATE$ac_delim 23488FIND!$FIND$ac_delim 23489MKDIR!$MKDIR$ac_delim 23490MV!$MV$ac_delim 23491RANLIB!$RANLIB$ac_delim 23492AR!$AR$ac_delim 23493RM!$RM$ac_delim 23494SED!$SED$ac_delim 23495TAR!$TAR$ac_delim 23496BINPWD!$BINPWD$ac_delim 23497GRAPHVIZ!$GRAPHVIZ$ac_delim 23498DOT!$DOT$ac_delim 23499FDP!$FDP$ac_delim 23500NEATO!$NEATO$ac_delim 23501TWOPI!$TWOPI$ac_delim 23502CIRCO!$CIRCO$ac_delim 23503GV!$GV$ac_delim 23504DOTTY!$DOTTY$ac_delim 23505XDOT_PY!$XDOT_PY$ac_delim 23506PERL!$PERL$ac_delim 23507HAVE_PERL!$HAVE_PERL$ac_delim 23508INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23509INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23510INSTALL_DATA!$INSTALL_DATA$ac_delim 23511BZIP2!$BZIP2$ac_delim 23512CAT!$CAT$ac_delim 23513DOXYGEN!$DOXYGEN$ac_delim 23514GROFF!$GROFF$ac_delim 23515GZIPBIN!$GZIPBIN$ac_delim 23516POD2HTML!$POD2HTML$ac_delim 23517POD2MAN!$POD2MAN$ac_delim 23518PDFROFF!$PDFROFF$ac_delim 23519RUNTEST!$RUNTEST$ac_delim 23520TCLSH!$TCLSH$ac_delim 23521ZIP!$ZIP$ac_delim 23522OCAMLC!$OCAMLC$ac_delim 23523OCAMLOPT!$OCAMLOPT$ac_delim 23524OCAMLDEP!$OCAMLDEP$ac_delim 23525OCAMLDOC!$OCAMLDOC$ac_delim 23526GAS!$GAS$ac_delim 23527HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 23528INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 23529INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 23530CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 23531CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 23532LIBADD_DL!$LIBADD_DL$ac_delim 23533LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim 23534LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim 23535LLVMGCC!$LLVMGCC$ac_delim 23536LLVMGXX!$LLVMGXX$ac_delim 23537LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim 23538NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 23539NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 23540USE_UDIS86!$USE_UDIS86$ac_delim 23541USE_OPROFILE!$USE_OPROFILE$ac_delim 23542HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 23543HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 23544MMAP_FILE!$MMAP_FILE$ac_delim 23545LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim 23546LLVMCC1!$LLVMCC1$ac_delim 23547LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim 23548LLVMGCCDIR!$LLVMGCCDIR$ac_delim 23549LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim 23550LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim 23551LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim 23552SHLIBEXT!$SHLIBEXT$ac_delim 23553SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 23554LLVM_PREFIX!$LLVM_PREFIX$ac_delim 23555LLVM_BINDIR!$LLVM_BINDIR$ac_delim 23556LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 23557LLVM_DATADIR!$LLVM_DATADIR$ac_delim 23558LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 23559LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 23560LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 23561LLVM_INFODIR!$LLVM_INFODIR$ac_delim 23562LLVM_MANDIR!$LLVM_MANDIR$ac_delim 23563LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 23564BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 23565ALL_BINDINGS!$ALL_BINDINGS$ac_delim 23566_ACEOF 23567 23568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23569 break 23570 elif $ac_last_try; then 23571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23572echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23573 { (exit 1); exit 1; }; } 23574 else 23575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23576 fi 23577done 23578 23579ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23580if test -n "$ac_eof"; then 23581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23582 ac_eof=`expr $ac_eof + 1` 23583fi 23584 23585cat >>$CONFIG_STATUS <<_ACEOF 23586cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23588_ACEOF 23589sed ' 23590s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23591s/^/s,@/; s/!/@,|#_!!_#|/ 23592:n 23593t n 23594s/'"$ac_delim"'$/,g/; t 23595s/$/\\/; p 23596N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23597' >>$CONFIG_STATUS <conf$$subs.sed 23598rm -f conf$$subs.sed 23599cat >>$CONFIG_STATUS <<_ACEOF 23600CEOF$ac_eof 23601_ACEOF 23602 23603 23604ac_delim='%!_!# ' 23605for ac_last_try in false false false false false :; do 23606 cat >conf$$subs.sed <<_ACEOF 23607OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 23608ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 23609RPATH!$RPATH$ac_delim 23610RDYNAMIC!$RDYNAMIC$ac_delim 23611LIBOBJS!$LIBOBJS$ac_delim 23612LTLIBOBJS!$LTLIBOBJS$ac_delim 23613_ACEOF 23614 23615 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then 23616 break 23617 elif $ac_last_try; then 23618 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23619echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23620 { (exit 1); exit 1; }; } 23621 else 23622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23623 fi 23624done 23625 23626ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23627if test -n "$ac_eof"; then 23628 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23629 ac_eof=`expr $ac_eof + 1` 23630fi 23631 23632cat >>$CONFIG_STATUS <<_ACEOF 23633cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 23634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23635_ACEOF 23636sed ' 23637s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23638s/^/s,@/; s/!/@,|#_!!_#|/ 23639:n 23640t n 23641s/'"$ac_delim"'$/,g/; t 23642s/$/\\/; p 23643N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23644' >>$CONFIG_STATUS <conf$$subs.sed 23645rm -f conf$$subs.sed 23646cat >>$CONFIG_STATUS <<_ACEOF 23647:end 23648s/|#_!!_#|//g 23649CEOF$ac_eof 23650_ACEOF 23651 23652 23653# VPATH may cause trouble with some makes, so we remove $(srcdir), 23654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23655# trailing colons and then remove the whole line if VPATH becomes empty 23656# (actually we leave an empty line to preserve line numbers). 23657if test "x$srcdir" = x.; then 23658 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23659s/:*\$(srcdir):*/:/ 23660s/:*\${srcdir}:*/:/ 23661s/:*@srcdir@:*/:/ 23662s/^\([^=]*=[ ]*\):*/\1/ 23663s/:*$// 23664s/^[^=]*=[ ]*$// 23665}' 23666fi 23667 23668cat >>$CONFIG_STATUS <<\_ACEOF 23669fi # test -n "$CONFIG_FILES" 23670 23671 23672for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23673do 23674 case $ac_tag in 23675 :[FHLC]) ac_mode=$ac_tag; continue;; 23676 esac 23677 case $ac_mode$ac_tag in 23678 :[FHL]*:*);; 23679 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23680echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23681 { (exit 1); exit 1; }; };; 23682 :[FH]-) ac_tag=-:-;; 23683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23684 esac 23685 ac_save_IFS=$IFS 23686 IFS=: 23687 set x $ac_tag 23688 IFS=$ac_save_IFS 23689 shift 23690 ac_file=$1 23691 shift 23692 23693 case $ac_mode in 23694 :L) ac_source=$1;; 23695 :[FH]) 23696 ac_file_inputs= 23697 for ac_f 23698 do 23699 case $ac_f in 23700 -) ac_f="$tmp/stdin";; 23701 *) # Look for the file first in the build tree, then in the source tree 23702 # (if the path is not absolute). The absolute path cannot be DOS-style, 23703 # because $ac_f cannot contain `:'. 23704 test -f "$ac_f" || 23705 case $ac_f in 23706 [\\/$]*) false;; 23707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23708 esac || 23709 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23710echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23711 { (exit 1); exit 1; }; };; 23712 esac 23713 ac_file_inputs="$ac_file_inputs $ac_f" 23714 done 23715 23716 # Let's still pretend it is `configure' which instantiates (i.e., don't 23717 # use $as_me), people would be surprised to read: 23718 # /* config.h. Generated by config.status. */ 23719 configure_input="Generated from "`IFS=: 23720 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23721 if test x"$ac_file" != x-; then 23722 configure_input="$ac_file. $configure_input" 23723 { echo "$as_me:$LINENO: creating $ac_file" >&5 23724echo "$as_me: creating $ac_file" >&6;} 23725 fi 23726 23727 case $ac_tag in 23728 *:-:* | *:-) cat >"$tmp/stdin";; 23729 esac 23730 ;; 23731 esac 23732 23733 ac_dir=`$as_dirname -- "$ac_file" || 23734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23735 X"$ac_file" : 'X\(//\)[^/]' \| \ 23736 X"$ac_file" : 'X\(//\)$' \| \ 23737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23738echo X"$ac_file" | 23739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23740 s//\1/ 23741 q 23742 } 23743 /^X\(\/\/\)[^/].*/{ 23744 s//\1/ 23745 q 23746 } 23747 /^X\(\/\/\)$/{ 23748 s//\1/ 23749 q 23750 } 23751 /^X\(\/\).*/{ 23752 s//\1/ 23753 q 23754 } 23755 s/.*/./; q'` 23756 { as_dir="$ac_dir" 23757 case $as_dir in #( 23758 -*) as_dir=./$as_dir;; 23759 esac 23760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23761 as_dirs= 23762 while :; do 23763 case $as_dir in #( 23764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23765 *) as_qdir=$as_dir;; 23766 esac 23767 as_dirs="'$as_qdir' $as_dirs" 23768 as_dir=`$as_dirname -- "$as_dir" || 23769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23770 X"$as_dir" : 'X\(//\)[^/]' \| \ 23771 X"$as_dir" : 'X\(//\)$' \| \ 23772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23773echo X"$as_dir" | 23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23775 s//\1/ 23776 q 23777 } 23778 /^X\(\/\/\)[^/].*/{ 23779 s//\1/ 23780 q 23781 } 23782 /^X\(\/\/\)$/{ 23783 s//\1/ 23784 q 23785 } 23786 /^X\(\/\).*/{ 23787 s//\1/ 23788 q 23789 } 23790 s/.*/./; q'` 23791 test -d "$as_dir" && break 23792 done 23793 test -z "$as_dirs" || eval "mkdir $as_dirs" 23794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23795echo "$as_me: error: cannot create directory $as_dir" >&2;} 23796 { (exit 1); exit 1; }; }; } 23797 ac_builddir=. 23798 23799case "$ac_dir" in 23800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23801*) 23802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23803 # A ".." for each directory in $ac_dir_suffix. 23804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23805 case $ac_top_builddir_sub in 23806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23808 esac ;; 23809esac 23810ac_abs_top_builddir=$ac_pwd 23811ac_abs_builddir=$ac_pwd$ac_dir_suffix 23812# for backward compatibility: 23813ac_top_builddir=$ac_top_build_prefix 23814 23815case $srcdir in 23816 .) # We are building in place. 23817 ac_srcdir=. 23818 ac_top_srcdir=$ac_top_builddir_sub 23819 ac_abs_top_srcdir=$ac_pwd ;; 23820 [\\/]* | ?:[\\/]* ) # Absolute name. 23821 ac_srcdir=$srcdir$ac_dir_suffix; 23822 ac_top_srcdir=$srcdir 23823 ac_abs_top_srcdir=$srcdir ;; 23824 *) # Relative name. 23825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23826 ac_top_srcdir=$ac_top_build_prefix$srcdir 23827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23828esac 23829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23830 23831 23832 case $ac_mode in 23833 :F) 23834 # 23835 # CONFIG_FILE 23836 # 23837 23838 case $INSTALL in 23839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23841 esac 23842_ACEOF 23843 23844cat >>$CONFIG_STATUS <<\_ACEOF 23845# If the template does not know about datarootdir, expand it. 23846# FIXME: This hack should be removed a few years after 2.60. 23847ac_datarootdir_hack=; ac_datarootdir_seen= 23848 23849case `sed -n '/datarootdir/ { 23850 p 23851 q 23852} 23853/@datadir@/p 23854/@docdir@/p 23855/@infodir@/p 23856/@localedir@/p 23857/@mandir@/p 23858' $ac_file_inputs` in 23859*datarootdir*) ac_datarootdir_seen=yes;; 23860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23861 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23862echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23863_ACEOF 23864cat >>$CONFIG_STATUS <<_ACEOF 23865 ac_datarootdir_hack=' 23866 s&@datadir@&$datadir&g 23867 s&@docdir@&$docdir&g 23868 s&@infodir@&$infodir&g 23869 s&@localedir@&$localedir&g 23870 s&@mandir@&$mandir&g 23871 s&\\\${datarootdir}&$datarootdir&g' ;; 23872esac 23873_ACEOF 23874 23875# Neutralize VPATH when `$srcdir' = `.'. 23876# Shell code in configure.ac might set extrasub. 23877# FIXME: do we really want to maintain this feature? 23878cat >>$CONFIG_STATUS <<_ACEOF 23879 sed "$ac_vpsub 23880$extrasub 23881_ACEOF 23882cat >>$CONFIG_STATUS <<\_ACEOF 23883:t 23884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23885s&@configure_input@&$configure_input&;t t 23886s&@top_builddir@&$ac_top_builddir_sub&;t t 23887s&@srcdir@&$ac_srcdir&;t t 23888s&@abs_srcdir@&$ac_abs_srcdir&;t t 23889s&@top_srcdir@&$ac_top_srcdir&;t t 23890s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23891s&@builddir@&$ac_builddir&;t t 23892s&@abs_builddir@&$ac_abs_builddir&;t t 23893s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23894s&@INSTALL@&$ac_INSTALL&;t t 23895$ac_datarootdir_hack 23896" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 23897 23898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23901 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23902which seems to be undefined. Please make sure it is defined." >&5 23903echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23904which seems to be undefined. Please make sure it is defined." >&2;} 23905 23906 rm -f "$tmp/stdin" 23907 case $ac_file in 23908 -) cat "$tmp/out"; rm -f "$tmp/out";; 23909 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23910 esac 23911 ;; 23912 :H) 23913 # 23914 # CONFIG_HEADER 23915 # 23916_ACEOF 23917 23918# Transform confdefs.h into a sed script `conftest.defines', that 23919# substitutes the proper values into config.h.in to produce config.h. 23920rm -f conftest.defines conftest.tail 23921# First, append a space to every undef/define line, to ease matching. 23922echo 's/$/ /' >conftest.defines 23923# Then, protect against being on the right side of a sed subst, or in 23924# an unquoted here document, in config.status. If some macros were 23925# called several times there might be several #defines for the same 23926# symbol, which is useless. But do not sort them, since the last 23927# AC_DEFINE must be honored. 23928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23929# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23930# NAME is the cpp macro being defined, VALUE is the value it is being given. 23931# PARAMS is the parameter list in the macro definition--in most cases, it's 23932# just an empty string. 23933ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23934ac_dB='\\)[ (].*,\\1define\\2' 23935ac_dC=' ' 23936ac_dD=' ,' 23937 23938uniq confdefs.h | 23939 sed -n ' 23940 t rset 23941 :rset 23942 s/^[ ]*#[ ]*define[ ][ ]*// 23943 t ok 23944 d 23945 :ok 23946 s/[\\&,]/\\&/g 23947 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23948 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23949 ' >>conftest.defines 23950 23951# Remove the space that was appended to ease matching. 23952# Then replace #undef with comments. This is necessary, for 23953# example, in the case of _POSIX_SOURCE, which is predefined and required 23954# on some systems where configure will not decide to define it. 23955# (The regexp can be short, since the line contains either #define or #undef.) 23956echo 's/ $// 23957s,^[ #]*u.*,/* & */,' >>conftest.defines 23958 23959# Break up conftest.defines: 23960ac_max_sed_lines=50 23961 23962# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23963# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23964# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23965# et cetera. 23966ac_in='$ac_file_inputs' 23967ac_out='"$tmp/out1"' 23968ac_nxt='"$tmp/out2"' 23969 23970while : 23971do 23972 # Write a here document: 23973 cat >>$CONFIG_STATUS <<_ACEOF 23974 # First, check the format of the line: 23975 cat >"\$tmp/defines.sed" <<\\CEOF 23976/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23977/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23978b 23979:def 23980_ACEOF 23981 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23982 echo 'CEOF 23983 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23984 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23985 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23986 grep . conftest.tail >/dev/null || break 23987 rm -f conftest.defines 23988 mv conftest.tail conftest.defines 23989done 23990rm -f conftest.defines conftest.tail 23991 23992echo "ac_result=$ac_in" >>$CONFIG_STATUS 23993cat >>$CONFIG_STATUS <<\_ACEOF 23994 if test x"$ac_file" != x-; then 23995 echo "/* $configure_input */" >"$tmp/config.h" 23996 cat "$ac_result" >>"$tmp/config.h" 23997 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23999echo "$as_me: $ac_file is unchanged" >&6;} 24000 else 24001 rm -f $ac_file 24002 mv "$tmp/config.h" $ac_file 24003 fi 24004 else 24005 echo "/* $configure_input */" 24006 cat "$ac_result" 24007 fi 24008 rm -f "$tmp/out12" 24009 ;; 24010 24011 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24012echo "$as_me: executing $ac_file commands" >&6;} 24013 ;; 24014 esac 24015 24016 24017 case $ac_file$ac_mode in 24018 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 24020 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 24022 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 24024 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 24026 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 24028 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 24030 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 24032 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 24034 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 24036 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 24038 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 24039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 24040 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 24041 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 24042 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 24043 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 24044 24045 esac 24046done # for ac_tag 24047 24048 24049{ (exit 0); exit 0; } 24050_ACEOF 24051chmod +x $CONFIG_STATUS 24052ac_clean_files=$ac_clean_files_save 24053 24054 24055# configure is writing to config.log, and then calls config.status. 24056# config.status does its own redirection, appending to config.log. 24057# Unfortunately, on DOS this fails, as config.log is still kept open 24058# by configure, so config.status won't be able to write to it; its 24059# output is simply discarded. So we exec the FD to /dev/null, 24060# effectively closing config.log, so it can be properly (re)opened and 24061# appended to by config.status. When coming back to configure, we 24062# need to make the FD available again. 24063if test "$no_create" != yes; then 24064 ac_cs_success=: 24065 ac_config_status_args= 24066 test "$silent" = yes && 24067 ac_config_status_args="$ac_config_status_args --quiet" 24068 exec 5>/dev/null 24069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24070 exec 5>>config.log 24071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24072 # would make configure fail if this is the last instruction. 24073 $ac_cs_success || { (exit 1); exit 1; } 24074fi 24075 24076# 24077# CONFIG_SUBDIRS section. 24078# 24079if test "$no_recursion" != yes; then 24080 24081 # Remove --cache-file and --srcdir arguments so they do not pile up. 24082 ac_sub_configure_args= 24083 ac_prev= 24084 eval "set x $ac_configure_args" 24085 shift 24086 for ac_arg 24087 do 24088 if test -n "$ac_prev"; then 24089 ac_prev= 24090 continue 24091 fi 24092 case $ac_arg in 24093 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24095 ac_prev=cache_file ;; 24096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24098 | --c=*) 24099 ;; 24100 --config-cache | -C) 24101 ;; 24102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24103 ac_prev=srcdir ;; 24104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24105 ;; 24106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24107 ac_prev=prefix ;; 24108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24109 ;; 24110 *) 24111 case $ac_arg in 24112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24113 esac 24114 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 24115 esac 24116 done 24117 24118 # Always prepend --prefix to ensure using the same prefix 24119 # in subdir configurations. 24120 ac_arg="--prefix=$prefix" 24121 case $ac_arg in 24122 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24123 esac 24124 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 24125 24126 ac_popdir=`pwd` 24127 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24128 24129 # Do not complain, so a configure script can configure whichever 24130 # parts of a large source tree are present. 24131 test -d "$srcdir/$ac_dir" || continue 24132 24133 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24134 echo "$as_me:$LINENO: $ac_msg" >&5 24135 echo "$ac_msg" >&6 24136 { as_dir="$ac_dir" 24137 case $as_dir in #( 24138 -*) as_dir=./$as_dir;; 24139 esac 24140 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24141 as_dirs= 24142 while :; do 24143 case $as_dir in #( 24144 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24145 *) as_qdir=$as_dir;; 24146 esac 24147 as_dirs="'$as_qdir' $as_dirs" 24148 as_dir=`$as_dirname -- "$as_dir" || 24149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24150 X"$as_dir" : 'X\(//\)[^/]' \| \ 24151 X"$as_dir" : 'X\(//\)$' \| \ 24152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24153echo X"$as_dir" | 24154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24155 s//\1/ 24156 q 24157 } 24158 /^X\(\/\/\)[^/].*/{ 24159 s//\1/ 24160 q 24161 } 24162 /^X\(\/\/\)$/{ 24163 s//\1/ 24164 q 24165 } 24166 /^X\(\/\).*/{ 24167 s//\1/ 24168 q 24169 } 24170 s/.*/./; q'` 24171 test -d "$as_dir" && break 24172 done 24173 test -z "$as_dirs" || eval "mkdir $as_dirs" 24174 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24175echo "$as_me: error: cannot create directory $as_dir" >&2;} 24176 { (exit 1); exit 1; }; }; } 24177 ac_builddir=. 24178 24179case "$ac_dir" in 24180.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24181*) 24182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24183 # A ".." for each directory in $ac_dir_suffix. 24184 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24185 case $ac_top_builddir_sub in 24186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24188 esac ;; 24189esac 24190ac_abs_top_builddir=$ac_pwd 24191ac_abs_builddir=$ac_pwd$ac_dir_suffix 24192# for backward compatibility: 24193ac_top_builddir=$ac_top_build_prefix 24194 24195case $srcdir in 24196 .) # We are building in place. 24197 ac_srcdir=. 24198 ac_top_srcdir=$ac_top_builddir_sub 24199 ac_abs_top_srcdir=$ac_pwd ;; 24200 [\\/]* | ?:[\\/]* ) # Absolute name. 24201 ac_srcdir=$srcdir$ac_dir_suffix; 24202 ac_top_srcdir=$srcdir 24203 ac_abs_top_srcdir=$srcdir ;; 24204 *) # Relative name. 24205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24206 ac_top_srcdir=$ac_top_build_prefix$srcdir 24207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24208esac 24209ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24210 24211 24212 cd "$ac_dir" 24213 24214 # Check for guested configure; otherwise get Cygnus style configure. 24215 if test -f "$ac_srcdir/configure.gnu"; then 24216 ac_sub_configure=$ac_srcdir/configure.gnu 24217 elif test -f "$ac_srcdir/configure"; then 24218 ac_sub_configure=$ac_srcdir/configure 24219 elif test -f "$ac_srcdir/configure.in"; then 24220 # This should be Cygnus configure. 24221 ac_sub_configure=$ac_aux_dir/configure 24222 else 24223 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24224echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24225 ac_sub_configure= 24226 fi 24227 24228 # The recursion is here. 24229 if test -n "$ac_sub_configure"; then 24230 # Make the cache file name correct relative to the subdirectory. 24231 case $cache_file in 24232 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24233 *) # Relative name. 24234 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24235 esac 24236 24237 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24238echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24239 # The eval makes quoting arguments work. 24240 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24241 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24242 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24243echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24244 { (exit 1); exit 1; }; } 24245 fi 24246 24247 cd "$ac_popdir" 24248 done 24249fi 24250 24251