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-tclinclude directory where tcl headers are 1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, 1476 clang, or none; default=check) 1477 --with-udis86=<path> Use udis86 external x86 disassembler library 1478 --with-oprofile=<prefix> 1479 Tell OProfile >= 0.9.4 how to symbolize JIT output 1480 1481Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1487 you have headers in a nonstandard directory <include dir> 1488 CPP C preprocessor 1489 CXX C++ compiler command 1490 CXXFLAGS C++ compiler flags 1491 1492Use these variables to override the choices made by `configure' or to help 1493it to find libraries and programs with nonstandard names/locations. 1494 1495Report bugs to <llvmbugs@cs.uiuc.edu>. 1496_ACEOF 1497ac_status=$? 1498fi 1499 1500if test "$ac_init_help" = "recursive"; then 1501 # If there are subdirs, report their specific --help. 1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1503 test -d "$ac_dir" || continue 1504 ac_builddir=. 1505 1506case "$ac_dir" in 1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508*) 1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516esac 1517ac_abs_top_builddir=$ac_pwd 1518ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519# for backward compatibility: 1520ac_top_builddir=$ac_top_build_prefix 1521 1522case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535esac 1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551fi 1552 1553test -n "$ac_init_help" && exit $ac_status 1554if $ac_init_version; then 1555 cat <<\_ACEOF 1556llvm configure 3.0svn 1557generated by GNU Autoconf 2.60 1558 1559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1561This configure script is free software; the Free Software Foundation 1562gives unlimited permission to copy, distribute and modify it. 1563 1564Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. 1565_ACEOF 1566 exit 1567fi 1568cat >config.log <<_ACEOF 1569This file contains any messages produced by compilers while 1570running configure, to aid debugging if configure makes a mistake. 1571 1572It was created by llvm $as_me 3.0svn, which was 1573generated by GNU Autoconf 2.60. Invocation command line was 1574 1575 $ $0 $@ 1576 1577_ACEOF 1578exec 5>>config.log 1579{ 1580cat <<_ASUNAME 1581## --------- ## 1582## Platform. ## 1583## --------- ## 1584 1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1586uname -m = `(uname -m) 2>/dev/null || echo unknown` 1587uname -r = `(uname -r) 2>/dev/null || echo unknown` 1588uname -s = `(uname -s) 2>/dev/null || echo unknown` 1589uname -v = `(uname -v) 2>/dev/null || echo unknown` 1590 1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1593 1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1601 1602_ASUNAME 1603 1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1605for as_dir in $PATH 1606do 1607 IFS=$as_save_IFS 1608 test -z "$as_dir" && as_dir=. 1609 echo "PATH: $as_dir" 1610done 1611IFS=$as_save_IFS 1612 1613} >&5 1614 1615cat >&5 <<_ACEOF 1616 1617 1618## ----------- ## 1619## Core tests. ## 1620## ----------- ## 1621 1622_ACEOF 1623 1624 1625# Keep a trace of the command line. 1626# Strip out --no-create and --no-recursion so they do not pile up. 1627# Strip out --silent because we don't want to record it for future runs. 1628# Also quote any args containing shell meta-characters. 1629# Make two passes to allow for proper duplicate-argument suppression. 1630ac_configure_args= 1631ac_configure_args0= 1632ac_configure_args1= 1633ac_must_keep_next=false 1634for ac_pass in 1 2 1635do 1636 for ac_arg 1637 do 1638 case $ac_arg in 1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1641 | -silent | --silent | --silen | --sile | --sil) 1642 continue ;; 1643 *\'*) 1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1645 esac 1646 case $ac_pass in 1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1648 2) 1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1650 if test $ac_must_keep_next = true; then 1651 ac_must_keep_next=false # Got value, back to normal. 1652 else 1653 case $ac_arg in 1654 *=* | --config-cache | -C | -disable-* | --disable-* \ 1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1657 | -with-* | --with-* | -without-* | --without-* | --x) 1658 case "$ac_configure_args0 " in 1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1660 esac 1661 ;; 1662 -* ) ac_must_keep_next=true ;; 1663 esac 1664 fi 1665 ac_configure_args="$ac_configure_args '$ac_arg'" 1666 ;; 1667 esac 1668 done 1669done 1670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1671$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1672 1673# When interrupted or exit'd, cleanup temporary files, and complete 1674# config.log. We remove comments because anyway the quotes in there 1675# would cause problems or look ugly. 1676# WARNING: Use '\'' to represent an apostrophe within the trap. 1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1678trap 'exit_status=$? 1679 # Save into config.log some information that might help in debugging. 1680 { 1681 echo 1682 1683 cat <<\_ASBOX 1684## ---------------- ## 1685## Cache variables. ## 1686## ---------------- ## 1687_ASBOX 1688 echo 1689 # The following way of writing the cache mishandles newlines in values, 1690( 1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1692 eval ac_val=\$$ac_var 1693 case $ac_val in #( 1694 *${as_nl}*) 1695 case $ac_var in #( 1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1698 esac 1699 case $ac_var in #( 1700 _ | IFS | as_nl) ;; #( 1701 *) $as_unset $ac_var ;; 1702 esac ;; 1703 esac 1704 done 1705 (set) 2>&1 | 1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1707 *${as_nl}ac_space=\ *) 1708 sed -n \ 1709 "s/'\''/'\''\\\\'\'''\''/g; 1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1711 ;; #( 1712 *) 1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1714 ;; 1715 esac | 1716 sort 1717) 1718 echo 1719 1720 cat <<\_ASBOX 1721## ----------------- ## 1722## Output variables. ## 1723## ----------------- ## 1724_ASBOX 1725 echo 1726 for ac_var in $ac_subst_vars 1727 do 1728 eval ac_val=\$$ac_var 1729 case $ac_val in 1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1731 esac 1732 echo "$ac_var='\''$ac_val'\''" 1733 done | sort 1734 echo 1735 1736 if test -n "$ac_subst_files"; then 1737 cat <<\_ASBOX 1738## ------------------- ## 1739## File substitutions. ## 1740## ------------------- ## 1741_ASBOX 1742 echo 1743 for ac_var in $ac_subst_files 1744 do 1745 eval ac_val=\$$ac_var 1746 case $ac_val in 1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1748 esac 1749 echo "$ac_var='\''$ac_val'\''" 1750 done | sort 1751 echo 1752 fi 1753 1754 if test -s confdefs.h; then 1755 cat <<\_ASBOX 1756## ----------- ## 1757## confdefs.h. ## 1758## ----------- ## 1759_ASBOX 1760 echo 1761 cat confdefs.h 1762 echo 1763 fi 1764 test "$ac_signal" != 0 && 1765 echo "$as_me: caught signal $ac_signal" 1766 echo "$as_me: exit $exit_status" 1767 } >&5 1768 rm -f core *.core core.conftest.* && 1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1770 exit $exit_status 1771' 0 1772for ac_signal in 1 2 13 15; do 1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1774done 1775ac_signal=0 1776 1777# confdefs.h avoids OS command line length limits that DEFS can exceed. 1778rm -f -r conftest* confdefs.h 1779 1780# Predefined preprocessor variables. 1781 1782cat >>confdefs.h <<_ACEOF 1783#define PACKAGE_NAME "$PACKAGE_NAME" 1784_ACEOF 1785 1786 1787cat >>confdefs.h <<_ACEOF 1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1789_ACEOF 1790 1791 1792cat >>confdefs.h <<_ACEOF 1793#define PACKAGE_VERSION "$PACKAGE_VERSION" 1794_ACEOF 1795 1796 1797cat >>confdefs.h <<_ACEOF 1798#define PACKAGE_STRING "$PACKAGE_STRING" 1799_ACEOF 1800 1801 1802cat >>confdefs.h <<_ACEOF 1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1804_ACEOF 1805 1806 1807# Let the site file select an alternate cache file if it wants to. 1808# Prefer explicitly selected file to automatically selected ones. 1809if test -n "$CONFIG_SITE"; then 1810 set x "$CONFIG_SITE" 1811elif test "x$prefix" != xNONE; then 1812 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1813else 1814 set x "$ac_default_prefix/share/config.site" \ 1815 "$ac_default_prefix/etc/config.site" 1816fi 1817shift 1818for ac_site_file 1819do 1820 if test -r "$ac_site_file"; then 1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1822echo "$as_me: loading site script $ac_site_file" >&6;} 1823 sed 's/^/| /' "$ac_site_file" >&5 1824 . "$ac_site_file" 1825 fi 1826done 1827 1828if test -r "$cache_file"; then 1829 # Some versions of bash will fail to source /dev/null (special 1830 # files actually), so we avoid doing that. 1831 if test -f "$cache_file"; then 1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1833echo "$as_me: loading cache $cache_file" >&6;} 1834 case $cache_file in 1835 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1836 *) . "./$cache_file";; 1837 esac 1838 fi 1839else 1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1841echo "$as_me: creating cache $cache_file" >&6;} 1842 >$cache_file 1843fi 1844 1845# Check that the precious variables saved in the cache have kept the same 1846# value. 1847ac_cache_corrupted=false 1848for ac_var in $ac_precious_vars; do 1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1850 eval ac_new_set=\$ac_env_${ac_var}_set 1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1852 eval ac_new_val=\$ac_env_${ac_var}_value 1853 case $ac_old_set,$ac_new_set in 1854 set,) 1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1857 ac_cache_corrupted=: ;; 1858 ,set) 1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1861 ac_cache_corrupted=: ;; 1862 ,);; 1863 *) 1864 if test "x$ac_old_val" != "x$ac_new_val"; then 1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1868echo "$as_me: former value: $ac_old_val" >&2;} 1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1870echo "$as_me: current value: $ac_new_val" >&2;} 1871 ac_cache_corrupted=: 1872 fi;; 1873 esac 1874 # Pass precious variables to config.status. 1875 if test "$ac_new_set" = set; then 1876 case $ac_new_val in 1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1878 *) ac_arg=$ac_var=$ac_new_val ;; 1879 esac 1880 case " $ac_configure_args " in 1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1883 esac 1884 fi 1885done 1886if $ac_cache_corrupted; then 1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1888echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1891 { (exit 1); exit 1; }; } 1892fi 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918ac_ext=c 1919ac_cpp='$CPP $CPPFLAGS' 1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1922ac_compiler_gnu=$ac_cv_c_compiler_gnu 1923 1924 1925 1926LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." 1927 1928 1929 1930 1931 1932 1933 1934ac_aux_dir= 1935for ac_dir in autoconf "$srcdir"/autoconf; do 1936 if test -f "$ac_dir/install-sh"; then 1937 ac_aux_dir=$ac_dir 1938 ac_install_sh="$ac_aux_dir/install-sh -c" 1939 break 1940 elif test -f "$ac_dir/install.sh"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/install.sh -c" 1943 break 1944 elif test -f "$ac_dir/shtool"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/shtool install -c" 1947 break 1948 fi 1949done 1950if test -z "$ac_aux_dir"; then 1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1953 { (exit 1); exit 1; }; } 1954fi 1955 1956# These three variables are undocumented and unsupported, 1957# and are intended to be withdrawn in a future Autoconf release. 1958# They can cause serious problems if a builder's source tree is in a directory 1959# whose full name contains unusual characters. 1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1963 1964 1965 1966if test ${srcdir} != "." ; then 1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1969echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1970 { (exit 1); exit 1; }; } 1971 fi 1972fi 1973 1974 1975 1976if test -d ${srcdir}/projects/llvm-gcc ; then 1977 subdirs="$subdirs projects/llvm-gcc" 1978 1979fi 1980 1981if test -d ${srcdir}/projects/test-suite ; then 1982 subdirs="$subdirs projects/test-suite" 1983 1984fi 1985 1986if test -d ${srcdir}/projects/llvm-test ; then 1987 subdirs="$subdirs projects/llvm-test" 1988 1989fi 1990 1991if test -d ${srcdir}/projects/poolalloc ; then 1992 subdirs="$subdirs projects/poolalloc" 1993 1994fi 1995 1996if test -d ${srcdir}/projects/llvm-poolalloc ; then 1997 subdirs="$subdirs projects/llvm-poolalloc" 1998 1999fi 2000 2001for i in `ls ${srcdir}/projects` 2002do 2003 if test -d ${srcdir}/projects/${i} ; then 2004 case ${i} in 2005 sample) subdirs="$subdirs projects/sample" 2006 ;; 2007 privbracket) subdirs="$subdirs projects/privbracket" 2008 ;; 2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 2010 ;; 2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 2012;; 2013 llvm-java) subdirs="$subdirs projects/llvm-java" 2014 ;; 2015 llvm-tv) subdirs="$subdirs projects/llvm-tv" 2016 ;; 2017 safecode) subdirs="$subdirs projects/safecode" 2018 ;; 2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 2020 ;; 2021 llvm-gcc) ;; 2022 test-suite) ;; 2023 llvm-test) ;; 2024 poolalloc) ;; 2025 llvm-poolalloc) ;; 2026 *) 2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 2028echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 2029 ;; 2030 esac 2031 fi 2032done 2033 2034# Check whether --enable-polly was given. 2035if test "${enable_polly+set}" = set; then 2036 enableval=$enable_polly; 2037else 2038 enableval=default 2039fi 2040 2041case "$enableval" in 2042 yes) ENABLE_POLLY=1 2043 ;; 2044 no) ENABLE_POLLY=0 2045 ;; 2046 default) ENABLE_POLLY=1 2047 ;; 2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 2049echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 2050 { (exit 1); exit 1; }; } ;; 2051esac 2052 2053 2054if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 2055 LLVM_HAS_POLLY=1 2056 2057 subdirs="$subdirs tools/polly" 2058 2059fi 2060 2061 2062# Make sure we can run config.sub. 2063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2066 { (exit 1); exit 1; }; } 2067 2068{ echo "$as_me:$LINENO: checking build system type" >&5 2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2070if test "${ac_cv_build+set}" = set; then 2071 echo $ECHO_N "(cached) $ECHO_C" >&6 2072else 2073 ac_build_alias=$build_alias 2074test "x$ac_build_alias" = x && 2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2076test "x$ac_build_alias" = x && 2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2079 { (exit 1); exit 1; }; } 2080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2083 { (exit 1); exit 1; }; } 2084 2085fi 2086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2087echo "${ECHO_T}$ac_cv_build" >&6; } 2088case $ac_cv_build in 2089*-*-*) ;; 2090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2091echo "$as_me: error: invalid value of canonical build" >&2;} 2092 { (exit 1); exit 1; }; };; 2093esac 2094build=$ac_cv_build 2095ac_save_IFS=$IFS; IFS='-' 2096set x $ac_cv_build 2097shift 2098build_cpu=$1 2099build_vendor=$2 2100shift; shift 2101# Remember, the first character of IFS is used to create $*, 2102# except with old shells: 2103build_os=$* 2104IFS=$ac_save_IFS 2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2106 2107 2108{ echo "$as_me:$LINENO: checking host system type" >&5 2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2110if test "${ac_cv_host+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112else 2113 if test "x$host_alias" = x; then 2114 ac_cv_host=$ac_cv_build 2115else 2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2119 { (exit 1); exit 1; }; } 2120fi 2121 2122fi 2123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2124echo "${ECHO_T}$ac_cv_host" >&6; } 2125case $ac_cv_host in 2126*-*-*) ;; 2127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2128echo "$as_me: error: invalid value of canonical host" >&2;} 2129 { (exit 1); exit 1; }; };; 2130esac 2131host=$ac_cv_host 2132ac_save_IFS=$IFS; IFS='-' 2133set x $ac_cv_host 2134shift 2135host_cpu=$1 2136host_vendor=$2 2137shift; shift 2138# Remember, the first character of IFS is used to create $*, 2139# except with old shells: 2140host_os=$* 2141IFS=$ac_save_IFS 2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2143 2144 2145{ echo "$as_me:$LINENO: checking target system type" >&5 2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2147if test "${ac_cv_target+set}" = set; then 2148 echo $ECHO_N "(cached) $ECHO_C" >&6 2149else 2150 if test "x$target_alias" = x; then 2151 ac_cv_target=$ac_cv_host 2152else 2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2156 { (exit 1); exit 1; }; } 2157fi 2158 2159fi 2160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2161echo "${ECHO_T}$ac_cv_target" >&6; } 2162case $ac_cv_target in 2163*-*-*) ;; 2164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2165echo "$as_me: error: invalid value of canonical target" >&2;} 2166 { (exit 1); exit 1; }; };; 2167esac 2168target=$ac_cv_target 2169ac_save_IFS=$IFS; IFS='-' 2170set x $ac_cv_target 2171shift 2172target_cpu=$1 2173target_vendor=$2 2174shift; shift 2175# Remember, the first character of IFS is used to create $*, 2176# except with old shells: 2177target_os=$* 2178IFS=$ac_save_IFS 2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2180 2181 2182# The aliases save the names the user supplied, while $host etc. 2183# will get canonicalized. 2184test -n "$target_alias" && 2185 test "$program_prefix$program_suffix$program_transform_name" = \ 2186 NONENONEs,x,x, && 2187 program_prefix=${target_alias}- 2188 2189{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2190echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2191if test "${llvm_cv_os_type+set}" = set; then 2192 echo $ECHO_N "(cached) $ECHO_C" >&6 2193else 2194 case $host in 2195 *-*-aix*) 2196 llvm_cv_link_all_option="-Wl,--whole-archive" 2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2198 llvm_cv_os_type="AIX" 2199 llvm_cv_platform_type="Unix" ;; 2200 *-*-irix*) 2201 llvm_cv_link_all_option="-Wl,--whole-archive" 2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2203 llvm_cv_os_type="IRIX" 2204 llvm_cv_platform_type="Unix" ;; 2205 *-*-cygwin*) 2206 llvm_cv_link_all_option="-Wl,--whole-archive" 2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2208 llvm_cv_os_type="Cygwin" 2209 llvm_cv_platform_type="Unix" ;; 2210 *-*-darwin*) 2211 llvm_cv_link_all_option="-Wl,-all_load" 2212 llvm_cv_no_link_all_option="-Wl,-noall_load" 2213 llvm_cv_os_type="Darwin" 2214 llvm_cv_platform_type="Unix" ;; 2215 *-*-minix*) 2216 llvm_cv_link_all_option="-Wl,-all_load" 2217 llvm_cv_no_link_all_option="-Wl,-noall_load" 2218 llvm_cv_os_type="Minix" 2219 llvm_cv_platform_type="Unix" ;; 2220 *-*-freebsd*) 2221 llvm_cv_link_all_option="-Wl,--whole-archive" 2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2223 llvm_cv_os_type="FreeBSD" 2224 llvm_cv_platform_type="Unix" ;; 2225 *-*-openbsd*) 2226 llvm_cv_link_all_option="-Wl,--whole-archive" 2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2228 llvm_cv_os_type="OpenBSD" 2229 llvm_cv_platform_type="Unix" ;; 2230 *-*-netbsd*) 2231 llvm_cv_link_all_option="-Wl,--whole-archive" 2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2233 llvm_cv_os_type="NetBSD" 2234 llvm_cv_platform_type="Unix" ;; 2235 *-*-dragonfly*) 2236 llvm_cv_link_all_option="-Wl,--whole-archive" 2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2238 llvm_cv_os_type="DragonFly" 2239 llvm_cv_platform_type="Unix" ;; 2240 *-*-hpux*) 2241 llvm_cv_link_all_option="-Wl,--whole-archive" 2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2243 llvm_cv_os_type="HP-UX" 2244 llvm_cv_platform_type="Unix" ;; 2245 *-*-interix*) 2246 llvm_cv_link_all_option="-Wl,--whole-archive" 2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2248 llvm_cv_os_type="Interix" 2249 llvm_cv_platform_type="Unix" ;; 2250 *-*-linux*) 2251 llvm_cv_link_all_option="-Wl,--whole-archive" 2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2253 llvm_cv_os_type="Linux" 2254 llvm_cv_platform_type="Unix" ;; 2255 *-*-solaris*) 2256 llvm_cv_link_all_option="-Wl,-z,allextract" 2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2258 llvm_cv_os_type="SunOS" 2259 llvm_cv_platform_type="Unix" ;; 2260 *-*-auroraux*) 2261 llvm_cv_link_all_option="-Wl,-z,allextract" 2262 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2263 llvm_cv_os_type="AuroraUX" 2264 llvm_cv_platform_type="Unix" ;; 2265 *-*-win32*) 2266 llvm_cv_link_all_option="-Wl,--whole-archive" 2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2268 llvm_cv_os_type="Win32" 2269 llvm_cv_platform_type="Win32" ;; 2270 *-*-mingw*) 2271 llvm_cv_link_all_option="-Wl,--whole-archive" 2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2273 llvm_cv_os_type="MingW" 2274 llvm_cv_platform_type="Win32" ;; 2275 *-*-haiku*) 2276 llvm_cv_link_all_option="-Wl,--whole-archive" 2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2278 llvm_cv_os_type="Haiku" 2279 llvm_cv_platform_type="Unix" ;; 2280 *-unknown-eabi*) 2281 llvm_cv_link_all_option="-Wl,--whole-archive" 2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2283 llvm_cv_os_type="Freestanding" 2284 llvm_cv_platform_type="Unix" ;; 2285 *-unknown-elf*) 2286 llvm_cv_link_all_option="-Wl,--whole-archive" 2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2288 llvm_cv_os_type="Freestanding" 2289 llvm_cv_platform_type="Unix" ;; 2290 *) 2291 llvm_cv_link_all_option="" 2292 llvm_cv_no_link_all_option="" 2293 llvm_cv_os_type="Unknown" 2294 llvm_cv_platform_type="Unknown" ;; 2295esac 2296fi 2297{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2298echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2299 2300{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2301echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2302if test "${llvm_cv_target_os_type+set}" = set; then 2303 echo $ECHO_N "(cached) $ECHO_C" >&6 2304else 2305 case $target in 2306 *-*-aix*) 2307 llvm_cv_target_os_type="AIX" ;; 2308 *-*-irix*) 2309 llvm_cv_target_os_type="IRIX" ;; 2310 *-*-cygwin*) 2311 llvm_cv_target_os_type="Cygwin" ;; 2312 *-*-darwin*) 2313 llvm_cv_target_os_type="Darwin" ;; 2314 *-*-minix*) 2315 llvm_cv_target_os_type="Minix" ;; 2316 *-*-freebsd*) 2317 llvm_cv_target_os_type="FreeBSD" ;; 2318 *-*-openbsd*) 2319 llvm_cv_target_os_type="OpenBSD" ;; 2320 *-*-netbsd*) 2321 llvm_cv_target_os_type="NetBSD" ;; 2322 *-*-dragonfly*) 2323 llvm_cv_target_os_type="DragonFly" ;; 2324 *-*-hpux*) 2325 llvm_cv_target_os_type="HP-UX" ;; 2326 *-*-interix*) 2327 llvm_cv_target_os_type="Interix" ;; 2328 *-*-linux*) 2329 llvm_cv_target_os_type="Linux" ;; 2330 *-*-solaris*) 2331 llvm_cv_target_os_type="SunOS" ;; 2332 *-*-auroraux*) 2333 llvm_cv_target_os_type="AuroraUX" ;; 2334 *-*-win32*) 2335 llvm_cv_target_os_type="Win32" ;; 2336 *-*-mingw*) 2337 llvm_cv_target_os_type="MingW" ;; 2338 *-*-haiku*) 2339 llvm_cv_target_os_type="Haiku" ;; 2340 *-*-rtems*) 2341 llvm_cv_target_os_type="RTEMS" ;; 2342 *-unknown-eabi*) 2343 llvm_cv_target_os_type="Freestanding" ;; 2344 *) 2345 llvm_cv_target_os_type="Unknown" ;; 2346esac 2347fi 2348{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2349echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2350 2351if test "$llvm_cv_os_type" = "Unknown" ; then 2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2353echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2354 { (exit 1); exit 1; }; } 2355fi 2356 2357OS=$llvm_cv_os_type 2358 2359HOST_OS=$llvm_cv_os_type 2360 2361TARGET_OS=$llvm_cv_target_os_type 2362 2363 2364LINKALL=$llvm_cv_link_all_option 2365 2366NOLINKALL=$llvm_cv_no_link_all_option 2367 2368 2369case $llvm_cv_platform_type in 2370 Unix) 2371 2372cat >>confdefs.h <<\_ACEOF 2373#define LLVM_ON_UNIX 1 2374_ACEOF 2375 2376 LLVM_ON_UNIX=1 2377 2378 LLVM_ON_WIN32=0 2379 2380 ;; 2381 Win32) 2382 2383cat >>confdefs.h <<\_ACEOF 2384#define LLVM_ON_WIN32 1 2385_ACEOF 2386 2387 LLVM_ON_UNIX=0 2388 2389 LLVM_ON_WIN32=1 2390 2391 ;; 2392esac 2393 2394{ echo "$as_me:$LINENO: checking target architecture" >&5 2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2396if test "${llvm_cv_target_arch+set}" = set; then 2397 echo $ECHO_N "(cached) $ECHO_C" >&6 2398else 2399 case $target in 2400 i?86-*) llvm_cv_target_arch="x86" ;; 2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2402 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2404 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2405 arm*-*) llvm_cv_target_arch="ARM" ;; 2406 mips-*) llvm_cv_target_arch="Mips" ;; 2407 xcore-*) llvm_cv_target_arch="XCore" ;; 2408 msp430-*) llvm_cv_target_arch="MSP430" ;; 2409 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2410 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2411 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 2412 ptx-*) llvm_cv_target_arch="PTX" ;; 2413 *) llvm_cv_target_arch="Unknown" ;; 2414esac 2415fi 2416{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2417echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2418 2419if test "$llvm_cv_target_arch" = "Unknown" ; then 2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2421echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2422fi 2423 2424# Determine the LLVM native architecture for the target 2425case "$llvm_cv_target_arch" in 2426 x86) LLVM_NATIVE_ARCH="X86" ;; 2427 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2429esac 2430 2431ARCH=$llvm_cv_target_arch 2432 2433 2434ac_ext=c 2435ac_cpp='$CPP $CPPFLAGS' 2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2438ac_compiler_gnu=$ac_cv_c_compiler_gnu 2439if test -n "$ac_tool_prefix"; then 2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2441set dummy ${ac_tool_prefix}gcc; ac_word=$2 2442{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2444if test "${ac_cv_prog_CC+set}" = set; then 2445 echo $ECHO_N "(cached) $ECHO_C" >&6 2446else 2447 if test -n "$CC"; then 2448 ac_cv_prog_CC="$CC" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467CC=$ac_cv_prog_CC 2468if test -n "$CC"; then 2469 { echo "$as_me:$LINENO: result: $CC" >&5 2470echo "${ECHO_T}$CC" >&6; } 2471else 2472 { echo "$as_me:$LINENO: result: no" >&5 2473echo "${ECHO_T}no" >&6; } 2474fi 2475 2476 2477fi 2478if test -z "$ac_cv_prog_CC"; then 2479 ac_ct_CC=$CC 2480 # Extract the first word of "gcc", so it can be a program name with args. 2481set dummy gcc; ac_word=$2 2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486else 2487 if test -n "$ac_ct_CC"; then 2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2497 ac_cv_prog_ac_ct_CC="gcc" 2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507ac_ct_CC=$ac_cv_prog_ac_ct_CC 2508if test -n "$ac_ct_CC"; then 2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2510echo "${ECHO_T}$ac_ct_CC" >&6; } 2511else 2512 { echo "$as_me:$LINENO: result: no" >&5 2513echo "${ECHO_T}no" >&6; } 2514fi 2515 2516 if test "x$ac_ct_CC" = x; then 2517 CC="" 2518 else 2519 case $cross_compiling:$ac_tool_warned in 2520yes:) 2521{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2522whose name does not start with the host triplet. If you think this 2523configuration is useful to you, please write to autoconf@gnu.org." >&5 2524echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2525whose name does not start with the host triplet. If you think this 2526configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2527ac_tool_warned=yes ;; 2528esac 2529 CC=$ac_ct_CC 2530 fi 2531else 2532 CC="$ac_cv_prog_CC" 2533fi 2534 2535if test -z "$CC"; then 2536 if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}cc; ac_word=$2 2539{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2541if test "${ac_cv_prog_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_CC="${ac_tool_prefix}cc" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564CC=$ac_cv_prog_CC 2565if test -n "$CC"; then 2566 { echo "$as_me:$LINENO: result: $CC" >&5 2567echo "${ECHO_T}$CC" >&6; } 2568else 2569 { echo "$as_me:$LINENO: result: no" >&5 2570echo "${ECHO_T}no" >&6; } 2571fi 2572 2573 2574 fi 2575fi 2576if test -z "$CC"; then 2577 # Extract the first word of "cc", so it can be a program name with args. 2578set dummy cc; ac_word=$2 2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2581if test "${ac_cv_prog_CC+set}" = set; then 2582 echo $ECHO_N "(cached) $ECHO_C" >&6 2583else 2584 if test -n "$CC"; then 2585 ac_cv_prog_CC="$CC" # Let the user override the test. 2586else 2587 ac_prog_rejected=no 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2596 ac_prog_rejected=yes 2597 continue 2598 fi 2599 ac_cv_prog_CC="cc" 2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2601 break 2 2602 fi 2603done 2604done 2605IFS=$as_save_IFS 2606 2607if test $ac_prog_rejected = yes; then 2608 # We found a bogon in the path, so make sure we never use it. 2609 set dummy $ac_cv_prog_CC 2610 shift 2611 if test $# != 0; then 2612 # We chose a different compiler from the bogus one. 2613 # However, it has the same basename, so the bogon will be chosen 2614 # first if we set CC to just the basename; use the full file name. 2615 shift 2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2617 fi 2618fi 2619fi 2620fi 2621CC=$ac_cv_prog_CC 2622if test -n "$CC"; then 2623 { echo "$as_me:$LINENO: result: $CC" >&5 2624echo "${ECHO_T}$CC" >&6; } 2625else 2626 { echo "$as_me:$LINENO: result: no" >&5 2627echo "${ECHO_T}no" >&6; } 2628fi 2629 2630 2631fi 2632if test -z "$CC"; then 2633 if test -n "$ac_tool_prefix"; then 2634 for ac_prog in cl.exe 2635 do 2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2637set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2638{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2640if test "${ac_cv_prog_CC+set}" = set; then 2641 echo $ECHO_N "(cached) $ECHO_C" >&6 2642else 2643 if test -n "$CC"; then 2644 ac_cv_prog_CC="$CC" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663CC=$ac_cv_prog_CC 2664if test -n "$CC"; then 2665 { echo "$as_me:$LINENO: result: $CC" >&5 2666echo "${ECHO_T}$CC" >&6; } 2667else 2668 { echo "$as_me:$LINENO: result: no" >&5 2669echo "${ECHO_T}no" >&6; } 2670fi 2671 2672 2673 test -n "$CC" && break 2674 done 2675fi 2676if test -z "$CC"; then 2677 ac_ct_CC=$CC 2678 for ac_prog in cl.exe 2679do 2680 # Extract the first word of "$ac_prog", so it can be a program name with args. 2681set dummy $ac_prog; ac_word=$2 2682{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2685 echo $ECHO_N "(cached) $ECHO_C" >&6 2686else 2687 if test -n "$ac_ct_CC"; then 2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_ac_ct_CC="$ac_prog" 2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707ac_ct_CC=$ac_cv_prog_ac_ct_CC 2708if test -n "$ac_ct_CC"; then 2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2710echo "${ECHO_T}$ac_ct_CC" >&6; } 2711else 2712 { echo "$as_me:$LINENO: result: no" >&5 2713echo "${ECHO_T}no" >&6; } 2714fi 2715 2716 2717 test -n "$ac_ct_CC" && break 2718done 2719 2720 if test "x$ac_ct_CC" = x; then 2721 CC="" 2722 else 2723 case $cross_compiling:$ac_tool_warned in 2724yes:) 2725{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2726whose name does not start with the host triplet. If you think this 2727configuration is useful to you, please write to autoconf@gnu.org." >&5 2728echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2729whose name does not start with the host triplet. If you think this 2730configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2731ac_tool_warned=yes ;; 2732esac 2733 CC=$ac_ct_CC 2734 fi 2735fi 2736 2737fi 2738 2739 2740test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2741See \`config.log' for more details." >&5 2742echo "$as_me: error: no acceptable C compiler found in \$PATH 2743See \`config.log' for more details." >&2;} 2744 { (exit 1); exit 1; }; } 2745 2746# Provide some information about the compiler. 2747echo "$as_me:$LINENO: checking for C compiler version" >&5 2748ac_compiler=`set X $ac_compile; echo $2` 2749{ (ac_try="$ac_compiler --version >&5" 2750case "(($ac_try" in 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2752 *) ac_try_echo=$ac_try;; 2753esac 2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2755 (eval "$ac_compiler --version >&5") 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } 2759{ (ac_try="$ac_compiler -v >&5" 2760case "(($ac_try" in 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2762 *) ac_try_echo=$ac_try;; 2763esac 2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2765 (eval "$ac_compiler -v >&5") 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } 2769{ (ac_try="$ac_compiler -V >&5" 2770case "(($ac_try" in 2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2772 *) ac_try_echo=$ac_try;; 2773esac 2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2775 (eval "$ac_compiler -V >&5") 2>&5 2776 ac_status=$? 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); } 2779 2780cat >conftest.$ac_ext <<_ACEOF 2781/* confdefs.h. */ 2782_ACEOF 2783cat confdefs.h >>conftest.$ac_ext 2784cat >>conftest.$ac_ext <<_ACEOF 2785/* end confdefs.h. */ 2786 2787int 2788main () 2789{ 2790 2791 ; 2792 return 0; 2793} 2794_ACEOF 2795ac_clean_files_save=$ac_clean_files 2796ac_clean_files="$ac_clean_files a.out a.exe b.out" 2797# Try to create an executable without -o first, disregard a.out. 2798# It will help us diagnose broken compilers, and finding out an intuition 2799# of exeext. 2800{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2801echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2802ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2803# 2804# List of possible output files, starting from the most likely. 2805# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2806# only as a last resort. b.out is created by i960 compilers. 2807ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2808# 2809# The IRIX 6 linker writes into existing files which may not be 2810# executable, retaining their permissions. Remove them first so a 2811# subsequent execution test works. 2812ac_rmfiles= 2813for ac_file in $ac_files 2814do 2815 case $ac_file in 2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2818 esac 2819done 2820rm -f $ac_rmfiles 2821 2822if { (ac_try="$ac_link_default" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2828 (eval "$ac_link_default") 2>&5 2829 ac_status=$? 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); }; then 2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2834# in a Makefile. We should not override ac_cv_exeext if it was cached, 2835# so that the user can short-circuit this test for compilers unknown to 2836# Autoconf. 2837for ac_file in $ac_files 2838do 2839 test -f "$ac_file" || continue 2840 case $ac_file in 2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2842 ;; 2843 [ab].out ) 2844 # We found the default executable, but exeext='' is most 2845 # certainly right. 2846 break;; 2847 *.* ) 2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2849 then :; else 2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2851 fi 2852 # We set ac_cv_exeext here because the later test for it is not 2853 # safe: cross compilers may not add the suffix if given an `-o' 2854 # argument, so we may need to know it at that point already. 2855 # Even if this section looks crufty: it has the advantage of 2856 # actually working. 2857 break;; 2858 * ) 2859 break;; 2860 esac 2861done 2862test "$ac_cv_exeext" = no && ac_cv_exeext= 2863 2864else 2865 echo "$as_me: failed program was:" >&5 2866sed 's/^/| /' conftest.$ac_ext >&5 2867 2868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2869See \`config.log' for more details." >&5 2870echo "$as_me: error: C compiler cannot create executables 2871See \`config.log' for more details." >&2;} 2872 { (exit 77); exit 77; }; } 2873fi 2874 2875ac_exeext=$ac_cv_exeext 2876{ echo "$as_me:$LINENO: result: $ac_file" >&5 2877echo "${ECHO_T}$ac_file" >&6; } 2878 2879# Check that the compiler produces executables we can run. If not, either 2880# the compiler is broken, or we cross compile. 2881{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2882echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2883# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2884# If not cross compiling, check that we can run a simple program. 2885if test "$cross_compiling" != yes; then 2886 if { ac_try='./$ac_file' 2887 { (case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2892 (eval "$ac_try") 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; }; then 2896 cross_compiling=no 2897 else 2898 if test "$cross_compiling" = maybe; then 2899 cross_compiling=yes 2900 else 2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2902If you meant to cross compile, use \`--host'. 2903See \`config.log' for more details." >&5 2904echo "$as_me: error: cannot run C compiled programs. 2905If you meant to cross compile, use \`--host'. 2906See \`config.log' for more details." >&2;} 2907 { (exit 1); exit 1; }; } 2908 fi 2909 fi 2910fi 2911{ echo "$as_me:$LINENO: result: yes" >&5 2912echo "${ECHO_T}yes" >&6; } 2913 2914rm -f a.out a.exe conftest$ac_cv_exeext b.out 2915ac_clean_files=$ac_clean_files_save 2916# Check that the compiler produces executables we can run. If not, either 2917# the compiler is broken, or we cross compile. 2918{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2920{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2921echo "${ECHO_T}$cross_compiling" >&6; } 2922 2923{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2925if { (ac_try="$ac_link" 2926case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929esac 2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2931 (eval "$ac_link") 2>&5 2932 ac_status=$? 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); }; then 2935 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2936# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2937# work properly (i.e., refer to `conftest.exe'), while it won't with 2938# `rm'. 2939for ac_file in conftest.exe conftest conftest.*; do 2940 test -f "$ac_file" || continue 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2944 break;; 2945 * ) break;; 2946 esac 2947done 2948else 2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2950See \`config.log' for more details." >&5 2951echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2952See \`config.log' for more details." >&2;} 2953 { (exit 1); exit 1; }; } 2954fi 2955 2956rm -f conftest$ac_cv_exeext 2957{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2958echo "${ECHO_T}$ac_cv_exeext" >&6; } 2959 2960rm -f conftest.$ac_ext 2961EXEEXT=$ac_cv_exeext 2962ac_exeext=$EXEEXT 2963{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2964echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2965if test "${ac_cv_objext+set}" = set; then 2966 echo $ECHO_N "(cached) $ECHO_C" >&6 2967else 2968 cat >conftest.$ac_ext <<_ACEOF 2969/* confdefs.h. */ 2970_ACEOF 2971cat confdefs.h >>conftest.$ac_ext 2972cat >>conftest.$ac_ext <<_ACEOF 2973/* end confdefs.h. */ 2974 2975int 2976main () 2977{ 2978 2979 ; 2980 return 0; 2981} 2982_ACEOF 2983rm -f conftest.o conftest.obj 2984if { (ac_try="$ac_compile" 2985case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988esac 2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2990 (eval "$ac_compile") 2>&5 2991 ac_status=$? 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); }; then 2994 for ac_file in conftest.o conftest.obj conftest.*; do 2995 test -f "$ac_file" || continue; 2996 case $ac_file in 2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2999 break;; 3000 esac 3001done 3002else 3003 echo "$as_me: failed program was:" >&5 3004sed 's/^/| /' conftest.$ac_ext >&5 3005 3006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3007See \`config.log' for more details." >&5 3008echo "$as_me: error: cannot compute suffix of object files: cannot compile 3009See \`config.log' for more details." >&2;} 3010 { (exit 1); exit 1; }; } 3011fi 3012 3013rm -f conftest.$ac_cv_objext conftest.$ac_ext 3014fi 3015{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3016echo "${ECHO_T}$ac_cv_objext" >&6; } 3017OBJEXT=$ac_cv_objext 3018ac_objext=$OBJEXT 3019{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3021if test "${ac_cv_c_compiler_gnu+set}" = set; then 3022 echo $ECHO_N "(cached) $ECHO_C" >&6 3023else 3024 cat >conftest.$ac_ext <<_ACEOF 3025/* confdefs.h. */ 3026_ACEOF 3027cat confdefs.h >>conftest.$ac_ext 3028cat >>conftest.$ac_ext <<_ACEOF 3029/* end confdefs.h. */ 3030 3031int 3032main () 3033{ 3034#ifndef __GNUC__ 3035 choke me 3036#endif 3037 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042rm -f conftest.$ac_objext 3043if { (ac_try="$ac_compile" 3044case "(($ac_try" in 3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3046 *) ac_try_echo=$ac_try;; 3047esac 3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3049 (eval "$ac_compile") 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } && 3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3057 { (case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060esac 3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3062 (eval "$ac_try") 2>&5 3063 ac_status=$? 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; } && 3066 { ac_try='test -s conftest.$ac_objext' 3067 { (case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3072 (eval "$ac_try") 2>&5 3073 ac_status=$? 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); }; }; then 3076 ac_compiler_gnu=yes 3077else 3078 echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081 ac_compiler_gnu=no 3082fi 3083 3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085ac_cv_c_compiler_gnu=$ac_compiler_gnu 3086 3087fi 3088{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3089echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3090GCC=`test $ac_compiler_gnu = yes && echo yes` 3091ac_test_CFLAGS=${CFLAGS+set} 3092ac_save_CFLAGS=$CFLAGS 3093{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3094echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3095if test "${ac_cv_prog_cc_g+set}" = set; then 3096 echo $ECHO_N "(cached) $ECHO_C" >&6 3097else 3098 ac_save_c_werror_flag=$ac_c_werror_flag 3099 ac_c_werror_flag=yes 3100 ac_cv_prog_cc_g=no 3101 CFLAGS="-g" 3102 cat >conftest.$ac_ext <<_ACEOF 3103/* confdefs.h. */ 3104_ACEOF 3105cat confdefs.h >>conftest.$ac_ext 3106cat >>conftest.$ac_ext <<_ACEOF 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117rm -f conftest.$ac_objext 3118if { (ac_try="$ac_compile" 3119case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122esac 3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3124 (eval "$ac_compile") 2>conftest.er1 3125 ac_status=$? 3126 grep -v '^ *+' conftest.er1 >conftest.err 3127 rm -f conftest.er1 3128 cat conftest.err >&5 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); } && 3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3132 { (case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3137 (eval "$ac_try") 2>&5 3138 ac_status=$? 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); }; } && 3141 { ac_try='test -s conftest.$ac_objext' 3142 { (case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145esac 3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3147 (eval "$ac_try") 2>&5 3148 ac_status=$? 3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3150 (exit $ac_status); }; }; then 3151 ac_cv_prog_cc_g=yes 3152else 3153 echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156 CFLAGS="" 3157 cat >conftest.$ac_ext <<_ACEOF 3158/* confdefs.h. */ 3159_ACEOF 3160cat confdefs.h >>conftest.$ac_ext 3161cat >>conftest.$ac_ext <<_ACEOF 3162/* end confdefs.h. */ 3163 3164int 3165main () 3166{ 3167 3168 ; 3169 return 0; 3170} 3171_ACEOF 3172rm -f conftest.$ac_objext 3173if { (ac_try="$ac_compile" 3174case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_compile") 2>conftest.er1 3180 ac_status=$? 3181 grep -v '^ *+' conftest.er1 >conftest.err 3182 rm -f conftest.er1 3183 cat conftest.err >&5 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } && 3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3187 { (case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3192 (eval "$ac_try") 2>&5 3193 ac_status=$? 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); }; } && 3196 { ac_try='test -s conftest.$ac_objext' 3197 { (case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3202 (eval "$ac_try") 2>&5 3203 ac_status=$? 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); }; }; then 3206 : 3207else 3208 echo "$as_me: failed program was:" >&5 3209sed 's/^/| /' conftest.$ac_ext >&5 3210 3211 ac_c_werror_flag=$ac_save_c_werror_flag 3212 CFLAGS="-g" 3213 cat >conftest.$ac_ext <<_ACEOF 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219 3220int 3221main () 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228rm -f conftest.$ac_objext 3229if { (ac_try="$ac_compile" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3235 (eval "$ac_compile") 2>conftest.er1 3236 ac_status=$? 3237 grep -v '^ *+' conftest.er1 >conftest.err 3238 rm -f conftest.er1 3239 cat conftest.err >&5 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); } && 3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3243 { (case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246esac 3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_try") 2>&5 3249 ac_status=$? 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); }; } && 3252 { ac_try='test -s conftest.$ac_objext' 3253 { (case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256esac 3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3258 (eval "$ac_try") 2>&5 3259 ac_status=$? 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); }; }; then 3262 ac_cv_prog_cc_g=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 3268fi 3269 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271fi 3272 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274fi 3275 3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278fi 3279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3281if test "$ac_test_CFLAGS" = set; then 3282 CFLAGS=$ac_save_CFLAGS 3283elif test $ac_cv_prog_cc_g = yes; then 3284 if test "$GCC" = yes; then 3285 CFLAGS="-g -O2" 3286 else 3287 CFLAGS="-g" 3288 fi 3289else 3290 if test "$GCC" = yes; then 3291 CFLAGS="-O2" 3292 else 3293 CFLAGS= 3294 fi 3295fi 3296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3298if test "${ac_cv_prog_cc_c89+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 ac_cv_prog_cc_c89=no 3302ac_save_CC=$CC 3303cat >conftest.$ac_ext <<_ACEOF 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309#include <stdarg.h> 3310#include <stdio.h> 3311#include <sys/types.h> 3312#include <sys/stat.h> 3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3314struct buf { int x; }; 3315FILE * (*rcsopen) (struct buf *, struct stat *, int); 3316static char *e (p, i) 3317 char **p; 3318 int i; 3319{ 3320 return p[i]; 3321} 3322static char *f (char * (*g) (char **, int), char **p, ...) 3323{ 3324 char *s; 3325 va_list v; 3326 va_start (v,p); 3327 s = g (p, va_arg (v,int)); 3328 va_end (v); 3329 return s; 3330} 3331 3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3333 function prototypes and stuff, but not '\xHH' hex character constants. 3334 These don't provoke an error unfortunately, instead are silently treated 3335 as 'x'. The following induces an error, until -std is added to get 3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3337 array size at least. It's necessary to write '\x00'==0 to get something 3338 that's true only with -std. */ 3339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3340 3341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3342 inside strings and character constants. */ 3343#define FOO(x) 'x' 3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3345 3346int test (int i, double x); 3347struct s1 {int (*f) (int a);}; 3348struct s2 {int (*f) (double a);}; 3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3350int argc; 3351char **argv; 3352int 3353main () 3354{ 3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3362do 3363 CC="$ac_save_CC $ac_arg" 3364 rm -f conftest.$ac_objext 3365if { (ac_try="$ac_compile" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_compile") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && 3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3379 { (case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3384 (eval "$ac_try") 2>&5 3385 ac_status=$? 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); }; } && 3388 { ac_try='test -s conftest.$ac_objext' 3389 { (case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3394 (eval "$ac_try") 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); }; }; then 3398 ac_cv_prog_cc_c89=$ac_arg 3399else 3400 echo "$as_me: failed program was:" >&5 3401sed 's/^/| /' conftest.$ac_ext >&5 3402 3403 3404fi 3405 3406rm -f core conftest.err conftest.$ac_objext 3407 test "x$ac_cv_prog_cc_c89" != "xno" && break 3408done 3409rm -f conftest.$ac_ext 3410CC=$ac_save_CC 3411 3412fi 3413# AC_CACHE_VAL 3414case "x$ac_cv_prog_cc_c89" in 3415 x) 3416 { echo "$as_me:$LINENO: result: none needed" >&5 3417echo "${ECHO_T}none needed" >&6; } ;; 3418 xno) 3419 { echo "$as_me:$LINENO: result: unsupported" >&5 3420echo "${ECHO_T}unsupported" >&6; } ;; 3421 *) 3422 CC="$CC $ac_cv_prog_cc_c89" 3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3424echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3425esac 3426 3427 3428ac_ext=c 3429ac_cpp='$CPP $CPPFLAGS' 3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3432ac_compiler_gnu=$ac_cv_c_compiler_gnu 3433 3434 3435ac_ext=c 3436ac_cpp='$CPP $CPPFLAGS' 3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3439ac_compiler_gnu=$ac_cv_c_compiler_gnu 3440{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3441echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3442# On Suns, sometimes $CPP names a directory. 3443if test -n "$CPP" && test -d "$CPP"; then 3444 CPP= 3445fi 3446if test -z "$CPP"; then 3447 if test "${ac_cv_prog_CPP+set}" = set; then 3448 echo $ECHO_N "(cached) $ECHO_C" >&6 3449else 3450 # Double quotes because CPP needs to be expanded 3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3452 do 3453 ac_preproc_ok=false 3454for ac_c_preproc_warn_flag in '' yes 3455do 3456 # Use a header file that comes with gcc, so configuring glibc 3457 # with a fresh cross-compiler works. 3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3459 # <limits.h> exists even on freestanding compilers. 3460 # On the NeXT, cc -E runs the code through the compiler's parser, 3461 # not just through cpp. "Syntax error" is here to catch this case. 3462 cat >conftest.$ac_ext <<_ACEOF 3463/* confdefs.h. */ 3464_ACEOF 3465cat confdefs.h >>conftest.$ac_ext 3466cat >>conftest.$ac_ext <<_ACEOF 3467/* end confdefs.h. */ 3468#ifdef __STDC__ 3469# include <limits.h> 3470#else 3471# include <assert.h> 3472#endif 3473 Syntax error 3474_ACEOF 3475if { (ac_try="$ac_cpp conftest.$ac_ext" 3476case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479esac 3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } >/dev/null; then 3488 if test -s conftest.err; then 3489 ac_cpp_err=$ac_c_preproc_warn_flag 3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3491 else 3492 ac_cpp_err= 3493 fi 3494else 3495 ac_cpp_err=yes 3496fi 3497if test -z "$ac_cpp_err"; then 3498 : 3499else 3500 echo "$as_me: failed program was:" >&5 3501sed 's/^/| /' conftest.$ac_ext >&5 3502 3503 # Broken: fails on valid input. 3504continue 3505fi 3506 3507rm -f conftest.err conftest.$ac_ext 3508 3509 # OK, works on sane cases. Now check whether nonexistent headers 3510 # can be detected and how. 3511 cat >conftest.$ac_ext <<_ACEOF 3512/* confdefs.h. */ 3513_ACEOF 3514cat confdefs.h >>conftest.$ac_ext 3515cat >>conftest.$ac_ext <<_ACEOF 3516/* end confdefs.h. */ 3517#include <ac_nonexistent.h> 3518_ACEOF 3519if { (ac_try="$ac_cpp conftest.$ac_ext" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3526 ac_status=$? 3527 grep -v '^ *+' conftest.er1 >conftest.err 3528 rm -f conftest.er1 3529 cat conftest.err >&5 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); } >/dev/null; then 3532 if test -s conftest.err; then 3533 ac_cpp_err=$ac_c_preproc_warn_flag 3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3535 else 3536 ac_cpp_err= 3537 fi 3538else 3539 ac_cpp_err=yes 3540fi 3541if test -z "$ac_cpp_err"; then 3542 # Broken: success on invalid input. 3543continue 3544else 3545 echo "$as_me: failed program was:" >&5 3546sed 's/^/| /' conftest.$ac_ext >&5 3547 3548 # Passes both tests. 3549ac_preproc_ok=: 3550break 3551fi 3552 3553rm -f conftest.err conftest.$ac_ext 3554 3555done 3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3557rm -f conftest.err conftest.$ac_ext 3558if $ac_preproc_ok; then 3559 break 3560fi 3561 3562 done 3563 ac_cv_prog_CPP=$CPP 3564 3565fi 3566 CPP=$ac_cv_prog_CPP 3567else 3568 ac_cv_prog_CPP=$CPP 3569fi 3570{ echo "$as_me:$LINENO: result: $CPP" >&5 3571echo "${ECHO_T}$CPP" >&6; } 3572ac_preproc_ok=false 3573for ac_c_preproc_warn_flag in '' yes 3574do 3575 # Use a header file that comes with gcc, so configuring glibc 3576 # with a fresh cross-compiler works. 3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3578 # <limits.h> exists even on freestanding compilers. 3579 # On the NeXT, cc -E runs the code through the compiler's parser, 3580 # not just through cpp. "Syntax error" is here to catch this case. 3581 cat >conftest.$ac_ext <<_ACEOF 3582/* confdefs.h. */ 3583_ACEOF 3584cat confdefs.h >>conftest.$ac_ext 3585cat >>conftest.$ac_ext <<_ACEOF 3586/* end confdefs.h. */ 3587#ifdef __STDC__ 3588# include <limits.h> 3589#else 3590# include <assert.h> 3591#endif 3592 Syntax error 3593_ACEOF 3594if { (ac_try="$ac_cpp conftest.$ac_ext" 3595case "(($ac_try" in 3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3597 *) ac_try_echo=$ac_try;; 3598esac 3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3601 ac_status=$? 3602 grep -v '^ *+' conftest.er1 >conftest.err 3603 rm -f conftest.er1 3604 cat conftest.err >&5 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); } >/dev/null; then 3607 if test -s conftest.err; then 3608 ac_cpp_err=$ac_c_preproc_warn_flag 3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3610 else 3611 ac_cpp_err= 3612 fi 3613else 3614 ac_cpp_err=yes 3615fi 3616if test -z "$ac_cpp_err"; then 3617 : 3618else 3619 echo "$as_me: failed program was:" >&5 3620sed 's/^/| /' conftest.$ac_ext >&5 3621 3622 # Broken: fails on valid input. 3623continue 3624fi 3625 3626rm -f conftest.err conftest.$ac_ext 3627 3628 # OK, works on sane cases. Now check whether nonexistent headers 3629 # can be detected and how. 3630 cat >conftest.$ac_ext <<_ACEOF 3631/* confdefs.h. */ 3632_ACEOF 3633cat confdefs.h >>conftest.$ac_ext 3634cat >>conftest.$ac_ext <<_ACEOF 3635/* end confdefs.h. */ 3636#include <ac_nonexistent.h> 3637_ACEOF 3638if { (ac_try="$ac_cpp conftest.$ac_ext" 3639case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3645 ac_status=$? 3646 grep -v '^ *+' conftest.er1 >conftest.err 3647 rm -f conftest.er1 3648 cat conftest.err >&5 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } >/dev/null; then 3651 if test -s conftest.err; then 3652 ac_cpp_err=$ac_c_preproc_warn_flag 3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3654 else 3655 ac_cpp_err= 3656 fi 3657else 3658 ac_cpp_err=yes 3659fi 3660if test -z "$ac_cpp_err"; then 3661 # Broken: success on invalid input. 3662continue 3663else 3664 echo "$as_me: failed program was:" >&5 3665sed 's/^/| /' conftest.$ac_ext >&5 3666 3667 # Passes both tests. 3668ac_preproc_ok=: 3669break 3670fi 3671 3672rm -f conftest.err conftest.$ac_ext 3673 3674done 3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3676rm -f conftest.err conftest.$ac_ext 3677if $ac_preproc_ok; then 3678 : 3679else 3680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3681See \`config.log' for more details." >&5 3682echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3683See \`config.log' for more details." >&2;} 3684 { (exit 1); exit 1; }; } 3685fi 3686 3687ac_ext=c 3688ac_cpp='$CPP $CPPFLAGS' 3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3691ac_compiler_gnu=$ac_cv_c_compiler_gnu 3692 3693 3694{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3695echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3696if test "${ac_cv_path_GREP+set}" = set; then 3697 echo $ECHO_N "(cached) $ECHO_C" >&6 3698else 3699 # Extract the first word of "grep ggrep" to use in msg output 3700if test -z "$GREP"; then 3701set dummy grep ggrep; ac_prog_name=$2 3702if test "${ac_cv_path_GREP+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704else 3705 ac_path_GREP_found=false 3706# Loop through the user's path and test for each of PROGNAME-LIST 3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3709do 3710 IFS=$as_save_IFS 3711 test -z "$as_dir" && as_dir=. 3712 for ac_prog in grep ggrep; do 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3716 # Check for GNU ac_path_GREP and select it if it is found. 3717 # Check for GNU $ac_path_GREP 3718case `"$ac_path_GREP" --version 2>&1` in 3719*GNU*) 3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3721*) 3722 ac_count=0 3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3724 while : 3725 do 3726 cat "conftest.in" "conftest.in" >"conftest.tmp" 3727 mv "conftest.tmp" "conftest.in" 3728 cp "conftest.in" "conftest.nl" 3729 echo 'GREP' >> "conftest.nl" 3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3732 ac_count=`expr $ac_count + 1` 3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3734 # Best one so far, save it but keep looking for a better one 3735 ac_cv_path_GREP="$ac_path_GREP" 3736 ac_path_GREP_max=$ac_count 3737 fi 3738 # 10*(2^10) chars as input seems more than enough 3739 test $ac_count -gt 10 && break 3740 done 3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3742esac 3743 3744 3745 $ac_path_GREP_found && break 3 3746 done 3747done 3748 3749done 3750IFS=$as_save_IFS 3751 3752 3753fi 3754 3755GREP="$ac_cv_path_GREP" 3756if test -z "$GREP"; then 3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3759 { (exit 1); exit 1; }; } 3760fi 3761 3762else 3763 ac_cv_path_GREP=$GREP 3764fi 3765 3766 3767fi 3768{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3769echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3770 GREP="$ac_cv_path_GREP" 3771 3772 3773{ echo "$as_me:$LINENO: checking for egrep" >&5 3774echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3775if test "${ac_cv_path_EGREP+set}" = set; then 3776 echo $ECHO_N "(cached) $ECHO_C" >&6 3777else 3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3779 then ac_cv_path_EGREP="$GREP -E" 3780 else 3781 # Extract the first word of "egrep" to use in msg output 3782if test -z "$EGREP"; then 3783set dummy egrep; ac_prog_name=$2 3784if test "${ac_cv_path_EGREP+set}" = set; then 3785 echo $ECHO_N "(cached) $ECHO_C" >&6 3786else 3787 ac_path_EGREP_found=false 3788# Loop through the user's path and test for each of PROGNAME-LIST 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_prog in egrep; do 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3798 # Check for GNU ac_path_EGREP and select it if it is found. 3799 # Check for GNU $ac_path_EGREP 3800case `"$ac_path_EGREP" --version 2>&1` in 3801*GNU*) 3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3803*) 3804 ac_count=0 3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3806 while : 3807 do 3808 cat "conftest.in" "conftest.in" >"conftest.tmp" 3809 mv "conftest.tmp" "conftest.in" 3810 cp "conftest.in" "conftest.nl" 3811 echo 'EGREP' >> "conftest.nl" 3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3814 ac_count=`expr $ac_count + 1` 3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3816 # Best one so far, save it but keep looking for a better one 3817 ac_cv_path_EGREP="$ac_path_EGREP" 3818 ac_path_EGREP_max=$ac_count 3819 fi 3820 # 10*(2^10) chars as input seems more than enough 3821 test $ac_count -gt 10 && break 3822 done 3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3824esac 3825 3826 3827 $ac_path_EGREP_found && break 3 3828 done 3829done 3830 3831done 3832IFS=$as_save_IFS 3833 3834 3835fi 3836 3837EGREP="$ac_cv_path_EGREP" 3838if test -z "$EGREP"; then 3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3840echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3841 { (exit 1); exit 1; }; } 3842fi 3843 3844else 3845 ac_cv_path_EGREP=$EGREP 3846fi 3847 3848 3849 fi 3850fi 3851{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3852echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3853 EGREP="$ac_cv_path_EGREP" 3854 3855 3856{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3857echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3858if test "${ac_cv_header_stdc+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860else 3861 cat >conftest.$ac_ext <<_ACEOF 3862/* confdefs.h. */ 3863_ACEOF 3864cat confdefs.h >>conftest.$ac_ext 3865cat >>conftest.$ac_ext <<_ACEOF 3866/* end confdefs.h. */ 3867#include <stdlib.h> 3868#include <stdarg.h> 3869#include <string.h> 3870#include <float.h> 3871 3872int 3873main () 3874{ 3875 3876 ; 3877 return 0; 3878} 3879_ACEOF 3880rm -f conftest.$ac_objext 3881if { (ac_try="$ac_compile" 3882case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3887 (eval "$ac_compile") 2>conftest.er1 3888 ac_status=$? 3889 grep -v '^ *+' conftest.er1 >conftest.err 3890 rm -f conftest.er1 3891 cat conftest.err >&5 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); } && 3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3895 { (case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898esac 3899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3900 (eval "$ac_try") 2>&5 3901 ac_status=$? 3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3903 (exit $ac_status); }; } && 3904 { ac_try='test -s conftest.$ac_objext' 3905 { (case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3910 (eval "$ac_try") 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; }; then 3914 ac_cv_header_stdc=yes 3915else 3916 echo "$as_me: failed program was:" >&5 3917sed 's/^/| /' conftest.$ac_ext >&5 3918 3919 ac_cv_header_stdc=no 3920fi 3921 3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3923 3924if test $ac_cv_header_stdc = yes; then 3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3926 cat >conftest.$ac_ext <<_ACEOF 3927/* confdefs.h. */ 3928_ACEOF 3929cat confdefs.h >>conftest.$ac_ext 3930cat >>conftest.$ac_ext <<_ACEOF 3931/* end confdefs.h. */ 3932#include <string.h> 3933 3934_ACEOF 3935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3936 $EGREP "memchr" >/dev/null 2>&1; then 3937 : 3938else 3939 ac_cv_header_stdc=no 3940fi 3941rm -f conftest* 3942 3943fi 3944 3945if test $ac_cv_header_stdc = yes; then 3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3947 cat >conftest.$ac_ext <<_ACEOF 3948/* confdefs.h. */ 3949_ACEOF 3950cat confdefs.h >>conftest.$ac_ext 3951cat >>conftest.$ac_ext <<_ACEOF 3952/* end confdefs.h. */ 3953#include <stdlib.h> 3954 3955_ACEOF 3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3957 $EGREP "free" >/dev/null 2>&1; then 3958 : 3959else 3960 ac_cv_header_stdc=no 3961fi 3962rm -f conftest* 3963 3964fi 3965 3966if test $ac_cv_header_stdc = yes; then 3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3968 if test "$cross_compiling" = yes; then 3969 : 3970else 3971 cat >conftest.$ac_ext <<_ACEOF 3972/* confdefs.h. */ 3973_ACEOF 3974cat confdefs.h >>conftest.$ac_ext 3975cat >>conftest.$ac_ext <<_ACEOF 3976/* end confdefs.h. */ 3977#include <ctype.h> 3978#include <stdlib.h> 3979#if ((' ' & 0x0FF) == 0x020) 3980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3982#else 3983# define ISLOWER(c) \ 3984 (('a' <= (c) && (c) <= 'i') \ 3985 || ('j' <= (c) && (c) <= 'r') \ 3986 || ('s' <= (c) && (c) <= 'z')) 3987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3988#endif 3989 3990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3991int 3992main () 3993{ 3994 int i; 3995 for (i = 0; i < 256; i++) 3996 if (XOR (islower (i), ISLOWER (i)) 3997 || toupper (i) != TOUPPER (i)) 3998 return 2; 3999 return 0; 4000} 4001_ACEOF 4002rm -f conftest$ac_exeext 4003if { (ac_try="$ac_link" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4009 (eval "$ac_link") 2>&5 4010 ac_status=$? 4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4013 { (case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4018 (eval "$ac_try") 2>&5 4019 ac_status=$? 4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4021 (exit $ac_status); }; }; then 4022 : 4023else 4024 echo "$as_me: program exited with status $ac_status" >&5 4025echo "$as_me: failed program was:" >&5 4026sed 's/^/| /' conftest.$ac_ext >&5 4027 4028( exit $ac_status ) 4029ac_cv_header_stdc=no 4030fi 4031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4032fi 4033 4034 4035fi 4036fi 4037{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4038echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4039if test $ac_cv_header_stdc = yes; then 4040 4041cat >>confdefs.h <<\_ACEOF 4042#define STDC_HEADERS 1 4043_ACEOF 4044 4045fi 4046 4047# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4058 inttypes.h stdint.h unistd.h 4059do 4060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4061{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065else 4066 cat >conftest.$ac_ext <<_ACEOF 4067/* confdefs.h. */ 4068_ACEOF 4069cat confdefs.h >>conftest.$ac_ext 4070cat >>conftest.$ac_ext <<_ACEOF 4071/* end confdefs.h. */ 4072$ac_includes_default 4073 4074#include <$ac_header> 4075_ACEOF 4076rm -f conftest.$ac_objext 4077if { (ac_try="$ac_compile" 4078case "(($ac_try" in 4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4080 *) ac_try_echo=$ac_try;; 4081esac 4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4083 (eval "$ac_compile") 2>conftest.er1 4084 ac_status=$? 4085 grep -v '^ *+' conftest.er1 >conftest.err 4086 rm -f conftest.er1 4087 cat conftest.err >&5 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); } && 4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4091 { (case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094esac 4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4096 (eval "$ac_try") 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); }; } && 4100 { ac_try='test -s conftest.$ac_objext' 4101 { (case "(($ac_try" in 4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4103 *) ac_try_echo=$ac_try;; 4104esac 4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4106 (eval "$ac_try") 2>&5 4107 ac_status=$? 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); }; }; then 4110 eval "$as_ac_Header=yes" 4111else 4112 echo "$as_me: failed program was:" >&5 4113sed 's/^/| /' conftest.$ac_ext >&5 4114 4115 eval "$as_ac_Header=no" 4116fi 4117 4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4119fi 4120ac_res=`eval echo '${'$as_ac_Header'}'` 4121 { echo "$as_me:$LINENO: result: $ac_res" >&5 4122echo "${ECHO_T}$ac_res" >&6; } 4123if test `eval echo '${'$as_ac_Header'}'` = yes; then 4124 cat >>confdefs.h <<_ACEOF 4125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4126_ACEOF 4127 4128fi 4129 4130done 4131 4132 4133{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4134echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4135if test "${ac_cv_c_bigendian+set}" = set; then 4136 echo $ECHO_N "(cached) $ECHO_C" >&6 4137else 4138 # See if sys/param.h defines the BYTE_ORDER macro. 4139cat >conftest.$ac_ext <<_ACEOF 4140/* confdefs.h. */ 4141_ACEOF 4142cat confdefs.h >>conftest.$ac_ext 4143cat >>conftest.$ac_ext <<_ACEOF 4144/* end confdefs.h. */ 4145#include <sys/types.h> 4146#include <sys/param.h> 4147 4148int 4149main () 4150{ 4151#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4152 bogus endian macros 4153#endif 4154 4155 ; 4156 return 0; 4157} 4158_ACEOF 4159rm -f conftest.$ac_objext 4160if { (ac_try="$ac_compile" 4161case "(($ac_try" in 4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4163 *) ac_try_echo=$ac_try;; 4164esac 4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4166 (eval "$ac_compile") 2>conftest.er1 4167 ac_status=$? 4168 grep -v '^ *+' conftest.er1 >conftest.err 4169 rm -f conftest.er1 4170 cat conftest.err >&5 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); } && 4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4174 { (case "(($ac_try" in 4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4176 *) ac_try_echo=$ac_try;; 4177esac 4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4179 (eval "$ac_try") 2>&5 4180 ac_status=$? 4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4182 (exit $ac_status); }; } && 4183 { ac_try='test -s conftest.$ac_objext' 4184 { (case "(($ac_try" in 4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4186 *) ac_try_echo=$ac_try;; 4187esac 4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4189 (eval "$ac_try") 2>&5 4190 ac_status=$? 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192 (exit $ac_status); }; }; then 4193 # It does; now see whether it defined to BIG_ENDIAN or not. 4194cat >conftest.$ac_ext <<_ACEOF 4195/* confdefs.h. */ 4196_ACEOF 4197cat confdefs.h >>conftest.$ac_ext 4198cat >>conftest.$ac_ext <<_ACEOF 4199/* end confdefs.h. */ 4200#include <sys/types.h> 4201#include <sys/param.h> 4202 4203int 4204main () 4205{ 4206#if BYTE_ORDER != BIG_ENDIAN 4207 not big endian 4208#endif 4209 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214rm -f conftest.$ac_objext 4215if { (ac_try="$ac_compile" 4216case "(($ac_try" in 4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4218 *) ac_try_echo=$ac_try;; 4219esac 4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4221 (eval "$ac_compile") 2>conftest.er1 4222 ac_status=$? 4223 grep -v '^ *+' conftest.er1 >conftest.err 4224 rm -f conftest.er1 4225 cat conftest.err >&5 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } && 4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4229 { (case "(($ac_try" in 4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4231 *) ac_try_echo=$ac_try;; 4232esac 4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4234 (eval "$ac_try") 2>&5 4235 ac_status=$? 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); }; } && 4238 { ac_try='test -s conftest.$ac_objext' 4239 { (case "(($ac_try" in 4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4241 *) ac_try_echo=$ac_try;; 4242esac 4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4244 (eval "$ac_try") 2>&5 4245 ac_status=$? 4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4247 (exit $ac_status); }; }; then 4248 ac_cv_c_bigendian=yes 4249else 4250 echo "$as_me: failed program was:" >&5 4251sed 's/^/| /' conftest.$ac_ext >&5 4252 4253 ac_cv_c_bigendian=no 4254fi 4255 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4257else 4258 echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261 # It does not; compile a test program. 4262if test "$cross_compiling" = yes; then 4263 # try to guess the endianness by grepping values into an object file 4264 ac_cv_c_bigendian=unknown 4265 cat >conftest.$ac_ext <<_ACEOF 4266/* confdefs.h. */ 4267_ACEOF 4268cat confdefs.h >>conftest.$ac_ext 4269cat >>conftest.$ac_ext <<_ACEOF 4270/* end confdefs.h. */ 4271short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4272short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4273void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4274short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4275short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4276void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4277int 4278main () 4279{ 4280 _ascii (); _ebcdic (); 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285rm -f conftest.$ac_objext 4286if { (ac_try="$ac_compile" 4287case "(($ac_try" in 4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4289 *) ac_try_echo=$ac_try;; 4290esac 4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4292 (eval "$ac_compile") 2>conftest.er1 4293 ac_status=$? 4294 grep -v '^ *+' conftest.er1 >conftest.err 4295 rm -f conftest.er1 4296 cat conftest.err >&5 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } && 4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4300 { (case "(($ac_try" in 4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4302 *) ac_try_echo=$ac_try;; 4303esac 4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4305 (eval "$ac_try") 2>&5 4306 ac_status=$? 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4308 (exit $ac_status); }; } && 4309 { ac_try='test -s conftest.$ac_objext' 4310 { (case "(($ac_try" in 4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312 *) ac_try_echo=$ac_try;; 4313esac 4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4315 (eval "$ac_try") 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; }; then 4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4320 ac_cv_c_bigendian=yes 4321fi 4322if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4323 if test "$ac_cv_c_bigendian" = unknown; then 4324 ac_cv_c_bigendian=no 4325 else 4326 # finding both strings is unlikely to happen, but who knows? 4327 ac_cv_c_bigendian=unknown 4328 fi 4329fi 4330else 4331 echo "$as_me: failed program was:" >&5 4332sed 's/^/| /' conftest.$ac_ext >&5 4333 4334 4335fi 4336 4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4338else 4339 cat >conftest.$ac_ext <<_ACEOF 4340/* confdefs.h. */ 4341_ACEOF 4342cat confdefs.h >>conftest.$ac_ext 4343cat >>conftest.$ac_ext <<_ACEOF 4344/* end confdefs.h. */ 4345$ac_includes_default 4346int 4347main () 4348{ 4349 4350 /* Are we little or big endian? From Harbison&Steele. */ 4351 union 4352 { 4353 long int l; 4354 char c[sizeof (long int)]; 4355 } u; 4356 u.l = 1; 4357 return u.c[sizeof (long int) - 1] == 1; 4358 4359 ; 4360 return 0; 4361} 4362_ACEOF 4363rm -f conftest$ac_exeext 4364if { (ac_try="$ac_link" 4365case "(($ac_try" in 4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4367 *) ac_try_echo=$ac_try;; 4368esac 4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4370 (eval "$ac_link") 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4374 { (case "(($ac_try" in 4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4376 *) ac_try_echo=$ac_try;; 4377esac 4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4379 (eval "$ac_try") 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; }; then 4383 ac_cv_c_bigendian=no 4384else 4385 echo "$as_me: program exited with status $ac_status" >&5 4386echo "$as_me: failed program was:" >&5 4387sed 's/^/| /' conftest.$ac_ext >&5 4388 4389( exit $ac_status ) 4390ac_cv_c_bigendian=yes 4391fi 4392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4393fi 4394 4395 4396fi 4397 4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4399fi 4400{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4401echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4402case $ac_cv_c_bigendian in 4403 yes) 4404 ENDIAN=big 4405 ;; 4406 no) 4407 ENDIAN=little 4408 ;; 4409 *) 4410 { { echo "$as_me:$LINENO: error: unknown endianness 4411presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4412echo "$as_me: error: unknown endianness 4413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4414 { (exit 1); exit 1; }; } ;; 4415esac 4416 4417 4418if test "$cross_compiling" = yes; then 4419 LLVM_CROSS_COMPILING=1 4420 4421 4422{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4423echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4424if test "${ac_cv_build_exeext+set}" = set; then 4425 echo $ECHO_N "(cached) $ECHO_C" >&6 4426else 4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4428 ac_cv_build_exeext=.exe 4429else 4430 ac_build_prefix=${build_alias}- 4431 4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4433set dummy ${ac_build_prefix}gcc; ac_word=$2 4434{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4436if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4437 echo $ECHO_N "(cached) $ECHO_C" >&6 4438else 4439 if test -n "$BUILD_CC"; then 4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4441else 4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4443for as_dir in $PATH 4444do 4445 IFS=$as_save_IFS 4446 test -z "$as_dir" && as_dir=. 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453done 4454done 4455IFS=$as_save_IFS 4456 4457fi 4458fi 4459BUILD_CC=$ac_cv_prog_BUILD_CC 4460if test -n "$BUILD_CC"; then 4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4462echo "${ECHO_T}$BUILD_CC" >&6; } 4463else 4464 { echo "$as_me:$LINENO: result: no" >&5 4465echo "${ECHO_T}no" >&6; } 4466fi 4467 4468 4469 if test -z "$BUILD_CC"; then 4470 # Extract the first word of "gcc", so it can be a program name with args. 4471set dummy gcc; ac_word=$2 4472{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4474if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476else 4477 if test -n "$BUILD_CC"; then 4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4479else 4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481for as_dir in $PATH 4482do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4487 ac_cv_prog_BUILD_CC="gcc" 4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4489 break 2 4490 fi 4491done 4492done 4493IFS=$as_save_IFS 4494 4495fi 4496fi 4497BUILD_CC=$ac_cv_prog_BUILD_CC 4498if test -n "$BUILD_CC"; then 4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4500echo "${ECHO_T}$BUILD_CC" >&6; } 4501else 4502 { echo "$as_me:$LINENO: result: no" >&5 4503echo "${ECHO_T}no" >&6; } 4504fi 4505 4506 4507 if test -z "$BUILD_CC"; then 4508 # Extract the first word of "cc", so it can be a program name with args. 4509set dummy cc; ac_word=$2 4510{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4512if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4513 echo $ECHO_N "(cached) $ECHO_C" >&6 4514else 4515 if test -n "$BUILD_CC"; then 4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4517else 4518 ac_prog_rejected=no 4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4527 ac_prog_rejected=yes 4528 continue 4529 fi 4530 ac_cv_prog_BUILD_CC="cc" 4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4532 break 2 4533 fi 4534done 4535done 4536IFS=$as_save_IFS 4537 4538if test $ac_prog_rejected = yes; then 4539 # We found a bogon in the path, so make sure we never use it. 4540 set dummy $ac_cv_prog_BUILD_CC 4541 shift 4542 if test $# != 0; then 4543 # We chose a different compiler from the bogus one. 4544 # However, it has the same basename, so the bogon will be chosen 4545 # first if we set BUILD_CC to just the basename; use the full file name. 4546 shift 4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4548 fi 4549fi 4550fi 4551fi 4552BUILD_CC=$ac_cv_prog_BUILD_CC 4553if test -n "$BUILD_CC"; then 4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4555echo "${ECHO_T}$BUILD_CC" >&6; } 4556else 4557 { echo "$as_me:$LINENO: result: no" >&5 4558echo "${ECHO_T}no" >&6; } 4559fi 4560 4561 4562 fi 4563 fi 4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4565echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4566 { (exit 1); exit 1; }; } 4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4568 rm -f conftest* 4569 echo 'int main () { return 0; }' > conftest.$ac_ext 4570 ac_cv_build_exeext= 4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4572 (eval $ac_build_link) 2>&5 4573 ac_status=$? 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4575 (exit $ac_status); }; then 4576 for file in conftest.*; do 4577 case $file in 4578 *.c | *.o | *.obj | *.dSYM) ;; 4579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4580 esac 4581 done 4582 else 4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4584echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4585 { (exit 1); exit 1; }; } 4586 fi 4587 rm -f conftest* 4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4589fi 4590fi 4591 4592BUILD_EXEEXT="" 4593test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4594{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4595echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4596ac_build_exeext=$BUILD_EXEEXT 4597 4598 ac_build_prefix=${build_alias}- 4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4600set dummy ${ac_build_prefix}g++; ac_word=$2 4601{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4603if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605else 4606 if test -n "$BUILD_CXX"; then 4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4608else 4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621done 4622IFS=$as_save_IFS 4623 4624fi 4625fi 4626BUILD_CXX=$ac_cv_prog_BUILD_CXX 4627if test -n "$BUILD_CXX"; then 4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4629echo "${ECHO_T}$BUILD_CXX" >&6; } 4630else 4631 { echo "$as_me:$LINENO: result: no" >&5 4632echo "${ECHO_T}no" >&6; } 4633fi 4634 4635 4636 if test -z "$BUILD_CXX"; then 4637 # Extract the first word of "g++", so it can be a program name with args. 4638set dummy g++; ac_word=$2 4639{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4641if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643else 4644 if test -n "$BUILD_CXX"; then 4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4646else 4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH 4649do 4650 IFS=$as_save_IFS 4651 test -z "$as_dir" && as_dir=. 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4654 ac_cv_prog_BUILD_CXX="g++" 4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4656 break 2 4657 fi 4658done 4659done 4660IFS=$as_save_IFS 4661 4662fi 4663fi 4664BUILD_CXX=$ac_cv_prog_BUILD_CXX 4665if test -n "$BUILD_CXX"; then 4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4667echo "${ECHO_T}$BUILD_CXX" >&6; } 4668else 4669 { echo "$as_me:$LINENO: result: no" >&5 4670echo "${ECHO_T}no" >&6; } 4671fi 4672 4673 4674 if test -z "$BUILD_CXX"; then 4675 # Extract the first word of "c++", so it can be a program name with args. 4676set dummy c++; ac_word=$2 4677{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4679if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681else 4682 if test -n "$BUILD_CXX"; then 4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4684else 4685 ac_prog_rejected=no 4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4687for as_dir in $PATH 4688do 4689 IFS=$as_save_IFS 4690 test -z "$as_dir" && as_dir=. 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4694 ac_prog_rejected=yes 4695 continue 4696 fi 4697 ac_cv_prog_BUILD_CXX="c++" 4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4699 break 2 4700 fi 4701done 4702done 4703IFS=$as_save_IFS 4704 4705if test $ac_prog_rejected = yes; then 4706 # We found a bogon in the path, so make sure we never use it. 4707 set dummy $ac_cv_prog_BUILD_CXX 4708 shift 4709 if test $# != 0; then 4710 # We chose a different compiler from the bogus one. 4711 # However, it has the same basename, so the bogon will be chosen 4712 # first if we set BUILD_CXX to just the basename; use the full file name. 4713 shift 4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4715 fi 4716fi 4717fi 4718fi 4719BUILD_CXX=$ac_cv_prog_BUILD_CXX 4720if test -n "$BUILD_CXX"; then 4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4722echo "${ECHO_T}$BUILD_CXX" >&6; } 4723else 4724 { echo "$as_me:$LINENO: result: no" >&5 4725echo "${ECHO_T}no" >&6; } 4726fi 4727 4728 4729 fi 4730 fi 4731else 4732 LLVM_CROSS_COMPILING=0 4733 4734fi 4735 4736if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4737 cvsbuild="yes" 4738 optimize="no" 4739 CVSBUILD=CVSBUILD=1 4740 4741else 4742 cvsbuild="no" 4743 optimize="yes" 4744fi 4745 4746 4747# Check whether --enable-optimized was given. 4748if test "${enable_optimized+set}" = set; then 4749 enableval=$enable_optimized; 4750else 4751 enableval=$optimize 4752fi 4753 4754if test ${enableval} = "no" ; then 4755 ENABLE_OPTIMIZED= 4756 4757else 4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4759 4760fi 4761 4762# Check whether --enable-profiling was given. 4763if test "${enable_profiling+set}" = set; then 4764 enableval=$enable_profiling; 4765else 4766 enableval="no" 4767fi 4768 4769if test ${enableval} = "no" ; then 4770 ENABLE_PROFILING= 4771 4772else 4773 ENABLE_PROFILING=ENABLE_PROFILING=1 4774 4775fi 4776 4777# Check whether --enable-assertions was given. 4778if test "${enable_assertions+set}" = set; then 4779 enableval=$enable_assertions; 4780else 4781 enableval="yes" 4782fi 4783 4784if test ${enableval} = "yes" ; then 4785 DISABLE_ASSERTIONS= 4786 4787else 4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4789 4790fi 4791 4792# Check whether --enable-expensive-checks was given. 4793if test "${enable_expensive_checks+set}" = set; then 4794 enableval=$enable_expensive_checks; 4795else 4796 enableval="no" 4797fi 4798 4799if test ${enableval} = "yes" ; then 4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4801 4802 EXPENSIVE_CHECKS=yes 4803 4804else 4805 ENABLE_EXPENSIVE_CHECKS= 4806 4807 EXPENSIVE_CHECKS=no 4808 4809fi 4810 4811# Check whether --enable-debug-runtime was given. 4812if test "${enable_debug_runtime+set}" = set; then 4813 enableval=$enable_debug_runtime; 4814else 4815 enableval=no 4816fi 4817 4818if test ${enableval} = "no" ; then 4819 DEBUG_RUNTIME= 4820 4821else 4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4823 4824fi 4825 4826# Check whether --enable-debug-symbols was given. 4827if test "${enable_debug_symbols+set}" = set; then 4828 enableval=$enable_debug_symbols; 4829else 4830 enableval=no 4831fi 4832 4833if test ${enableval} = "no" ; then 4834 DEBUG_SYMBOLS= 4835 4836else 4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4838 4839fi 4840 4841# Check whether --enable-jit was given. 4842if test "${enable_jit+set}" = set; then 4843 enableval=$enable_jit; 4844else 4845 enableval=default 4846fi 4847 4848if test ${enableval} = "no" 4849then 4850 JIT= 4851 4852else 4853 case "$llvm_cv_target_arch" in 4854 x86) TARGET_HAS_JIT=1 4855 ;; 4856 Sparc) TARGET_HAS_JIT=0 4857 ;; 4858 PowerPC) TARGET_HAS_JIT=1 4859 ;; 4860 x86_64) TARGET_HAS_JIT=1 4861 ;; 4862 Alpha) TARGET_HAS_JIT=0 4863 ;; 4864 ARM) TARGET_HAS_JIT=1 4865 ;; 4866 Mips) TARGET_HAS_JIT=0 4867 ;; 4868 XCore) TARGET_HAS_JIT=0 4869 ;; 4870 MSP430) TARGET_HAS_JIT=0 4871 ;; 4872 SystemZ) TARGET_HAS_JIT=0 4873 ;; 4874 Blackfin) TARGET_HAS_JIT=0 4875 ;; 4876 MBlaze) TARGET_HAS_JIT=0 4877 ;; 4878 PTX) TARGET_HAS_JIT=0 4879 ;; 4880 *) TARGET_HAS_JIT=0 4881 ;; 4882 esac 4883fi 4884 4885# Check whether --enable-docs was given. 4886if test "${enable_docs+set}" = set; then 4887 enableval=$enable_docs; 4888else 4889 enableval=default 4890fi 4891 4892case "$enableval" in 4893 yes) ENABLE_DOCS=1 4894 ;; 4895 no) ENABLE_DOCS=0 4896 ;; 4897 default) ENABLE_DOCS=1 4898 ;; 4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 4900echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 4901 { (exit 1); exit 1; }; } ;; 4902esac 4903 4904# Check whether --enable-doxygen was given. 4905if test "${enable_doxygen+set}" = set; then 4906 enableval=$enable_doxygen; 4907else 4908 enableval=default 4909fi 4910 4911case "$enableval" in 4912 yes) ENABLE_DOXYGEN=1 4913 ;; 4914 no) ENABLE_DOXYGEN=0 4915 ;; 4916 default) ENABLE_DOXYGEN=0 4917 ;; 4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4919echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4920 { (exit 1); exit 1; }; } ;; 4921esac 4922 4923# Check whether --enable-threads was given. 4924if test "${enable_threads+set}" = set; then 4925 enableval=$enable_threads; 4926else 4927 enableval=default 4928fi 4929 4930case "$enableval" in 4931 yes) ENABLE_THREADS=1 4932 ;; 4933 no) ENABLE_THREADS=0 4934 ;; 4935 default) ENABLE_THREADS=1 4936 ;; 4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4938echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4939 { (exit 1); exit 1; }; } ;; 4940esac 4941 4942cat >>confdefs.h <<_ACEOF 4943#define ENABLE_THREADS $ENABLE_THREADS 4944_ACEOF 4945 4946 4947# Check whether --enable-pthreads was given. 4948if test "${enable_pthreads+set}" = set; then 4949 enableval=$enable_pthreads; 4950else 4951 enableval=default 4952fi 4953 4954case "$enableval" in 4955 yes) ENABLE_PTHREADS=1 4956 ;; 4957 no) ENABLE_PTHREADS=0 4958 ;; 4959 default) ENABLE_PTHREADS=1 4960 ;; 4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 4962echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 4963 { (exit 1); exit 1; }; } ;; 4964esac 4965 4966# Check whether --enable-pic was given. 4967if test "${enable_pic+set}" = set; then 4968 enableval=$enable_pic; 4969else 4970 enableval=default 4971fi 4972 4973case "$enableval" in 4974 yes) ENABLE_PIC=1 4975 ;; 4976 no) ENABLE_PIC=0 4977 ;; 4978 default) ENABLE_PIC=1 4979 ;; 4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4981echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4982 { (exit 1); exit 1; }; } ;; 4983esac 4984 4985cat >>confdefs.h <<_ACEOF 4986#define ENABLE_PIC $ENABLE_PIC 4987_ACEOF 4988 4989 4990# Check whether --enable-shared was given. 4991if test "${enable_shared+set}" = set; then 4992 enableval=$enable_shared; 4993else 4994 enableval=default 4995fi 4996 4997case "$enableval" in 4998 yes) ENABLE_SHARED=1 4999 ;; 5000 no) ENABLE_SHARED=0 5001 ;; 5002 default) ENABLE_SHARED=0 5003 ;; 5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5005echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5006 { (exit 1); exit 1; }; } ;; 5007esac 5008 5009# Check whether --enable-embed-stdcxx was given. 5010if test "${enable_embed_stdcxx+set}" = set; then 5011 enableval=$enable_embed_stdcxx; 5012else 5013 enableval=default 5014fi 5015 5016case "$enableval" in 5017 yes) ENABLE_EMBED_STDCXX=1 5018 ;; 5019 no) ENABLE_EMBED_STDCXX=0 5020 ;; 5021 default) ENABLE_EMBED_STDCXX=1 5022 ;; 5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5024echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5025 { (exit 1); exit 1; }; } ;; 5026esac 5027 5028# Check whether --enable-timestamps was given. 5029if test "${enable_timestamps+set}" = set; then 5030 enableval=$enable_timestamps; 5031else 5032 enableval=default 5033fi 5034 5035case "$enableval" in 5036 yes) ENABLE_TIMESTAMPS=1 5037 ;; 5038 no) ENABLE_TIMESTAMPS=0 5039 ;; 5040 default) ENABLE_TIMESTAMPS=1 5041 ;; 5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5043echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5044 { (exit 1); exit 1; }; } ;; 5045esac 5046 5047cat >>confdefs.h <<_ACEOF 5048#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5049_ACEOF 5050 5051 5052TARGETS_TO_BUILD="" 5053# Check whether --enable-targets was given. 5054if test "${enable_targets+set}" = set; then 5055 enableval=$enable_targets; 5056else 5057 enableval=all 5058fi 5059 5060if test "$enableval" = host-only ; then 5061 enableval=host 5062fi 5063case "$enableval" in 5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; 5065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5066 case "$a_target" in 5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5083 host) case "$llvm_cv_target_arch" in 5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5099echo "$as_me: error: Can not set target to build" >&2;} 5100 { (exit 1); exit 1; }; } ;; 5101 esac ;; 5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5103echo "$as_me: error: Unrecognized target $a_target" >&2;} 5104 { (exit 1); exit 1; }; } ;; 5105 esac 5106 done 5107 ;; 5108esac 5109TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5110 5111 5112# Determine whether we are building LLVM support for the native architecture. 5113# If so, define LLVM_NATIVE_ARCH to that LLVM target. 5114for a_target in $TARGETS_TO_BUILD; do 5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5116 5117cat >>confdefs.h <<_ACEOF 5118#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5119_ACEOF 5120 5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo" 5124 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo" 5125 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5126 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5127 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5128 fi 5129 5130cat >>confdefs.h <<_ACEOF 5131#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5132_ACEOF 5133 5134 5135cat >>confdefs.h <<_ACEOF 5136#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5137_ACEOF 5138 5139 5140cat >>confdefs.h <<_ACEOF 5141#define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO 5142_ACEOF 5143 5144 5145cat >>confdefs.h <<_ACEOF 5146#define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO 5147_ACEOF 5148 5149 5150cat >>confdefs.h <<_ACEOF 5151#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5152_ACEOF 5153 5154 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5155 5156cat >>confdefs.h <<_ACEOF 5157#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5158_ACEOF 5159 5160 fi 5161 fi 5162done 5163 5164# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5165# target feature def files. 5166LLVM_ENUM_TARGETS="" 5167LLVM_ENUM_ASM_PRINTERS="" 5168LLVM_ENUM_ASM_PARSERS="" 5169LLVM_ENUM_DISASSEMBLERS="" 5170for target_to_build in $TARGETS_TO_BUILD; do 5171 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5172 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5173 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5174 fi 5175 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5176 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5177 fi 5178 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5179 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5180 fi 5181done 5182 5183 5184 5185 5186 5187# Check whether --enable-cbe-printf-a was given. 5188if test "${enable_cbe_printf_a+set}" = set; then 5189 enableval=$enable_cbe_printf_a; 5190else 5191 enableval=default 5192fi 5193 5194case "$enableval" in 5195 yes) ENABLE_CBE_PRINTF_A=1 5196 ;; 5197 no) ENABLE_CBE_PRINTF_A=0 5198 ;; 5199 default) ENABLE_CBE_PRINTF_A=1 5200 ;; 5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 5202echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 5203 { (exit 1); exit 1; }; } ;; 5204esac 5205 5206cat >>confdefs.h <<_ACEOF 5207#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 5208_ACEOF 5209 5210 5211 5212# Check whether --with-llvmgccdir was given. 5213if test "${with_llvmgccdir+set}" = set; then 5214 withval=$with_llvmgccdir; 5215else 5216 withval=default 5217fi 5218 5219case "$withval" in 5220 default) WITH_LLVMGCCDIR=default ;; 5221 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 5222 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 5223echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 5224 { (exit 1); exit 1; }; } ;; 5225esac 5226 5227 5228# Check whether --with-llvmgcc was given. 5229if test "${with_llvmgcc+set}" = set; then 5230 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 5231 WITH_LLVMGCCDIR="" 5232fi 5233 5234 5235 5236# Check whether --with-llvmgxx was given. 5237if test "${with_llvmgxx+set}" = set; then 5238 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5239 WITH_LLVMGCCDIR="" 5240fi 5241 5242 5243if test -n "$LLVMGCC"; then 5244 LLVMGCCCOMMAND="$LLVMGCC" 5245fi 5246 5247if test -n "$LLVMGXX"; then 5248 LLVMGXXCOMMAND="$LLVMGXX" 5249fi 5250 5251if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5252 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5253echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5254 { (exit 1); exit 1; }; }; 5255fi 5256 5257if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5258 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5259echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5260 { (exit 1); exit 1; }; }; 5261fi 5262 5263 5264# Check whether --with-clang was given. 5265if test "${with_clang+set}" = set; then 5266 withval=$with_clang; 5267else 5268 with_clang=default 5269fi 5270 5271 5272 5273# Check whether --with-built-clang was given. 5274if test "${with_built_clang+set}" = set; then 5275 withval=$with_built_clang; 5276else 5277 with_built_clang=check 5278fi 5279 5280 5281{ echo "$as_me:$LINENO: checking clang compiler" >&5 5282echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } 5283WITH_CLANGPATH="" 5284WITH_BUILT_CLANG=0 5285if test "$with_clang" != "default"; then 5286 WITH_CLANGPATH="$with_clang" 5287 if ! test -x "$WITH_CLANGPATH"; then 5288 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 5289echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} 5290 { (exit 1); exit 1; }; } 5291 fi 5292elif test "$with_built_clang" = "yes"; then 5293 WITH_BUILT_CLANG=1 5294elif test "$with_built_clang" = "no"; then 5295 WITH_BUILT_CLANG=0 5296else 5297 if test "$with_built_clang" != "check"; then 5298 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 5299echo "$as_me: error: invalid value for --with-built-clang." >&2;} 5300 { (exit 1); exit 1; }; } 5301 fi 5302 5303 if test -f ${srcdir}/tools/clang/README.txt; then 5304 WITH_BUILT_CLANG=1 5305 fi 5306fi 5307 5308if ! test -z "$WITH_CLANGPATH"; then 5309 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 5310echo "${ECHO_T}$WITH_CLANGPATH" >&6; } 5311 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` 5312elif test "$WITH_BUILT_CLANG" = "1"; then 5313 { echo "$as_me:$LINENO: result: built" >&5 5314echo "${ECHO_T}built" >&6; } 5315else 5316 { echo "$as_me:$LINENO: result: none" >&5 5317echo "${ECHO_T}none" >&6; } 5318fi 5319CLANGPATH=$WITH_CLANGPATH 5320 5321CLANGXXPATH=$WITH_CLANGXXPATH 5322 5323ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG 5324 5325 5326 5327# Check whether --with-optimize-option was given. 5328if test "${with_optimize_option+set}" = set; then 5329 withval=$with_optimize_option; 5330else 5331 withval=default 5332fi 5333 5334{ echo "$as_me:$LINENO: checking optimization flags" >&5 5335echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5336case "$withval" in 5337 default) 5338 case "$llvm_cv_os_type" in 5339 FreeBSD) optimize_option=-O2 ;; 5340 MingW) optimize_option=-O2 ;; 5341 *) optimize_option=-O3 ;; 5342 esac ;; 5343 *) optimize_option="$withval" ;; 5344esac 5345OPTIMIZE_OPTION=$optimize_option 5346 5347{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5348echo "${ECHO_T}$optimize_option" >&6; } 5349 5350 5351# Check whether --with-extra-options was given. 5352if test "${with_extra_options+set}" = set; then 5353 withval=$with_extra_options; 5354else 5355 withval=default 5356fi 5357 5358case "$withval" in 5359 default) EXTRA_OPTIONS= ;; 5360 *) EXTRA_OPTIONS=$withval ;; 5361esac 5362EXTRA_OPTIONS=$EXTRA_OPTIONS 5363 5364 5365 5366# Check whether --with-extra-ld-options was given. 5367if test "${with_extra_ld_options+set}" = set; then 5368 withval=$with_extra_ld_options; 5369else 5370 withval=default 5371fi 5372 5373case "$withval" in 5374 default) EXTRA_LD_OPTIONS= ;; 5375 *) EXTRA_LD_OPTIONS=$withval ;; 5376esac 5377EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5378 5379 5380# Check whether --enable-bindings was given. 5381if test "${enable_bindings+set}" = set; then 5382 enableval=$enable_bindings; 5383else 5384 enableval=default 5385fi 5386 5387BINDINGS_TO_BUILD="" 5388case "$enableval" in 5389 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5390 all ) BINDINGS_TO_BUILD="ocaml" ;; 5391 none | no) BINDINGS_TO_BUILD="" ;; 5392 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5393 case "$a_binding" in 5394 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5395 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5396echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5397 { (exit 1); exit 1; }; } ;; 5398 esac 5399 done 5400 ;; 5401esac 5402 5403 5404# Check whether --with-ocaml-libdir was given. 5405if test "${with_ocaml_libdir+set}" = set; then 5406 withval=$with_ocaml_libdir; 5407else 5408 withval=auto 5409fi 5410 5411case "$withval" in 5412 auto) with_ocaml_libdir="$withval" ;; 5413 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5414 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5415echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5416 { (exit 1); exit 1; }; } ;; 5417esac 5418 5419 5420# Check whether --with-clang-resource-dir was given. 5421if test "${with_clang_resource_dir+set}" = set; then 5422 withval=$with_clang_resource_dir; 5423else 5424 withval="" 5425fi 5426 5427 5428cat >>confdefs.h <<_ACEOF 5429#define CLANG_RESOURCE_DIR "$withval" 5430_ACEOF 5431 5432 5433 5434# Check whether --with-c-include-dirs was given. 5435if test "${with_c_include_dirs+set}" = set; then 5436 withval=$with_c_include_dirs; 5437else 5438 withval="" 5439fi 5440 5441 5442cat >>confdefs.h <<_ACEOF 5443#define C_INCLUDE_DIRS "$withval" 5444_ACEOF 5445 5446 5447 5448# Check whether --with-cxx-include-root was given. 5449if test "${with_cxx_include_root+set}" = set; then 5450 withval=$with_cxx_include_root; 5451else 5452 withval="" 5453fi 5454 5455 5456cat >>confdefs.h <<_ACEOF 5457#define CXX_INCLUDE_ROOT "$withval" 5458_ACEOF 5459 5460 5461 5462# Check whether --with-cxx-include-arch was given. 5463if test "${with_cxx_include_arch+set}" = set; then 5464 withval=$with_cxx_include_arch; 5465else 5466 withval="" 5467fi 5468 5469 5470cat >>confdefs.h <<_ACEOF 5471#define CXX_INCLUDE_ARCH "$withval" 5472_ACEOF 5473 5474 5475 5476# Check whether --with-cxx-include-32bit-dir was given. 5477if test "${with_cxx_include_32bit_dir+set}" = set; then 5478 withval=$with_cxx_include_32bit_dir; 5479else 5480 withval="" 5481fi 5482 5483 5484cat >>confdefs.h <<_ACEOF 5485#define CXX_INCLUDE_32BIT_DIR "$withval" 5486_ACEOF 5487 5488 5489 5490# Check whether --with-cxx-include-64bit-dir was given. 5491if test "${with_cxx_include_64bit_dir+set}" = set; then 5492 withval=$with_cxx_include_64bit_dir; 5493else 5494 withval="" 5495fi 5496 5497 5498cat >>confdefs.h <<_ACEOF 5499#define CXX_INCLUDE_64BIT_DIR "$withval" 5500_ACEOF 5501 5502 5503 5504# Check whether --with-binutils-include was given. 5505if test "${with_binutils_include+set}" = set; then 5506 withval=$with_binutils_include; 5507else 5508 withval=default 5509fi 5510 5511case "$withval" in 5512 default) WITH_BINUTILS_INCDIR=default ;; 5513 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5515echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5516 { (exit 1); exit 1; }; } ;; 5517esac 5518if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5519 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5520 5521 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5522 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5523 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5524echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5525 { (exit 1); exit 1; }; }; 5526 fi 5527fi 5528 5529# Check whether --enable-libffi was given. 5530if test "${enable_libffi+set}" = set; then 5531 enableval=$enable_libffi; case "$enableval" in 5532 yes) llvm_cv_enable_libffi="yes" ;; 5533 no) llvm_cv_enable_libffi="no" ;; 5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5535echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5536 { (exit 1); exit 1; }; } ;; 5537 esac 5538else 5539 llvm_cv_enable_libffi=no 5540fi 5541 5542 5543 5544ac_ext=c 5545ac_cpp='$CPP $CPPFLAGS' 5546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5548ac_compiler_gnu=$ac_cv_c_compiler_gnu 5549{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5550echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5551# On Suns, sometimes $CPP names a directory. 5552if test -n "$CPP" && test -d "$CPP"; then 5553 CPP= 5554fi 5555if test -z "$CPP"; then 5556 if test "${ac_cv_prog_CPP+set}" = set; then 5557 echo $ECHO_N "(cached) $ECHO_C" >&6 5558else 5559 # Double quotes because CPP needs to be expanded 5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5561 do 5562 ac_preproc_ok=false 5563for ac_c_preproc_warn_flag in '' yes 5564do 5565 # Use a header file that comes with gcc, so configuring glibc 5566 # with a fresh cross-compiler works. 5567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5568 # <limits.h> exists even on freestanding compilers. 5569 # On the NeXT, cc -E runs the code through the compiler's parser, 5570 # not just through cpp. "Syntax error" is here to catch this case. 5571 cat >conftest.$ac_ext <<_ACEOF 5572/* confdefs.h. */ 5573_ACEOF 5574cat confdefs.h >>conftest.$ac_ext 5575cat >>conftest.$ac_ext <<_ACEOF 5576/* end confdefs.h. */ 5577#ifdef __STDC__ 5578# include <limits.h> 5579#else 5580# include <assert.h> 5581#endif 5582 Syntax error 5583_ACEOF 5584if { (ac_try="$ac_cpp conftest.$ac_ext" 5585case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588esac 5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5591 ac_status=$? 5592 grep -v '^ *+' conftest.er1 >conftest.err 5593 rm -f conftest.er1 5594 cat conftest.err >&5 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } >/dev/null; then 5597 if test -s conftest.err; then 5598 ac_cpp_err=$ac_c_preproc_warn_flag 5599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5600 else 5601 ac_cpp_err= 5602 fi 5603else 5604 ac_cpp_err=yes 5605fi 5606if test -z "$ac_cpp_err"; then 5607 : 5608else 5609 echo "$as_me: failed program was:" >&5 5610sed 's/^/| /' conftest.$ac_ext >&5 5611 5612 # Broken: fails on valid input. 5613continue 5614fi 5615 5616rm -f conftest.err conftest.$ac_ext 5617 5618 # OK, works on sane cases. Now check whether nonexistent headers 5619 # can be detected and how. 5620 cat >conftest.$ac_ext <<_ACEOF 5621/* confdefs.h. */ 5622_ACEOF 5623cat confdefs.h >>conftest.$ac_ext 5624cat >>conftest.$ac_ext <<_ACEOF 5625/* end confdefs.h. */ 5626#include <ac_nonexistent.h> 5627_ACEOF 5628if { (ac_try="$ac_cpp conftest.$ac_ext" 5629case "(($ac_try" in 5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5631 *) ac_try_echo=$ac_try;; 5632esac 5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5635 ac_status=$? 5636 grep -v '^ *+' conftest.er1 >conftest.err 5637 rm -f conftest.er1 5638 cat conftest.err >&5 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); } >/dev/null; then 5641 if test -s conftest.err; then 5642 ac_cpp_err=$ac_c_preproc_warn_flag 5643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5644 else 5645 ac_cpp_err= 5646 fi 5647else 5648 ac_cpp_err=yes 5649fi 5650if test -z "$ac_cpp_err"; then 5651 # Broken: success on invalid input. 5652continue 5653else 5654 echo "$as_me: failed program was:" >&5 5655sed 's/^/| /' conftest.$ac_ext >&5 5656 5657 # Passes both tests. 5658ac_preproc_ok=: 5659break 5660fi 5661 5662rm -f conftest.err conftest.$ac_ext 5663 5664done 5665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5666rm -f conftest.err conftest.$ac_ext 5667if $ac_preproc_ok; then 5668 break 5669fi 5670 5671 done 5672 ac_cv_prog_CPP=$CPP 5673 5674fi 5675 CPP=$ac_cv_prog_CPP 5676else 5677 ac_cv_prog_CPP=$CPP 5678fi 5679{ echo "$as_me:$LINENO: result: $CPP" >&5 5680echo "${ECHO_T}$CPP" >&6; } 5681ac_preproc_ok=false 5682for ac_c_preproc_warn_flag in '' yes 5683do 5684 # Use a header file that comes with gcc, so configuring glibc 5685 # with a fresh cross-compiler works. 5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5687 # <limits.h> exists even on freestanding compilers. 5688 # On the NeXT, cc -E runs the code through the compiler's parser, 5689 # not just through cpp. "Syntax error" is here to catch this case. 5690 cat >conftest.$ac_ext <<_ACEOF 5691/* confdefs.h. */ 5692_ACEOF 5693cat confdefs.h >>conftest.$ac_ext 5694cat >>conftest.$ac_ext <<_ACEOF 5695/* end confdefs.h. */ 5696#ifdef __STDC__ 5697# include <limits.h> 5698#else 5699# include <assert.h> 5700#endif 5701 Syntax error 5702_ACEOF 5703if { (ac_try="$ac_cpp conftest.$ac_ext" 5704case "(($ac_try" in 5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5706 *) ac_try_echo=$ac_try;; 5707esac 5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5710 ac_status=$? 5711 grep -v '^ *+' conftest.er1 >conftest.err 5712 rm -f conftest.er1 5713 cat conftest.err >&5 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); } >/dev/null; then 5716 if test -s conftest.err; then 5717 ac_cpp_err=$ac_c_preproc_warn_flag 5718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5719 else 5720 ac_cpp_err= 5721 fi 5722else 5723 ac_cpp_err=yes 5724fi 5725if test -z "$ac_cpp_err"; then 5726 : 5727else 5728 echo "$as_me: failed program was:" >&5 5729sed 's/^/| /' conftest.$ac_ext >&5 5730 5731 # Broken: fails on valid input. 5732continue 5733fi 5734 5735rm -f conftest.err conftest.$ac_ext 5736 5737 # OK, works on sane cases. Now check whether nonexistent headers 5738 # can be detected and how. 5739 cat >conftest.$ac_ext <<_ACEOF 5740/* confdefs.h. */ 5741_ACEOF 5742cat confdefs.h >>conftest.$ac_ext 5743cat >>conftest.$ac_ext <<_ACEOF 5744/* end confdefs.h. */ 5745#include <ac_nonexistent.h> 5746_ACEOF 5747if { (ac_try="$ac_cpp conftest.$ac_ext" 5748case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751esac 5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5754 ac_status=$? 5755 grep -v '^ *+' conftest.er1 >conftest.err 5756 rm -f conftest.er1 5757 cat conftest.err >&5 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); } >/dev/null; then 5760 if test -s conftest.err; then 5761 ac_cpp_err=$ac_c_preproc_warn_flag 5762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5763 else 5764 ac_cpp_err= 5765 fi 5766else 5767 ac_cpp_err=yes 5768fi 5769if test -z "$ac_cpp_err"; then 5770 # Broken: success on invalid input. 5771continue 5772else 5773 echo "$as_me: failed program was:" >&5 5774sed 's/^/| /' conftest.$ac_ext >&5 5775 5776 # Passes both tests. 5777ac_preproc_ok=: 5778break 5779fi 5780 5781rm -f conftest.err conftest.$ac_ext 5782 5783done 5784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5785rm -f conftest.err conftest.$ac_ext 5786if $ac_preproc_ok; then 5787 : 5788else 5789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5790See \`config.log' for more details." >&5 5791echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5792See \`config.log' for more details." >&2;} 5793 { (exit 1); exit 1; }; } 5794fi 5795 5796ac_ext=c 5797ac_cpp='$CPP $CPPFLAGS' 5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5800ac_compiler_gnu=$ac_cv_c_compiler_gnu 5801 5802ac_ext=c 5803ac_cpp='$CPP $CPPFLAGS' 5804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5806ac_compiler_gnu=$ac_cv_c_compiler_gnu 5807if test -n "$ac_tool_prefix"; then 5808 for ac_prog in gcc 5809 do 5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5811set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5812{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5814if test "${ac_cv_prog_CC+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 if test -n "$CC"; then 5818 ac_cv_prog_CC="$CC" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831done 5832done 5833IFS=$as_save_IFS 5834 5835fi 5836fi 5837CC=$ac_cv_prog_CC 5838if test -n "$CC"; then 5839 { echo "$as_me:$LINENO: result: $CC" >&5 5840echo "${ECHO_T}$CC" >&6; } 5841else 5842 { echo "$as_me:$LINENO: result: no" >&5 5843echo "${ECHO_T}no" >&6; } 5844fi 5845 5846 5847 test -n "$CC" && break 5848 done 5849fi 5850if test -z "$CC"; then 5851 ac_ct_CC=$CC 5852 for ac_prog in gcc 5853do 5854 # Extract the first word of "$ac_prog", so it can be a program name with args. 5855set dummy $ac_prog; ac_word=$2 5856{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5859 echo $ECHO_N "(cached) $ECHO_C" >&6 5860else 5861 if test -n "$ac_ct_CC"; then 5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5863else 5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865for as_dir in $PATH 5866do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5871 ac_cv_prog_ac_ct_CC="$ac_prog" 5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875done 5876done 5877IFS=$as_save_IFS 5878 5879fi 5880fi 5881ac_ct_CC=$ac_cv_prog_ac_ct_CC 5882if test -n "$ac_ct_CC"; then 5883 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5884echo "${ECHO_T}$ac_ct_CC" >&6; } 5885else 5886 { echo "$as_me:$LINENO: result: no" >&5 5887echo "${ECHO_T}no" >&6; } 5888fi 5889 5890 5891 test -n "$ac_ct_CC" && break 5892done 5893 5894 if test "x$ac_ct_CC" = x; then 5895 CC="" 5896 else 5897 case $cross_compiling:$ac_tool_warned in 5898yes:) 5899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5900whose name does not start with the host triplet. If you think this 5901configuration is useful to you, please write to autoconf@gnu.org." >&5 5902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5903whose name does not start with the host triplet. If you think this 5904configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 CC=$ac_ct_CC 5908 fi 5909fi 5910 5911 5912test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5913See \`config.log' for more details." >&5 5914echo "$as_me: error: no acceptable C compiler found in \$PATH 5915See \`config.log' for more details." >&2;} 5916 { (exit 1); exit 1; }; } 5917 5918# Provide some information about the compiler. 5919echo "$as_me:$LINENO: checking for C compiler version" >&5 5920ac_compiler=`set X $ac_compile; echo $2` 5921{ (ac_try="$ac_compiler --version >&5" 5922case "(($ac_try" in 5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5924 *) ac_try_echo=$ac_try;; 5925esac 5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5927 (eval "$ac_compiler --version >&5") 2>&5 5928 ac_status=$? 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } 5931{ (ac_try="$ac_compiler -v >&5" 5932case "(($ac_try" in 5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5934 *) ac_try_echo=$ac_try;; 5935esac 5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5937 (eval "$ac_compiler -v >&5") 2>&5 5938 ac_status=$? 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } 5941{ (ac_try="$ac_compiler -V >&5" 5942case "(($ac_try" in 5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5944 *) ac_try_echo=$ac_try;; 5945esac 5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5947 (eval "$ac_compiler -V >&5") 2>&5 5948 ac_status=$? 5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5950 (exit $ac_status); } 5951 5952{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5953echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5954if test "${ac_cv_c_compiler_gnu+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956else 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963 5964int 5965main () 5966{ 5967#ifndef __GNUC__ 5968 choke me 5969#endif 5970 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975rm -f conftest.$ac_objext 5976if { (ac_try="$ac_compile" 5977case "(($ac_try" in 5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5979 *) ac_try_echo=$ac_try;; 5980esac 5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5982 (eval "$ac_compile") 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && 5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5990 { (case "(($ac_try" in 5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5992 *) ac_try_echo=$ac_try;; 5993esac 5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5995 (eval "$ac_try") 2>&5 5996 ac_status=$? 5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5998 (exit $ac_status); }; } && 5999 { ac_try='test -s conftest.$ac_objext' 6000 { (case "(($ac_try" in 6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6002 *) ac_try_echo=$ac_try;; 6003esac 6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6005 (eval "$ac_try") 2>&5 6006 ac_status=$? 6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6008 (exit $ac_status); }; }; then 6009 ac_compiler_gnu=yes 6010else 6011 echo "$as_me: failed program was:" >&5 6012sed 's/^/| /' conftest.$ac_ext >&5 6013 6014 ac_compiler_gnu=no 6015fi 6016 6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6018ac_cv_c_compiler_gnu=$ac_compiler_gnu 6019 6020fi 6021{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 6022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 6023GCC=`test $ac_compiler_gnu = yes && echo yes` 6024ac_test_CFLAGS=${CFLAGS+set} 6025ac_save_CFLAGS=$CFLAGS 6026{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 6027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 6028if test "${ac_cv_prog_cc_g+set}" = set; then 6029 echo $ECHO_N "(cached) $ECHO_C" >&6 6030else 6031 ac_save_c_werror_flag=$ac_c_werror_flag 6032 ac_c_werror_flag=yes 6033 ac_cv_prog_cc_g=no 6034 CFLAGS="-g" 6035 cat >conftest.$ac_ext <<_ACEOF 6036/* confdefs.h. */ 6037_ACEOF 6038cat confdefs.h >>conftest.$ac_ext 6039cat >>conftest.$ac_ext <<_ACEOF 6040/* end confdefs.h. */ 6041 6042int 6043main () 6044{ 6045 6046 ; 6047 return 0; 6048} 6049_ACEOF 6050rm -f conftest.$ac_objext 6051if { (ac_try="$ac_compile" 6052case "(($ac_try" in 6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6054 *) ac_try_echo=$ac_try;; 6055esac 6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6057 (eval "$ac_compile") 2>conftest.er1 6058 ac_status=$? 6059 grep -v '^ *+' conftest.er1 >conftest.err 6060 rm -f conftest.er1 6061 cat conftest.err >&5 6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6063 (exit $ac_status); } && 6064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6065 { (case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068esac 6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_try") 2>&5 6071 ac_status=$? 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); }; } && 6074 { ac_try='test -s conftest.$ac_objext' 6075 { (case "(($ac_try" in 6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6077 *) ac_try_echo=$ac_try;; 6078esac 6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6080 (eval "$ac_try") 2>&5 6081 ac_status=$? 6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6083 (exit $ac_status); }; }; then 6084 ac_cv_prog_cc_g=yes 6085else 6086 echo "$as_me: failed program was:" >&5 6087sed 's/^/| /' conftest.$ac_ext >&5 6088 6089 CFLAGS="" 6090 cat >conftest.$ac_ext <<_ACEOF 6091/* confdefs.h. */ 6092_ACEOF 6093cat confdefs.h >>conftest.$ac_ext 6094cat >>conftest.$ac_ext <<_ACEOF 6095/* end confdefs.h. */ 6096 6097int 6098main () 6099{ 6100 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105rm -f conftest.$ac_objext 6106if { (ac_try="$ac_compile" 6107case "(($ac_try" in 6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6109 *) ac_try_echo=$ac_try;; 6110esac 6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6112 (eval "$ac_compile") 2>conftest.er1 6113 ac_status=$? 6114 grep -v '^ *+' conftest.er1 >conftest.err 6115 rm -f conftest.er1 6116 cat conftest.err >&5 6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); } && 6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6120 { (case "(($ac_try" in 6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6122 *) ac_try_echo=$ac_try;; 6123esac 6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6125 (eval "$ac_try") 2>&5 6126 ac_status=$? 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); }; } && 6129 { ac_try='test -s conftest.$ac_objext' 6130 { (case "(($ac_try" in 6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6132 *) ac_try_echo=$ac_try;; 6133esac 6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6135 (eval "$ac_try") 2>&5 6136 ac_status=$? 6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6138 (exit $ac_status); }; }; then 6139 : 6140else 6141 echo "$as_me: failed program was:" >&5 6142sed 's/^/| /' conftest.$ac_ext >&5 6143 6144 ac_c_werror_flag=$ac_save_c_werror_flag 6145 CFLAGS="-g" 6146 cat >conftest.$ac_ext <<_ACEOF 6147/* confdefs.h. */ 6148_ACEOF 6149cat confdefs.h >>conftest.$ac_ext 6150cat >>conftest.$ac_ext <<_ACEOF 6151/* end confdefs.h. */ 6152 6153int 6154main () 6155{ 6156 6157 ; 6158 return 0; 6159} 6160_ACEOF 6161rm -f conftest.$ac_objext 6162if { (ac_try="$ac_compile" 6163case "(($ac_try" in 6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6165 *) ac_try_echo=$ac_try;; 6166esac 6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6168 (eval "$ac_compile") 2>conftest.er1 6169 ac_status=$? 6170 grep -v '^ *+' conftest.er1 >conftest.err 6171 rm -f conftest.er1 6172 cat conftest.err >&5 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } && 6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6176 { (case "(($ac_try" in 6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6178 *) ac_try_echo=$ac_try;; 6179esac 6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6181 (eval "$ac_try") 2>&5 6182 ac_status=$? 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); }; } && 6185 { ac_try='test -s conftest.$ac_objext' 6186 { (case "(($ac_try" in 6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6188 *) ac_try_echo=$ac_try;; 6189esac 6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6191 (eval "$ac_try") 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; }; then 6195 ac_cv_prog_cc_g=yes 6196else 6197 echo "$as_me: failed program was:" >&5 6198sed 's/^/| /' conftest.$ac_ext >&5 6199 6200 6201fi 6202 6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6204fi 6205 6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207fi 6208 6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210 ac_c_werror_flag=$ac_save_c_werror_flag 6211fi 6212{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 6213echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 6214if test "$ac_test_CFLAGS" = set; then 6215 CFLAGS=$ac_save_CFLAGS 6216elif test $ac_cv_prog_cc_g = yes; then 6217 if test "$GCC" = yes; then 6218 CFLAGS="-g -O2" 6219 else 6220 CFLAGS="-g" 6221 fi 6222else 6223 if test "$GCC" = yes; then 6224 CFLAGS="-O2" 6225 else 6226 CFLAGS= 6227 fi 6228fi 6229{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 6230echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 6231if test "${ac_cv_prog_cc_c89+set}" = set; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233else 6234 ac_cv_prog_cc_c89=no 6235ac_save_CC=$CC 6236cat >conftest.$ac_ext <<_ACEOF 6237/* confdefs.h. */ 6238_ACEOF 6239cat confdefs.h >>conftest.$ac_ext 6240cat >>conftest.$ac_ext <<_ACEOF 6241/* end confdefs.h. */ 6242#include <stdarg.h> 6243#include <stdio.h> 6244#include <sys/types.h> 6245#include <sys/stat.h> 6246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6247struct buf { int x; }; 6248FILE * (*rcsopen) (struct buf *, struct stat *, int); 6249static char *e (p, i) 6250 char **p; 6251 int i; 6252{ 6253 return p[i]; 6254} 6255static char *f (char * (*g) (char **, int), char **p, ...) 6256{ 6257 char *s; 6258 va_list v; 6259 va_start (v,p); 6260 s = g (p, va_arg (v,int)); 6261 va_end (v); 6262 return s; 6263} 6264 6265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6266 function prototypes and stuff, but not '\xHH' hex character constants. 6267 These don't provoke an error unfortunately, instead are silently treated 6268 as 'x'. The following induces an error, until -std is added to get 6269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6270 array size at least. It's necessary to write '\x00'==0 to get something 6271 that's true only with -std. */ 6272int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6273 6274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6275 inside strings and character constants. */ 6276#define FOO(x) 'x' 6277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6278 6279int test (int i, double x); 6280struct s1 {int (*f) (int a);}; 6281struct s2 {int (*f) (double a);}; 6282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6283int argc; 6284char **argv; 6285int 6286main () 6287{ 6288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6295do 6296 CC="$ac_save_CC $ac_arg" 6297 rm -f conftest.$ac_objext 6298if { (ac_try="$ac_compile" 6299case "(($ac_try" in 6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6301 *) ac_try_echo=$ac_try;; 6302esac 6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6304 (eval "$ac_compile") 2>conftest.er1 6305 ac_status=$? 6306 grep -v '^ *+' conftest.er1 >conftest.err 6307 rm -f conftest.er1 6308 cat conftest.err >&5 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); } && 6311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6312 { (case "(($ac_try" in 6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6314 *) ac_try_echo=$ac_try;; 6315esac 6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6317 (eval "$ac_try") 2>&5 6318 ac_status=$? 6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6320 (exit $ac_status); }; } && 6321 { ac_try='test -s conftest.$ac_objext' 6322 { (case "(($ac_try" in 6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6324 *) ac_try_echo=$ac_try;; 6325esac 6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6327 (eval "$ac_try") 2>&5 6328 ac_status=$? 6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6330 (exit $ac_status); }; }; then 6331 ac_cv_prog_cc_c89=$ac_arg 6332else 6333 echo "$as_me: failed program was:" >&5 6334sed 's/^/| /' conftest.$ac_ext >&5 6335 6336 6337fi 6338 6339rm -f core conftest.err conftest.$ac_objext 6340 test "x$ac_cv_prog_cc_c89" != "xno" && break 6341done 6342rm -f conftest.$ac_ext 6343CC=$ac_save_CC 6344 6345fi 6346# AC_CACHE_VAL 6347case "x$ac_cv_prog_cc_c89" in 6348 x) 6349 { echo "$as_me:$LINENO: result: none needed" >&5 6350echo "${ECHO_T}none needed" >&6; } ;; 6351 xno) 6352 { echo "$as_me:$LINENO: result: unsupported" >&5 6353echo "${ECHO_T}unsupported" >&6; } ;; 6354 *) 6355 CC="$CC $ac_cv_prog_cc_c89" 6356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6357echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6358esac 6359 6360 6361ac_ext=c 6362ac_cpp='$CPP $CPPFLAGS' 6363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6365ac_compiler_gnu=$ac_cv_c_compiler_gnu 6366 6367ac_ext=cpp 6368ac_cpp='$CXXCPP $CPPFLAGS' 6369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6372if test -z "$CXX"; then 6373 if test -n "$CCC"; then 6374 CXX=$CCC 6375 else 6376 if test -n "$ac_tool_prefix"; then 6377 for ac_prog in g++ 6378 do 6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6380set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6381{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6383if test "${ac_cv_prog_CXX+set}" = set; then 6384 echo $ECHO_N "(cached) $ECHO_C" >&6 6385else 6386 if test -n "$CXX"; then 6387 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406CXX=$ac_cv_prog_CXX 6407if test -n "$CXX"; then 6408 { echo "$as_me:$LINENO: result: $CXX" >&5 6409echo "${ECHO_T}$CXX" >&6; } 6410else 6411 { echo "$as_me:$LINENO: result: no" >&5 6412echo "${ECHO_T}no" >&6; } 6413fi 6414 6415 6416 test -n "$CXX" && break 6417 done 6418fi 6419if test -z "$CXX"; then 6420 ac_ct_CXX=$CXX 6421 for ac_prog in g++ 6422do 6423 # Extract the first word of "$ac_prog", so it can be a program name with args. 6424set dummy $ac_prog; ac_word=$2 6425{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6427if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6428 echo $ECHO_N "(cached) $ECHO_C" >&6 6429else 6430 if test -n "$ac_ct_CXX"; then 6431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6432else 6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434for as_dir in $PATH 6435do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6440 ac_cv_prog_ac_ct_CXX="$ac_prog" 6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444done 6445done 6446IFS=$as_save_IFS 6447 6448fi 6449fi 6450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6451if test -n "$ac_ct_CXX"; then 6452 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6453echo "${ECHO_T}$ac_ct_CXX" >&6; } 6454else 6455 { echo "$as_me:$LINENO: result: no" >&5 6456echo "${ECHO_T}no" >&6; } 6457fi 6458 6459 6460 test -n "$ac_ct_CXX" && break 6461done 6462 6463 if test "x$ac_ct_CXX" = x; then 6464 CXX="g++" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467yes:) 6468{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6469whose name does not start with the host triplet. If you think this 6470configuration is useful to you, please write to autoconf@gnu.org." >&5 6471echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6472whose name does not start with the host triplet. If you think this 6473configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6474ac_tool_warned=yes ;; 6475esac 6476 CXX=$ac_ct_CXX 6477 fi 6478fi 6479 6480 fi 6481fi 6482# Provide some information about the compiler. 6483echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6484ac_compiler=`set X $ac_compile; echo $2` 6485{ (ac_try="$ac_compiler --version >&5" 6486case "(($ac_try" in 6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6488 *) ac_try_echo=$ac_try;; 6489esac 6490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6491 (eval "$ac_compiler --version >&5") 2>&5 6492 ac_status=$? 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); } 6495{ (ac_try="$ac_compiler -v >&5" 6496case "(($ac_try" in 6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6498 *) ac_try_echo=$ac_try;; 6499esac 6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6501 (eval "$ac_compiler -v >&5") 2>&5 6502 ac_status=$? 6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6504 (exit $ac_status); } 6505{ (ac_try="$ac_compiler -V >&5" 6506case "(($ac_try" in 6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6508 *) ac_try_echo=$ac_try;; 6509esac 6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6511 (eval "$ac_compiler -V >&5") 2>&5 6512 ac_status=$? 6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6514 (exit $ac_status); } 6515 6516{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6517echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6518if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6519 echo $ECHO_N "(cached) $ECHO_C" >&6 6520else 6521 cat >conftest.$ac_ext <<_ACEOF 6522/* confdefs.h. */ 6523_ACEOF 6524cat confdefs.h >>conftest.$ac_ext 6525cat >>conftest.$ac_ext <<_ACEOF 6526/* end confdefs.h. */ 6527 6528int 6529main () 6530{ 6531#ifndef __GNUC__ 6532 choke me 6533#endif 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539rm -f conftest.$ac_objext 6540if { (ac_try="$ac_compile" 6541case "(($ac_try" in 6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6543 *) ac_try_echo=$ac_try;; 6544esac 6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6546 (eval "$ac_compile") 2>conftest.er1 6547 ac_status=$? 6548 grep -v '^ *+' conftest.er1 >conftest.err 6549 rm -f conftest.er1 6550 cat conftest.err >&5 6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); } && 6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6554 { (case "(($ac_try" in 6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6556 *) ac_try_echo=$ac_try;; 6557esac 6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6559 (eval "$ac_try") 2>&5 6560 ac_status=$? 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); }; } && 6563 { ac_try='test -s conftest.$ac_objext' 6564 { (case "(($ac_try" in 6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6566 *) ac_try_echo=$ac_try;; 6567esac 6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6569 (eval "$ac_try") 2>&5 6570 ac_status=$? 6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); }; }; then 6573 ac_compiler_gnu=yes 6574else 6575 echo "$as_me: failed program was:" >&5 6576sed 's/^/| /' conftest.$ac_ext >&5 6577 6578 ac_compiler_gnu=no 6579fi 6580 6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6582ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6583 6584fi 6585{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6586echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6587GXX=`test $ac_compiler_gnu = yes && echo yes` 6588ac_test_CXXFLAGS=${CXXFLAGS+set} 6589ac_save_CXXFLAGS=$CXXFLAGS 6590{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6591echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6592if test "${ac_cv_prog_cxx_g+set}" = set; then 6593 echo $ECHO_N "(cached) $ECHO_C" >&6 6594else 6595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6596 ac_cxx_werror_flag=yes 6597 ac_cv_prog_cxx_g=no 6598 CXXFLAGS="-g" 6599 cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605 6606int 6607main () 6608{ 6609 6610 ; 6611 return 0; 6612} 6613_ACEOF 6614rm -f conftest.$ac_objext 6615if { (ac_try="$ac_compile" 6616case "(($ac_try" in 6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6618 *) ac_try_echo=$ac_try;; 6619esac 6620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6621 (eval "$ac_compile") 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6629 { (case "(($ac_try" in 6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6631 *) ac_try_echo=$ac_try;; 6632esac 6633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6634 (eval "$ac_try") 2>&5 6635 ac_status=$? 6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6637 (exit $ac_status); }; } && 6638 { ac_try='test -s conftest.$ac_objext' 6639 { (case "(($ac_try" in 6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6641 *) ac_try_echo=$ac_try;; 6642esac 6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6644 (eval "$ac_try") 2>&5 6645 ac_status=$? 6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6647 (exit $ac_status); }; }; then 6648 ac_cv_prog_cxx_g=yes 6649else 6650 echo "$as_me: failed program was:" >&5 6651sed 's/^/| /' conftest.$ac_ext >&5 6652 6653 CXXFLAGS="" 6654 cat >conftest.$ac_ext <<_ACEOF 6655/* confdefs.h. */ 6656_ACEOF 6657cat confdefs.h >>conftest.$ac_ext 6658cat >>conftest.$ac_ext <<_ACEOF 6659/* end confdefs.h. */ 6660 6661int 6662main () 6663{ 6664 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669rm -f conftest.$ac_objext 6670if { (ac_try="$ac_compile" 6671case "(($ac_try" in 6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6673 *) ac_try_echo=$ac_try;; 6674esac 6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6676 (eval "$ac_compile") 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && 6683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6684 { (case "(($ac_try" in 6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6686 *) ac_try_echo=$ac_try;; 6687esac 6688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6689 (eval "$ac_try") 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); }; } && 6693 { ac_try='test -s conftest.$ac_objext' 6694 { (case "(($ac_try" in 6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6696 *) ac_try_echo=$ac_try;; 6697esac 6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6699 (eval "$ac_try") 2>&5 6700 ac_status=$? 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); }; }; then 6703 : 6704else 6705 echo "$as_me: failed program was:" >&5 6706sed 's/^/| /' conftest.$ac_ext >&5 6707 6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6709 CXXFLAGS="-g" 6710 cat >conftest.$ac_ext <<_ACEOF 6711/* confdefs.h. */ 6712_ACEOF 6713cat confdefs.h >>conftest.$ac_ext 6714cat >>conftest.$ac_ext <<_ACEOF 6715/* end confdefs.h. */ 6716 6717int 6718main () 6719{ 6720 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725rm -f conftest.$ac_objext 6726if { (ac_try="$ac_compile" 6727case "(($ac_try" in 6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6729 *) ac_try_echo=$ac_try;; 6730esac 6731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6732 (eval "$ac_compile") 2>conftest.er1 6733 ac_status=$? 6734 grep -v '^ *+' conftest.er1 >conftest.err 6735 rm -f conftest.er1 6736 cat conftest.err >&5 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); } && 6739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6740 { (case "(($ac_try" in 6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6742 *) ac_try_echo=$ac_try;; 6743esac 6744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6745 (eval "$ac_try") 2>&5 6746 ac_status=$? 6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6748 (exit $ac_status); }; } && 6749 { ac_try='test -s conftest.$ac_objext' 6750 { (case "(($ac_try" in 6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6752 *) ac_try_echo=$ac_try;; 6753esac 6754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6755 (eval "$ac_try") 2>&5 6756 ac_status=$? 6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6758 (exit $ac_status); }; }; then 6759 ac_cv_prog_cxx_g=yes 6760else 6761 echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 6765fi 6766 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768fi 6769 6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6771fi 6772 6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6775fi 6776{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6777echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6778if test "$ac_test_CXXFLAGS" = set; then 6779 CXXFLAGS=$ac_save_CXXFLAGS 6780elif test $ac_cv_prog_cxx_g = yes; then 6781 if test "$GXX" = yes; then 6782 CXXFLAGS="-g -O2" 6783 else 6784 CXXFLAGS="-g" 6785 fi 6786else 6787 if test "$GXX" = yes; then 6788 CXXFLAGS="-O2" 6789 else 6790 CXXFLAGS= 6791 fi 6792fi 6793ac_ext=c 6794ac_cpp='$CPP $CPPFLAGS' 6795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6797ac_compiler_gnu=$ac_cv_c_compiler_gnu 6798 6799 6800{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6801echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6802if test "${lt_cv_path_NM+set}" = set; then 6803 echo $ECHO_N "(cached) $ECHO_C" >&6 6804else 6805 if test -n "$NM"; then 6806 # Let the user override the test. 6807 lt_cv_path_NM="$NM" 6808else 6809 lt_nm_to_check="${ac_tool_prefix}nm" 6810 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6811 lt_nm_to_check="$lt_nm_to_check nm" 6812 fi 6813 for lt_tmp_nm in $lt_nm_to_check; do 6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6815 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6816 IFS="$lt_save_ifs" 6817 test -z "$ac_dir" && ac_dir=. 6818 tmp_nm="$ac_dir/$lt_tmp_nm" 6819 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6820 # Check to see if the nm accepts a BSD-compat flag. 6821 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6822 # nm: unknown option "B" ignored 6823 # Tru64's nm complains that /dev/null is an invalid object file 6824 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6825 */dev/null* | *'Invalid file or object type'*) 6826 lt_cv_path_NM="$tmp_nm -B" 6827 break 6828 ;; 6829 *) 6830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6831 */dev/null*) 6832 lt_cv_path_NM="$tmp_nm -p" 6833 break 6834 ;; 6835 *) 6836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6837 continue # so that we can try to find one that supports BSD flags 6838 ;; 6839 esac 6840 ;; 6841 esac 6842 fi 6843 done 6844 IFS="$lt_save_ifs" 6845 done 6846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6847fi 6848fi 6849{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6850echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6851NM="$lt_cv_path_NM" 6852 6853 6854 6855{ echo "$as_me:$LINENO: checking for GNU make" >&5 6856echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6857if test "${llvm_cv_gnu_make_command+set}" = set; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859else 6860 llvm_cv_gnu_make_command='' 6861 for a in "$MAKE" make gmake gnumake ; do 6862 if test -z "$a" ; then continue ; fi ; 6863 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6864 then 6865 llvm_cv_gnu_make_command=$a ; 6866 break; 6867 fi 6868 done 6869fi 6870{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6871echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6872 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6873 ifGNUmake='' ; 6874 else 6875 ifGNUmake='#' ; 6876 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6877echo "${ECHO_T}\"Not found\"" >&6; }; 6878 fi 6879 6880 6881{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6882echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6883LN_S=$as_ln_s 6884if test "$LN_S" = "ln -s"; then 6885 { echo "$as_me:$LINENO: result: yes" >&5 6886echo "${ECHO_T}yes" >&6; } 6887else 6888 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6889echo "${ECHO_T}no, using $LN_S" >&6; } 6890fi 6891 6892# Extract the first word of "cmp", so it can be a program name with args. 6893set dummy cmp; ac_word=$2 6894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6896if test "${ac_cv_path_CMP+set}" = set; then 6897 echo $ECHO_N "(cached) $ECHO_C" >&6 6898else 6899 case $CMP in 6900 [\\/]* | ?:[\\/]*) 6901 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6902 ;; 6903 *) 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916done 6917IFS=$as_save_IFS 6918 6919 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6920 ;; 6921esac 6922fi 6923CMP=$ac_cv_path_CMP 6924if test -n "$CMP"; then 6925 { echo "$as_me:$LINENO: result: $CMP" >&5 6926echo "${ECHO_T}$CMP" >&6; } 6927else 6928 { echo "$as_me:$LINENO: result: no" >&5 6929echo "${ECHO_T}no" >&6; } 6930fi 6931 6932 6933# Extract the first word of "cp", so it can be a program name with args. 6934set dummy cp; ac_word=$2 6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6937if test "${ac_cv_path_CP+set}" = set; then 6938 echo $ECHO_N "(cached) $ECHO_C" >&6 6939else 6940 case $CP in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957done 6958IFS=$as_save_IFS 6959 6960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6961 ;; 6962esac 6963fi 6964CP=$ac_cv_path_CP 6965if test -n "$CP"; then 6966 { echo "$as_me:$LINENO: result: $CP" >&5 6967echo "${ECHO_T}$CP" >&6; } 6968else 6969 { echo "$as_me:$LINENO: result: no" >&5 6970echo "${ECHO_T}no" >&6; } 6971fi 6972 6973 6974# Extract the first word of "date", so it can be a program name with args. 6975set dummy date; ac_word=$2 6976{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6978if test "${ac_cv_path_DATE+set}" = set; then 6979 echo $ECHO_N "(cached) $ECHO_C" >&6 6980else 6981 case $DATE in 6982 [\\/]* | ?:[\\/]*) 6983 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6984 ;; 6985 *) 6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6993 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998done 6999IFS=$as_save_IFS 7000 7001 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 7002 ;; 7003esac 7004fi 7005DATE=$ac_cv_path_DATE 7006if test -n "$DATE"; then 7007 { echo "$as_me:$LINENO: result: $DATE" >&5 7008echo "${ECHO_T}$DATE" >&6; } 7009else 7010 { echo "$as_me:$LINENO: result: no" >&5 7011echo "${ECHO_T}no" >&6; } 7012fi 7013 7014 7015# Extract the first word of "find", so it can be a program name with args. 7016set dummy find; ac_word=$2 7017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7019if test "${ac_cv_path_FIND+set}" = set; then 7020 echo $ECHO_N "(cached) $ECHO_C" >&6 7021else 7022 case $FIND in 7023 [\\/]* | ?:[\\/]*) 7024 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7025 ;; 7026 *) 7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7034 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039done 7040IFS=$as_save_IFS 7041 7042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 7043 ;; 7044esac 7045fi 7046FIND=$ac_cv_path_FIND 7047if test -n "$FIND"; then 7048 { echo "$as_me:$LINENO: result: $FIND" >&5 7049echo "${ECHO_T}$FIND" >&6; } 7050else 7051 { echo "$as_me:$LINENO: result: no" >&5 7052echo "${ECHO_T}no" >&6; } 7053fi 7054 7055 7056# Extract the first word of "grep", so it can be a program name with args. 7057set dummy grep; ac_word=$2 7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7060if test "${ac_cv_path_GREP+set}" = set; then 7061 echo $ECHO_N "(cached) $ECHO_C" >&6 7062else 7063 case $GREP in 7064 [\\/]* | ?:[\\/]*) 7065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 7066 ;; 7067 *) 7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069for as_dir in $PATH 7070do 7071 IFS=$as_save_IFS 7072 test -z "$as_dir" && as_dir=. 7073 for ac_exec_ext in '' $ac_executable_extensions; do 7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7077 break 2 7078 fi 7079done 7080done 7081IFS=$as_save_IFS 7082 7083 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 7084 ;; 7085esac 7086fi 7087GREP=$ac_cv_path_GREP 7088if test -n "$GREP"; then 7089 { echo "$as_me:$LINENO: result: $GREP" >&5 7090echo "${ECHO_T}$GREP" >&6; } 7091else 7092 { echo "$as_me:$LINENO: result: no" >&5 7093echo "${ECHO_T}no" >&6; } 7094fi 7095 7096 7097# Extract the first word of "mkdir", so it can be a program name with args. 7098set dummy mkdir; ac_word=$2 7099{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7101if test "${ac_cv_path_MKDIR+set}" = set; then 7102 echo $ECHO_N "(cached) $ECHO_C" >&6 7103else 7104 case $MKDIR in 7105 [\\/]* | ?:[\\/]*) 7106 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7107 ;; 7108 *) 7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 test -z "$as_dir" && as_dir=. 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7116 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7118 break 2 7119 fi 7120done 7121done 7122IFS=$as_save_IFS 7123 7124 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 7125 ;; 7126esac 7127fi 7128MKDIR=$ac_cv_path_MKDIR 7129if test -n "$MKDIR"; then 7130 { echo "$as_me:$LINENO: result: $MKDIR" >&5 7131echo "${ECHO_T}$MKDIR" >&6; } 7132else 7133 { echo "$as_me:$LINENO: result: no" >&5 7134echo "${ECHO_T}no" >&6; } 7135fi 7136 7137 7138# Extract the first word of "mv", so it can be a program name with args. 7139set dummy mv; ac_word=$2 7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7142if test "${ac_cv_path_MV+set}" = set; then 7143 echo $ECHO_N "(cached) $ECHO_C" >&6 7144else 7145 case $MV in 7146 [\\/]* | ?:[\\/]*) 7147 ac_cv_path_MV="$MV" # Let the user override the test with a path. 7148 ;; 7149 *) 7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7151for as_dir in $PATH 7152do 7153 IFS=$as_save_IFS 7154 test -z "$as_dir" && as_dir=. 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7157 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162done 7163IFS=$as_save_IFS 7164 7165 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 7166 ;; 7167esac 7168fi 7169MV=$ac_cv_path_MV 7170if test -n "$MV"; then 7171 { echo "$as_me:$LINENO: result: $MV" >&5 7172echo "${ECHO_T}$MV" >&6; } 7173else 7174 { echo "$as_me:$LINENO: result: no" >&5 7175echo "${ECHO_T}no" >&6; } 7176fi 7177 7178 7179if test -n "$ac_tool_prefix"; then 7180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7181set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7182{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7184if test "${ac_cv_prog_RANLIB+set}" = set; then 7185 echo $ECHO_N "(cached) $ECHO_C" >&6 7186else 7187 if test -n "$RANLIB"; then 7188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7189else 7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7199 break 2 7200 fi 7201done 7202done 7203IFS=$as_save_IFS 7204 7205fi 7206fi 7207RANLIB=$ac_cv_prog_RANLIB 7208if test -n "$RANLIB"; then 7209 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7210echo "${ECHO_T}$RANLIB" >&6; } 7211else 7212 { echo "$as_me:$LINENO: result: no" >&5 7213echo "${ECHO_T}no" >&6; } 7214fi 7215 7216 7217fi 7218if test -z "$ac_cv_prog_RANLIB"; then 7219 ac_ct_RANLIB=$RANLIB 7220 # Extract the first word of "ranlib", so it can be a program name with args. 7221set dummy ranlib; ac_word=$2 7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7224if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7225 echo $ECHO_N "(cached) $ECHO_C" >&6 7226else 7227 if test -n "$ac_ct_RANLIB"; then 7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7229else 7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7231for as_dir in $PATH 7232do 7233 IFS=$as_save_IFS 7234 test -z "$as_dir" && as_dir=. 7235 for ac_exec_ext in '' $ac_executable_extensions; do 7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7237 ac_cv_prog_ac_ct_RANLIB="ranlib" 7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7239 break 2 7240 fi 7241done 7242done 7243IFS=$as_save_IFS 7244 7245fi 7246fi 7247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7248if test -n "$ac_ct_RANLIB"; then 7249 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7250echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7251else 7252 { echo "$as_me:$LINENO: result: no" >&5 7253echo "${ECHO_T}no" >&6; } 7254fi 7255 7256 if test "x$ac_ct_RANLIB" = x; then 7257 RANLIB=":" 7258 else 7259 case $cross_compiling:$ac_tool_warned in 7260yes:) 7261{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7262whose name does not start with the host triplet. If you think this 7263configuration is useful to you, please write to autoconf@gnu.org." >&5 7264echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7265whose name does not start with the host triplet. If you think this 7266configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7267ac_tool_warned=yes ;; 7268esac 7269 RANLIB=$ac_ct_RANLIB 7270 fi 7271else 7272 RANLIB="$ac_cv_prog_RANLIB" 7273fi 7274 7275if test -n "$ac_tool_prefix"; then 7276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7277set dummy ${ac_tool_prefix}ar; ac_word=$2 7278{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7280if test "${ac_cv_prog_AR+set}" = set; then 7281 echo $ECHO_N "(cached) $ECHO_C" >&6 7282else 7283 if test -n "$AR"; then 7284 ac_cv_prog_AR="$AR" # Let the user override the test. 7285else 7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287for as_dir in $PATH 7288do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7293 ac_cv_prog_AR="${ac_tool_prefix}ar" 7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297done 7298done 7299IFS=$as_save_IFS 7300 7301fi 7302fi 7303AR=$ac_cv_prog_AR 7304if test -n "$AR"; then 7305 { echo "$as_me:$LINENO: result: $AR" >&5 7306echo "${ECHO_T}$AR" >&6; } 7307else 7308 { echo "$as_me:$LINENO: result: no" >&5 7309echo "${ECHO_T}no" >&6; } 7310fi 7311 7312 7313fi 7314if test -z "$ac_cv_prog_AR"; then 7315 ac_ct_AR=$AR 7316 # Extract the first word of "ar", so it can be a program name with args. 7317set dummy ar; ac_word=$2 7318{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7320if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7321 echo $ECHO_N "(cached) $ECHO_C" >&6 7322else 7323 if test -n "$ac_ct_AR"; then 7324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7325else 7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327for as_dir in $PATH 7328do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7333 ac_cv_prog_ac_ct_AR="ar" 7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337done 7338done 7339IFS=$as_save_IFS 7340 7341fi 7342fi 7343ac_ct_AR=$ac_cv_prog_ac_ct_AR 7344if test -n "$ac_ct_AR"; then 7345 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7346echo "${ECHO_T}$ac_ct_AR" >&6; } 7347else 7348 { echo "$as_me:$LINENO: result: no" >&5 7349echo "${ECHO_T}no" >&6; } 7350fi 7351 7352 if test "x$ac_ct_AR" = x; then 7353 AR="false" 7354 else 7355 case $cross_compiling:$ac_tool_warned in 7356yes:) 7357{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7358whose name does not start with the host triplet. If you think this 7359configuration is useful to you, please write to autoconf@gnu.org." >&5 7360echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7361whose name does not start with the host triplet. If you think this 7362configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7363ac_tool_warned=yes ;; 7364esac 7365 AR=$ac_ct_AR 7366 fi 7367else 7368 AR="$ac_cv_prog_AR" 7369fi 7370 7371# Extract the first word of "rm", so it can be a program name with args. 7372set dummy rm; ac_word=$2 7373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7375if test "${ac_cv_path_RM+set}" = set; then 7376 echo $ECHO_N "(cached) $ECHO_C" >&6 7377else 7378 case $RM in 7379 [\\/]* | ?:[\\/]*) 7380 ac_cv_path_RM="$RM" # Let the user override the test with a path. 7381 ;; 7382 *) 7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395done 7396IFS=$as_save_IFS 7397 7398 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 7399 ;; 7400esac 7401fi 7402RM=$ac_cv_path_RM 7403if test -n "$RM"; then 7404 { echo "$as_me:$LINENO: result: $RM" >&5 7405echo "${ECHO_T}$RM" >&6; } 7406else 7407 { echo "$as_me:$LINENO: result: no" >&5 7408echo "${ECHO_T}no" >&6; } 7409fi 7410 7411 7412# Extract the first word of "sed", so it can be a program name with args. 7413set dummy sed; ac_word=$2 7414{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7416if test "${ac_cv_path_SED+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 case $SED in 7420 [\\/]* | ?:[\\/]*) 7421 ac_cv_path_SED="$SED" # Let the user override the test with a path. 7422 ;; 7423 *) 7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7425for as_dir in $PATH 7426do 7427 IFS=$as_save_IFS 7428 test -z "$as_dir" && as_dir=. 7429 for ac_exec_ext in '' $ac_executable_extensions; do 7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7431 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7433 break 2 7434 fi 7435done 7436done 7437IFS=$as_save_IFS 7438 7439 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 7440 ;; 7441esac 7442fi 7443SED=$ac_cv_path_SED 7444if test -n "$SED"; then 7445 { echo "$as_me:$LINENO: result: $SED" >&5 7446echo "${ECHO_T}$SED" >&6; } 7447else 7448 { echo "$as_me:$LINENO: result: no" >&5 7449echo "${ECHO_T}no" >&6; } 7450fi 7451 7452 7453# Extract the first word of "tar", so it can be a program name with args. 7454set dummy tar; ac_word=$2 7455{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7457if test "${ac_cv_path_TAR+set}" = set; then 7458 echo $ECHO_N "(cached) $ECHO_C" >&6 7459else 7460 case $TAR in 7461 [\\/]* | ?:[\\/]*) 7462 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 7463 ;; 7464 *) 7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7472 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477done 7478IFS=$as_save_IFS 7479 7480 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 7481 ;; 7482esac 7483fi 7484TAR=$ac_cv_path_TAR 7485if test -n "$TAR"; then 7486 { echo "$as_me:$LINENO: result: $TAR" >&5 7487echo "${ECHO_T}$TAR" >&6; } 7488else 7489 { echo "$as_me:$LINENO: result: no" >&5 7490echo "${ECHO_T}no" >&6; } 7491fi 7492 7493 7494# Extract the first word of "pwd", so it can be a program name with args. 7495set dummy pwd; ac_word=$2 7496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7498if test "${ac_cv_path_BINPWD+set}" = set; then 7499 echo $ECHO_N "(cached) $ECHO_C" >&6 7500else 7501 case $BINPWD in 7502 [\\/]* | ?:[\\/]*) 7503 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 7504 ;; 7505 *) 7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7507for as_dir in $PATH 7508do 7509 IFS=$as_save_IFS 7510 test -z "$as_dir" && as_dir=. 7511 for ac_exec_ext in '' $ac_executable_extensions; do 7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7513 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7515 break 2 7516 fi 7517done 7518done 7519IFS=$as_save_IFS 7520 7521 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 7522 ;; 7523esac 7524fi 7525BINPWD=$ac_cv_path_BINPWD 7526if test -n "$BINPWD"; then 7527 { echo "$as_me:$LINENO: result: $BINPWD" >&5 7528echo "${ECHO_T}$BINPWD" >&6; } 7529else 7530 { echo "$as_me:$LINENO: result: no" >&5 7531echo "${ECHO_T}no" >&6; } 7532fi 7533 7534 7535 7536# Extract the first word of "Graphviz", so it can be a program name with args. 7537set dummy Graphviz; ac_word=$2 7538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7540if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 7541 echo $ECHO_N "(cached) $ECHO_C" >&6 7542else 7543 case $GRAPHVIZ in 7544 [\\/]* | ?:[\\/]*) 7545 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 7546 ;; 7547 *) 7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7549for as_dir in $PATH 7550do 7551 IFS=$as_save_IFS 7552 test -z "$as_dir" && as_dir=. 7553 for ac_exec_ext in '' $ac_executable_extensions; do 7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7555 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7557 break 2 7558 fi 7559done 7560done 7561IFS=$as_save_IFS 7562 7563 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 7564 ;; 7565esac 7566fi 7567GRAPHVIZ=$ac_cv_path_GRAPHVIZ 7568if test -n "$GRAPHVIZ"; then 7569 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 7570echo "${ECHO_T}$GRAPHVIZ" >&6; } 7571else 7572 { echo "$as_me:$LINENO: result: no" >&5 7573echo "${ECHO_T}no" >&6; } 7574fi 7575 7576 7577if test "$GRAPHVIZ" != "echo Graphviz" ; then 7578 7579cat >>confdefs.h <<\_ACEOF 7580#define HAVE_GRAPHVIZ 1 7581_ACEOF 7582 7583 if test "$llvm_cv_os_type" = "MingW" ; then 7584 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7585 fi 7586 7587cat >>confdefs.h <<_ACEOF 7588#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 7589_ACEOF 7590 7591fi 7592# Extract the first word of "dot", so it can be a program name with args. 7593set dummy dot; ac_word=$2 7594{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7596if test "${ac_cv_path_DOT+set}" = set; then 7597 echo $ECHO_N "(cached) $ECHO_C" >&6 7598else 7599 case $DOT in 7600 [\\/]* | ?:[\\/]*) 7601 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 7602 ;; 7603 *) 7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7611 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616done 7617IFS=$as_save_IFS 7618 7619 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 7620 ;; 7621esac 7622fi 7623DOT=$ac_cv_path_DOT 7624if test -n "$DOT"; then 7625 { echo "$as_me:$LINENO: result: $DOT" >&5 7626echo "${ECHO_T}$DOT" >&6; } 7627else 7628 { echo "$as_me:$LINENO: result: no" >&5 7629echo "${ECHO_T}no" >&6; } 7630fi 7631 7632 7633if test "$DOT" != "echo dot" ; then 7634 7635cat >>confdefs.h <<\_ACEOF 7636#define HAVE_DOT 1 7637_ACEOF 7638 7639 if test "$llvm_cv_os_type" = "MingW" ; then 7640 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7641 fi 7642 7643cat >>confdefs.h <<_ACEOF 7644#define LLVM_PATH_DOT "$DOT${EXEEXT}" 7645_ACEOF 7646 7647fi 7648# Extract the first word of "fdp", so it can be a program name with args. 7649set dummy fdp; ac_word=$2 7650{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7652if test "${ac_cv_path_FDP+set}" = set; then 7653 echo $ECHO_N "(cached) $ECHO_C" >&6 7654else 7655 case $FDP in 7656 [\\/]* | ?:[\\/]*) 7657 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 7658 ;; 7659 *) 7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7661for as_dir in $PATH 7662do 7663 IFS=$as_save_IFS 7664 test -z "$as_dir" && as_dir=. 7665 for ac_exec_ext in '' $ac_executable_extensions; do 7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7667 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7669 break 2 7670 fi 7671done 7672done 7673IFS=$as_save_IFS 7674 7675 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 7676 ;; 7677esac 7678fi 7679FDP=$ac_cv_path_FDP 7680if test -n "$FDP"; then 7681 { echo "$as_me:$LINENO: result: $FDP" >&5 7682echo "${ECHO_T}$FDP" >&6; } 7683else 7684 { echo "$as_me:$LINENO: result: no" >&5 7685echo "${ECHO_T}no" >&6; } 7686fi 7687 7688 7689if test "$FDP" != "echo fdp" ; then 7690 7691cat >>confdefs.h <<\_ACEOF 7692#define HAVE_FDP 1 7693_ACEOF 7694 7695 if test "$llvm_cv_os_type" = "MingW" ; then 7696 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7697 fi 7698 7699cat >>confdefs.h <<_ACEOF 7700#define LLVM_PATH_FDP "$FDP${EXEEXT}" 7701_ACEOF 7702 7703fi 7704# Extract the first word of "neato", so it can be a program name with args. 7705set dummy neato; ac_word=$2 7706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7708if test "${ac_cv_path_NEATO+set}" = set; then 7709 echo $ECHO_N "(cached) $ECHO_C" >&6 7710else 7711 case $NEATO in 7712 [\\/]* | ?:[\\/]*) 7713 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 7714 ;; 7715 *) 7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7717for as_dir in $PATH 7718do 7719 IFS=$as_save_IFS 7720 test -z "$as_dir" && as_dir=. 7721 for ac_exec_ext in '' $ac_executable_extensions; do 7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7723 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7725 break 2 7726 fi 7727done 7728done 7729IFS=$as_save_IFS 7730 7731 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 7732 ;; 7733esac 7734fi 7735NEATO=$ac_cv_path_NEATO 7736if test -n "$NEATO"; then 7737 { echo "$as_me:$LINENO: result: $NEATO" >&5 7738echo "${ECHO_T}$NEATO" >&6; } 7739else 7740 { echo "$as_me:$LINENO: result: no" >&5 7741echo "${ECHO_T}no" >&6; } 7742fi 7743 7744 7745if test "$NEATO" != "echo neato" ; then 7746 7747cat >>confdefs.h <<\_ACEOF 7748#define HAVE_NEATO 1 7749_ACEOF 7750 7751 if test "$llvm_cv_os_type" = "MingW" ; then 7752 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7753 fi 7754 7755cat >>confdefs.h <<_ACEOF 7756#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7757_ACEOF 7758 7759fi 7760# Extract the first word of "twopi", so it can be a program name with args. 7761set dummy twopi; ac_word=$2 7762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7764if test "${ac_cv_path_TWOPI+set}" = set; then 7765 echo $ECHO_N "(cached) $ECHO_C" >&6 7766else 7767 case $TWOPI in 7768 [\\/]* | ?:[\\/]*) 7769 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7770 ;; 7771 *) 7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773for as_dir in $PATH 7774do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7779 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784done 7785IFS=$as_save_IFS 7786 7787 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7788 ;; 7789esac 7790fi 7791TWOPI=$ac_cv_path_TWOPI 7792if test -n "$TWOPI"; then 7793 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7794echo "${ECHO_T}$TWOPI" >&6; } 7795else 7796 { echo "$as_me:$LINENO: result: no" >&5 7797echo "${ECHO_T}no" >&6; } 7798fi 7799 7800 7801if test "$TWOPI" != "echo twopi" ; then 7802 7803cat >>confdefs.h <<\_ACEOF 7804#define HAVE_TWOPI 1 7805_ACEOF 7806 7807 if test "$llvm_cv_os_type" = "MingW" ; then 7808 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7809 fi 7810 7811cat >>confdefs.h <<_ACEOF 7812#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7813_ACEOF 7814 7815fi 7816# Extract the first word of "circo", so it can be a program name with args. 7817set dummy circo; ac_word=$2 7818{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7820if test "${ac_cv_path_CIRCO+set}" = set; then 7821 echo $ECHO_N "(cached) $ECHO_C" >&6 7822else 7823 case $CIRCO in 7824 [\\/]* | ?:[\\/]*) 7825 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7826 ;; 7827 *) 7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 test -z "$as_dir" && as_dir=. 7833 for ac_exec_ext in '' $ac_executable_extensions; do 7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7835 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7837 break 2 7838 fi 7839done 7840done 7841IFS=$as_save_IFS 7842 7843 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7844 ;; 7845esac 7846fi 7847CIRCO=$ac_cv_path_CIRCO 7848if test -n "$CIRCO"; then 7849 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7850echo "${ECHO_T}$CIRCO" >&6; } 7851else 7852 { echo "$as_me:$LINENO: result: no" >&5 7853echo "${ECHO_T}no" >&6; } 7854fi 7855 7856 7857if test "$CIRCO" != "echo circo" ; then 7858 7859cat >>confdefs.h <<\_ACEOF 7860#define HAVE_CIRCO 1 7861_ACEOF 7862 7863 if test "$llvm_cv_os_type" = "MingW" ; then 7864 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7865 fi 7866 7867cat >>confdefs.h <<_ACEOF 7868#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7869_ACEOF 7870 7871fi 7872for ac_prog in gv gsview32 7873do 7874 # Extract the first word of "$ac_prog", so it can be a program name with args. 7875set dummy $ac_prog; ac_word=$2 7876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7878if test "${ac_cv_path_GV+set}" = set; then 7879 echo $ECHO_N "(cached) $ECHO_C" >&6 7880else 7881 case $GV in 7882 [\\/]* | ?:[\\/]*) 7883 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7884 ;; 7885 *) 7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887for as_dir in $PATH 7888do 7889 IFS=$as_save_IFS 7890 test -z "$as_dir" && as_dir=. 7891 for ac_exec_ext in '' $ac_executable_extensions; do 7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7893 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7895 break 2 7896 fi 7897done 7898done 7899IFS=$as_save_IFS 7900 7901 ;; 7902esac 7903fi 7904GV=$ac_cv_path_GV 7905if test -n "$GV"; then 7906 { echo "$as_me:$LINENO: result: $GV" >&5 7907echo "${ECHO_T}$GV" >&6; } 7908else 7909 { echo "$as_me:$LINENO: result: no" >&5 7910echo "${ECHO_T}no" >&6; } 7911fi 7912 7913 7914 test -n "$GV" && break 7915done 7916test -n "$GV" || GV="echo gv" 7917 7918if test "$GV" != "echo gv" ; then 7919 7920cat >>confdefs.h <<\_ACEOF 7921#define HAVE_GV 1 7922_ACEOF 7923 7924 if test "$llvm_cv_os_type" = "MingW" ; then 7925 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7926 fi 7927 7928cat >>confdefs.h <<_ACEOF 7929#define LLVM_PATH_GV "$GV${EXEEXT}" 7930_ACEOF 7931 7932fi 7933# Extract the first word of "dotty", so it can be a program name with args. 7934set dummy dotty; ac_word=$2 7935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7937if test "${ac_cv_path_DOTTY+set}" = set; then 7938 echo $ECHO_N "(cached) $ECHO_C" >&6 7939else 7940 case $DOTTY in 7941 [\\/]* | ?:[\\/]*) 7942 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7943 ;; 7944 *) 7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7946for as_dir in $PATH 7947do 7948 IFS=$as_save_IFS 7949 test -z "$as_dir" && as_dir=. 7950 for ac_exec_ext in '' $ac_executable_extensions; do 7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7952 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7954 break 2 7955 fi 7956done 7957done 7958IFS=$as_save_IFS 7959 7960 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7961 ;; 7962esac 7963fi 7964DOTTY=$ac_cv_path_DOTTY 7965if test -n "$DOTTY"; then 7966 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7967echo "${ECHO_T}$DOTTY" >&6; } 7968else 7969 { echo "$as_me:$LINENO: result: no" >&5 7970echo "${ECHO_T}no" >&6; } 7971fi 7972 7973 7974if test "$DOTTY" != "echo dotty" ; then 7975 7976cat >>confdefs.h <<\_ACEOF 7977#define HAVE_DOTTY 1 7978_ACEOF 7979 7980 if test "$llvm_cv_os_type" = "MingW" ; then 7981 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7982 fi 7983 7984cat >>confdefs.h <<_ACEOF 7985#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7986_ACEOF 7987 7988fi 7989# Extract the first word of "xdot.py", so it can be a program name with args. 7990set dummy xdot.py; ac_word=$2 7991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7993if test "${ac_cv_path_XDOT_PY+set}" = set; then 7994 echo $ECHO_N "(cached) $ECHO_C" >&6 7995else 7996 case $XDOT_PY in 7997 [\\/]* | ?:[\\/]*) 7998 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7999 ;; 8000 *) 8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002for as_dir in $PATH 8003do 8004 IFS=$as_save_IFS 8005 test -z "$as_dir" && as_dir=. 8006 for ac_exec_ext in '' $ac_executable_extensions; do 8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8008 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8010 break 2 8011 fi 8012done 8013done 8014IFS=$as_save_IFS 8015 8016 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 8017 ;; 8018esac 8019fi 8020XDOT_PY=$ac_cv_path_XDOT_PY 8021if test -n "$XDOT_PY"; then 8022 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 8023echo "${ECHO_T}$XDOT_PY" >&6; } 8024else 8025 { echo "$as_me:$LINENO: result: no" >&5 8026echo "${ECHO_T}no" >&6; } 8027fi 8028 8029 8030if test "$XDOT_PY" != "echo xdot.py" ; then 8031 8032cat >>confdefs.h <<\_ACEOF 8033#define HAVE_XDOT_PY 1 8034_ACEOF 8035 8036 if test "$llvm_cv_os_type" = "MingW" ; then 8037 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 8038 fi 8039 8040cat >>confdefs.h <<_ACEOF 8041#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 8042_ACEOF 8043 8044fi 8045 8046 8047# Extract the first word of "perl", so it can be a program name with args. 8048set dummy perl; ac_word=$2 8049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8051if test "${ac_cv_path_PERL+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053else 8054 case $PERL in 8055 [\\/]* | ?:[\\/]*) 8056 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8057 ;; 8058 *) 8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8066 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071done 8072IFS=$as_save_IFS 8073 8074 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 8075 ;; 8076esac 8077fi 8078PERL=$ac_cv_path_PERL 8079if test -n "$PERL"; then 8080 { echo "$as_me:$LINENO: result: $PERL" >&5 8081echo "${ECHO_T}$PERL" >&6; } 8082else 8083 { echo "$as_me:$LINENO: result: no" >&5 8084echo "${ECHO_T}no" >&6; } 8085fi 8086 8087 8088if test "$PERL" != "none"; then 8089 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 8090echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 8091 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 8092 { echo "$as_me:$LINENO: result: yes" >&5 8093echo "${ECHO_T}yes" >&6; } 8094 else 8095 PERL=none 8096 { echo "$as_me:$LINENO: result: not found" >&5 8097echo "${ECHO_T}not found" >&6; } 8098 fi 8099fi 8100 8101 8102if test x"$PERL" = xnone; then 8103 HAVE_PERL=0 8104 8105 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 8106echo "$as_me: error: perl is required but was not found, please install it" >&2;} 8107 { (exit 1); exit 1; }; } 8108else 8109 HAVE_PERL=1 8110 8111fi 8112 8113# Find a good install program. We prefer a C program (faster), 8114# so one script is as good as another. But avoid the broken or 8115# incompatible versions: 8116# SysV /etc/install, /usr/sbin/install 8117# SunOS /usr/etc/install 8118# IRIX /sbin/install 8119# AIX /bin/install 8120# AmigaOS /C/install, which installs bootblocks on floppy discs 8121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8124# OS/2's system install, which has a completely different semantic 8125# ./install, which can be erroneously created by make from ./install.sh. 8126{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 8127echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 8128if test -z "$INSTALL"; then 8129if test "${ac_cv_path_install+set}" = set; then 8130 echo $ECHO_N "(cached) $ECHO_C" >&6 8131else 8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8133for as_dir in $PATH 8134do 8135 IFS=$as_save_IFS 8136 test -z "$as_dir" && as_dir=. 8137 # Account for people who put trailing slashes in PATH elements. 8138case $as_dir/ in 8139 ./ | .// | /cC/* | \ 8140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 8142 /usr/ucb/* ) ;; 8143 *) 8144 # OSF1 and SCO ODT 3.0 have their own names for install. 8145 # Don't use installbsd from OSF since it installs stuff as root 8146 # by default. 8147 for ac_prog in ginstall scoinst install; do 8148 for ac_exec_ext in '' $ac_executable_extensions; do 8149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 8150 if test $ac_prog = install && 8151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8152 # AIX install. It has an incompatible calling convention. 8153 : 8154 elif test $ac_prog = install && 8155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8156 # program-specific install script used by HP pwplus--don't use. 8157 : 8158 else 8159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8160 break 3 8161 fi 8162 fi 8163 done 8164 done 8165 ;; 8166esac 8167done 8168IFS=$as_save_IFS 8169 8170 8171fi 8172 if test "${ac_cv_path_install+set}" = set; then 8173 INSTALL=$ac_cv_path_install 8174 else 8175 # As a last resort, use the slow shell script. Don't cache a 8176 # value for INSTALL within a source directory, because that will 8177 # break other packages using the cache if that directory is 8178 # removed, or if the value is a relative name. 8179 INSTALL=$ac_install_sh 8180 fi 8181fi 8182{ echo "$as_me:$LINENO: result: $INSTALL" >&5 8183echo "${ECHO_T}$INSTALL" >&6; } 8184 8185# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8186# It thinks the first close brace ends the variable substitution. 8187test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8188 8189test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8190 8191test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8192 8193case "$INSTALL" in 8194 [\\/$]* | ?:[\\/]* ) ;; 8195 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 8196esac 8197 8198# Extract the first word of "bzip2", so it can be a program name with args. 8199set dummy bzip2; ac_word=$2 8200{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8202if test "${ac_cv_path_BZIP2+set}" = set; then 8203 echo $ECHO_N "(cached) $ECHO_C" >&6 8204else 8205 case $BZIP2 in 8206 [\\/]* | ?:[\\/]*) 8207 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 8208 ;; 8209 *) 8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8211for as_dir in $PATH 8212do 8213 IFS=$as_save_IFS 8214 test -z "$as_dir" && as_dir=. 8215 for ac_exec_ext in '' $ac_executable_extensions; do 8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8217 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8219 break 2 8220 fi 8221done 8222done 8223IFS=$as_save_IFS 8224 8225 ;; 8226esac 8227fi 8228BZIP2=$ac_cv_path_BZIP2 8229if test -n "$BZIP2"; then 8230 { echo "$as_me:$LINENO: result: $BZIP2" >&5 8231echo "${ECHO_T}$BZIP2" >&6; } 8232else 8233 { echo "$as_me:$LINENO: result: no" >&5 8234echo "${ECHO_T}no" >&6; } 8235fi 8236 8237 8238# Extract the first word of "cat", so it can be a program name with args. 8239set dummy cat; ac_word=$2 8240{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8242if test "${ac_cv_path_CAT+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 case $CAT in 8246 [\\/]* | ?:[\\/]*) 8247 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 8248 ;; 8249 *) 8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8251for as_dir in $PATH 8252do 8253 IFS=$as_save_IFS 8254 test -z "$as_dir" && as_dir=. 8255 for ac_exec_ext in '' $ac_executable_extensions; do 8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8257 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8259 break 2 8260 fi 8261done 8262done 8263IFS=$as_save_IFS 8264 8265 ;; 8266esac 8267fi 8268CAT=$ac_cv_path_CAT 8269if test -n "$CAT"; then 8270 { echo "$as_me:$LINENO: result: $CAT" >&5 8271echo "${ECHO_T}$CAT" >&6; } 8272else 8273 { echo "$as_me:$LINENO: result: no" >&5 8274echo "${ECHO_T}no" >&6; } 8275fi 8276 8277 8278# Extract the first word of "doxygen", so it can be a program name with args. 8279set dummy doxygen; ac_word=$2 8280{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8282if test "${ac_cv_path_DOXYGEN+set}" = set; then 8283 echo $ECHO_N "(cached) $ECHO_C" >&6 8284else 8285 case $DOXYGEN in 8286 [\\/]* | ?:[\\/]*) 8287 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 8288 ;; 8289 *) 8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8291for as_dir in $PATH 8292do 8293 IFS=$as_save_IFS 8294 test -z "$as_dir" && as_dir=. 8295 for ac_exec_ext in '' $ac_executable_extensions; do 8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8297 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 8298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8299 break 2 8300 fi 8301done 8302done 8303IFS=$as_save_IFS 8304 8305 ;; 8306esac 8307fi 8308DOXYGEN=$ac_cv_path_DOXYGEN 8309if test -n "$DOXYGEN"; then 8310 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 8311echo "${ECHO_T}$DOXYGEN" >&6; } 8312else 8313 { echo "$as_me:$LINENO: result: no" >&5 8314echo "${ECHO_T}no" >&6; } 8315fi 8316 8317 8318# Extract the first word of "groff", so it can be a program name with args. 8319set dummy groff; ac_word=$2 8320{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8322if test "${ac_cv_path_GROFF+set}" = set; then 8323 echo $ECHO_N "(cached) $ECHO_C" >&6 8324else 8325 case $GROFF in 8326 [\\/]* | ?:[\\/]*) 8327 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 8328 ;; 8329 *) 8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8331for as_dir in $PATH 8332do 8333 IFS=$as_save_IFS 8334 test -z "$as_dir" && as_dir=. 8335 for ac_exec_ext in '' $ac_executable_extensions; do 8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8337 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8339 break 2 8340 fi 8341done 8342done 8343IFS=$as_save_IFS 8344 8345 ;; 8346esac 8347fi 8348GROFF=$ac_cv_path_GROFF 8349if test -n "$GROFF"; then 8350 { echo "$as_me:$LINENO: result: $GROFF" >&5 8351echo "${ECHO_T}$GROFF" >&6; } 8352else 8353 { echo "$as_me:$LINENO: result: no" >&5 8354echo "${ECHO_T}no" >&6; } 8355fi 8356 8357 8358# Extract the first word of "gzip", so it can be a program name with args. 8359set dummy gzip; ac_word=$2 8360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8362if test "${ac_cv_path_GZIPBIN+set}" = set; then 8363 echo $ECHO_N "(cached) $ECHO_C" >&6 8364else 8365 case $GZIPBIN in 8366 [\\/]* | ?:[\\/]*) 8367 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 8368 ;; 8369 *) 8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8371for as_dir in $PATH 8372do 8373 IFS=$as_save_IFS 8374 test -z "$as_dir" && as_dir=. 8375 for ac_exec_ext in '' $ac_executable_extensions; do 8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8377 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8379 break 2 8380 fi 8381done 8382done 8383IFS=$as_save_IFS 8384 8385 ;; 8386esac 8387fi 8388GZIPBIN=$ac_cv_path_GZIPBIN 8389if test -n "$GZIPBIN"; then 8390 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 8391echo "${ECHO_T}$GZIPBIN" >&6; } 8392else 8393 { echo "$as_me:$LINENO: result: no" >&5 8394echo "${ECHO_T}no" >&6; } 8395fi 8396 8397 8398# Extract the first word of "pod2html", so it can be a program name with args. 8399set dummy pod2html; ac_word=$2 8400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8402if test "${ac_cv_path_POD2HTML+set}" = set; then 8403 echo $ECHO_N "(cached) $ECHO_C" >&6 8404else 8405 case $POD2HTML in 8406 [\\/]* | ?:[\\/]*) 8407 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 8408 ;; 8409 *) 8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8411for as_dir in $PATH 8412do 8413 IFS=$as_save_IFS 8414 test -z "$as_dir" && as_dir=. 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8417 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422done 8423IFS=$as_save_IFS 8424 8425 ;; 8426esac 8427fi 8428POD2HTML=$ac_cv_path_POD2HTML 8429if test -n "$POD2HTML"; then 8430 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 8431echo "${ECHO_T}$POD2HTML" >&6; } 8432else 8433 { echo "$as_me:$LINENO: result: no" >&5 8434echo "${ECHO_T}no" >&6; } 8435fi 8436 8437 8438# Extract the first word of "pod2man", so it can be a program name with args. 8439set dummy pod2man; ac_word=$2 8440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8442if test "${ac_cv_path_POD2MAN+set}" = set; then 8443 echo $ECHO_N "(cached) $ECHO_C" >&6 8444else 8445 case $POD2MAN in 8446 [\\/]* | ?:[\\/]*) 8447 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 8448 ;; 8449 *) 8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8451for as_dir in $PATH 8452do 8453 IFS=$as_save_IFS 8454 test -z "$as_dir" && as_dir=. 8455 for ac_exec_ext in '' $ac_executable_extensions; do 8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8457 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8459 break 2 8460 fi 8461done 8462done 8463IFS=$as_save_IFS 8464 8465 ;; 8466esac 8467fi 8468POD2MAN=$ac_cv_path_POD2MAN 8469if test -n "$POD2MAN"; then 8470 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 8471echo "${ECHO_T}$POD2MAN" >&6; } 8472else 8473 { echo "$as_me:$LINENO: result: no" >&5 8474echo "${ECHO_T}no" >&6; } 8475fi 8476 8477 8478# Extract the first word of "pdfroff", so it can be a program name with args. 8479set dummy pdfroff; ac_word=$2 8480{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8482if test "${ac_cv_path_PDFROFF+set}" = set; then 8483 echo $ECHO_N "(cached) $ECHO_C" >&6 8484else 8485 case $PDFROFF in 8486 [\\/]* | ?:[\\/]*) 8487 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 8488 ;; 8489 *) 8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8491for as_dir in $PATH 8492do 8493 IFS=$as_save_IFS 8494 test -z "$as_dir" && as_dir=. 8495 for ac_exec_ext in '' $ac_executable_extensions; do 8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8497 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8499 break 2 8500 fi 8501done 8502done 8503IFS=$as_save_IFS 8504 8505 ;; 8506esac 8507fi 8508PDFROFF=$ac_cv_path_PDFROFF 8509if test -n "$PDFROFF"; then 8510 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 8511echo "${ECHO_T}$PDFROFF" >&6; } 8512else 8513 { echo "$as_me:$LINENO: result: no" >&5 8514echo "${ECHO_T}no" >&6; } 8515fi 8516 8517 8518# Extract the first word of "runtest", so it can be a program name with args. 8519set dummy runtest; ac_word=$2 8520{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8522if test "${ac_cv_path_RUNTEST+set}" = set; then 8523 echo $ECHO_N "(cached) $ECHO_C" >&6 8524else 8525 case $RUNTEST in 8526 [\\/]* | ?:[\\/]*) 8527 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 8528 ;; 8529 *) 8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8531for as_dir in $PATH 8532do 8533 IFS=$as_save_IFS 8534 test -z "$as_dir" && as_dir=. 8535 for ac_exec_ext in '' $ac_executable_extensions; do 8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8537 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8539 break 2 8540 fi 8541done 8542done 8543IFS=$as_save_IFS 8544 8545 ;; 8546esac 8547fi 8548RUNTEST=$ac_cv_path_RUNTEST 8549if test -n "$RUNTEST"; then 8550 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 8551echo "${ECHO_T}$RUNTEST" >&6; } 8552else 8553 { echo "$as_me:$LINENO: result: no" >&5 8554echo "${ECHO_T}no" >&6; } 8555fi 8556 8557 8558 8559no_itcl=true 8560{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 8561echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 8562 8563# Check whether --with-tclinclude was given. 8564if test "${with_tclinclude+set}" = set; then 8565 withval=$with_tclinclude; with_tclinclude=${withval} 8566else 8567 with_tclinclude='' 8568fi 8569 8570if test "${ac_cv_path_tclsh+set}" = set; then 8571 echo $ECHO_N "(cached) $ECHO_C" >&6 8572else 8573 8574if test x"${with_tclinclude}" != x ; then 8575 if test -f ${with_tclinclude}/tclsh ; then 8576 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 8577 elif test -f ${with_tclinclude}/src/tclsh ; then 8578 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 8579 else 8580 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 8581echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 8582 { (exit 1); exit 1; }; } 8583 fi 8584fi 8585fi 8586 8587 8588if test x"${ac_cv_path_tclsh}" = x ; then 8589 { echo "$as_me:$LINENO: result: none" >&5 8590echo "${ECHO_T}none" >&6; } 8591 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 8592do 8593 # Extract the first word of "$ac_prog", so it can be a program name with args. 8594set dummy $ac_prog; ac_word=$2 8595{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8597if test "${ac_cv_path_TCLSH+set}" = set; then 8598 echo $ECHO_N "(cached) $ECHO_C" >&6 8599else 8600 case $TCLSH in 8601 [\\/]* | ?:[\\/]*) 8602 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 8603 ;; 8604 *) 8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8606for as_dir in $PATH 8607do 8608 IFS=$as_save_IFS 8609 test -z "$as_dir" && as_dir=. 8610 for ac_exec_ext in '' $ac_executable_extensions; do 8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8612 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 8613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8614 break 2 8615 fi 8616done 8617done 8618IFS=$as_save_IFS 8619 8620 ;; 8621esac 8622fi 8623TCLSH=$ac_cv_path_TCLSH 8624if test -n "$TCLSH"; then 8625 { echo "$as_me:$LINENO: result: $TCLSH" >&5 8626echo "${ECHO_T}$TCLSH" >&6; } 8627else 8628 { echo "$as_me:$LINENO: result: no" >&5 8629echo "${ECHO_T}no" >&6; } 8630fi 8631 8632 8633 test -n "$TCLSH" && break 8634done 8635 8636 if test x"${TCLSH}" = x ; then 8637 ac_cv_path_tclsh=''; 8638 else 8639 ac_cv_path_tclsh="${TCLSH}"; 8640 fi 8641else 8642 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 8643echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 8644 TCLSH="${ac_cv_path_tclsh}" 8645 8646fi 8647 8648# Extract the first word of "zip", so it can be a program name with args. 8649set dummy zip; ac_word=$2 8650{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8652if test "${ac_cv_path_ZIP+set}" = set; then 8653 echo $ECHO_N "(cached) $ECHO_C" >&6 8654else 8655 case $ZIP in 8656 [\\/]* | ?:[\\/]*) 8657 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 8658 ;; 8659 *) 8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661for as_dir in $PATH 8662do 8663 IFS=$as_save_IFS 8664 test -z "$as_dir" && as_dir=. 8665 for ac_exec_ext in '' $ac_executable_extensions; do 8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8667 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 8668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8669 break 2 8670 fi 8671done 8672done 8673IFS=$as_save_IFS 8674 8675 ;; 8676esac 8677fi 8678ZIP=$ac_cv_path_ZIP 8679if test -n "$ZIP"; then 8680 { echo "$as_me:$LINENO: result: $ZIP" >&5 8681echo "${ECHO_T}$ZIP" >&6; } 8682else 8683 { echo "$as_me:$LINENO: result: no" >&5 8684echo "${ECHO_T}no" >&6; } 8685fi 8686 8687 8688for ac_prog in ocamlc 8689do 8690 # Extract the first word of "$ac_prog", so it can be a program name with args. 8691set dummy $ac_prog; ac_word=$2 8692{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8694if test "${ac_cv_path_OCAMLC+set}" = set; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 case $OCAMLC in 8698 [\\/]* | ?:[\\/]*) 8699 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 8700 ;; 8701 *) 8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8703for as_dir in $PATH 8704do 8705 IFS=$as_save_IFS 8706 test -z "$as_dir" && as_dir=. 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8709 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713done 8714done 8715IFS=$as_save_IFS 8716 8717 ;; 8718esac 8719fi 8720OCAMLC=$ac_cv_path_OCAMLC 8721if test -n "$OCAMLC"; then 8722 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 8723echo "${ECHO_T}$OCAMLC" >&6; } 8724else 8725 { echo "$as_me:$LINENO: result: no" >&5 8726echo "${ECHO_T}no" >&6; } 8727fi 8728 8729 8730 test -n "$OCAMLC" && break 8731done 8732 8733for ac_prog in ocamlopt 8734do 8735 # Extract the first word of "$ac_prog", so it can be a program name with args. 8736set dummy $ac_prog; ac_word=$2 8737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8739if test "${ac_cv_path_OCAMLOPT+set}" = set; then 8740 echo $ECHO_N "(cached) $ECHO_C" >&6 8741else 8742 case $OCAMLOPT in 8743 [\\/]* | ?:[\\/]*) 8744 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 8745 ;; 8746 *) 8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748for as_dir in $PATH 8749do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8754 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758done 8759done 8760IFS=$as_save_IFS 8761 8762 ;; 8763esac 8764fi 8765OCAMLOPT=$ac_cv_path_OCAMLOPT 8766if test -n "$OCAMLOPT"; then 8767 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 8768echo "${ECHO_T}$OCAMLOPT" >&6; } 8769else 8770 { echo "$as_me:$LINENO: result: no" >&5 8771echo "${ECHO_T}no" >&6; } 8772fi 8773 8774 8775 test -n "$OCAMLOPT" && break 8776done 8777 8778for ac_prog in ocamldep 8779do 8780 # Extract the first word of "$ac_prog", so it can be a program name with args. 8781set dummy $ac_prog; ac_word=$2 8782{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8784if test "${ac_cv_path_OCAMLDEP+set}" = set; then 8785 echo $ECHO_N "(cached) $ECHO_C" >&6 8786else 8787 case $OCAMLDEP in 8788 [\\/]* | ?:[\\/]*) 8789 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 8790 ;; 8791 *) 8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8793for as_dir in $PATH 8794do 8795 IFS=$as_save_IFS 8796 test -z "$as_dir" && as_dir=. 8797 for ac_exec_ext in '' $ac_executable_extensions; do 8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8799 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 8800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8801 break 2 8802 fi 8803done 8804done 8805IFS=$as_save_IFS 8806 8807 ;; 8808esac 8809fi 8810OCAMLDEP=$ac_cv_path_OCAMLDEP 8811if test -n "$OCAMLDEP"; then 8812 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 8813echo "${ECHO_T}$OCAMLDEP" >&6; } 8814else 8815 { echo "$as_me:$LINENO: result: no" >&5 8816echo "${ECHO_T}no" >&6; } 8817fi 8818 8819 8820 test -n "$OCAMLDEP" && break 8821done 8822 8823for ac_prog in ocamldoc 8824do 8825 # Extract the first word of "$ac_prog", so it can be a program name with args. 8826set dummy $ac_prog; ac_word=$2 8827{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8829if test "${ac_cv_path_OCAMLDOC+set}" = set; then 8830 echo $ECHO_N "(cached) $ECHO_C" >&6 8831else 8832 case $OCAMLDOC in 8833 [\\/]* | ?:[\\/]*) 8834 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 8835 ;; 8836 *) 8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8838for as_dir in $PATH 8839do 8840 IFS=$as_save_IFS 8841 test -z "$as_dir" && as_dir=. 8842 for ac_exec_ext in '' $ac_executable_extensions; do 8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8844 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 8845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8846 break 2 8847 fi 8848done 8849done 8850IFS=$as_save_IFS 8851 8852 ;; 8853esac 8854fi 8855OCAMLDOC=$ac_cv_path_OCAMLDOC 8856if test -n "$OCAMLDOC"; then 8857 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 8858echo "${ECHO_T}$OCAMLDOC" >&6; } 8859else 8860 { echo "$as_me:$LINENO: result: no" >&5 8861echo "${ECHO_T}no" >&6; } 8862fi 8863 8864 8865 test -n "$OCAMLDOC" && break 8866done 8867 8868for ac_prog in gas as 8869do 8870 # Extract the first word of "$ac_prog", so it can be a program name with args. 8871set dummy $ac_prog; ac_word=$2 8872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8874if test "${ac_cv_path_GAS+set}" = set; then 8875 echo $ECHO_N "(cached) $ECHO_C" >&6 8876else 8877 case $GAS in 8878 [\\/]* | ?:[\\/]*) 8879 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 8880 ;; 8881 *) 8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8883for as_dir in $PATH 8884do 8885 IFS=$as_save_IFS 8886 test -z "$as_dir" && as_dir=. 8887 for ac_exec_ext in '' $ac_executable_extensions; do 8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8889 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8891 break 2 8892 fi 8893done 8894done 8895IFS=$as_save_IFS 8896 8897 ;; 8898esac 8899fi 8900GAS=$ac_cv_path_GAS 8901if test -n "$GAS"; then 8902 { echo "$as_me:$LINENO: result: $GAS" >&5 8903echo "${ECHO_T}$GAS" >&6; } 8904else 8905 { echo "$as_me:$LINENO: result: no" >&5 8906echo "${ECHO_T}no" >&6; } 8907fi 8908 8909 8910 test -n "$GAS" && break 8911done 8912 8913 8914{ echo "$as_me:$LINENO: checking for linker version" >&5 8915echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 8916if test "${llvm_cv_link_version+set}" = set; then 8917 echo $ECHO_N "(cached) $ECHO_C" >&6 8918else 8919 8920 version_string="$(ld -v 2>&1 | head -1)" 8921 8922 # Check for ld64. 8923 if (echo "$version_string" | grep -q "ld64"); then 8924 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") 8925 else 8926 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 8927 fi 8928 8929fi 8930{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 8931echo "${ECHO_T}$llvm_cv_link_version" >&6; } 8932 8933cat >>confdefs.h <<_ACEOF 8934#define HOST_LINK_VERSION "$llvm_cv_link_version" 8935_ACEOF 8936 8937 8938 8939{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 8940echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 8941if test "${llvm_cv_link_use_r+set}" = set; then 8942 echo $ECHO_N "(cached) $ECHO_C" >&6 8943else 8944 ac_ext=c 8945ac_cpp='$CPP $CPPFLAGS' 8946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8948ac_compiler_gnu=$ac_cv_c_compiler_gnu 8949 8950 oldcflags="$CFLAGS" 8951 CFLAGS="$CFLAGS -Wl,-R." 8952 cat >conftest.$ac_ext <<_ACEOF 8953/* confdefs.h. */ 8954_ACEOF 8955cat confdefs.h >>conftest.$ac_ext 8956cat >>conftest.$ac_ext <<_ACEOF 8957/* end confdefs.h. */ 8958 8959int 8960main () 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967rm -f conftest.$ac_objext conftest$ac_exeext 8968if { (ac_try="$ac_link" 8969case "(($ac_try" in 8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8971 *) ac_try_echo=$ac_try;; 8972esac 8973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8974 (eval "$ac_link") 2>conftest.er1 8975 ac_status=$? 8976 grep -v '^ *+' conftest.er1 >conftest.err 8977 rm -f conftest.er1 8978 cat conftest.err >&5 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 (exit $ac_status); } && 8981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8982 { (case "(($ac_try" in 8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8984 *) ac_try_echo=$ac_try;; 8985esac 8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8987 (eval "$ac_try") 2>&5 8988 ac_status=$? 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8990 (exit $ac_status); }; } && 8991 { ac_try='test -s conftest$ac_exeext' 8992 { (case "(($ac_try" in 8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8994 *) ac_try_echo=$ac_try;; 8995esac 8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8997 (eval "$ac_try") 2>&5 8998 ac_status=$? 8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9000 (exit $ac_status); }; }; then 9001 llvm_cv_link_use_r=yes 9002else 9003 echo "$as_me: failed program was:" >&5 9004sed 's/^/| /' conftest.$ac_ext >&5 9005 9006 llvm_cv_link_use_r=no 9007fi 9008 9009rm -f core conftest.err conftest.$ac_objext \ 9010 conftest$ac_exeext conftest.$ac_ext 9011 CFLAGS="$oldcflags" 9012 ac_ext=c 9013ac_cpp='$CPP $CPPFLAGS' 9014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9016ac_compiler_gnu=$ac_cv_c_compiler_gnu 9017 9018 9019fi 9020{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 9021echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 9022if test "$llvm_cv_link_use_r" = yes ; then 9023 9024cat >>confdefs.h <<\_ACEOF 9025#define HAVE_LINK_R 1 9026_ACEOF 9027 9028 fi 9029 9030 9031{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 9032echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 9033if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 9034 echo $ECHO_N "(cached) $ECHO_C" >&6 9035else 9036 ac_ext=c 9037ac_cpp='$CPP $CPPFLAGS' 9038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9040ac_compiler_gnu=$ac_cv_c_compiler_gnu 9041 9042 oldcflags="$CFLAGS" 9043 CFLAGS="$CFLAGS -Wl,-export-dynamic" 9044 cat >conftest.$ac_ext <<_ACEOF 9045/* confdefs.h. */ 9046_ACEOF 9047cat confdefs.h >>conftest.$ac_ext 9048cat >>conftest.$ac_ext <<_ACEOF 9049/* end confdefs.h. */ 9050 9051int 9052main () 9053{ 9054 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059rm -f conftest.$ac_objext conftest$ac_exeext 9060if { (ac_try="$ac_link" 9061case "(($ac_try" in 9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9063 *) ac_try_echo=$ac_try;; 9064esac 9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9066 (eval "$ac_link") 2>conftest.er1 9067 ac_status=$? 9068 grep -v '^ *+' conftest.er1 >conftest.err 9069 rm -f conftest.er1 9070 cat conftest.err >&5 9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9072 (exit $ac_status); } && 9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9074 { (case "(($ac_try" in 9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9076 *) ac_try_echo=$ac_try;; 9077esac 9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9079 (eval "$ac_try") 2>&5 9080 ac_status=$? 9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9082 (exit $ac_status); }; } && 9083 { ac_try='test -s conftest$ac_exeext' 9084 { (case "(($ac_try" in 9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9086 *) ac_try_echo=$ac_try;; 9087esac 9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9089 (eval "$ac_try") 2>&5 9090 ac_status=$? 9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9092 (exit $ac_status); }; }; then 9093 llvm_cv_link_use_export_dynamic=yes 9094else 9095 echo "$as_me: failed program was:" >&5 9096sed 's/^/| /' conftest.$ac_ext >&5 9097 9098 llvm_cv_link_use_export_dynamic=no 9099fi 9100 9101rm -f core conftest.err conftest.$ac_objext \ 9102 conftest$ac_exeext conftest.$ac_ext 9103 CFLAGS="$oldcflags" 9104 ac_ext=c 9105ac_cpp='$CPP $CPPFLAGS' 9106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9108ac_compiler_gnu=$ac_cv_c_compiler_gnu 9109 9110 9111fi 9112{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 9113echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 9114if test "$llvm_cv_link_use_export_dynamic" = yes ; then 9115 9116cat >>confdefs.h <<\_ACEOF 9117#define HAVE_LINK_EXPORT_DYNAMIC 1 9118_ACEOF 9119 9120 fi 9121 9122 9123{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 9124echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 9125if test "${llvm_cv_link_use_version_script+set}" = set; then 9126 echo $ECHO_N "(cached) $ECHO_C" >&6 9127else 9128 ac_ext=c 9129ac_cpp='$CPP $CPPFLAGS' 9130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9132ac_compiler_gnu=$ac_cv_c_compiler_gnu 9133 9134 oldcflags="$CFLAGS" 9135 9136 # The following code is from the autoconf manual, 9137 # "11.13: Limitations of Usual Tools". 9138 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 9139 # Use mktemp if possible; otherwise fall back on mkdir, 9140 # with $RANDOM to make collisions less likely. 9141 : ${TMPDIR=/tmp} 9142 { 9143 tmp=` 9144 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 9145 ` && 9146 test -n "$tmp" && test -d "$tmp" 9147 } || { 9148 tmp=$TMPDIR/foo$$-$RANDOM 9149 (umask 077 && mkdir "$tmp") 9150 } || exit $? 9151 9152 echo "{" > "$tmp/export.map" 9153 echo " global: main;" >> "$tmp/export.map" 9154 echo " local: *;" >> "$tmp/export.map" 9155 echo "};" >> "$tmp/export.map" 9156 9157 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 9158 cat >conftest.$ac_ext <<_ACEOF 9159/* confdefs.h. */ 9160_ACEOF 9161cat confdefs.h >>conftest.$ac_ext 9162cat >>conftest.$ac_ext <<_ACEOF 9163/* end confdefs.h. */ 9164 9165int 9166main () 9167{ 9168 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173rm -f conftest.$ac_objext conftest$ac_exeext 9174if { (ac_try="$ac_link" 9175case "(($ac_try" in 9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9177 *) ac_try_echo=$ac_try;; 9178esac 9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9180 (eval "$ac_link") 2>conftest.er1 9181 ac_status=$? 9182 grep -v '^ *+' conftest.er1 >conftest.err 9183 rm -f conftest.er1 9184 cat conftest.err >&5 9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9186 (exit $ac_status); } && 9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9188 { (case "(($ac_try" in 9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9190 *) ac_try_echo=$ac_try;; 9191esac 9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9193 (eval "$ac_try") 2>&5 9194 ac_status=$? 9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9196 (exit $ac_status); }; } && 9197 { ac_try='test -s conftest$ac_exeext' 9198 { (case "(($ac_try" in 9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9200 *) ac_try_echo=$ac_try;; 9201esac 9202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9203 (eval "$ac_try") 2>&5 9204 ac_status=$? 9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); }; }; then 9207 llvm_cv_link_use_version_script=yes 9208else 9209 echo "$as_me: failed program was:" >&5 9210sed 's/^/| /' conftest.$ac_ext >&5 9211 9212 llvm_cv_link_use_version_script=no 9213fi 9214 9215rm -f core conftest.err conftest.$ac_objext \ 9216 conftest$ac_exeext conftest.$ac_ext 9217 rm "$tmp/export.map" 9218 rmdir "$tmp" 9219 CFLAGS="$oldcflags" 9220 ac_ext=c 9221ac_cpp='$CPP $CPPFLAGS' 9222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9224ac_compiler_gnu=$ac_cv_c_compiler_gnu 9225 9226 9227fi 9228{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 9229echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 9230if test "$llvm_cv_link_use_version_script" = yes ; then 9231 HAVE_LINK_VERSION_SCRIPT=1 9232 9233 fi 9234 9235 9236 9237 9238{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 9239echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 9240if test "${ac_cv_c_const+set}" = set; then 9241 echo $ECHO_N "(cached) $ECHO_C" >&6 9242else 9243 cat >conftest.$ac_ext <<_ACEOF 9244/* confdefs.h. */ 9245_ACEOF 9246cat confdefs.h >>conftest.$ac_ext 9247cat >>conftest.$ac_ext <<_ACEOF 9248/* end confdefs.h. */ 9249 9250int 9251main () 9252{ 9253/* FIXME: Include the comments suggested by Paul. */ 9254#ifndef __cplusplus 9255 /* Ultrix mips cc rejects this. */ 9256 typedef int charset[2]; 9257 const charset x; 9258 /* SunOS 4.1.1 cc rejects this. */ 9259 char const *const *ccp; 9260 char **p; 9261 /* NEC SVR4.0.2 mips cc rejects this. */ 9262 struct point {int x, y;}; 9263 static struct point const zero = {0,0}; 9264 /* AIX XL C 1.02.0.0 rejects this. 9265 It does not let you subtract one const X* pointer from another in 9266 an arm of an if-expression whose if-part is not a constant 9267 expression */ 9268 const char *g = "string"; 9269 ccp = &g + (g ? g-g : 0); 9270 /* HPUX 7.0 cc rejects these. */ 9271 ++ccp; 9272 p = (char**) ccp; 9273 ccp = (char const *const *) p; 9274 { /* SCO 3.2v4 cc rejects this. */ 9275 char *t; 9276 char const *s = 0 ? (char *) 0 : (char const *) 0; 9277 9278 *t++ = 0; 9279 if (s) return 0; 9280 } 9281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9282 int x[] = {25, 17}; 9283 const int *foo = &x[0]; 9284 ++foo; 9285 } 9286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9287 typedef const int *iptr; 9288 iptr p = 0; 9289 ++p; 9290 } 9291 { /* AIX XL C 1.02.0.0 rejects this saying 9292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9293 struct s { int j; const int *ap[3]; }; 9294 struct s *b; b->j = 5; 9295 } 9296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9297 const int foo = 10; 9298 if (!foo) return 0; 9299 } 9300 return !x[0] && !zero.x; 9301#endif 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307rm -f conftest.$ac_objext 9308if { (ac_try="$ac_compile" 9309case "(($ac_try" in 9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9311 *) ac_try_echo=$ac_try;; 9312esac 9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9314 (eval "$ac_compile") 2>conftest.er1 9315 ac_status=$? 9316 grep -v '^ *+' conftest.er1 >conftest.err 9317 rm -f conftest.er1 9318 cat conftest.err >&5 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && 9321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9322 { (case "(($ac_try" in 9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9324 *) ac_try_echo=$ac_try;; 9325esac 9326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9327 (eval "$ac_try") 2>&5 9328 ac_status=$? 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); }; } && 9331 { ac_try='test -s conftest.$ac_objext' 9332 { (case "(($ac_try" in 9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9334 *) ac_try_echo=$ac_try;; 9335esac 9336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9337 (eval "$ac_try") 2>&5 9338 ac_status=$? 9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9340 (exit $ac_status); }; }; then 9341 ac_cv_c_const=yes 9342else 9343 echo "$as_me: failed program was:" >&5 9344sed 's/^/| /' conftest.$ac_ext >&5 9345 9346 ac_cv_c_const=no 9347fi 9348 9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9350fi 9351{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9352echo "${ECHO_T}$ac_cv_c_const" >&6; } 9353if test $ac_cv_c_const = no; then 9354 9355cat >>confdefs.h <<\_ACEOF 9356#define const 9357_ACEOF 9358 9359fi 9360 9361 9362 9363 9364 9365 9366ac_header_dirent=no 9367for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9369{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 9370echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 9371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9372 echo $ECHO_N "(cached) $ECHO_C" >&6 9373else 9374 cat >conftest.$ac_ext <<_ACEOF 9375/* confdefs.h. */ 9376_ACEOF 9377cat confdefs.h >>conftest.$ac_ext 9378cat >>conftest.$ac_ext <<_ACEOF 9379/* end confdefs.h. */ 9380#include <sys/types.h> 9381#include <$ac_hdr> 9382 9383int 9384main () 9385{ 9386if ((DIR *) 0) 9387return 0; 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392rm -f conftest.$ac_objext 9393if { (ac_try="$ac_compile" 9394case "(($ac_try" in 9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9396 *) ac_try_echo=$ac_try;; 9397esac 9398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9399 (eval "$ac_compile") 2>conftest.er1 9400 ac_status=$? 9401 grep -v '^ *+' conftest.er1 >conftest.err 9402 rm -f conftest.er1 9403 cat conftest.err >&5 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9405 (exit $ac_status); } && 9406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9407 { (case "(($ac_try" in 9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9409 *) ac_try_echo=$ac_try;; 9410esac 9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9412 (eval "$ac_try") 2>&5 9413 ac_status=$? 9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9415 (exit $ac_status); }; } && 9416 { ac_try='test -s conftest.$ac_objext' 9417 { (case "(($ac_try" in 9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9419 *) ac_try_echo=$ac_try;; 9420esac 9421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9422 (eval "$ac_try") 2>&5 9423 ac_status=$? 9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9425 (exit $ac_status); }; }; then 9426 eval "$as_ac_Header=yes" 9427else 9428 echo "$as_me: failed program was:" >&5 9429sed 's/^/| /' conftest.$ac_ext >&5 9430 9431 eval "$as_ac_Header=no" 9432fi 9433 9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9435fi 9436ac_res=`eval echo '${'$as_ac_Header'}'` 9437 { echo "$as_me:$LINENO: result: $ac_res" >&5 9438echo "${ECHO_T}$ac_res" >&6; } 9439if test `eval echo '${'$as_ac_Header'}'` = yes; then 9440 cat >>confdefs.h <<_ACEOF 9441#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9442_ACEOF 9443 9444ac_header_dirent=$ac_hdr; break 9445fi 9446 9447done 9448# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9449if test $ac_header_dirent = dirent.h; then 9450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9451echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9452if test "${ac_cv_search_opendir+set}" = set; then 9453 echo $ECHO_N "(cached) $ECHO_C" >&6 9454else 9455 ac_func_search_save_LIBS=$LIBS 9456cat >conftest.$ac_ext <<_ACEOF 9457/* confdefs.h. */ 9458_ACEOF 9459cat confdefs.h >>conftest.$ac_ext 9460cat >>conftest.$ac_ext <<_ACEOF 9461/* end confdefs.h. */ 9462 9463/* Override any GCC internal prototype to avoid an error. 9464 Use char because int might match the return type of a GCC 9465 builtin and then its argument prototype would still apply. */ 9466#ifdef __cplusplus 9467extern "C" 9468#endif 9469char opendir (); 9470int 9471main () 9472{ 9473return opendir (); 9474 ; 9475 return 0; 9476} 9477_ACEOF 9478for ac_lib in '' dir; do 9479 if test -z "$ac_lib"; then 9480 ac_res="none required" 9481 else 9482 ac_res=-l$ac_lib 9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9484 fi 9485 rm -f conftest.$ac_objext conftest$ac_exeext 9486if { (ac_try="$ac_link" 9487case "(($ac_try" in 9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9489 *) ac_try_echo=$ac_try;; 9490esac 9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9492 (eval "$ac_link") 2>conftest.er1 9493 ac_status=$? 9494 grep -v '^ *+' conftest.er1 >conftest.err 9495 rm -f conftest.er1 9496 cat conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); } && 9499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9500 { (case "(($ac_try" in 9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9502 *) ac_try_echo=$ac_try;; 9503esac 9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9505 (eval "$ac_try") 2>&5 9506 ac_status=$? 9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9508 (exit $ac_status); }; } && 9509 { ac_try='test -s conftest$ac_exeext' 9510 { (case "(($ac_try" in 9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9512 *) ac_try_echo=$ac_try;; 9513esac 9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9515 (eval "$ac_try") 2>&5 9516 ac_status=$? 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); }; }; then 9519 ac_cv_search_opendir=$ac_res 9520else 9521 echo "$as_me: failed program was:" >&5 9522sed 's/^/| /' conftest.$ac_ext >&5 9523 9524 9525fi 9526 9527rm -f core conftest.err conftest.$ac_objext \ 9528 conftest$ac_exeext 9529 if test "${ac_cv_search_opendir+set}" = set; then 9530 break 9531fi 9532done 9533if test "${ac_cv_search_opendir+set}" = set; then 9534 : 9535else 9536 ac_cv_search_opendir=no 9537fi 9538rm conftest.$ac_ext 9539LIBS=$ac_func_search_save_LIBS 9540fi 9541{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9542echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9543ac_res=$ac_cv_search_opendir 9544if test "$ac_res" != no; then 9545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9546 9547fi 9548 9549else 9550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9551echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9552if test "${ac_cv_search_opendir+set}" = set; then 9553 echo $ECHO_N "(cached) $ECHO_C" >&6 9554else 9555 ac_func_search_save_LIBS=$LIBS 9556cat >conftest.$ac_ext <<_ACEOF 9557/* confdefs.h. */ 9558_ACEOF 9559cat confdefs.h >>conftest.$ac_ext 9560cat >>conftest.$ac_ext <<_ACEOF 9561/* end confdefs.h. */ 9562 9563/* Override any GCC internal prototype to avoid an error. 9564 Use char because int might match the return type of a GCC 9565 builtin and then its argument prototype would still apply. */ 9566#ifdef __cplusplus 9567extern "C" 9568#endif 9569char opendir (); 9570int 9571main () 9572{ 9573return opendir (); 9574 ; 9575 return 0; 9576} 9577_ACEOF 9578for ac_lib in '' x; do 9579 if test -z "$ac_lib"; then 9580 ac_res="none required" 9581 else 9582 ac_res=-l$ac_lib 9583 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9584 fi 9585 rm -f conftest.$ac_objext conftest$ac_exeext 9586if { (ac_try="$ac_link" 9587case "(($ac_try" in 9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9589 *) ac_try_echo=$ac_try;; 9590esac 9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9592 (eval "$ac_link") 2>conftest.er1 9593 ac_status=$? 9594 grep -v '^ *+' conftest.er1 >conftest.err 9595 rm -f conftest.er1 9596 cat conftest.err >&5 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9598 (exit $ac_status); } && 9599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9600 { (case "(($ac_try" in 9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9602 *) ac_try_echo=$ac_try;; 9603esac 9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9605 (eval "$ac_try") 2>&5 9606 ac_status=$? 9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9608 (exit $ac_status); }; } && 9609 { ac_try='test -s conftest$ac_exeext' 9610 { (case "(($ac_try" in 9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9612 *) ac_try_echo=$ac_try;; 9613esac 9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9615 (eval "$ac_try") 2>&5 9616 ac_status=$? 9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9618 (exit $ac_status); }; }; then 9619 ac_cv_search_opendir=$ac_res 9620else 9621 echo "$as_me: failed program was:" >&5 9622sed 's/^/| /' conftest.$ac_ext >&5 9623 9624 9625fi 9626 9627rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext 9629 if test "${ac_cv_search_opendir+set}" = set; then 9630 break 9631fi 9632done 9633if test "${ac_cv_search_opendir+set}" = set; then 9634 : 9635else 9636 ac_cv_search_opendir=no 9637fi 9638rm conftest.$ac_ext 9639LIBS=$ac_func_search_save_LIBS 9640fi 9641{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9642echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9643ac_res=$ac_cv_search_opendir 9644if test "$ac_res" != no; then 9645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9646 9647fi 9648 9649fi 9650 9651 9652for ac_header in dlfcn.h 9653do 9654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9656 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9659 echo $ECHO_N "(cached) $ECHO_C" >&6 9660fi 9661ac_res=`eval echo '${'$as_ac_Header'}'` 9662 { echo "$as_me:$LINENO: result: $ac_res" >&5 9663echo "${ECHO_T}$ac_res" >&6; } 9664else 9665 # Is the header compilable? 9666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9668cat >conftest.$ac_ext <<_ACEOF 9669/* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674$ac_includes_default 9675#include <$ac_header> 9676_ACEOF 9677rm -f conftest.$ac_objext 9678if { (ac_try="$ac_compile" 9679case "(($ac_try" in 9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9681 *) ac_try_echo=$ac_try;; 9682esac 9683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9684 (eval "$ac_compile") 2>conftest.er1 9685 ac_status=$? 9686 grep -v '^ *+' conftest.er1 >conftest.err 9687 rm -f conftest.er1 9688 cat conftest.err >&5 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); } && 9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9692 { (case "(($ac_try" in 9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9694 *) ac_try_echo=$ac_try;; 9695esac 9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9697 (eval "$ac_try") 2>&5 9698 ac_status=$? 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); }; } && 9701 { ac_try='test -s conftest.$ac_objext' 9702 { (case "(($ac_try" in 9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9704 *) ac_try_echo=$ac_try;; 9705esac 9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9707 (eval "$ac_try") 2>&5 9708 ac_status=$? 9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9710 (exit $ac_status); }; }; then 9711 ac_header_compiler=yes 9712else 9713 echo "$as_me: failed program was:" >&5 9714sed 's/^/| /' conftest.$ac_ext >&5 9715 9716 ac_header_compiler=no 9717fi 9718 9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9721echo "${ECHO_T}$ac_header_compiler" >&6; } 9722 9723# Is the header present? 9724{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9726cat >conftest.$ac_ext <<_ACEOF 9727/* confdefs.h. */ 9728_ACEOF 9729cat confdefs.h >>conftest.$ac_ext 9730cat >>conftest.$ac_ext <<_ACEOF 9731/* end confdefs.h. */ 9732#include <$ac_header> 9733_ACEOF 9734if { (ac_try="$ac_cpp conftest.$ac_ext" 9735case "(($ac_try" in 9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9737 *) ac_try_echo=$ac_try;; 9738esac 9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9741 ac_status=$? 9742 grep -v '^ *+' conftest.er1 >conftest.err 9743 rm -f conftest.er1 9744 cat conftest.err >&5 9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9746 (exit $ac_status); } >/dev/null; then 9747 if test -s conftest.err; then 9748 ac_cpp_err=$ac_c_preproc_warn_flag 9749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9750 else 9751 ac_cpp_err= 9752 fi 9753else 9754 ac_cpp_err=yes 9755fi 9756if test -z "$ac_cpp_err"; then 9757 ac_header_preproc=yes 9758else 9759 echo "$as_me: failed program was:" >&5 9760sed 's/^/| /' conftest.$ac_ext >&5 9761 9762 ac_header_preproc=no 9763fi 9764 9765rm -f conftest.err conftest.$ac_ext 9766{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9767echo "${ECHO_T}$ac_header_preproc" >&6; } 9768 9769# So? What about this header? 9770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9771 yes:no: ) 9772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9776 ac_header_preproc=yes 9777 ;; 9778 no:yes:* ) 9779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9791 ( cat <<\_ASBOX 9792## ----------------------------------- ## 9793## Report this to llvmbugs@cs.uiuc.edu ## 9794## ----------------------------------- ## 9795_ASBOX 9796 ) | sed "s/^/$as_me: WARNING: /" >&2 9797 ;; 9798esac 9799{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9802 echo $ECHO_N "(cached) $ECHO_C" >&6 9803else 9804 eval "$as_ac_Header=\$ac_header_preproc" 9805fi 9806ac_res=`eval echo '${'$as_ac_Header'}'` 9807 { echo "$as_me:$LINENO: result: $ac_res" >&5 9808echo "${ECHO_T}$ac_res" >&6; } 9809 9810fi 9811if test `eval echo '${'$as_ac_Header'}'` = yes; then 9812 cat >>confdefs.h <<_ACEOF 9813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9814_ACEOF 9815 9816fi 9817 9818done 9819 9820# Check whether --enable-ltdl-install was given. 9821if test "${enable_ltdl_install+set}" = set; then 9822 enableval=$enable_ltdl_install; 9823fi 9824 9825 9826 9827 9828if test x"${enable_ltdl_install-no}" != xno; then 9829 INSTALL_LTDL_TRUE= 9830 INSTALL_LTDL_FALSE='#' 9831else 9832 INSTALL_LTDL_TRUE='#' 9833 INSTALL_LTDL_FALSE= 9834fi 9835 9836 9837 9838if test x"${enable_ltdl_convenience-no}" != xno; then 9839 CONVENIENCE_LTDL_TRUE= 9840 CONVENIENCE_LTDL_FALSE='#' 9841else 9842 CONVENIENCE_LTDL_TRUE='#' 9843 CONVENIENCE_LTDL_FALSE= 9844fi 9845 9846 9847{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9848echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9849library_names_spec= 9850libname_spec='lib$name' 9851soname_spec= 9852shrext_cmds=".so" 9853postinstall_cmds= 9854postuninstall_cmds= 9855finish_cmds= 9856finish_eval= 9857shlibpath_var= 9858shlibpath_overrides_runpath=unknown 9859version_type=none 9860dynamic_linker="$host_os ld.so" 9861sys_lib_dlsearch_path_spec="/lib /usr/lib" 9862if test "$GCC" = yes; then 9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9865 # if the path contains ";" then we assume it to be the separator 9866 # otherwise default to the standard path separator (i.e. ":") - it is 9867 # assumed that no part of a normal pathname contains ";" but that should 9868 # okay in the real world where ";" in dirpaths is itself problematic. 9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9870 else 9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9872 fi 9873else 9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9875fi 9876need_lib_prefix=unknown 9877hardcode_into_libs=no 9878 9879# when you set need_version to no, make sure it does not cause -set_version 9880# flags to be left without arguments 9881need_version=unknown 9882 9883case $host_os in 9884aix3*) 9885 version_type=linux 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9887 shlibpath_var=LIBPATH 9888 9889 # AIX 3 has no versioning support, so we append a major version to the name. 9890 soname_spec='${libname}${release}${shared_ext}$major' 9891 ;; 9892 9893aix4* | aix5*) 9894 version_type=linux 9895 need_lib_prefix=no 9896 need_version=no 9897 hardcode_into_libs=yes 9898 if test "$host_cpu" = ia64; then 9899 # AIX 5 supports IA64 9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9901 shlibpath_var=LD_LIBRARY_PATH 9902 else 9903 # With GCC up to 2.95.x, collect2 would create an import file 9904 # for dependence libraries. The import file would start with 9905 # the line `#! .'. This would cause the generated library to 9906 # depend on `.', always an invalid library. This was fixed in 9907 # development snapshots of GCC prior to 3.0. 9908 case $host_os in 9909 aix4 | aix4.[01] | aix4.[01].*) 9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9911 echo ' yes ' 9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9913 : 9914 else 9915 can_build_shared=no 9916 fi 9917 ;; 9918 esac 9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9920 # soname into executable. Probably we can add versioning support to 9921 # collect2, so additional links can be useful in future. 9922 if test "$aix_use_runtimelinking" = yes; then 9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9924 # instead of lib<name>.a to let people know that these are not 9925 # typical AIX shared libraries. 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 else 9928 # We preserve .a as extension for shared libraries through AIX4.2 9929 # and later when we are not doing run time linking. 9930 library_names_spec='${libname}${release}.a $libname.a' 9931 soname_spec='${libname}${release}${shared_ext}$major' 9932 fi 9933 shlibpath_var=LIBPATH 9934 fi 9935 ;; 9936 9937amigaos*) 9938 library_names_spec='$libname.ixlibrary $libname.a' 9939 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9940 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' 9941 ;; 9942 9943beos*) 9944 library_names_spec='${libname}${shared_ext}' 9945 dynamic_linker="$host_os ld.so" 9946 shlibpath_var=LIBRARY_PATH 9947 ;; 9948 9949bsdi[45]*) 9950 version_type=linux 9951 need_version=no 9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9953 soname_spec='${libname}${release}${shared_ext}$major' 9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9955 shlibpath_var=LD_LIBRARY_PATH 9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9958 # the default ld.so.conf also contains /usr/contrib/lib and 9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9960 # libtool to hard-code these into programs 9961 ;; 9962 9963cygwin* | mingw* | pw32*) 9964 version_type=windows 9965 shrext_cmds=".dll" 9966 need_version=no 9967 need_lib_prefix=no 9968 9969 case $GCC,$host_os in 9970 yes,cygwin* | yes,mingw* | yes,pw32*) 9971 library_names_spec='$libname.dll.a' 9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9973 postinstall_cmds='base_file=`basename \${file}`~ 9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9975 dldir=$destdir/`dirname \$dlpath`~ 9976 test -d \$dldir || mkdir -p \$dldir~ 9977 $install_prog $dir/$dlname \$dldir/$dlname~ 9978 chmod a+x \$dldir/$dlname' 9979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9980 dlpath=$dir/\$dldll~ 9981 $rm \$dlpath' 9982 shlibpath_overrides_runpath=yes 9983 9984 case $host_os in 9985 cygwin*) 9986 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9989 ;; 9990 mingw*) 9991 # MinGW DLLs use traditional 'lib' prefix 9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9995 # It is most probably a Windows format PATH printed by 9996 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9997 # path with ; separators, and with drive letters. We can handle the 9998 # drive letters (cygwin fileutils understands them), so leave them, 9999 # especially as we might pass files found there to a mingw objdump, 10000 # which wouldn't understand a cygwinified path. Ahh. 10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10002 else 10003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10004 fi 10005 ;; 10006 pw32*) 10007 # pw32 DLLs use 'pw' prefix rather than 'lib' 10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10009 ;; 10010 esac 10011 ;; 10012 10013 *) 10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10015 ;; 10016 esac 10017 dynamic_linker='Win32 ld.exe' 10018 # FIXME: first we should search . and the directory the executable is in 10019 shlibpath_var=PATH 10020 ;; 10021 10022darwin* | rhapsody*) 10023 dynamic_linker="$host_os dyld" 10024 version_type=darwin 10025 need_lib_prefix=no 10026 need_version=no 10027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10028 soname_spec='${libname}${release}${major}$shared_ext' 10029 shlibpath_overrides_runpath=yes 10030 shlibpath_var=DYLD_LIBRARY_PATH 10031 shrext_cmds='.dylib' 10032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10033 if test "$GCC" = yes; then 10034 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"` 10035 else 10036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10037 fi 10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10039 ;; 10040 10041dgux*) 10042 version_type=linux 10043 need_lib_prefix=no 10044 need_version=no 10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10046 soname_spec='${libname}${release}${shared_ext}$major' 10047 shlibpath_var=LD_LIBRARY_PATH 10048 ;; 10049 10050freebsd1*) 10051 dynamic_linker=no 10052 ;; 10053 10054kfreebsd*-gnu) 10055 version_type=linux 10056 need_lib_prefix=no 10057 need_version=no 10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10059 soname_spec='${libname}${release}${shared_ext}$major' 10060 shlibpath_var=LD_LIBRARY_PATH 10061 shlibpath_overrides_runpath=no 10062 hardcode_into_libs=yes 10063 dynamic_linker='GNU ld.so' 10064 ;; 10065 10066freebsd* | dragonfly*) 10067 # DragonFly does not have aout. When/if they implement a new 10068 # versioning mechanism, adjust this. 10069 if test -x /usr/bin/objformat; then 10070 objformat=`/usr/bin/objformat` 10071 else 10072 case $host_os in 10073 freebsd[123]*) objformat=aout ;; 10074 *) objformat=elf ;; 10075 esac 10076 fi 10077 version_type=freebsd-$objformat 10078 case $version_type in 10079 freebsd-elf*) 10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10081 need_version=no 10082 need_lib_prefix=no 10083 ;; 10084 freebsd-*) 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10086 need_version=yes 10087 ;; 10088 esac 10089 shlibpath_var=LD_LIBRARY_PATH 10090 case $host_os in 10091 freebsd2*) 10092 shlibpath_overrides_runpath=yes 10093 ;; 10094 freebsd3.[01]* | freebsdelf3.[01]*) 10095 shlibpath_overrides_runpath=yes 10096 hardcode_into_libs=yes 10097 ;; 10098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10100 shlibpath_overrides_runpath=no 10101 hardcode_into_libs=yes 10102 ;; 10103 freebsd*) # from 4.6 on 10104 shlibpath_overrides_runpath=yes 10105 hardcode_into_libs=yes 10106 ;; 10107 esac 10108 ;; 10109 10110gnu*) 10111 version_type=linux 10112 need_lib_prefix=no 10113 need_version=no 10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10115 soname_spec='${libname}${release}${shared_ext}$major' 10116 shlibpath_var=LD_LIBRARY_PATH 10117 hardcode_into_libs=yes 10118 ;; 10119 10120hpux9* | hpux10* | hpux11*) 10121 # Give a soname corresponding to the major version so that dld.sl refuses to 10122 # link against other versions. 10123 version_type=sunos 10124 need_lib_prefix=no 10125 need_version=no 10126 case $host_cpu in 10127 ia64*) 10128 shrext_cmds='.so' 10129 hardcode_into_libs=yes 10130 dynamic_linker="$host_os dld.so" 10131 shlibpath_var=LD_LIBRARY_PATH 10132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10134 soname_spec='${libname}${release}${shared_ext}$major' 10135 if test "X$HPUX_IA64_MODE" = X32; then 10136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10137 else 10138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10139 fi 10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10141 ;; 10142 hppa*64*) 10143 shrext_cmds='.sl' 10144 hardcode_into_libs=yes 10145 dynamic_linker="$host_os dld.sl" 10146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10149 soname_spec='${libname}${release}${shared_ext}$major' 10150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10152 ;; 10153 *) 10154 shrext_cmds='.sl' 10155 dynamic_linker="$host_os dld.sl" 10156 shlibpath_var=SHLIB_PATH 10157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10159 soname_spec='${libname}${release}${shared_ext}$major' 10160 ;; 10161 esac 10162 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10163 postinstall_cmds='chmod 555 $lib' 10164 ;; 10165 10166interix3*) 10167 version_type=linux 10168 need_lib_prefix=no 10169 need_version=no 10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10171 soname_spec='${libname}${release}${shared_ext}$major' 10172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10173 shlibpath_var=LD_LIBRARY_PATH 10174 shlibpath_overrides_runpath=no 10175 hardcode_into_libs=yes 10176 ;; 10177 10178irix5* | irix6* | nonstopux*) 10179 case $host_os in 10180 nonstopux*) version_type=nonstopux ;; 10181 *) 10182 if test "$lt_cv_prog_gnu_ld" = yes; then 10183 version_type=linux 10184 else 10185 version_type=irix 10186 fi ;; 10187 esac 10188 need_lib_prefix=no 10189 need_version=no 10190 soname_spec='${libname}${release}${shared_ext}$major' 10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10192 case $host_os in 10193 irix5* | nonstopux*) 10194 libsuff= shlibsuff= 10195 ;; 10196 *) 10197 case $LD in # libtool.m4 will add one of these switches to LD 10198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10199 libsuff= shlibsuff= libmagic=32-bit;; 10200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10201 libsuff=32 shlibsuff=N32 libmagic=N32;; 10202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10203 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10204 *) libsuff= shlibsuff= libmagic=never-match;; 10205 esac 10206 ;; 10207 esac 10208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10209 shlibpath_overrides_runpath=no 10210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10212 hardcode_into_libs=yes 10213 ;; 10214 10215# No shared lib support for Linux oldld, aout, or coff. 10216linux*oldld* | linux*aout* | linux*coff*) 10217 dynamic_linker=no 10218 ;; 10219 10220# This must be Linux ELF. 10221linux*) 10222 version_type=linux 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10226 soname_spec='${libname}${release}${shared_ext}$major' 10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10228 shlibpath_var=LD_LIBRARY_PATH 10229 shlibpath_overrides_runpath=no 10230 # This implies no fast_install, which is unacceptable. 10231 # Some rework will be needed to allow for fast_install 10232 # before this can be enabled. 10233 hardcode_into_libs=yes 10234 10235 # Append ld.so.conf contents to the search path 10236 if test -f /etc/ld.so.conf; then 10237 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' ' '` 10238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10239 fi 10240 10241 # We used to test for /lib/ld.so.1 and disable shared libraries on 10242 # powerpc, because MkLinux only supported shared libraries with the 10243 # GNU dynamic linker. Since this was broken with cross compilers, 10244 # most powerpc-linux boxes support dynamic linking these days and 10245 # people can always --disable-shared, the test was removed, and we 10246 # assume the GNU/Linux dynamic linker is in use. 10247 dynamic_linker='GNU/Linux ld.so' 10248 ;; 10249 10250knetbsd*-gnu) 10251 version_type=linux 10252 need_lib_prefix=no 10253 need_version=no 10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10255 soname_spec='${libname}${release}${shared_ext}$major' 10256 shlibpath_var=LD_LIBRARY_PATH 10257 shlibpath_overrides_runpath=no 10258 hardcode_into_libs=yes 10259 dynamic_linker='GNU ld.so' 10260 ;; 10261 10262netbsd*) 10263 version_type=sunos 10264 need_lib_prefix=no 10265 need_version=no 10266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10269 dynamic_linker='NetBSD (a.out) ld.so' 10270 else 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 dynamic_linker='NetBSD ld.elf_so' 10274 fi 10275 shlibpath_var=LD_LIBRARY_PATH 10276 shlibpath_overrides_runpath=yes 10277 hardcode_into_libs=yes 10278 ;; 10279 10280newsos6) 10281 version_type=linux 10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10283 shlibpath_var=LD_LIBRARY_PATH 10284 shlibpath_overrides_runpath=yes 10285 ;; 10286 10287nto-qnx*) 10288 version_type=linux 10289 need_lib_prefix=no 10290 need_version=no 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 shlibpath_var=LD_LIBRARY_PATH 10294 shlibpath_overrides_runpath=yes 10295 ;; 10296 10297openbsd*) 10298 version_type=sunos 10299 sys_lib_dlsearch_path_spec="/usr/lib" 10300 need_lib_prefix=no 10301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10302 case $host_os in 10303 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10304 *) need_version=no ;; 10305 esac 10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10308 shlibpath_var=LD_LIBRARY_PATH 10309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10310 case $host_os in 10311 openbsd2.[89] | openbsd2.[89].*) 10312 shlibpath_overrides_runpath=no 10313 ;; 10314 *) 10315 shlibpath_overrides_runpath=yes 10316 ;; 10317 esac 10318 else 10319 shlibpath_overrides_runpath=yes 10320 fi 10321 ;; 10322 10323os2*) 10324 libname_spec='$name' 10325 shrext_cmds=".dll" 10326 need_lib_prefix=no 10327 library_names_spec='$libname${shared_ext} $libname.a' 10328 dynamic_linker='OS/2 ld.exe' 10329 shlibpath_var=LIBPATH 10330 ;; 10331 10332osf3* | osf4* | osf5*) 10333 version_type=osf 10334 need_lib_prefix=no 10335 need_version=no 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10338 shlibpath_var=LD_LIBRARY_PATH 10339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10341 ;; 10342 10343solaris*) 10344 version_type=linux 10345 need_lib_prefix=no 10346 need_version=no 10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10348 soname_spec='${libname}${release}${shared_ext}$major' 10349 shlibpath_var=LD_LIBRARY_PATH 10350 shlibpath_overrides_runpath=yes 10351 hardcode_into_libs=yes 10352 # ldd complains unless libraries are executable 10353 postinstall_cmds='chmod +x $lib' 10354 ;; 10355 10356sunos4*) 10357 version_type=sunos 10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10360 shlibpath_var=LD_LIBRARY_PATH 10361 shlibpath_overrides_runpath=yes 10362 if test "$with_gnu_ld" = yes; then 10363 need_lib_prefix=no 10364 fi 10365 need_version=yes 10366 ;; 10367 10368sysv4 | sysv4.3*) 10369 version_type=linux 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10371 soname_spec='${libname}${release}${shared_ext}$major' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 case $host_vendor in 10374 sni) 10375 shlibpath_overrides_runpath=no 10376 need_lib_prefix=no 10377 export_dynamic_flag_spec='${wl}-Blargedynsym' 10378 runpath_var=LD_RUN_PATH 10379 ;; 10380 siemens) 10381 need_lib_prefix=no 10382 ;; 10383 motorola) 10384 need_lib_prefix=no 10385 need_version=no 10386 shlibpath_overrides_runpath=no 10387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10388 ;; 10389 esac 10390 ;; 10391 10392sysv4*MP*) 10393 if test -d /usr/nec ;then 10394 version_type=linux 10395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10396 soname_spec='$libname${shared_ext}.$major' 10397 shlibpath_var=LD_LIBRARY_PATH 10398 fi 10399 ;; 10400 10401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10402 version_type=freebsd-elf 10403 need_lib_prefix=no 10404 need_version=no 10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10406 soname_spec='${libname}${release}${shared_ext}$major' 10407 shlibpath_var=LD_LIBRARY_PATH 10408 hardcode_into_libs=yes 10409 if test "$with_gnu_ld" = yes; then 10410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10411 shlibpath_overrides_runpath=no 10412 else 10413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10414 shlibpath_overrides_runpath=yes 10415 case $host_os in 10416 sco3.2v5*) 10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10418 ;; 10419 esac 10420 fi 10421 sys_lib_dlsearch_path_spec='/usr/lib' 10422 ;; 10423 10424uts4*) 10425 version_type=linux 10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10427 soname_spec='${libname}${release}${shared_ext}$major' 10428 shlibpath_var=LD_LIBRARY_PATH 10429 ;; 10430 10431*) 10432 dynamic_linker=no 10433 ;; 10434esac 10435{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10436echo "${ECHO_T}$dynamic_linker" >&6; } 10437test "$dynamic_linker" = no && can_build_shared=no 10438 10439variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10440if test "$GCC" = yes; then 10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10442fi 10443 10444 10445{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 10446echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 10447if test "${libltdl_cv_shlibext+set}" = set; then 10448 echo $ECHO_N "(cached) $ECHO_C" >&6 10449else 10450 10451module=yes 10452eval libltdl_cv_shlibext=$shrext_cmds 10453 10454fi 10455{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 10456echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 10457if test -n "$libltdl_cv_shlibext"; then 10458 10459cat >>confdefs.h <<_ACEOF 10460#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 10461_ACEOF 10462 10463fi 10464 10465 10466{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 10467echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 10468if test "${libltdl_cv_shlibpath_var+set}" = set; then 10469 echo $ECHO_N "(cached) $ECHO_C" >&6 10470else 10471 libltdl_cv_shlibpath_var="$shlibpath_var" 10472fi 10473{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 10474echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 10475if test -n "$libltdl_cv_shlibpath_var"; then 10476 10477cat >>confdefs.h <<_ACEOF 10478#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 10479_ACEOF 10480 10481fi 10482 10483 10484{ echo "$as_me:$LINENO: checking for the default library search path" >&5 10485echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 10486if test "${libltdl_cv_sys_search_path+set}" = set; then 10487 echo $ECHO_N "(cached) $ECHO_C" >&6 10488else 10489 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 10490fi 10491{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 10492echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 10493if test -n "$libltdl_cv_sys_search_path"; then 10494 sys_search_path= 10495 for dir in $libltdl_cv_sys_search_path; do 10496 if test -z "$sys_search_path"; then 10497 sys_search_path="$dir" 10498 else 10499 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 10500 fi 10501 done 10502 10503cat >>confdefs.h <<_ACEOF 10504#define LTDL_SYSSEARCHPATH "$sys_search_path" 10505_ACEOF 10506 10507fi 10508 10509{ echo "$as_me:$LINENO: checking for objdir" >&5 10510echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 10511if test "${libltdl_cv_objdir+set}" = set; then 10512 echo $ECHO_N "(cached) $ECHO_C" >&6 10513else 10514 libltdl_cv_objdir="$objdir" 10515 if test -n "$objdir"; then 10516 : 10517 else 10518 rm -f .libs 2>/dev/null 10519 mkdir .libs 2>/dev/null 10520 if test -d .libs; then 10521 libltdl_cv_objdir=.libs 10522 else 10523 # MS-DOS does not allow filenames that begin with a dot. 10524 libltdl_cv_objdir=_libs 10525 fi 10526 rmdir .libs 2>/dev/null 10527 fi 10528 10529fi 10530{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 10531echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 10532 10533cat >>confdefs.h <<_ACEOF 10534#define LTDL_OBJDIR "$libltdl_cv_objdir/" 10535_ACEOF 10536 10537 10538 10539 10540 10541 10542# Check for command to grab the raw symbol name followed by C symbol from nm. 10543{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 10544echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 10545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 10546 echo $ECHO_N "(cached) $ECHO_C" >&6 10547else 10548 10549# These are sane defaults that work on at least a few old systems. 10550# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10551 10552# Character class describing NM global symbol codes. 10553symcode='[BCDEGRST]' 10554 10555# Regexp to match symbols that can be accessed directly from C. 10556sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10557 10558# Transform an extracted symbol line into a proper C declaration 10559lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10560 10561# Transform an extracted symbol line into symbol name and symbol address 10562lt_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'" 10563 10564# Define system-specific variables. 10565case $host_os in 10566aix*) 10567 symcode='[BCDT]' 10568 ;; 10569cygwin* | mingw* | pw32*) 10570 symcode='[ABCDGISTW]' 10571 ;; 10572hpux*) # Its linker distinguishes data from code symbols 10573 if test "$host_cpu" = ia64; then 10574 symcode='[ABCDEGRST]' 10575 fi 10576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10577 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'" 10578 ;; 10579linux*) 10580 if test "$host_cpu" = ia64; then 10581 symcode='[ABCDGIRSTW]' 10582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10583 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'" 10584 fi 10585 ;; 10586irix* | nonstopux*) 10587 symcode='[BCDEGRST]' 10588 ;; 10589osf*) 10590 symcode='[BCDEGQRST]' 10591 ;; 10592solaris*) 10593 symcode='[BDRT]' 10594 ;; 10595sco3.2v5*) 10596 symcode='[DT]' 10597 ;; 10598sysv4.2uw2*) 10599 symcode='[DT]' 10600 ;; 10601sysv5* | sco5v6* | unixware* | OpenUNIX*) 10602 symcode='[ABDT]' 10603 ;; 10604sysv4) 10605 symcode='[DFNSTU]' 10606 ;; 10607esac 10608 10609# Handle CRLF in mingw tool chain 10610opt_cr= 10611case $build_os in 10612mingw*) 10613 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10614 ;; 10615esac 10616 10617# If we're using GNU nm, then use its standard symbol codes. 10618case `$NM -V 2>&1` in 10619*GNU* | *'with BFD'*) 10620 symcode='[ABCDGIRSTW]' ;; 10621esac 10622 10623# Try without a prefix undercore, then with it. 10624for ac_symprfx in "" "_"; do 10625 10626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10627 symxfrm="\\1 $ac_symprfx\\2 \\2" 10628 10629 # Write the raw and C identifiers. 10630 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10631 10632 # Check to see that the pipe works correctly. 10633 pipe_works=no 10634 10635 rm -f conftest* 10636 cat > conftest.$ac_ext <<EOF 10637#ifdef __cplusplus 10638extern "C" { 10639#endif 10640char nm_test_var; 10641void nm_test_func(){} 10642#ifdef __cplusplus 10643} 10644#endif 10645int main(){nm_test_var='a';nm_test_func();return(0);} 10646EOF 10647 10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10649 (eval $ac_compile) 2>&5 10650 ac_status=$? 10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10652 (exit $ac_status); }; then 10653 # Now try to grab the symbols. 10654 nlist=conftest.nm 10655 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10656 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10657 ac_status=$? 10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10659 (exit $ac_status); } && test -s "$nlist"; then 10660 # Try sorting and uniquifying the output. 10661 if sort "$nlist" | uniq > "$nlist"T; then 10662 mv -f "$nlist"T "$nlist" 10663 else 10664 rm -f "$nlist"T 10665 fi 10666 10667 # Make sure that we snagged all the symbols we need. 10668 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10669 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10670 cat <<EOF > conftest.$ac_ext 10671#ifdef __cplusplus 10672extern "C" { 10673#endif 10674 10675EOF 10676 # Now generate the symbol file. 10677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10678 10679 cat <<EOF >> conftest.$ac_ext 10680#if defined (__STDC__) && __STDC__ 10681# define lt_ptr_t void * 10682#else 10683# define lt_ptr_t char * 10684# define const 10685#endif 10686 10687/* The mapping between symbol names and symbols. */ 10688const struct { 10689 const char *name; 10690 lt_ptr_t address; 10691} 10692lt_preloaded_symbols[] = 10693{ 10694EOF 10695 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10696 cat <<\EOF >> conftest.$ac_ext 10697 {0, (lt_ptr_t) 0} 10698}; 10699 10700#ifdef __cplusplus 10701} 10702#endif 10703EOF 10704 # Now try linking the two files. 10705 mv conftest.$ac_objext conftstm.$ac_objext 10706 lt_save_LIBS="$LIBS" 10707 lt_save_CFLAGS="$CFLAGS" 10708 LIBS="conftstm.$ac_objext" 10709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10711 (eval $ac_link) 2>&5 10712 ac_status=$? 10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10714 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10715 pipe_works=yes 10716 fi 10717 LIBS="$lt_save_LIBS" 10718 CFLAGS="$lt_save_CFLAGS" 10719 else 10720 echo "cannot find nm_test_func in $nlist" >&5 10721 fi 10722 else 10723 echo "cannot find nm_test_var in $nlist" >&5 10724 fi 10725 else 10726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10727 fi 10728 else 10729 echo "$progname: failed program was:" >&5 10730 cat conftest.$ac_ext >&5 10731 fi 10732 rm -f conftest* conftst* 10733 10734 # Do not use the global_symbol_pipe unless it works. 10735 if test "$pipe_works" = yes; then 10736 break 10737 else 10738 lt_cv_sys_global_symbol_pipe= 10739 fi 10740done 10741 10742fi 10743 10744if test -z "$lt_cv_sys_global_symbol_pipe"; then 10745 lt_cv_sys_global_symbol_to_cdecl= 10746fi 10747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10748 { echo "$as_me:$LINENO: result: failed" >&5 10749echo "${ECHO_T}failed" >&6; } 10750else 10751 { echo "$as_me:$LINENO: result: ok" >&5 10752echo "${ECHO_T}ok" >&6; } 10753fi 10754 10755 10756{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 10757echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 10758if test "${libltdl_cv_preloaded_symbols+set}" = set; then 10759 echo $ECHO_N "(cached) $ECHO_C" >&6 10760else 10761 if test -n "$lt_cv_sys_global_symbol_pipe"; then 10762 libltdl_cv_preloaded_symbols=yes 10763 else 10764 libltdl_cv_preloaded_symbols=no 10765 fi 10766 10767fi 10768{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 10769echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 10770if test x"$libltdl_cv_preloaded_symbols" = xyes; then 10771 10772cat >>confdefs.h <<\_ACEOF 10773#define HAVE_PRELOADED_SYMBOLS 1 10774_ACEOF 10775 10776fi 10777 10778LIBADD_DL= 10779 10780ac_ext=c 10781ac_cpp='$CPP $CPPFLAGS' 10782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10784ac_compiler_gnu=$ac_cv_c_compiler_gnu 10785 10786 10787{ echo "$as_me:$LINENO: checking for shl_load" >&5 10788echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10789if test "${ac_cv_func_shl_load+set}" = set; then 10790 echo $ECHO_N "(cached) $ECHO_C" >&6 10791else 10792 cat >conftest.$ac_ext <<_ACEOF 10793/* confdefs.h. */ 10794_ACEOF 10795cat confdefs.h >>conftest.$ac_ext 10796cat >>conftest.$ac_ext <<_ACEOF 10797/* end confdefs.h. */ 10798/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10800#define shl_load innocuous_shl_load 10801 10802/* System header to define __stub macros and hopefully few prototypes, 10803 which can conflict with char shl_load (); below. 10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10805 <limits.h> exists even on freestanding compilers. */ 10806 10807#ifdef __STDC__ 10808# include <limits.h> 10809#else 10810# include <assert.h> 10811#endif 10812 10813#undef shl_load 10814 10815/* Override any GCC internal prototype to avoid an error. 10816 Use char because int might match the return type of a GCC 10817 builtin and then its argument prototype would still apply. */ 10818#ifdef __cplusplus 10819extern "C" 10820#endif 10821char shl_load (); 10822/* The GNU C library defines this for functions which it implements 10823 to always fail with ENOSYS. Some functions are actually named 10824 something starting with __ and the normal name is an alias. */ 10825#if defined __stub_shl_load || defined __stub___shl_load 10826choke me 10827#endif 10828 10829int 10830main () 10831{ 10832return shl_load (); 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837rm -f conftest.$ac_objext conftest$ac_exeext 10838if { (ac_try="$ac_link" 10839case "(($ac_try" in 10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10841 *) ac_try_echo=$ac_try;; 10842esac 10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10844 (eval "$ac_link") 2>conftest.er1 10845 ac_status=$? 10846 grep -v '^ *+' conftest.er1 >conftest.err 10847 rm -f conftest.er1 10848 cat conftest.err >&5 10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10850 (exit $ac_status); } && 10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10852 { (case "(($ac_try" in 10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10854 *) ac_try_echo=$ac_try;; 10855esac 10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10857 (eval "$ac_try") 2>&5 10858 ac_status=$? 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10860 (exit $ac_status); }; } && 10861 { ac_try='test -s conftest$ac_exeext' 10862 { (case "(($ac_try" in 10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10864 *) ac_try_echo=$ac_try;; 10865esac 10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10867 (eval "$ac_try") 2>&5 10868 ac_status=$? 10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 (exit $ac_status); }; }; then 10871 ac_cv_func_shl_load=yes 10872else 10873 echo "$as_me: failed program was:" >&5 10874sed 's/^/| /' conftest.$ac_ext >&5 10875 10876 ac_cv_func_shl_load=no 10877fi 10878 10879rm -f core conftest.err conftest.$ac_objext \ 10880 conftest$ac_exeext conftest.$ac_ext 10881fi 10882{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10883echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10884if test $ac_cv_func_shl_load = yes; then 10885 10886cat >>confdefs.h <<\_ACEOF 10887#define HAVE_SHL_LOAD 1 10888_ACEOF 10889 10890else 10891 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10892echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10893if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10894 echo $ECHO_N "(cached) $ECHO_C" >&6 10895else 10896 ac_check_lib_save_LIBS=$LIBS 10897LIBS="-ldld $LIBS" 10898cat >conftest.$ac_ext <<_ACEOF 10899/* confdefs.h. */ 10900_ACEOF 10901cat confdefs.h >>conftest.$ac_ext 10902cat >>conftest.$ac_ext <<_ACEOF 10903/* end confdefs.h. */ 10904 10905/* Override any GCC internal prototype to avoid an error. 10906 Use char because int might match the return type of a GCC 10907 builtin and then its argument prototype would still apply. */ 10908#ifdef __cplusplus 10909extern "C" 10910#endif 10911char shl_load (); 10912int 10913main () 10914{ 10915return shl_load (); 10916 ; 10917 return 0; 10918} 10919_ACEOF 10920rm -f conftest.$ac_objext conftest$ac_exeext 10921if { (ac_try="$ac_link" 10922case "(($ac_try" in 10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10924 *) ac_try_echo=$ac_try;; 10925esac 10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10927 (eval "$ac_link") 2>conftest.er1 10928 ac_status=$? 10929 grep -v '^ *+' conftest.er1 >conftest.err 10930 rm -f conftest.er1 10931 cat conftest.err >&5 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); } && 10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10935 { (case "(($ac_try" in 10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10937 *) ac_try_echo=$ac_try;; 10938esac 10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10940 (eval "$ac_try") 2>&5 10941 ac_status=$? 10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10943 (exit $ac_status); }; } && 10944 { ac_try='test -s conftest$ac_exeext' 10945 { (case "(($ac_try" in 10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10947 *) ac_try_echo=$ac_try;; 10948esac 10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10950 (eval "$ac_try") 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); }; }; then 10954 ac_cv_lib_dld_shl_load=yes 10955else 10956 echo "$as_me: failed program was:" >&5 10957sed 's/^/| /' conftest.$ac_ext >&5 10958 10959 ac_cv_lib_dld_shl_load=no 10960fi 10961 10962rm -f core conftest.err conftest.$ac_objext \ 10963 conftest$ac_exeext conftest.$ac_ext 10964LIBS=$ac_check_lib_save_LIBS 10965fi 10966{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10967echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10968if test $ac_cv_lib_dld_shl_load = yes; then 10969 10970cat >>confdefs.h <<\_ACEOF 10971#define HAVE_SHL_LOAD 1 10972_ACEOF 10973 10974 LIBADD_DL="$LIBADD_DL -ldld" 10975else 10976 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10978if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10979 echo $ECHO_N "(cached) $ECHO_C" >&6 10980else 10981 ac_check_lib_save_LIBS=$LIBS 10982LIBS="-ldl $LIBS" 10983cat >conftest.$ac_ext <<_ACEOF 10984/* confdefs.h. */ 10985_ACEOF 10986cat confdefs.h >>conftest.$ac_ext 10987cat >>conftest.$ac_ext <<_ACEOF 10988/* end confdefs.h. */ 10989 10990/* Override any GCC internal prototype to avoid an error. 10991 Use char because int might match the return type of a GCC 10992 builtin and then its argument prototype would still apply. */ 10993#ifdef __cplusplus 10994extern "C" 10995#endif 10996char dlopen (); 10997int 10998main () 10999{ 11000return dlopen (); 11001 ; 11002 return 0; 11003} 11004_ACEOF 11005rm -f conftest.$ac_objext conftest$ac_exeext 11006if { (ac_try="$ac_link" 11007case "(($ac_try" in 11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11009 *) ac_try_echo=$ac_try;; 11010esac 11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11012 (eval "$ac_link") 2>conftest.er1 11013 ac_status=$? 11014 grep -v '^ *+' conftest.er1 >conftest.err 11015 rm -f conftest.er1 11016 cat conftest.err >&5 11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11018 (exit $ac_status); } && 11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11020 { (case "(($ac_try" in 11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11022 *) ac_try_echo=$ac_try;; 11023esac 11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11025 (eval "$ac_try") 2>&5 11026 ac_status=$? 11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11028 (exit $ac_status); }; } && 11029 { ac_try='test -s conftest$ac_exeext' 11030 { (case "(($ac_try" in 11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11032 *) ac_try_echo=$ac_try;; 11033esac 11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11035 (eval "$ac_try") 2>&5 11036 ac_status=$? 11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11038 (exit $ac_status); }; }; then 11039 ac_cv_lib_dl_dlopen=yes 11040else 11041 echo "$as_me: failed program was:" >&5 11042sed 's/^/| /' conftest.$ac_ext >&5 11043 11044 ac_cv_lib_dl_dlopen=no 11045fi 11046 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049LIBS=$ac_check_lib_save_LIBS 11050fi 11051{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11052echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11053if test $ac_cv_lib_dl_dlopen = yes; then 11054 11055cat >>confdefs.h <<\_ACEOF 11056#define HAVE_LIBDL 1 11057_ACEOF 11058 11059 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 11060else 11061 cat >conftest.$ac_ext <<_ACEOF 11062/* confdefs.h. */ 11063_ACEOF 11064cat confdefs.h >>conftest.$ac_ext 11065cat >>conftest.$ac_ext <<_ACEOF 11066/* end confdefs.h. */ 11067#if HAVE_DLFCN_H 11068# include <dlfcn.h> 11069#endif 11070 11071int 11072main () 11073{ 11074dlopen(0, 0); 11075 ; 11076 return 0; 11077} 11078_ACEOF 11079rm -f conftest.$ac_objext conftest$ac_exeext 11080if { (ac_try="$ac_link" 11081case "(($ac_try" in 11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11083 *) ac_try_echo=$ac_try;; 11084esac 11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11086 (eval "$ac_link") 2>conftest.er1 11087 ac_status=$? 11088 grep -v '^ *+' conftest.er1 >conftest.err 11089 rm -f conftest.er1 11090 cat conftest.err >&5 11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11092 (exit $ac_status); } && 11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11094 { (case "(($ac_try" in 11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11096 *) ac_try_echo=$ac_try;; 11097esac 11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11099 (eval "$ac_try") 2>&5 11100 ac_status=$? 11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11102 (exit $ac_status); }; } && 11103 { ac_try='test -s conftest$ac_exeext' 11104 { (case "(($ac_try" in 11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11106 *) ac_try_echo=$ac_try;; 11107esac 11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11109 (eval "$ac_try") 2>&5 11110 ac_status=$? 11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11112 (exit $ac_status); }; }; then 11113 11114cat >>confdefs.h <<\_ACEOF 11115#define HAVE_LIBDL 1 11116_ACEOF 11117 libltdl_cv_func_dlopen="yes" 11118else 11119 echo "$as_me: failed program was:" >&5 11120sed 's/^/| /' conftest.$ac_ext >&5 11121 11122 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11123echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11124if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11125 echo $ECHO_N "(cached) $ECHO_C" >&6 11126else 11127 ac_check_lib_save_LIBS=$LIBS 11128LIBS="-lsvld $LIBS" 11129cat >conftest.$ac_ext <<_ACEOF 11130/* confdefs.h. */ 11131_ACEOF 11132cat confdefs.h >>conftest.$ac_ext 11133cat >>conftest.$ac_ext <<_ACEOF 11134/* end confdefs.h. */ 11135 11136/* Override any GCC internal prototype to avoid an error. 11137 Use char because int might match the return type of a GCC 11138 builtin and then its argument prototype would still apply. */ 11139#ifdef __cplusplus 11140extern "C" 11141#endif 11142char dlopen (); 11143int 11144main () 11145{ 11146return dlopen (); 11147 ; 11148 return 0; 11149} 11150_ACEOF 11151rm -f conftest.$ac_objext conftest$ac_exeext 11152if { (ac_try="$ac_link" 11153case "(($ac_try" in 11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11155 *) ac_try_echo=$ac_try;; 11156esac 11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11158 (eval "$ac_link") 2>conftest.er1 11159 ac_status=$? 11160 grep -v '^ *+' conftest.er1 >conftest.err 11161 rm -f conftest.er1 11162 cat conftest.err >&5 11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11164 (exit $ac_status); } && 11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11166 { (case "(($ac_try" in 11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11168 *) ac_try_echo=$ac_try;; 11169esac 11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11171 (eval "$ac_try") 2>&5 11172 ac_status=$? 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); }; } && 11175 { ac_try='test -s conftest$ac_exeext' 11176 { (case "(($ac_try" in 11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11178 *) ac_try_echo=$ac_try;; 11179esac 11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11181 (eval "$ac_try") 2>&5 11182 ac_status=$? 11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11184 (exit $ac_status); }; }; then 11185 ac_cv_lib_svld_dlopen=yes 11186else 11187 echo "$as_me: failed program was:" >&5 11188sed 's/^/| /' conftest.$ac_ext >&5 11189 11190 ac_cv_lib_svld_dlopen=no 11191fi 11192 11193rm -f core conftest.err conftest.$ac_objext \ 11194 conftest$ac_exeext conftest.$ac_ext 11195LIBS=$ac_check_lib_save_LIBS 11196fi 11197{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11198echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11199if test $ac_cv_lib_svld_dlopen = yes; then 11200 11201cat >>confdefs.h <<\_ACEOF 11202#define HAVE_LIBDL 1 11203_ACEOF 11204 11205 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 11206else 11207 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11208echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11209if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11210 echo $ECHO_N "(cached) $ECHO_C" >&6 11211else 11212 ac_check_lib_save_LIBS=$LIBS 11213LIBS="-ldld $LIBS" 11214cat >conftest.$ac_ext <<_ACEOF 11215/* confdefs.h. */ 11216_ACEOF 11217cat confdefs.h >>conftest.$ac_ext 11218cat >>conftest.$ac_ext <<_ACEOF 11219/* end confdefs.h. */ 11220 11221/* Override any GCC internal prototype to avoid an error. 11222 Use char because int might match the return type of a GCC 11223 builtin and then its argument prototype would still apply. */ 11224#ifdef __cplusplus 11225extern "C" 11226#endif 11227char dld_link (); 11228int 11229main () 11230{ 11231return dld_link (); 11232 ; 11233 return 0; 11234} 11235_ACEOF 11236rm -f conftest.$ac_objext conftest$ac_exeext 11237if { (ac_try="$ac_link" 11238case "(($ac_try" in 11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11240 *) ac_try_echo=$ac_try;; 11241esac 11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11243 (eval "$ac_link") 2>conftest.er1 11244 ac_status=$? 11245 grep -v '^ *+' conftest.er1 >conftest.err 11246 rm -f conftest.er1 11247 cat conftest.err >&5 11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11249 (exit $ac_status); } && 11250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11251 { (case "(($ac_try" in 11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11253 *) ac_try_echo=$ac_try;; 11254esac 11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11256 (eval "$ac_try") 2>&5 11257 ac_status=$? 11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11259 (exit $ac_status); }; } && 11260 { ac_try='test -s conftest$ac_exeext' 11261 { (case "(($ac_try" in 11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11263 *) ac_try_echo=$ac_try;; 11264esac 11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11266 (eval "$ac_try") 2>&5 11267 ac_status=$? 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11269 (exit $ac_status); }; }; then 11270 ac_cv_lib_dld_dld_link=yes 11271else 11272 echo "$as_me: failed program was:" >&5 11273sed 's/^/| /' conftest.$ac_ext >&5 11274 11275 ac_cv_lib_dld_dld_link=no 11276fi 11277 11278rm -f core conftest.err conftest.$ac_objext \ 11279 conftest$ac_exeext conftest.$ac_ext 11280LIBS=$ac_check_lib_save_LIBS 11281fi 11282{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11283echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11284if test $ac_cv_lib_dld_dld_link = yes; then 11285 11286cat >>confdefs.h <<\_ACEOF 11287#define HAVE_DLD 1 11288_ACEOF 11289 11290 LIBADD_DL="$LIBADD_DL -ldld" 11291else 11292 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 11293echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 11294if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 11295 echo $ECHO_N "(cached) $ECHO_C" >&6 11296else 11297 cat >conftest.$ac_ext <<_ACEOF 11298/* confdefs.h. */ 11299_ACEOF 11300cat confdefs.h >>conftest.$ac_ext 11301cat >>conftest.$ac_ext <<_ACEOF 11302/* end confdefs.h. */ 11303/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11305#define _dyld_func_lookup innocuous__dyld_func_lookup 11306 11307/* System header to define __stub macros and hopefully few prototypes, 11308 which can conflict with char _dyld_func_lookup (); below. 11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11310 <limits.h> exists even on freestanding compilers. */ 11311 11312#ifdef __STDC__ 11313# include <limits.h> 11314#else 11315# include <assert.h> 11316#endif 11317 11318#undef _dyld_func_lookup 11319 11320/* Override any GCC internal prototype to avoid an error. 11321 Use char because int might match the return type of a GCC 11322 builtin and then its argument prototype would still apply. */ 11323#ifdef __cplusplus 11324extern "C" 11325#endif 11326char _dyld_func_lookup (); 11327/* The GNU C library defines this for functions which it implements 11328 to always fail with ENOSYS. Some functions are actually named 11329 something starting with __ and the normal name is an alias. */ 11330#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 11331choke me 11332#endif 11333 11334int 11335main () 11336{ 11337return _dyld_func_lookup (); 11338 ; 11339 return 0; 11340} 11341_ACEOF 11342rm -f conftest.$ac_objext conftest$ac_exeext 11343if { (ac_try="$ac_link" 11344case "(($ac_try" in 11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11346 *) ac_try_echo=$ac_try;; 11347esac 11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11349 (eval "$ac_link") 2>conftest.er1 11350 ac_status=$? 11351 grep -v '^ *+' conftest.er1 >conftest.err 11352 rm -f conftest.er1 11353 cat conftest.err >&5 11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11355 (exit $ac_status); } && 11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11357 { (case "(($ac_try" in 11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11359 *) ac_try_echo=$ac_try;; 11360esac 11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11362 (eval "$ac_try") 2>&5 11363 ac_status=$? 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); }; } && 11366 { ac_try='test -s conftest$ac_exeext' 11367 { (case "(($ac_try" in 11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11369 *) ac_try_echo=$ac_try;; 11370esac 11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11372 (eval "$ac_try") 2>&5 11373 ac_status=$? 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); }; }; then 11376 ac_cv_func__dyld_func_lookup=yes 11377else 11378 echo "$as_me: failed program was:" >&5 11379sed 's/^/| /' conftest.$ac_ext >&5 11380 11381 ac_cv_func__dyld_func_lookup=no 11382fi 11383 11384rm -f core conftest.err conftest.$ac_objext \ 11385 conftest$ac_exeext conftest.$ac_ext 11386fi 11387{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 11388echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 11389if test $ac_cv_func__dyld_func_lookup = yes; then 11390 11391cat >>confdefs.h <<\_ACEOF 11392#define HAVE_DYLD 1 11393_ACEOF 11394 11395fi 11396 11397 11398fi 11399 11400 11401fi 11402 11403 11404fi 11405 11406rm -f core conftest.err conftest.$ac_objext \ 11407 conftest$ac_exeext conftest.$ac_ext 11408 11409fi 11410 11411 11412fi 11413 11414 11415fi 11416 11417 11418if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 11419then 11420 lt_save_LIBS="$LIBS" 11421 LIBS="$LIBS $LIBADD_DL" 11422 11423for ac_func in dlerror 11424do 11425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11426{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11429 echo $ECHO_N "(cached) $ECHO_C" >&6 11430else 11431 cat >conftest.$ac_ext <<_ACEOF 11432/* confdefs.h. */ 11433_ACEOF 11434cat confdefs.h >>conftest.$ac_ext 11435cat >>conftest.$ac_ext <<_ACEOF 11436/* end confdefs.h. */ 11437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11439#define $ac_func innocuous_$ac_func 11440 11441/* System header to define __stub macros and hopefully few prototypes, 11442 which can conflict with char $ac_func (); below. 11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11444 <limits.h> exists even on freestanding compilers. */ 11445 11446#ifdef __STDC__ 11447# include <limits.h> 11448#else 11449# include <assert.h> 11450#endif 11451 11452#undef $ac_func 11453 11454/* Override any GCC internal prototype to avoid an error. 11455 Use char because int might match the return type of a GCC 11456 builtin and then its argument prototype would still apply. */ 11457#ifdef __cplusplus 11458extern "C" 11459#endif 11460char $ac_func (); 11461/* The GNU C library defines this for functions which it implements 11462 to always fail with ENOSYS. Some functions are actually named 11463 something starting with __ and the normal name is an alias. */ 11464#if defined __stub_$ac_func || defined __stub___$ac_func 11465choke me 11466#endif 11467 11468int 11469main () 11470{ 11471return $ac_func (); 11472 ; 11473 return 0; 11474} 11475_ACEOF 11476rm -f conftest.$ac_objext conftest$ac_exeext 11477if { (ac_try="$ac_link" 11478case "(($ac_try" in 11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11480 *) ac_try_echo=$ac_try;; 11481esac 11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11483 (eval "$ac_link") 2>conftest.er1 11484 ac_status=$? 11485 grep -v '^ *+' conftest.er1 >conftest.err 11486 rm -f conftest.er1 11487 cat conftest.err >&5 11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11489 (exit $ac_status); } && 11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11491 { (case "(($ac_try" in 11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11493 *) ac_try_echo=$ac_try;; 11494esac 11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11496 (eval "$ac_try") 2>&5 11497 ac_status=$? 11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11499 (exit $ac_status); }; } && 11500 { ac_try='test -s conftest$ac_exeext' 11501 { (case "(($ac_try" in 11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11503 *) ac_try_echo=$ac_try;; 11504esac 11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11506 (eval "$ac_try") 2>&5 11507 ac_status=$? 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11509 (exit $ac_status); }; }; then 11510 eval "$as_ac_var=yes" 11511else 11512 echo "$as_me: failed program was:" >&5 11513sed 's/^/| /' conftest.$ac_ext >&5 11514 11515 eval "$as_ac_var=no" 11516fi 11517 11518rm -f core conftest.err conftest.$ac_objext \ 11519 conftest$ac_exeext conftest.$ac_ext 11520fi 11521ac_res=`eval echo '${'$as_ac_var'}'` 11522 { echo "$as_me:$LINENO: result: $ac_res" >&5 11523echo "${ECHO_T}$ac_res" >&6; } 11524if test `eval echo '${'$as_ac_var'}'` = yes; then 11525 cat >>confdefs.h <<_ACEOF 11526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11527_ACEOF 11528 11529fi 11530done 11531 11532 LIBS="$lt_save_LIBS" 11533fi 11534ac_ext=c 11535ac_cpp='$CPP $CPPFLAGS' 11536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11538ac_compiler_gnu=$ac_cv_c_compiler_gnu 11539 11540 11541 11542{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 11543echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 11544if test "${ac_cv_sys_symbol_underscore+set}" = set; then 11545 echo $ECHO_N "(cached) $ECHO_C" >&6 11546else 11547 ac_cv_sys_symbol_underscore=no 11548 cat > conftest.$ac_ext <<EOF 11549void nm_test_func(){} 11550int main(){nm_test_func;return 0;} 11551EOF 11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11553 (eval $ac_compile) 2>&5 11554 ac_status=$? 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11556 (exit $ac_status); }; then 11557 # Now try to grab the symbols. 11558 ac_nlist=conftest.nm 11559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 11560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 11561 ac_status=$? 11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11563 (exit $ac_status); } && test -s "$ac_nlist"; then 11564 # See whether the symbols have a leading underscore. 11565 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 11566 ac_cv_sys_symbol_underscore=yes 11567 else 11568 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 11569 : 11570 else 11571 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 11572 fi 11573 fi 11574 else 11575 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 11576 fi 11577 else 11578 echo "configure: failed program was:" >&5 11579 cat conftest.c >&5 11580 fi 11581 rm -rf conftest* 11582 11583fi 11584{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 11585echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 11586 11587 11588if test x"$ac_cv_sys_symbol_underscore" = xyes; then 11589 if test x"$libltdl_cv_func_dlopen" = xyes || 11590 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 11591 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 11592echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 11593if test "${libltdl_cv_need_uscore+set}" = set; then 11594 echo $ECHO_N "(cached) $ECHO_C" >&6 11595else 11596 libltdl_cv_need_uscore=unknown 11597 save_LIBS="$LIBS" 11598 LIBS="$LIBS $LIBADD_DL" 11599 if test "$cross_compiling" = yes; then : 11600 libltdl_cv_need_uscore=cross 11601else 11602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11603 lt_status=$lt_dlunknown 11604 cat > conftest.$ac_ext <<EOF 11605#line 11591 "configure" 11606#include "confdefs.h" 11607 11608#if HAVE_DLFCN_H 11609#include <dlfcn.h> 11610#endif 11611 11612#include <stdio.h> 11613 11614#ifdef RTLD_GLOBAL 11615# define LT_DLGLOBAL RTLD_GLOBAL 11616#else 11617# ifdef DL_GLOBAL 11618# define LT_DLGLOBAL DL_GLOBAL 11619# else 11620# define LT_DLGLOBAL 0 11621# endif 11622#endif 11623 11624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11625 find out it does not work in some platform. */ 11626#ifndef LT_DLLAZY_OR_NOW 11627# ifdef RTLD_LAZY 11628# define LT_DLLAZY_OR_NOW RTLD_LAZY 11629# else 11630# ifdef DL_LAZY 11631# define LT_DLLAZY_OR_NOW DL_LAZY 11632# else 11633# ifdef RTLD_NOW 11634# define LT_DLLAZY_OR_NOW RTLD_NOW 11635# else 11636# ifdef DL_NOW 11637# define LT_DLLAZY_OR_NOW DL_NOW 11638# else 11639# define LT_DLLAZY_OR_NOW 0 11640# endif 11641# endif 11642# endif 11643# endif 11644#endif 11645 11646#ifdef __cplusplus 11647extern "C" void exit (int); 11648#endif 11649 11650void fnord() { int i=42;} 11651int main () 11652{ 11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11654 int status = $lt_dlunknown; 11655 11656 if (self) 11657 { 11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11660 /* dlclose (self); */ 11661 } 11662 else 11663 puts (dlerror ()); 11664 11665 exit (status); 11666} 11667EOF 11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11669 (eval $ac_link) 2>&5 11670 ac_status=$? 11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11673 (./conftest; exit; ) >&5 2>/dev/null 11674 lt_status=$? 11675 case x$lt_status in 11676 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 11677 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 11678 x$lt_dlunknown|x*) ;; 11679 esac 11680 else : 11681 # compilation failed 11682 11683 fi 11684fi 11685rm -fr conftest* 11686 11687 LIBS="$save_LIBS" 11688 11689fi 11690{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 11691echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 11692 fi 11693fi 11694 11695if test x"$libltdl_cv_need_uscore" = xyes; then 11696 11697cat >>confdefs.h <<\_ACEOF 11698#define NEED_USCORE 1 11699_ACEOF 11700 11701fi 11702 11703 11704{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 11705echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 11706if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 11707 echo $ECHO_N "(cached) $ECHO_C" >&6 11708else 11709 # PORTME does your system automatically load deplibs for dlopen? 11710 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 11711 # For now, we just catch OSes we know something about -- in the 11712 # future, we'll try test this programmatically. 11713 libltdl_cv_sys_dlopen_deplibs=unknown 11714 case "$host_os" in 11715 aix3*|aix4.1.*|aix4.2.*) 11716 # Unknown whether this is true for these versions of AIX, but 11717 # we want this `case' here to explicitly catch those versions. 11718 libltdl_cv_sys_dlopen_deplibs=unknown 11719 ;; 11720 aix[45]*) 11721 libltdl_cv_sys_dlopen_deplibs=yes 11722 ;; 11723 darwin*) 11724 # Assuming the user has installed a libdl from somewhere, this is true 11725 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 11726 libltdl_cv_sys_dlopen_deplibs=yes 11727 ;; 11728 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 11729 # GNU and its variants, using gnu ld.so (Glibc) 11730 libltdl_cv_sys_dlopen_deplibs=yes 11731 ;; 11732 hpux10*|hpux11*) 11733 libltdl_cv_sys_dlopen_deplibs=yes 11734 ;; 11735 interix*) 11736 libltdl_cv_sys_dlopen_deplibs=yes 11737 ;; 11738 irix[12345]*|irix6.[01]*) 11739 # Catch all versions of IRIX before 6.2, and indicate that we don't 11740 # know how it worked for any of those versions. 11741 libltdl_cv_sys_dlopen_deplibs=unknown 11742 ;; 11743 irix*) 11744 # The case above catches anything before 6.2, and it's known that 11745 # at 6.2 and later dlopen does load deplibs. 11746 libltdl_cv_sys_dlopen_deplibs=yes 11747 ;; 11748 netbsd*) 11749 libltdl_cv_sys_dlopen_deplibs=yes 11750 ;; 11751 openbsd*) 11752 libltdl_cv_sys_dlopen_deplibs=yes 11753 ;; 11754 osf[1234]*) 11755 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 11756 # it did *not* use an RPATH in a shared library to find objects the 11757 # library depends on, so we explicitly say `no'. 11758 libltdl_cv_sys_dlopen_deplibs=no 11759 ;; 11760 osf5.0|osf5.0a|osf5.1) 11761 # dlopen *does* load deplibs and with the right loader patch applied 11762 # it even uses RPATH in a shared library to search for shared objects 11763 # that the library depends on, but there's no easy way to know if that 11764 # patch is installed. Since this is the case, all we can really 11765 # say is unknown -- it depends on the patch being installed. If 11766 # it is, this changes to `yes'. Without it, it would be `no'. 11767 libltdl_cv_sys_dlopen_deplibs=unknown 11768 ;; 11769 osf*) 11770 # the two cases above should catch all versions of osf <= 5.1. Read 11771 # the comments above for what we know about them. 11772 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 11773 # is used to find them so we can finally say `yes'. 11774 libltdl_cv_sys_dlopen_deplibs=yes 11775 ;; 11776 solaris*) 11777 libltdl_cv_sys_dlopen_deplibs=yes 11778 ;; 11779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11780 libltdl_cv_sys_dlopen_deplibs=yes 11781 ;; 11782 esac 11783 11784fi 11785{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 11786echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 11787if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 11788 11789cat >>confdefs.h <<\_ACEOF 11790#define LTDL_DLOPEN_DEPLIBS 1 11791_ACEOF 11792 11793fi 11794 11795 11796for ac_header in argz.h 11797do 11798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11803 echo $ECHO_N "(cached) $ECHO_C" >&6 11804fi 11805ac_res=`eval echo '${'$as_ac_Header'}'` 11806 { echo "$as_me:$LINENO: result: $ac_res" >&5 11807echo "${ECHO_T}$ac_res" >&6; } 11808else 11809 # Is the header compilable? 11810{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11812cat >conftest.$ac_ext <<_ACEOF 11813/* confdefs.h. */ 11814_ACEOF 11815cat confdefs.h >>conftest.$ac_ext 11816cat >>conftest.$ac_ext <<_ACEOF 11817/* end confdefs.h. */ 11818$ac_includes_default 11819#include <$ac_header> 11820_ACEOF 11821rm -f conftest.$ac_objext 11822if { (ac_try="$ac_compile" 11823case "(($ac_try" in 11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11825 *) ac_try_echo=$ac_try;; 11826esac 11827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11828 (eval "$ac_compile") 2>conftest.er1 11829 ac_status=$? 11830 grep -v '^ *+' conftest.er1 >conftest.err 11831 rm -f conftest.er1 11832 cat conftest.err >&5 11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 (exit $ac_status); } && 11835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11836 { (case "(($ac_try" in 11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11838 *) ac_try_echo=$ac_try;; 11839esac 11840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11841 (eval "$ac_try") 2>&5 11842 ac_status=$? 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 (exit $ac_status); }; } && 11845 { ac_try='test -s conftest.$ac_objext' 11846 { (case "(($ac_try" in 11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11848 *) ac_try_echo=$ac_try;; 11849esac 11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11851 (eval "$ac_try") 2>&5 11852 ac_status=$? 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); }; }; then 11855 ac_header_compiler=yes 11856else 11857 echo "$as_me: failed program was:" >&5 11858sed 's/^/| /' conftest.$ac_ext >&5 11859 11860 ac_header_compiler=no 11861fi 11862 11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11865echo "${ECHO_T}$ac_header_compiler" >&6; } 11866 11867# Is the header present? 11868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11870cat >conftest.$ac_ext <<_ACEOF 11871/* confdefs.h. */ 11872_ACEOF 11873cat confdefs.h >>conftest.$ac_ext 11874cat >>conftest.$ac_ext <<_ACEOF 11875/* end confdefs.h. */ 11876#include <$ac_header> 11877_ACEOF 11878if { (ac_try="$ac_cpp conftest.$ac_ext" 11879case "(($ac_try" in 11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11881 *) ac_try_echo=$ac_try;; 11882esac 11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11885 ac_status=$? 11886 grep -v '^ *+' conftest.er1 >conftest.err 11887 rm -f conftest.er1 11888 cat conftest.err >&5 11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11890 (exit $ac_status); } >/dev/null; then 11891 if test -s conftest.err; then 11892 ac_cpp_err=$ac_c_preproc_warn_flag 11893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11894 else 11895 ac_cpp_err= 11896 fi 11897else 11898 ac_cpp_err=yes 11899fi 11900if test -z "$ac_cpp_err"; then 11901 ac_header_preproc=yes 11902else 11903 echo "$as_me: failed program was:" >&5 11904sed 's/^/| /' conftest.$ac_ext >&5 11905 11906 ac_header_preproc=no 11907fi 11908 11909rm -f conftest.err conftest.$ac_ext 11910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11911echo "${ECHO_T}$ac_header_preproc" >&6; } 11912 11913# So? What about this header? 11914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11915 yes:no: ) 11916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11920 ac_header_preproc=yes 11921 ;; 11922 no:yes:* ) 11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11935 ( cat <<\_ASBOX 11936## ----------------------------------- ## 11937## Report this to llvmbugs@cs.uiuc.edu ## 11938## ----------------------------------- ## 11939_ASBOX 11940 ) | sed "s/^/$as_me: WARNING: /" >&2 11941 ;; 11942esac 11943{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11946 echo $ECHO_N "(cached) $ECHO_C" >&6 11947else 11948 eval "$as_ac_Header=\$ac_header_preproc" 11949fi 11950ac_res=`eval echo '${'$as_ac_Header'}'` 11951 { echo "$as_me:$LINENO: result: $ac_res" >&5 11952echo "${ECHO_T}$ac_res" >&6; } 11953 11954fi 11955if test `eval echo '${'$as_ac_Header'}'` = yes; then 11956 cat >>confdefs.h <<_ACEOF 11957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11958_ACEOF 11959 11960fi 11961 11962done 11963 11964 11965{ echo "$as_me:$LINENO: checking for error_t" >&5 11966echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 11967if test "${ac_cv_type_error_t+set}" = set; then 11968 echo $ECHO_N "(cached) $ECHO_C" >&6 11969else 11970 cat >conftest.$ac_ext <<_ACEOF 11971/* confdefs.h. */ 11972_ACEOF 11973cat confdefs.h >>conftest.$ac_ext 11974cat >>conftest.$ac_ext <<_ACEOF 11975/* end confdefs.h. */ 11976#if HAVE_ARGZ_H 11977# include <argz.h> 11978#endif 11979 11980typedef error_t ac__type_new_; 11981int 11982main () 11983{ 11984if ((ac__type_new_ *) 0) 11985 return 0; 11986if (sizeof (ac__type_new_)) 11987 return 0; 11988 ; 11989 return 0; 11990} 11991_ACEOF 11992rm -f conftest.$ac_objext 11993if { (ac_try="$ac_compile" 11994case "(($ac_try" in 11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11996 *) ac_try_echo=$ac_try;; 11997esac 11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11999 (eval "$ac_compile") 2>conftest.er1 12000 ac_status=$? 12001 grep -v '^ *+' conftest.er1 >conftest.err 12002 rm -f conftest.er1 12003 cat conftest.err >&5 12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12005 (exit $ac_status); } && 12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12007 { (case "(($ac_try" in 12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12009 *) ac_try_echo=$ac_try;; 12010esac 12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12012 (eval "$ac_try") 2>&5 12013 ac_status=$? 12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12015 (exit $ac_status); }; } && 12016 { ac_try='test -s conftest.$ac_objext' 12017 { (case "(($ac_try" in 12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12019 *) ac_try_echo=$ac_try;; 12020esac 12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12022 (eval "$ac_try") 2>&5 12023 ac_status=$? 12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12025 (exit $ac_status); }; }; then 12026 ac_cv_type_error_t=yes 12027else 12028 echo "$as_me: failed program was:" >&5 12029sed 's/^/| /' conftest.$ac_ext >&5 12030 12031 ac_cv_type_error_t=no 12032fi 12033 12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12035fi 12036{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 12037echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 12038if test $ac_cv_type_error_t = yes; then 12039 12040cat >>confdefs.h <<_ACEOF 12041#define HAVE_ERROR_T 1 12042_ACEOF 12043 12044 12045else 12046 12047cat >>confdefs.h <<\_ACEOF 12048#define error_t int 12049_ACEOF 12050 12051fi 12052 12053 12054 12055 12056 12057 12058 12059for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 12060do 12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12062{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12065 echo $ECHO_N "(cached) $ECHO_C" >&6 12066else 12067 cat >conftest.$ac_ext <<_ACEOF 12068/* confdefs.h. */ 12069_ACEOF 12070cat confdefs.h >>conftest.$ac_ext 12071cat >>conftest.$ac_ext <<_ACEOF 12072/* end confdefs.h. */ 12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12075#define $ac_func innocuous_$ac_func 12076 12077/* System header to define __stub macros and hopefully few prototypes, 12078 which can conflict with char $ac_func (); below. 12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12080 <limits.h> exists even on freestanding compilers. */ 12081 12082#ifdef __STDC__ 12083# include <limits.h> 12084#else 12085# include <assert.h> 12086#endif 12087 12088#undef $ac_func 12089 12090/* Override any GCC internal prototype to avoid an error. 12091 Use char because int might match the return type of a GCC 12092 builtin and then its argument prototype would still apply. */ 12093#ifdef __cplusplus 12094extern "C" 12095#endif 12096char $ac_func (); 12097/* The GNU C library defines this for functions which it implements 12098 to always fail with ENOSYS. Some functions are actually named 12099 something starting with __ and the normal name is an alias. */ 12100#if defined __stub_$ac_func || defined __stub___$ac_func 12101choke me 12102#endif 12103 12104int 12105main () 12106{ 12107return $ac_func (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112rm -f conftest.$ac_objext conftest$ac_exeext 12113if { (ac_try="$ac_link" 12114case "(($ac_try" in 12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12116 *) ac_try_echo=$ac_try;; 12117esac 12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12119 (eval "$ac_link") 2>conftest.er1 12120 ac_status=$? 12121 grep -v '^ *+' conftest.er1 >conftest.err 12122 rm -f conftest.er1 12123 cat conftest.err >&5 12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); } && 12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12127 { (case "(($ac_try" in 12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12129 *) ac_try_echo=$ac_try;; 12130esac 12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12132 (eval "$ac_try") 2>&5 12133 ac_status=$? 12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12135 (exit $ac_status); }; } && 12136 { ac_try='test -s conftest$ac_exeext' 12137 { (case "(($ac_try" in 12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12139 *) ac_try_echo=$ac_try;; 12140esac 12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12142 (eval "$ac_try") 2>&5 12143 ac_status=$? 12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 (exit $ac_status); }; }; then 12146 eval "$as_ac_var=yes" 12147else 12148 echo "$as_me: failed program was:" >&5 12149sed 's/^/| /' conftest.$ac_ext >&5 12150 12151 eval "$as_ac_var=no" 12152fi 12153 12154rm -f core conftest.err conftest.$ac_objext \ 12155 conftest$ac_exeext conftest.$ac_ext 12156fi 12157ac_res=`eval echo '${'$as_ac_var'}'` 12158 { echo "$as_me:$LINENO: result: $ac_res" >&5 12159echo "${ECHO_T}$ac_res" >&6; } 12160if test `eval echo '${'$as_ac_var'}'` = yes; then 12161 cat >>confdefs.h <<_ACEOF 12162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12163_ACEOF 12164 12165fi 12166done 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 12196 stdio.h unistd.h 12197do 12198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12200 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12203 echo $ECHO_N "(cached) $ECHO_C" >&6 12204fi 12205ac_res=`eval echo '${'$as_ac_Header'}'` 12206 { echo "$as_me:$LINENO: result: $ac_res" >&5 12207echo "${ECHO_T}$ac_res" >&6; } 12208else 12209 # Is the header compilable? 12210{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12212cat >conftest.$ac_ext <<_ACEOF 12213/* confdefs.h. */ 12214_ACEOF 12215cat confdefs.h >>conftest.$ac_ext 12216cat >>conftest.$ac_ext <<_ACEOF 12217/* end confdefs.h. */ 12218$ac_includes_default 12219#include <$ac_header> 12220_ACEOF 12221rm -f conftest.$ac_objext 12222if { (ac_try="$ac_compile" 12223case "(($ac_try" in 12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12225 *) ac_try_echo=$ac_try;; 12226esac 12227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12228 (eval "$ac_compile") 2>conftest.er1 12229 ac_status=$? 12230 grep -v '^ *+' conftest.er1 >conftest.err 12231 rm -f conftest.er1 12232 cat conftest.err >&5 12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12234 (exit $ac_status); } && 12235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12236 { (case "(($ac_try" in 12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12238 *) ac_try_echo=$ac_try;; 12239esac 12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12241 (eval "$ac_try") 2>&5 12242 ac_status=$? 12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12244 (exit $ac_status); }; } && 12245 { ac_try='test -s conftest.$ac_objext' 12246 { (case "(($ac_try" in 12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12248 *) ac_try_echo=$ac_try;; 12249esac 12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12251 (eval "$ac_try") 2>&5 12252 ac_status=$? 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); }; }; then 12255 ac_header_compiler=yes 12256else 12257 echo "$as_me: failed program was:" >&5 12258sed 's/^/| /' conftest.$ac_ext >&5 12259 12260 ac_header_compiler=no 12261fi 12262 12263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12265echo "${ECHO_T}$ac_header_compiler" >&6; } 12266 12267# Is the header present? 12268{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12270cat >conftest.$ac_ext <<_ACEOF 12271/* confdefs.h. */ 12272_ACEOF 12273cat confdefs.h >>conftest.$ac_ext 12274cat >>conftest.$ac_ext <<_ACEOF 12275/* end confdefs.h. */ 12276#include <$ac_header> 12277_ACEOF 12278if { (ac_try="$ac_cpp conftest.$ac_ext" 12279case "(($ac_try" in 12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12281 *) ac_try_echo=$ac_try;; 12282esac 12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12285 ac_status=$? 12286 grep -v '^ *+' conftest.er1 >conftest.err 12287 rm -f conftest.er1 12288 cat conftest.err >&5 12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12290 (exit $ac_status); } >/dev/null; then 12291 if test -s conftest.err; then 12292 ac_cpp_err=$ac_c_preproc_warn_flag 12293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12294 else 12295 ac_cpp_err= 12296 fi 12297else 12298 ac_cpp_err=yes 12299fi 12300if test -z "$ac_cpp_err"; then 12301 ac_header_preproc=yes 12302else 12303 echo "$as_me: failed program was:" >&5 12304sed 's/^/| /' conftest.$ac_ext >&5 12305 12306 ac_header_preproc=no 12307fi 12308 12309rm -f conftest.err conftest.$ac_ext 12310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12311echo "${ECHO_T}$ac_header_preproc" >&6; } 12312 12313# So? What about this header? 12314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12315 yes:no: ) 12316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12320 ac_header_preproc=yes 12321 ;; 12322 no:yes:* ) 12323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12335 ( cat <<\_ASBOX 12336## ----------------------------------- ## 12337## Report this to llvmbugs@cs.uiuc.edu ## 12338## ----------------------------------- ## 12339_ASBOX 12340 ) | sed "s/^/$as_me: WARNING: /" >&2 12341 ;; 12342esac 12343{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12346 echo $ECHO_N "(cached) $ECHO_C" >&6 12347else 12348 eval "$as_ac_Header=\$ac_header_preproc" 12349fi 12350ac_res=`eval echo '${'$as_ac_Header'}'` 12351 { echo "$as_me:$LINENO: result: $ac_res" >&5 12352echo "${ECHO_T}$ac_res" >&6; } 12353 12354fi 12355if test `eval echo '${'$as_ac_Header'}'` = yes; then 12356 cat >>confdefs.h <<_ACEOF 12357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12358_ACEOF 12359 12360fi 12361 12362done 12363 12364 12365 12366 12367 12368for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 12369do 12370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12372 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12375 echo $ECHO_N "(cached) $ECHO_C" >&6 12376fi 12377ac_res=`eval echo '${'$as_ac_Header'}'` 12378 { echo "$as_me:$LINENO: result: $ac_res" >&5 12379echo "${ECHO_T}$ac_res" >&6; } 12380else 12381 # Is the header compilable? 12382{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12384cat >conftest.$ac_ext <<_ACEOF 12385/* confdefs.h. */ 12386_ACEOF 12387cat confdefs.h >>conftest.$ac_ext 12388cat >>conftest.$ac_ext <<_ACEOF 12389/* end confdefs.h. */ 12390$ac_includes_default 12391#include <$ac_header> 12392_ACEOF 12393rm -f conftest.$ac_objext 12394if { (ac_try="$ac_compile" 12395case "(($ac_try" in 12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12397 *) ac_try_echo=$ac_try;; 12398esac 12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12400 (eval "$ac_compile") 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && 12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12408 { (case "(($ac_try" in 12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12410 *) ac_try_echo=$ac_try;; 12411esac 12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12413 (eval "$ac_try") 2>&5 12414 ac_status=$? 12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); }; } && 12417 { ac_try='test -s conftest.$ac_objext' 12418 { (case "(($ac_try" in 12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12420 *) ac_try_echo=$ac_try;; 12421esac 12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12423 (eval "$ac_try") 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); }; }; then 12427 ac_header_compiler=yes 12428else 12429 echo "$as_me: failed program was:" >&5 12430sed 's/^/| /' conftest.$ac_ext >&5 12431 12432 ac_header_compiler=no 12433fi 12434 12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12436{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12437echo "${ECHO_T}$ac_header_compiler" >&6; } 12438 12439# Is the header present? 12440{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12442cat >conftest.$ac_ext <<_ACEOF 12443/* confdefs.h. */ 12444_ACEOF 12445cat confdefs.h >>conftest.$ac_ext 12446cat >>conftest.$ac_ext <<_ACEOF 12447/* end confdefs.h. */ 12448#include <$ac_header> 12449_ACEOF 12450if { (ac_try="$ac_cpp conftest.$ac_ext" 12451case "(($ac_try" in 12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12453 *) ac_try_echo=$ac_try;; 12454esac 12455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12457 ac_status=$? 12458 grep -v '^ *+' conftest.er1 >conftest.err 12459 rm -f conftest.er1 12460 cat conftest.err >&5 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); } >/dev/null; then 12463 if test -s conftest.err; then 12464 ac_cpp_err=$ac_c_preproc_warn_flag 12465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12466 else 12467 ac_cpp_err= 12468 fi 12469else 12470 ac_cpp_err=yes 12471fi 12472if test -z "$ac_cpp_err"; then 12473 ac_header_preproc=yes 12474else 12475 echo "$as_me: failed program was:" >&5 12476sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_header_preproc=no 12479fi 12480 12481rm -f conftest.err conftest.$ac_ext 12482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12483echo "${ECHO_T}$ac_header_preproc" >&6; } 12484 12485# So? What about this header? 12486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12487 yes:no: ) 12488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12492 ac_header_preproc=yes 12493 ;; 12494 no:yes:* ) 12495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12507 ( cat <<\_ASBOX 12508## ----------------------------------- ## 12509## Report this to llvmbugs@cs.uiuc.edu ## 12510## ----------------------------------- ## 12511_ASBOX 12512 ) | sed "s/^/$as_me: WARNING: /" >&2 12513 ;; 12514esac 12515{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12518 echo $ECHO_N "(cached) $ECHO_C" >&6 12519else 12520 eval "$as_ac_Header=\$ac_header_preproc" 12521fi 12522ac_res=`eval echo '${'$as_ac_Header'}'` 12523 { echo "$as_me:$LINENO: result: $ac_res" >&5 12524echo "${ECHO_T}$ac_res" >&6; } 12525 12526fi 12527if test `eval echo '${'$as_ac_Header'}'` = yes; then 12528 cat >>confdefs.h <<_ACEOF 12529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12530_ACEOF 12531 12532fi 12533 12534done 12535 12536 12537 12538for ac_header in string.h strings.h 12539do 12540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12542 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12545 echo $ECHO_N "(cached) $ECHO_C" >&6 12546fi 12547ac_res=`eval echo '${'$as_ac_Header'}'` 12548 { echo "$as_me:$LINENO: result: $ac_res" >&5 12549echo "${ECHO_T}$ac_res" >&6; } 12550else 12551 # Is the header compilable? 12552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12554cat >conftest.$ac_ext <<_ACEOF 12555/* confdefs.h. */ 12556_ACEOF 12557cat confdefs.h >>conftest.$ac_ext 12558cat >>conftest.$ac_ext <<_ACEOF 12559/* end confdefs.h. */ 12560$ac_includes_default 12561#include <$ac_header> 12562_ACEOF 12563rm -f conftest.$ac_objext 12564if { (ac_try="$ac_compile" 12565case "(($ac_try" in 12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12567 *) ac_try_echo=$ac_try;; 12568esac 12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12570 (eval "$ac_compile") 2>conftest.er1 12571 ac_status=$? 12572 grep -v '^ *+' conftest.er1 >conftest.err 12573 rm -f conftest.er1 12574 cat conftest.err >&5 12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12576 (exit $ac_status); } && 12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12578 { (case "(($ac_try" in 12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12580 *) ac_try_echo=$ac_try;; 12581esac 12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12583 (eval "$ac_try") 2>&5 12584 ac_status=$? 12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12586 (exit $ac_status); }; } && 12587 { ac_try='test -s conftest.$ac_objext' 12588 { (case "(($ac_try" in 12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12590 *) ac_try_echo=$ac_try;; 12591esac 12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12593 (eval "$ac_try") 2>&5 12594 ac_status=$? 12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12596 (exit $ac_status); }; }; then 12597 ac_header_compiler=yes 12598else 12599 echo "$as_me: failed program was:" >&5 12600sed 's/^/| /' conftest.$ac_ext >&5 12601 12602 ac_header_compiler=no 12603fi 12604 12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12607echo "${ECHO_T}$ac_header_compiler" >&6; } 12608 12609# Is the header present? 12610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12612cat >conftest.$ac_ext <<_ACEOF 12613/* confdefs.h. */ 12614_ACEOF 12615cat confdefs.h >>conftest.$ac_ext 12616cat >>conftest.$ac_ext <<_ACEOF 12617/* end confdefs.h. */ 12618#include <$ac_header> 12619_ACEOF 12620if { (ac_try="$ac_cpp conftest.$ac_ext" 12621case "(($ac_try" in 12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12623 *) ac_try_echo=$ac_try;; 12624esac 12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12627 ac_status=$? 12628 grep -v '^ *+' conftest.er1 >conftest.err 12629 rm -f conftest.er1 12630 cat conftest.err >&5 12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12632 (exit $ac_status); } >/dev/null; then 12633 if test -s conftest.err; then 12634 ac_cpp_err=$ac_c_preproc_warn_flag 12635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12636 else 12637 ac_cpp_err= 12638 fi 12639else 12640 ac_cpp_err=yes 12641fi 12642if test -z "$ac_cpp_err"; then 12643 ac_header_preproc=yes 12644else 12645 echo "$as_me: failed program was:" >&5 12646sed 's/^/| /' conftest.$ac_ext >&5 12647 12648 ac_header_preproc=no 12649fi 12650 12651rm -f conftest.err conftest.$ac_ext 12652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12653echo "${ECHO_T}$ac_header_preproc" >&6; } 12654 12655# So? What about this header? 12656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12657 yes:no: ) 12658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12662 ac_header_preproc=yes 12663 ;; 12664 no:yes:* ) 12665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12677 ( cat <<\_ASBOX 12678## ----------------------------------- ## 12679## Report this to llvmbugs@cs.uiuc.edu ## 12680## ----------------------------------- ## 12681_ASBOX 12682 ) | sed "s/^/$as_me: WARNING: /" >&2 12683 ;; 12684esac 12685{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12688 echo $ECHO_N "(cached) $ECHO_C" >&6 12689else 12690 eval "$as_ac_Header=\$ac_header_preproc" 12691fi 12692ac_res=`eval echo '${'$as_ac_Header'}'` 12693 { echo "$as_me:$LINENO: result: $ac_res" >&5 12694echo "${ECHO_T}$ac_res" >&6; } 12695 12696fi 12697if test `eval echo '${'$as_ac_Header'}'` = yes; then 12698 cat >>confdefs.h <<_ACEOF 12699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12700_ACEOF 12701 break 12702fi 12703 12704done 12705 12706 12707 12708 12709for ac_func in strchr index 12710do 12711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12712{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12715 echo $ECHO_N "(cached) $ECHO_C" >&6 12716else 12717 cat >conftest.$ac_ext <<_ACEOF 12718/* confdefs.h. */ 12719_ACEOF 12720cat confdefs.h >>conftest.$ac_ext 12721cat >>conftest.$ac_ext <<_ACEOF 12722/* end confdefs.h. */ 12723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12725#define $ac_func innocuous_$ac_func 12726 12727/* System header to define __stub macros and hopefully few prototypes, 12728 which can conflict with char $ac_func (); below. 12729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12730 <limits.h> exists even on freestanding compilers. */ 12731 12732#ifdef __STDC__ 12733# include <limits.h> 12734#else 12735# include <assert.h> 12736#endif 12737 12738#undef $ac_func 12739 12740/* Override any GCC internal prototype to avoid an error. 12741 Use char because int might match the return type of a GCC 12742 builtin and then its argument prototype would still apply. */ 12743#ifdef __cplusplus 12744extern "C" 12745#endif 12746char $ac_func (); 12747/* The GNU C library defines this for functions which it implements 12748 to always fail with ENOSYS. Some functions are actually named 12749 something starting with __ and the normal name is an alias. */ 12750#if defined __stub_$ac_func || defined __stub___$ac_func 12751choke me 12752#endif 12753 12754int 12755main () 12756{ 12757return $ac_func (); 12758 ; 12759 return 0; 12760} 12761_ACEOF 12762rm -f conftest.$ac_objext conftest$ac_exeext 12763if { (ac_try="$ac_link" 12764case "(($ac_try" in 12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12766 *) ac_try_echo=$ac_try;; 12767esac 12768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12769 (eval "$ac_link") 2>conftest.er1 12770 ac_status=$? 12771 grep -v '^ *+' conftest.er1 >conftest.err 12772 rm -f conftest.er1 12773 cat conftest.err >&5 12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12775 (exit $ac_status); } && 12776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12777 { (case "(($ac_try" in 12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12779 *) ac_try_echo=$ac_try;; 12780esac 12781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12782 (eval "$ac_try") 2>&5 12783 ac_status=$? 12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12785 (exit $ac_status); }; } && 12786 { ac_try='test -s conftest$ac_exeext' 12787 { (case "(($ac_try" in 12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12789 *) ac_try_echo=$ac_try;; 12790esac 12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12792 (eval "$ac_try") 2>&5 12793 ac_status=$? 12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); }; }; then 12796 eval "$as_ac_var=yes" 12797else 12798 echo "$as_me: failed program was:" >&5 12799sed 's/^/| /' conftest.$ac_ext >&5 12800 12801 eval "$as_ac_var=no" 12802fi 12803 12804rm -f core conftest.err conftest.$ac_objext \ 12805 conftest$ac_exeext conftest.$ac_ext 12806fi 12807ac_res=`eval echo '${'$as_ac_var'}'` 12808 { echo "$as_me:$LINENO: result: $ac_res" >&5 12809echo "${ECHO_T}$ac_res" >&6; } 12810if test `eval echo '${'$as_ac_var'}'` = yes; then 12811 cat >>confdefs.h <<_ACEOF 12812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12813_ACEOF 12814 break 12815fi 12816done 12817 12818 12819 12820for ac_func in strrchr rindex 12821do 12822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12823{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12826 echo $ECHO_N "(cached) $ECHO_C" >&6 12827else 12828 cat >conftest.$ac_ext <<_ACEOF 12829/* confdefs.h. */ 12830_ACEOF 12831cat confdefs.h >>conftest.$ac_ext 12832cat >>conftest.$ac_ext <<_ACEOF 12833/* end confdefs.h. */ 12834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12836#define $ac_func innocuous_$ac_func 12837 12838/* System header to define __stub macros and hopefully few prototypes, 12839 which can conflict with char $ac_func (); below. 12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12841 <limits.h> exists even on freestanding compilers. */ 12842 12843#ifdef __STDC__ 12844# include <limits.h> 12845#else 12846# include <assert.h> 12847#endif 12848 12849#undef $ac_func 12850 12851/* Override any GCC internal prototype to avoid an error. 12852 Use char because int might match the return type of a GCC 12853 builtin and then its argument prototype would still apply. */ 12854#ifdef __cplusplus 12855extern "C" 12856#endif 12857char $ac_func (); 12858/* The GNU C library defines this for functions which it implements 12859 to always fail with ENOSYS. Some functions are actually named 12860 something starting with __ and the normal name is an alias. */ 12861#if defined __stub_$ac_func || defined __stub___$ac_func 12862choke me 12863#endif 12864 12865int 12866main () 12867{ 12868return $ac_func (); 12869 ; 12870 return 0; 12871} 12872_ACEOF 12873rm -f conftest.$ac_objext conftest$ac_exeext 12874if { (ac_try="$ac_link" 12875case "(($ac_try" in 12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12877 *) ac_try_echo=$ac_try;; 12878esac 12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12880 (eval "$ac_link") 2>conftest.er1 12881 ac_status=$? 12882 grep -v '^ *+' conftest.er1 >conftest.err 12883 rm -f conftest.er1 12884 cat conftest.err >&5 12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12886 (exit $ac_status); } && 12887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12888 { (case "(($ac_try" in 12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12890 *) ac_try_echo=$ac_try;; 12891esac 12892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12893 (eval "$ac_try") 2>&5 12894 ac_status=$? 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); }; } && 12897 { ac_try='test -s conftest$ac_exeext' 12898 { (case "(($ac_try" in 12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12900 *) ac_try_echo=$ac_try;; 12901esac 12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12903 (eval "$ac_try") 2>&5 12904 ac_status=$? 12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12906 (exit $ac_status); }; }; then 12907 eval "$as_ac_var=yes" 12908else 12909 echo "$as_me: failed program was:" >&5 12910sed 's/^/| /' conftest.$ac_ext >&5 12911 12912 eval "$as_ac_var=no" 12913fi 12914 12915rm -f core conftest.err conftest.$ac_objext \ 12916 conftest$ac_exeext conftest.$ac_ext 12917fi 12918ac_res=`eval echo '${'$as_ac_var'}'` 12919 { echo "$as_me:$LINENO: result: $ac_res" >&5 12920echo "${ECHO_T}$ac_res" >&6; } 12921if test `eval echo '${'$as_ac_var'}'` = yes; then 12922 cat >>confdefs.h <<_ACEOF 12923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12924_ACEOF 12925 break 12926fi 12927done 12928 12929 12930 12931for ac_func in memcpy bcopy 12932do 12933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12934{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12937 echo $ECHO_N "(cached) $ECHO_C" >&6 12938else 12939 cat >conftest.$ac_ext <<_ACEOF 12940/* confdefs.h. */ 12941_ACEOF 12942cat confdefs.h >>conftest.$ac_ext 12943cat >>conftest.$ac_ext <<_ACEOF 12944/* end confdefs.h. */ 12945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12947#define $ac_func innocuous_$ac_func 12948 12949/* System header to define __stub macros and hopefully few prototypes, 12950 which can conflict with char $ac_func (); below. 12951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12952 <limits.h> exists even on freestanding compilers. */ 12953 12954#ifdef __STDC__ 12955# include <limits.h> 12956#else 12957# include <assert.h> 12958#endif 12959 12960#undef $ac_func 12961 12962/* Override any GCC internal prototype to avoid an error. 12963 Use char because int might match the return type of a GCC 12964 builtin and then its argument prototype would still apply. */ 12965#ifdef __cplusplus 12966extern "C" 12967#endif 12968char $ac_func (); 12969/* The GNU C library defines this for functions which it implements 12970 to always fail with ENOSYS. Some functions are actually named 12971 something starting with __ and the normal name is an alias. */ 12972#if defined __stub_$ac_func || defined __stub___$ac_func 12973choke me 12974#endif 12975 12976int 12977main () 12978{ 12979return $ac_func (); 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984rm -f conftest.$ac_objext conftest$ac_exeext 12985if { (ac_try="$ac_link" 12986case "(($ac_try" in 12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12988 *) ac_try_echo=$ac_try;; 12989esac 12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12991 (eval "$ac_link") 2>conftest.er1 12992 ac_status=$? 12993 grep -v '^ *+' conftest.er1 >conftest.err 12994 rm -f conftest.er1 12995 cat conftest.err >&5 12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12997 (exit $ac_status); } && 12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12999 { (case "(($ac_try" in 13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13001 *) ac_try_echo=$ac_try;; 13002esac 13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13004 (eval "$ac_try") 2>&5 13005 ac_status=$? 13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13007 (exit $ac_status); }; } && 13008 { ac_try='test -s conftest$ac_exeext' 13009 { (case "(($ac_try" in 13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13011 *) ac_try_echo=$ac_try;; 13012esac 13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13014 (eval "$ac_try") 2>&5 13015 ac_status=$? 13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13017 (exit $ac_status); }; }; then 13018 eval "$as_ac_var=yes" 13019else 13020 echo "$as_me: failed program was:" >&5 13021sed 's/^/| /' conftest.$ac_ext >&5 13022 13023 eval "$as_ac_var=no" 13024fi 13025 13026rm -f core conftest.err conftest.$ac_objext \ 13027 conftest$ac_exeext conftest.$ac_ext 13028fi 13029ac_res=`eval echo '${'$as_ac_var'}'` 13030 { echo "$as_me:$LINENO: result: $ac_res" >&5 13031echo "${ECHO_T}$ac_res" >&6; } 13032if test `eval echo '${'$as_ac_var'}'` = yes; then 13033 cat >>confdefs.h <<_ACEOF 13034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13035_ACEOF 13036 break 13037fi 13038done 13039 13040 13041 13042for ac_func in memmove strcmp 13043do 13044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13045{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13047if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13048 echo $ECHO_N "(cached) $ECHO_C" >&6 13049else 13050 cat >conftest.$ac_ext <<_ACEOF 13051/* confdefs.h. */ 13052_ACEOF 13053cat confdefs.h >>conftest.$ac_ext 13054cat >>conftest.$ac_ext <<_ACEOF 13055/* end confdefs.h. */ 13056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13058#define $ac_func innocuous_$ac_func 13059 13060/* System header to define __stub macros and hopefully few prototypes, 13061 which can conflict with char $ac_func (); below. 13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13063 <limits.h> exists even on freestanding compilers. */ 13064 13065#ifdef __STDC__ 13066# include <limits.h> 13067#else 13068# include <assert.h> 13069#endif 13070 13071#undef $ac_func 13072 13073/* Override any GCC internal prototype to avoid an error. 13074 Use char because int might match the return type of a GCC 13075 builtin and then its argument prototype would still apply. */ 13076#ifdef __cplusplus 13077extern "C" 13078#endif 13079char $ac_func (); 13080/* The GNU C library defines this for functions which it implements 13081 to always fail with ENOSYS. Some functions are actually named 13082 something starting with __ and the normal name is an alias. */ 13083#if defined __stub_$ac_func || defined __stub___$ac_func 13084choke me 13085#endif 13086 13087int 13088main () 13089{ 13090return $ac_func (); 13091 ; 13092 return 0; 13093} 13094_ACEOF 13095rm -f conftest.$ac_objext conftest$ac_exeext 13096if { (ac_try="$ac_link" 13097case "(($ac_try" in 13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13099 *) ac_try_echo=$ac_try;; 13100esac 13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13102 (eval "$ac_link") 2>conftest.er1 13103 ac_status=$? 13104 grep -v '^ *+' conftest.er1 >conftest.err 13105 rm -f conftest.er1 13106 cat conftest.err >&5 13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13108 (exit $ac_status); } && 13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13110 { (case "(($ac_try" in 13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13112 *) ac_try_echo=$ac_try;; 13113esac 13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13115 (eval "$ac_try") 2>&5 13116 ac_status=$? 13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13118 (exit $ac_status); }; } && 13119 { ac_try='test -s conftest$ac_exeext' 13120 { (case "(($ac_try" in 13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13122 *) ac_try_echo=$ac_try;; 13123esac 13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13125 (eval "$ac_try") 2>&5 13126 ac_status=$? 13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13128 (exit $ac_status); }; }; then 13129 eval "$as_ac_var=yes" 13130else 13131 echo "$as_me: failed program was:" >&5 13132sed 's/^/| /' conftest.$ac_ext >&5 13133 13134 eval "$as_ac_var=no" 13135fi 13136 13137rm -f core conftest.err conftest.$ac_objext \ 13138 conftest$ac_exeext conftest.$ac_ext 13139fi 13140ac_res=`eval echo '${'$as_ac_var'}'` 13141 { echo "$as_me:$LINENO: result: $ac_res" >&5 13142echo "${ECHO_T}$ac_res" >&6; } 13143if test `eval echo '${'$as_ac_var'}'` = yes; then 13144 cat >>confdefs.h <<_ACEOF 13145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13146_ACEOF 13147 13148fi 13149done 13150 13151 13152 13153 13154for ac_func in closedir opendir readdir 13155do 13156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13157{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13160 echo $ECHO_N "(cached) $ECHO_C" >&6 13161else 13162 cat >conftest.$ac_ext <<_ACEOF 13163/* confdefs.h. */ 13164_ACEOF 13165cat confdefs.h >>conftest.$ac_ext 13166cat >>conftest.$ac_ext <<_ACEOF 13167/* end confdefs.h. */ 13168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13169 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13170#define $ac_func innocuous_$ac_func 13171 13172/* System header to define __stub macros and hopefully few prototypes, 13173 which can conflict with char $ac_func (); below. 13174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13175 <limits.h> exists even on freestanding compilers. */ 13176 13177#ifdef __STDC__ 13178# include <limits.h> 13179#else 13180# include <assert.h> 13181#endif 13182 13183#undef $ac_func 13184 13185/* Override any GCC internal prototype to avoid an error. 13186 Use char because int might match the return type of a GCC 13187 builtin and then its argument prototype would still apply. */ 13188#ifdef __cplusplus 13189extern "C" 13190#endif 13191char $ac_func (); 13192/* The GNU C library defines this for functions which it implements 13193 to always fail with ENOSYS. Some functions are actually named 13194 something starting with __ and the normal name is an alias. */ 13195#if defined __stub_$ac_func || defined __stub___$ac_func 13196choke me 13197#endif 13198 13199int 13200main () 13201{ 13202return $ac_func (); 13203 ; 13204 return 0; 13205} 13206_ACEOF 13207rm -f conftest.$ac_objext conftest$ac_exeext 13208if { (ac_try="$ac_link" 13209case "(($ac_try" in 13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13211 *) ac_try_echo=$ac_try;; 13212esac 13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13214 (eval "$ac_link") 2>conftest.er1 13215 ac_status=$? 13216 grep -v '^ *+' conftest.er1 >conftest.err 13217 rm -f conftest.er1 13218 cat conftest.err >&5 13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13220 (exit $ac_status); } && 13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13222 { (case "(($ac_try" in 13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13224 *) ac_try_echo=$ac_try;; 13225esac 13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13227 (eval "$ac_try") 2>&5 13228 ac_status=$? 13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13230 (exit $ac_status); }; } && 13231 { ac_try='test -s conftest$ac_exeext' 13232 { (case "(($ac_try" in 13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13234 *) ac_try_echo=$ac_try;; 13235esac 13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13237 (eval "$ac_try") 2>&5 13238 ac_status=$? 13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13240 (exit $ac_status); }; }; then 13241 eval "$as_ac_var=yes" 13242else 13243 echo "$as_me: failed program was:" >&5 13244sed 's/^/| /' conftest.$ac_ext >&5 13245 13246 eval "$as_ac_var=no" 13247fi 13248 13249rm -f core conftest.err conftest.$ac_objext \ 13250 conftest$ac_exeext conftest.$ac_ext 13251fi 13252ac_res=`eval echo '${'$as_ac_var'}'` 13253 { echo "$as_me:$LINENO: result: $ac_res" >&5 13254echo "${ECHO_T}$ac_res" >&6; } 13255if test `eval echo '${'$as_ac_var'}'` = yes; then 13256 cat >>confdefs.h <<_ACEOF 13257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13258_ACEOF 13259 13260fi 13261done 13262 13263 13264 13265if test "$WITH_LLVMGCCDIR" = "default" ; then 13266 LLVMGCC="llvm-gcc${EXEEXT}" 13267 LLVMGXX="llvm-g++${EXEEXT}" 13268 LLVMGCCCOMMAND="$LLVMGCC" 13269 LLVMGXXCOMMAND="$LLVMGXX" 13270 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13271 13272 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13273 13274 # Extract the first word of "$LLVMGCC", so it can be a program name with args. 13275set dummy $LLVMGCC; ac_word=$2 13276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13278if test "${ac_cv_path_LLVMGCC+set}" = set; then 13279 echo $ECHO_N "(cached) $ECHO_C" >&6 13280else 13281 case $LLVMGCC in 13282 [\\/]* | ?:[\\/]*) 13283 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. 13284 ;; 13285 *) 13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13287for as_dir in $PATH 13288do 13289 IFS=$as_save_IFS 13290 test -z "$as_dir" && as_dir=. 13291 for ac_exec_ext in '' $ac_executable_extensions; do 13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13293 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" 13294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13295 break 2 13296 fi 13297done 13298done 13299IFS=$as_save_IFS 13300 13301 ;; 13302esac 13303fi 13304LLVMGCC=$ac_cv_path_LLVMGCC 13305if test -n "$LLVMGCC"; then 13306 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 13307echo "${ECHO_T}$LLVMGCC" >&6; } 13308else 13309 { echo "$as_me:$LINENO: result: no" >&5 13310echo "${ECHO_T}no" >&6; } 13311fi 13312 13313 13314 # Extract the first word of "$LLVMGXX", so it can be a program name with args. 13315set dummy $LLVMGXX; ac_word=$2 13316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13318if test "${ac_cv_path_LLVMGXX+set}" = set; then 13319 echo $ECHO_N "(cached) $ECHO_C" >&6 13320else 13321 case $LLVMGXX in 13322 [\\/]* | ?:[\\/]*) 13323 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. 13324 ;; 13325 *) 13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13327for as_dir in $PATH 13328do 13329 IFS=$as_save_IFS 13330 test -z "$as_dir" && as_dir=. 13331 for ac_exec_ext in '' $ac_executable_extensions; do 13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13333 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" 13334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13335 break 2 13336 fi 13337done 13338done 13339IFS=$as_save_IFS 13340 13341 ;; 13342esac 13343fi 13344LLVMGXX=$ac_cv_path_LLVMGXX 13345if test -n "$LLVMGXX"; then 13346 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 13347echo "${ECHO_T}$LLVMGXX" >&6; } 13348else 13349 { echo "$as_me:$LINENO: result: no" >&5 13350echo "${ECHO_T}no" >&6; } 13351fi 13352 13353 13354else 13355 if test -z "$LLVMGCC"; then 13356 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" 13357 LLVMGCCCOMMAND="$LLVMGCC" 13358 fi 13359 if test -z "$LLVMGXX"; then 13360 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" 13361 LLVMGXXCOMMAND="$LLVMGXX" 13362 fi 13363 13364 LLVMGCC=$LLVMGCC 13365 13366 LLVMGXX=$LLVMGXX 13367 13368 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13369 13370 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13371 13372fi 13373 13374 13375# Check whether --with-llvmcc was given. 13376if test "${with_llvmcc+set}" = set; then 13377 withval=$with_llvmcc; 13378else 13379 with_llvmcc=check 13380fi 13381 13382{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 13383echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } 13384if test "$with_llvmcc" != "check"; then 13385 if (test "$with_llvmcc" != "llvm-gcc" && 13386 test "$with_llvmcc" != "clang" && 13387 test "$with_llvmcc" != "none"); then 13388 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 13389echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} 13390 { (exit 1); exit 1; }; } 13391 fi 13392 WITH_LLVMCC="$with_llvmcc" 13393elif test -n "$LLVMGCC"; then 13394 WITH_LLVMCC=llvm-gcc 13395elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then 13396 WITH_LLVMCC=clang 13397else 13398 WITH_LLVMCC=none 13399fi 13400{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 13401echo "${ECHO_T}$WITH_LLVMCC" >&6; } 13402LLVMCC_OPTION=$WITH_LLVMCC 13403 13404 13405{ echo "$as_me:$LINENO: checking tool compatibility" >&5 13406echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 13407 13408ICC=no 13409IXX=no 13410case $CC in 13411 icc*|icpc*) 13412 ICC=yes 13413 IXX=yes 13414 ;; 13415 *) 13416 ;; 13417esac 13418 13419if test "$GCC" != "yes" && test "$ICC" != "yes" 13420then 13421 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 13422echo "$as_me: error: gcc|icc required but not found" >&2;} 13423 { (exit 1); exit 1; }; } 13424fi 13425 13426if test "$GXX" != "yes" && test "$IXX" != "yes" 13427then 13428 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 13429echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 13430 { (exit 1); exit 1; }; } 13431fi 13432 13433if test "$GCC" = "yes" 13434then 13435 cat >conftest.$ac_ext <<_ACEOF 13436#if !defined(__GNUC__) || __GNUC__ < 3 13437#error Unsupported GCC version 13438#endif 13439 13440_ACEOF 13441rm -f conftest.$ac_objext 13442if { (ac_try="$ac_compile" 13443case "(($ac_try" in 13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13445 *) ac_try_echo=$ac_try;; 13446esac 13447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13448 (eval "$ac_compile") 2>conftest.er1 13449 ac_status=$? 13450 grep -v '^ *+' conftest.er1 >conftest.err 13451 rm -f conftest.er1 13452 cat conftest.err >&5 13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13454 (exit $ac_status); } && 13455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13456 { (case "(($ac_try" in 13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13458 *) ac_try_echo=$ac_try;; 13459esac 13460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13461 (eval "$ac_try") 2>&5 13462 ac_status=$? 13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13464 (exit $ac_status); }; } && 13465 { ac_try='test -s conftest.$ac_objext' 13466 { (case "(($ac_try" in 13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13468 *) ac_try_echo=$ac_try;; 13469esac 13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13471 (eval "$ac_try") 2>&5 13472 ac_status=$? 13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13474 (exit $ac_status); }; }; then 13475 : 13476else 13477 echo "$as_me: failed program was:" >&5 13478sed 's/^/| /' conftest.$ac_ext >&5 13479 13480 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 13481echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 13482 { (exit 1); exit 1; }; } 13483fi 13484 13485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13486fi 13487 13488if test -z "$llvm_cv_gnu_make_command" 13489then 13490 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 13491echo "$as_me: error: GNU Make required but not found" >&2;} 13492 { (exit 1); exit 1; }; } 13493fi 13494 13495{ echo "$as_me:$LINENO: result: ok" >&5 13496echo "${ECHO_T}ok" >&6; } 13497 13498{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 13499echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 13500NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 13501 13502NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 13503 13504{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 13505echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 13506 13507 13508 13509{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 13510echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 13511if test "${ac_cv_lib_m_sin+set}" = set; then 13512 echo $ECHO_N "(cached) $ECHO_C" >&6 13513else 13514 ac_check_lib_save_LIBS=$LIBS 13515LIBS="-lm $LIBS" 13516cat >conftest.$ac_ext <<_ACEOF 13517/* confdefs.h. */ 13518_ACEOF 13519cat confdefs.h >>conftest.$ac_ext 13520cat >>conftest.$ac_ext <<_ACEOF 13521/* end confdefs.h. */ 13522 13523/* Override any GCC internal prototype to avoid an error. 13524 Use char because int might match the return type of a GCC 13525 builtin and then its argument prototype would still apply. */ 13526#ifdef __cplusplus 13527extern "C" 13528#endif 13529char sin (); 13530int 13531main () 13532{ 13533return sin (); 13534 ; 13535 return 0; 13536} 13537_ACEOF 13538rm -f conftest.$ac_objext conftest$ac_exeext 13539if { (ac_try="$ac_link" 13540case "(($ac_try" in 13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13542 *) ac_try_echo=$ac_try;; 13543esac 13544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13545 (eval "$ac_link") 2>conftest.er1 13546 ac_status=$? 13547 grep -v '^ *+' conftest.er1 >conftest.err 13548 rm -f conftest.er1 13549 cat conftest.err >&5 13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13551 (exit $ac_status); } && 13552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13553 { (case "(($ac_try" in 13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13555 *) ac_try_echo=$ac_try;; 13556esac 13557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13558 (eval "$ac_try") 2>&5 13559 ac_status=$? 13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13561 (exit $ac_status); }; } && 13562 { ac_try='test -s conftest$ac_exeext' 13563 { (case "(($ac_try" in 13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13565 *) ac_try_echo=$ac_try;; 13566esac 13567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13568 (eval "$ac_try") 2>&5 13569 ac_status=$? 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); }; }; then 13572 ac_cv_lib_m_sin=yes 13573else 13574 echo "$as_me: failed program was:" >&5 13575sed 's/^/| /' conftest.$ac_ext >&5 13576 13577 ac_cv_lib_m_sin=no 13578fi 13579 13580rm -f core conftest.err conftest.$ac_objext \ 13581 conftest$ac_exeext conftest.$ac_ext 13582LIBS=$ac_check_lib_save_LIBS 13583fi 13584{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 13585echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 13586if test $ac_cv_lib_m_sin = yes; then 13587 cat >>confdefs.h <<_ACEOF 13588#define HAVE_LIBM 1 13589_ACEOF 13590 13591 LIBS="-lm $LIBS" 13592 13593fi 13594 13595if test "$llvm_cv_os_type" = "MingW" ; then 13596 13597{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 13598echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 13599if test "${ac_cv_lib_imagehlp_main+set}" = set; then 13600 echo $ECHO_N "(cached) $ECHO_C" >&6 13601else 13602 ac_check_lib_save_LIBS=$LIBS 13603LIBS="-limagehlp $LIBS" 13604cat >conftest.$ac_ext <<_ACEOF 13605/* confdefs.h. */ 13606_ACEOF 13607cat confdefs.h >>conftest.$ac_ext 13608cat >>conftest.$ac_ext <<_ACEOF 13609/* end confdefs.h. */ 13610 13611 13612int 13613main () 13614{ 13615return main (); 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620rm -f conftest.$ac_objext conftest$ac_exeext 13621if { (ac_try="$ac_link" 13622case "(($ac_try" in 13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13624 *) ac_try_echo=$ac_try;; 13625esac 13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13627 (eval "$ac_link") 2>conftest.er1 13628 ac_status=$? 13629 grep -v '^ *+' conftest.er1 >conftest.err 13630 rm -f conftest.er1 13631 cat conftest.err >&5 13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13633 (exit $ac_status); } && 13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13635 { (case "(($ac_try" in 13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13637 *) ac_try_echo=$ac_try;; 13638esac 13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13640 (eval "$ac_try") 2>&5 13641 ac_status=$? 13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13643 (exit $ac_status); }; } && 13644 { ac_try='test -s conftest$ac_exeext' 13645 { (case "(($ac_try" in 13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13647 *) ac_try_echo=$ac_try;; 13648esac 13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13650 (eval "$ac_try") 2>&5 13651 ac_status=$? 13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13653 (exit $ac_status); }; }; then 13654 ac_cv_lib_imagehlp_main=yes 13655else 13656 echo "$as_me: failed program was:" >&5 13657sed 's/^/| /' conftest.$ac_ext >&5 13658 13659 ac_cv_lib_imagehlp_main=no 13660fi 13661 13662rm -f core conftest.err conftest.$ac_objext \ 13663 conftest$ac_exeext conftest.$ac_ext 13664LIBS=$ac_check_lib_save_LIBS 13665fi 13666{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 13667echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 13668if test $ac_cv_lib_imagehlp_main = yes; then 13669 cat >>confdefs.h <<_ACEOF 13670#define HAVE_LIBIMAGEHLP 1 13671_ACEOF 13672 13673 LIBS="-limagehlp $LIBS" 13674 13675fi 13676 13677 13678{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 13679echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 13680if test "${ac_cv_lib_psapi_main+set}" = set; then 13681 echo $ECHO_N "(cached) $ECHO_C" >&6 13682else 13683 ac_check_lib_save_LIBS=$LIBS 13684LIBS="-lpsapi $LIBS" 13685cat >conftest.$ac_ext <<_ACEOF 13686/* confdefs.h. */ 13687_ACEOF 13688cat confdefs.h >>conftest.$ac_ext 13689cat >>conftest.$ac_ext <<_ACEOF 13690/* end confdefs.h. */ 13691 13692 13693int 13694main () 13695{ 13696return main (); 13697 ; 13698 return 0; 13699} 13700_ACEOF 13701rm -f conftest.$ac_objext conftest$ac_exeext 13702if { (ac_try="$ac_link" 13703case "(($ac_try" in 13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13705 *) ac_try_echo=$ac_try;; 13706esac 13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13708 (eval "$ac_link") 2>conftest.er1 13709 ac_status=$? 13710 grep -v '^ *+' conftest.er1 >conftest.err 13711 rm -f conftest.er1 13712 cat conftest.err >&5 13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13714 (exit $ac_status); } && 13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13716 { (case "(($ac_try" in 13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13718 *) ac_try_echo=$ac_try;; 13719esac 13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13721 (eval "$ac_try") 2>&5 13722 ac_status=$? 13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13724 (exit $ac_status); }; } && 13725 { ac_try='test -s conftest$ac_exeext' 13726 { (case "(($ac_try" in 13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13728 *) ac_try_echo=$ac_try;; 13729esac 13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13731 (eval "$ac_try") 2>&5 13732 ac_status=$? 13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13734 (exit $ac_status); }; }; then 13735 ac_cv_lib_psapi_main=yes 13736else 13737 echo "$as_me: failed program was:" >&5 13738sed 's/^/| /' conftest.$ac_ext >&5 13739 13740 ac_cv_lib_psapi_main=no 13741fi 13742 13743rm -f core conftest.err conftest.$ac_objext \ 13744 conftest$ac_exeext conftest.$ac_ext 13745LIBS=$ac_check_lib_save_LIBS 13746fi 13747{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 13748echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 13749if test $ac_cv_lib_psapi_main = yes; then 13750 cat >>confdefs.h <<_ACEOF 13751#define HAVE_LIBPSAPI 1 13752_ACEOF 13753 13754 LIBS="-lpsapi $LIBS" 13755 13756fi 13757 13758fi 13759 13760{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13761echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 13762if test "${ac_cv_search_dlopen+set}" = set; then 13763 echo $ECHO_N "(cached) $ECHO_C" >&6 13764else 13765 ac_func_search_save_LIBS=$LIBS 13766cat >conftest.$ac_ext <<_ACEOF 13767/* confdefs.h. */ 13768_ACEOF 13769cat confdefs.h >>conftest.$ac_ext 13770cat >>conftest.$ac_ext <<_ACEOF 13771/* end confdefs.h. */ 13772 13773/* Override any GCC internal prototype to avoid an error. 13774 Use char because int might match the return type of a GCC 13775 builtin and then its argument prototype would still apply. */ 13776#ifdef __cplusplus 13777extern "C" 13778#endif 13779char dlopen (); 13780int 13781main () 13782{ 13783return dlopen (); 13784 ; 13785 return 0; 13786} 13787_ACEOF 13788for ac_lib in '' dl; do 13789 if test -z "$ac_lib"; then 13790 ac_res="none required" 13791 else 13792 ac_res=-l$ac_lib 13793 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13794 fi 13795 rm -f conftest.$ac_objext conftest$ac_exeext 13796if { (ac_try="$ac_link" 13797case "(($ac_try" in 13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13799 *) ac_try_echo=$ac_try;; 13800esac 13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13802 (eval "$ac_link") 2>conftest.er1 13803 ac_status=$? 13804 grep -v '^ *+' conftest.er1 >conftest.err 13805 rm -f conftest.er1 13806 cat conftest.err >&5 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13808 (exit $ac_status); } && 13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13810 { (case "(($ac_try" in 13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13812 *) ac_try_echo=$ac_try;; 13813esac 13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13815 (eval "$ac_try") 2>&5 13816 ac_status=$? 13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13818 (exit $ac_status); }; } && 13819 { ac_try='test -s conftest$ac_exeext' 13820 { (case "(($ac_try" in 13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13822 *) ac_try_echo=$ac_try;; 13823esac 13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13825 (eval "$ac_try") 2>&5 13826 ac_status=$? 13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13828 (exit $ac_status); }; }; then 13829 ac_cv_search_dlopen=$ac_res 13830else 13831 echo "$as_me: failed program was:" >&5 13832sed 's/^/| /' conftest.$ac_ext >&5 13833 13834 13835fi 13836 13837rm -f core conftest.err conftest.$ac_objext \ 13838 conftest$ac_exeext 13839 if test "${ac_cv_search_dlopen+set}" = set; then 13840 break 13841fi 13842done 13843if test "${ac_cv_search_dlopen+set}" = set; then 13844 : 13845else 13846 ac_cv_search_dlopen=no 13847fi 13848rm conftest.$ac_ext 13849LIBS=$ac_func_search_save_LIBS 13850fi 13851{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13852echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 13853ac_res=$ac_cv_search_dlopen 13854if test "$ac_res" != no; then 13855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13856 13857cat >>confdefs.h <<\_ACEOF 13858#define HAVE_DLOPEN 1 13859_ACEOF 13860 13861else 13862 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 13863echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 13864fi 13865 13866 13867if test "$llvm_cv_enable_libffi" = "yes" ; then 13868 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 13869echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 13870if test "${ac_cv_search_ffi_call+set}" = set; then 13871 echo $ECHO_N "(cached) $ECHO_C" >&6 13872else 13873 ac_func_search_save_LIBS=$LIBS 13874cat >conftest.$ac_ext <<_ACEOF 13875/* confdefs.h. */ 13876_ACEOF 13877cat confdefs.h >>conftest.$ac_ext 13878cat >>conftest.$ac_ext <<_ACEOF 13879/* end confdefs.h. */ 13880 13881/* Override any GCC internal prototype to avoid an error. 13882 Use char because int might match the return type of a GCC 13883 builtin and then its argument prototype would still apply. */ 13884#ifdef __cplusplus 13885extern "C" 13886#endif 13887char ffi_call (); 13888int 13889main () 13890{ 13891return ffi_call (); 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896for ac_lib in '' ffi; do 13897 if test -z "$ac_lib"; then 13898 ac_res="none required" 13899 else 13900 ac_res=-l$ac_lib 13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13902 fi 13903 rm -f conftest.$ac_objext conftest$ac_exeext 13904if { (ac_try="$ac_link" 13905case "(($ac_try" in 13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13907 *) ac_try_echo=$ac_try;; 13908esac 13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13910 (eval "$ac_link") 2>conftest.er1 13911 ac_status=$? 13912 grep -v '^ *+' conftest.er1 >conftest.err 13913 rm -f conftest.er1 13914 cat conftest.err >&5 13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13916 (exit $ac_status); } && 13917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13918 { (case "(($ac_try" in 13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13920 *) ac_try_echo=$ac_try;; 13921esac 13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13923 (eval "$ac_try") 2>&5 13924 ac_status=$? 13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13926 (exit $ac_status); }; } && 13927 { ac_try='test -s conftest$ac_exeext' 13928 { (case "(($ac_try" in 13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13930 *) ac_try_echo=$ac_try;; 13931esac 13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13933 (eval "$ac_try") 2>&5 13934 ac_status=$? 13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13936 (exit $ac_status); }; }; then 13937 ac_cv_search_ffi_call=$ac_res 13938else 13939 echo "$as_me: failed program was:" >&5 13940sed 's/^/| /' conftest.$ac_ext >&5 13941 13942 13943fi 13944 13945rm -f core conftest.err conftest.$ac_objext \ 13946 conftest$ac_exeext 13947 if test "${ac_cv_search_ffi_call+set}" = set; then 13948 break 13949fi 13950done 13951if test "${ac_cv_search_ffi_call+set}" = set; then 13952 : 13953else 13954 ac_cv_search_ffi_call=no 13955fi 13956rm conftest.$ac_ext 13957LIBS=$ac_func_search_save_LIBS 13958fi 13959{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 13960echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 13961ac_res=$ac_cv_search_ffi_call 13962if test "$ac_res" != no; then 13963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13964 13965cat >>confdefs.h <<\_ACEOF 13966#define HAVE_FFI_CALL 1 13967_ACEOF 13968 13969else 13970 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 13971echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 13972 { (exit 1); exit 1; }; } 13973fi 13974 13975fi 13976 13977{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 13978echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 13979if test "${ac_cv_search_mallinfo+set}" = set; then 13980 echo $ECHO_N "(cached) $ECHO_C" >&6 13981else 13982 ac_func_search_save_LIBS=$LIBS 13983cat >conftest.$ac_ext <<_ACEOF 13984/* confdefs.h. */ 13985_ACEOF 13986cat confdefs.h >>conftest.$ac_ext 13987cat >>conftest.$ac_ext <<_ACEOF 13988/* end confdefs.h. */ 13989 13990/* Override any GCC internal prototype to avoid an error. 13991 Use char because int might match the return type of a GCC 13992 builtin and then its argument prototype would still apply. */ 13993#ifdef __cplusplus 13994extern "C" 13995#endif 13996char mallinfo (); 13997int 13998main () 13999{ 14000return mallinfo (); 14001 ; 14002 return 0; 14003} 14004_ACEOF 14005for ac_lib in '' malloc; do 14006 if test -z "$ac_lib"; then 14007 ac_res="none required" 14008 else 14009 ac_res=-l$ac_lib 14010 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14011 fi 14012 rm -f conftest.$ac_objext conftest$ac_exeext 14013if { (ac_try="$ac_link" 14014case "(($ac_try" in 14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14016 *) ac_try_echo=$ac_try;; 14017esac 14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14019 (eval "$ac_link") 2>conftest.er1 14020 ac_status=$? 14021 grep -v '^ *+' conftest.er1 >conftest.err 14022 rm -f conftest.er1 14023 cat conftest.err >&5 14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14025 (exit $ac_status); } && 14026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14027 { (case "(($ac_try" in 14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14029 *) ac_try_echo=$ac_try;; 14030esac 14031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14032 (eval "$ac_try") 2>&5 14033 ac_status=$? 14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14035 (exit $ac_status); }; } && 14036 { ac_try='test -s conftest$ac_exeext' 14037 { (case "(($ac_try" in 14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14039 *) ac_try_echo=$ac_try;; 14040esac 14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14042 (eval "$ac_try") 2>&5 14043 ac_status=$? 14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14045 (exit $ac_status); }; }; then 14046 ac_cv_search_mallinfo=$ac_res 14047else 14048 echo "$as_me: failed program was:" >&5 14049sed 's/^/| /' conftest.$ac_ext >&5 14050 14051 14052fi 14053 14054rm -f core conftest.err conftest.$ac_objext \ 14055 conftest$ac_exeext 14056 if test "${ac_cv_search_mallinfo+set}" = set; then 14057 break 14058fi 14059done 14060if test "${ac_cv_search_mallinfo+set}" = set; then 14061 : 14062else 14063 ac_cv_search_mallinfo=no 14064fi 14065rm conftest.$ac_ext 14066LIBS=$ac_func_search_save_LIBS 14067fi 14068{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 14069echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 14070ac_res=$ac_cv_search_mallinfo 14071if test "$ac_res" != no; then 14072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14073 14074cat >>confdefs.h <<\_ACEOF 14075#define HAVE_MALLINFO 1 14076_ACEOF 14077 14078fi 14079 14080 14081if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 14082 14083{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 14084echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 14085if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 14086 echo $ECHO_N "(cached) $ECHO_C" >&6 14087else 14088 ac_check_lib_save_LIBS=$LIBS 14089LIBS="-lpthread $LIBS" 14090cat >conftest.$ac_ext <<_ACEOF 14091/* confdefs.h. */ 14092_ACEOF 14093cat confdefs.h >>conftest.$ac_ext 14094cat >>conftest.$ac_ext <<_ACEOF 14095/* end confdefs.h. */ 14096 14097/* Override any GCC internal prototype to avoid an error. 14098 Use char because int might match the return type of a GCC 14099 builtin and then its argument prototype would still apply. */ 14100#ifdef __cplusplus 14101extern "C" 14102#endif 14103char pthread_mutex_init (); 14104int 14105main () 14106{ 14107return pthread_mutex_init (); 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112rm -f conftest.$ac_objext conftest$ac_exeext 14113if { (ac_try="$ac_link" 14114case "(($ac_try" in 14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14116 *) ac_try_echo=$ac_try;; 14117esac 14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14119 (eval "$ac_link") 2>conftest.er1 14120 ac_status=$? 14121 grep -v '^ *+' conftest.er1 >conftest.err 14122 rm -f conftest.er1 14123 cat conftest.err >&5 14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14125 (exit $ac_status); } && 14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14127 { (case "(($ac_try" in 14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14129 *) ac_try_echo=$ac_try;; 14130esac 14131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14132 (eval "$ac_try") 2>&5 14133 ac_status=$? 14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14135 (exit $ac_status); }; } && 14136 { ac_try='test -s conftest$ac_exeext' 14137 { (case "(($ac_try" in 14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14139 *) ac_try_echo=$ac_try;; 14140esac 14141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14142 (eval "$ac_try") 2>&5 14143 ac_status=$? 14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14145 (exit $ac_status); }; }; then 14146 ac_cv_lib_pthread_pthread_mutex_init=yes 14147else 14148 echo "$as_me: failed program was:" >&5 14149sed 's/^/| /' conftest.$ac_ext >&5 14150 14151 ac_cv_lib_pthread_pthread_mutex_init=no 14152fi 14153 14154rm -f core conftest.err conftest.$ac_objext \ 14155 conftest$ac_exeext conftest.$ac_ext 14156LIBS=$ac_check_lib_save_LIBS 14157fi 14158{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 14159echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 14160if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 14161 cat >>confdefs.h <<_ACEOF 14162#define HAVE_LIBPTHREAD 1 14163_ACEOF 14164 14165 LIBS="-lpthread $LIBS" 14166 14167fi 14168 14169 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 14170echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 14171if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14172 echo $ECHO_N "(cached) $ECHO_C" >&6 14173else 14174 ac_func_search_save_LIBS=$LIBS 14175cat >conftest.$ac_ext <<_ACEOF 14176/* confdefs.h. */ 14177_ACEOF 14178cat confdefs.h >>conftest.$ac_ext 14179cat >>conftest.$ac_ext <<_ACEOF 14180/* end confdefs.h. */ 14181 14182/* Override any GCC internal prototype to avoid an error. 14183 Use char because int might match the return type of a GCC 14184 builtin and then its argument prototype would still apply. */ 14185#ifdef __cplusplus 14186extern "C" 14187#endif 14188char pthread_mutex_lock (); 14189int 14190main () 14191{ 14192return pthread_mutex_lock (); 14193 ; 14194 return 0; 14195} 14196_ACEOF 14197for ac_lib in '' pthread; do 14198 if test -z "$ac_lib"; then 14199 ac_res="none required" 14200 else 14201 ac_res=-l$ac_lib 14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14203 fi 14204 rm -f conftest.$ac_objext conftest$ac_exeext 14205if { (ac_try="$ac_link" 14206case "(($ac_try" in 14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14208 *) ac_try_echo=$ac_try;; 14209esac 14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14211 (eval "$ac_link") 2>conftest.er1 14212 ac_status=$? 14213 grep -v '^ *+' conftest.er1 >conftest.err 14214 rm -f conftest.er1 14215 cat conftest.err >&5 14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14217 (exit $ac_status); } && 14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14219 { (case "(($ac_try" in 14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14221 *) ac_try_echo=$ac_try;; 14222esac 14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14224 (eval "$ac_try") 2>&5 14225 ac_status=$? 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); }; } && 14228 { ac_try='test -s conftest$ac_exeext' 14229 { (case "(($ac_try" in 14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14231 *) ac_try_echo=$ac_try;; 14232esac 14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14234 (eval "$ac_try") 2>&5 14235 ac_status=$? 14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14237 (exit $ac_status); }; }; then 14238 ac_cv_search_pthread_mutex_lock=$ac_res 14239else 14240 echo "$as_me: failed program was:" >&5 14241sed 's/^/| /' conftest.$ac_ext >&5 14242 14243 14244fi 14245 14246rm -f core conftest.err conftest.$ac_objext \ 14247 conftest$ac_exeext 14248 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14249 break 14250fi 14251done 14252if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14253 : 14254else 14255 ac_cv_search_pthread_mutex_lock=no 14256fi 14257rm conftest.$ac_ext 14258LIBS=$ac_func_search_save_LIBS 14259fi 14260{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 14261echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 14262ac_res=$ac_cv_search_pthread_mutex_lock 14263if test "$ac_res" != no; then 14264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14265 14266cat >>confdefs.h <<\_ACEOF 14267#define HAVE_PTHREAD_MUTEX_LOCK 1 14268_ACEOF 14269 14270fi 14271 14272 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 14273echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 14274if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14275 echo $ECHO_N "(cached) $ECHO_C" >&6 14276else 14277 ac_func_search_save_LIBS=$LIBS 14278cat >conftest.$ac_ext <<_ACEOF 14279/* confdefs.h. */ 14280_ACEOF 14281cat confdefs.h >>conftest.$ac_ext 14282cat >>conftest.$ac_ext <<_ACEOF 14283/* end confdefs.h. */ 14284 14285/* Override any GCC internal prototype to avoid an error. 14286 Use char because int might match the return type of a GCC 14287 builtin and then its argument prototype would still apply. */ 14288#ifdef __cplusplus 14289extern "C" 14290#endif 14291char pthread_rwlock_init (); 14292int 14293main () 14294{ 14295return pthread_rwlock_init (); 14296 ; 14297 return 0; 14298} 14299_ACEOF 14300for ac_lib in '' pthread; do 14301 if test -z "$ac_lib"; then 14302 ac_res="none required" 14303 else 14304 ac_res=-l$ac_lib 14305 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14306 fi 14307 rm -f conftest.$ac_objext conftest$ac_exeext 14308if { (ac_try="$ac_link" 14309case "(($ac_try" in 14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14311 *) ac_try_echo=$ac_try;; 14312esac 14313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14314 (eval "$ac_link") 2>conftest.er1 14315 ac_status=$? 14316 grep -v '^ *+' conftest.er1 >conftest.err 14317 rm -f conftest.er1 14318 cat conftest.err >&5 14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14320 (exit $ac_status); } && 14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14322 { (case "(($ac_try" in 14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14324 *) ac_try_echo=$ac_try;; 14325esac 14326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14327 (eval "$ac_try") 2>&5 14328 ac_status=$? 14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14330 (exit $ac_status); }; } && 14331 { ac_try='test -s conftest$ac_exeext' 14332 { (case "(($ac_try" in 14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14334 *) ac_try_echo=$ac_try;; 14335esac 14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14337 (eval "$ac_try") 2>&5 14338 ac_status=$? 14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14340 (exit $ac_status); }; }; then 14341 ac_cv_search_pthread_rwlock_init=$ac_res 14342else 14343 echo "$as_me: failed program was:" >&5 14344sed 's/^/| /' conftest.$ac_ext >&5 14345 14346 14347fi 14348 14349rm -f core conftest.err conftest.$ac_objext \ 14350 conftest$ac_exeext 14351 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14352 break 14353fi 14354done 14355if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14356 : 14357else 14358 ac_cv_search_pthread_rwlock_init=no 14359fi 14360rm conftest.$ac_ext 14361LIBS=$ac_func_search_save_LIBS 14362fi 14363{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 14364echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 14365ac_res=$ac_cv_search_pthread_rwlock_init 14366if test "$ac_res" != no; then 14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14368 14369cat >>confdefs.h <<\_ACEOF 14370#define HAVE_PTHREAD_RWLOCK_INIT 1 14371_ACEOF 14372 14373fi 14374 14375 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 14376echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 14377if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14378 echo $ECHO_N "(cached) $ECHO_C" >&6 14379else 14380 ac_func_search_save_LIBS=$LIBS 14381cat >conftest.$ac_ext <<_ACEOF 14382/* confdefs.h. */ 14383_ACEOF 14384cat confdefs.h >>conftest.$ac_ext 14385cat >>conftest.$ac_ext <<_ACEOF 14386/* end confdefs.h. */ 14387 14388/* Override any GCC internal prototype to avoid an error. 14389 Use char because int might match the return type of a GCC 14390 builtin and then its argument prototype would still apply. */ 14391#ifdef __cplusplus 14392extern "C" 14393#endif 14394char pthread_getspecific (); 14395int 14396main () 14397{ 14398return pthread_getspecific (); 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403for ac_lib in '' pthread; do 14404 if test -z "$ac_lib"; then 14405 ac_res="none required" 14406 else 14407 ac_res=-l$ac_lib 14408 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14409 fi 14410 rm -f conftest.$ac_objext conftest$ac_exeext 14411if { (ac_try="$ac_link" 14412case "(($ac_try" in 14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14414 *) ac_try_echo=$ac_try;; 14415esac 14416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14417 (eval "$ac_link") 2>conftest.er1 14418 ac_status=$? 14419 grep -v '^ *+' conftest.er1 >conftest.err 14420 rm -f conftest.er1 14421 cat conftest.err >&5 14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14423 (exit $ac_status); } && 14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14425 { (case "(($ac_try" in 14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14427 *) ac_try_echo=$ac_try;; 14428esac 14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14430 (eval "$ac_try") 2>&5 14431 ac_status=$? 14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14433 (exit $ac_status); }; } && 14434 { ac_try='test -s conftest$ac_exeext' 14435 { (case "(($ac_try" in 14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14437 *) ac_try_echo=$ac_try;; 14438esac 14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14440 (eval "$ac_try") 2>&5 14441 ac_status=$? 14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14443 (exit $ac_status); }; }; then 14444 ac_cv_search_pthread_getspecific=$ac_res 14445else 14446 echo "$as_me: failed program was:" >&5 14447sed 's/^/| /' conftest.$ac_ext >&5 14448 14449 14450fi 14451 14452rm -f core conftest.err conftest.$ac_objext \ 14453 conftest$ac_exeext 14454 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14455 break 14456fi 14457done 14458if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14459 : 14460else 14461 ac_cv_search_pthread_getspecific=no 14462fi 14463rm conftest.$ac_ext 14464LIBS=$ac_func_search_save_LIBS 14465fi 14466{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 14467echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 14468ac_res=$ac_cv_search_pthread_getspecific 14469if test "$ac_res" != no; then 14470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14471 14472cat >>confdefs.h <<\_ACEOF 14473#define HAVE_PTHREAD_GETSPECIFIC 1 14474_ACEOF 14475 14476fi 14477 14478fi 14479 14480 14481# Check whether --with-udis86 was given. 14482if test "${with_udis86+set}" = set; then 14483 withval=$with_udis86; 14484 USE_UDIS86=1 14485 14486 case "$withval" in 14487 /usr/lib|yes) ;; 14488 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 14489 esac 14490 14491{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 14492echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 14493if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 14494 echo $ECHO_N "(cached) $ECHO_C" >&6 14495else 14496 ac_check_lib_save_LIBS=$LIBS 14497LIBS="-ludis86 $LIBS" 14498cat >conftest.$ac_ext <<_ACEOF 14499/* confdefs.h. */ 14500_ACEOF 14501cat confdefs.h >>conftest.$ac_ext 14502cat >>conftest.$ac_ext <<_ACEOF 14503/* end confdefs.h. */ 14504 14505/* Override any GCC internal prototype to avoid an error. 14506 Use char because int might match the return type of a GCC 14507 builtin and then its argument prototype would still apply. */ 14508#ifdef __cplusplus 14509extern "C" 14510#endif 14511char ud_init (); 14512int 14513main () 14514{ 14515return ud_init (); 14516 ; 14517 return 0; 14518} 14519_ACEOF 14520rm -f conftest.$ac_objext conftest$ac_exeext 14521if { (ac_try="$ac_link" 14522case "(($ac_try" in 14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14524 *) ac_try_echo=$ac_try;; 14525esac 14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14527 (eval "$ac_link") 2>conftest.er1 14528 ac_status=$? 14529 grep -v '^ *+' conftest.er1 >conftest.err 14530 rm -f conftest.er1 14531 cat conftest.err >&5 14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14533 (exit $ac_status); } && 14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14535 { (case "(($ac_try" in 14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14537 *) ac_try_echo=$ac_try;; 14538esac 14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14540 (eval "$ac_try") 2>&5 14541 ac_status=$? 14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14543 (exit $ac_status); }; } && 14544 { ac_try='test -s conftest$ac_exeext' 14545 { (case "(($ac_try" in 14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14547 *) ac_try_echo=$ac_try;; 14548esac 14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14550 (eval "$ac_try") 2>&5 14551 ac_status=$? 14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14553 (exit $ac_status); }; }; then 14554 ac_cv_lib_udis86_ud_init=yes 14555else 14556 echo "$as_me: failed program was:" >&5 14557sed 's/^/| /' conftest.$ac_ext >&5 14558 14559 ac_cv_lib_udis86_ud_init=no 14560fi 14561 14562rm -f core conftest.err conftest.$ac_objext \ 14563 conftest$ac_exeext conftest.$ac_ext 14564LIBS=$ac_check_lib_save_LIBS 14565fi 14566{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 14567echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 14568if test $ac_cv_lib_udis86_ud_init = yes; then 14569 cat >>confdefs.h <<_ACEOF 14570#define HAVE_LIBUDIS86 1 14571_ACEOF 14572 14573 LIBS="-ludis86 $LIBS" 14574 14575else 14576 14577 echo "Error! You need to have libudis86 around." 14578 exit -1 14579 14580fi 14581 14582 14583else 14584 USE_UDIS86=0 14585 14586fi 14587 14588 14589cat >>confdefs.h <<_ACEOF 14590#define USE_UDIS86 $USE_UDIS86 14591_ACEOF 14592 14593 14594 14595# Check whether --with-oprofile was given. 14596if test "${with_oprofile+set}" = set; then 14597 withval=$with_oprofile; 14598 USE_OPROFILE=1 14599 14600 case "$withval" in 14601 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 14602 no) llvm_cv_oppath= 14603 USE_OPROFILE=0 14604 ;; 14605 *) llvm_cv_oppath="${withval}/lib/oprofile" 14606 CPPFLAGS="-I${withval}/include";; 14607 esac 14608 if test -n "$llvm_cv_oppath" ; then 14609 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 14610 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 14611echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 14612if test "${ac_cv_search_bfd_init+set}" = set; then 14613 echo $ECHO_N "(cached) $ECHO_C" >&6 14614else 14615 ac_func_search_save_LIBS=$LIBS 14616cat >conftest.$ac_ext <<_ACEOF 14617/* confdefs.h. */ 14618_ACEOF 14619cat confdefs.h >>conftest.$ac_ext 14620cat >>conftest.$ac_ext <<_ACEOF 14621/* end confdefs.h. */ 14622 14623/* Override any GCC internal prototype to avoid an error. 14624 Use char because int might match the return type of a GCC 14625 builtin and then its argument prototype would still apply. */ 14626#ifdef __cplusplus 14627extern "C" 14628#endif 14629char bfd_init (); 14630int 14631main () 14632{ 14633return bfd_init (); 14634 ; 14635 return 0; 14636} 14637_ACEOF 14638for ac_lib in '' bfd; do 14639 if test -z "$ac_lib"; then 14640 ac_res="none required" 14641 else 14642 ac_res=-l$ac_lib 14643 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14644 fi 14645 rm -f conftest.$ac_objext conftest$ac_exeext 14646if { (ac_try="$ac_link" 14647case "(($ac_try" in 14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14649 *) ac_try_echo=$ac_try;; 14650esac 14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14652 (eval "$ac_link") 2>conftest.er1 14653 ac_status=$? 14654 grep -v '^ *+' conftest.er1 >conftest.err 14655 rm -f conftest.er1 14656 cat conftest.err >&5 14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14658 (exit $ac_status); } && 14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14660 { (case "(($ac_try" in 14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14662 *) ac_try_echo=$ac_try;; 14663esac 14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14665 (eval "$ac_try") 2>&5 14666 ac_status=$? 14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14668 (exit $ac_status); }; } && 14669 { ac_try='test -s conftest$ac_exeext' 14670 { (case "(($ac_try" in 14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14672 *) ac_try_echo=$ac_try;; 14673esac 14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14675 (eval "$ac_try") 2>&5 14676 ac_status=$? 14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14678 (exit $ac_status); }; }; then 14679 ac_cv_search_bfd_init=$ac_res 14680else 14681 echo "$as_me: failed program was:" >&5 14682sed 's/^/| /' conftest.$ac_ext >&5 14683 14684 14685fi 14686 14687rm -f core conftest.err conftest.$ac_objext \ 14688 conftest$ac_exeext 14689 if test "${ac_cv_search_bfd_init+set}" = set; then 14690 break 14691fi 14692done 14693if test "${ac_cv_search_bfd_init+set}" = set; then 14694 : 14695else 14696 ac_cv_search_bfd_init=no 14697fi 14698rm conftest.$ac_ext 14699LIBS=$ac_func_search_save_LIBS 14700fi 14701{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 14702echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 14703ac_res=$ac_cv_search_bfd_init 14704if test "$ac_res" != no; then 14705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14706 14707fi 14708 14709 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 14710echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 14711if test "${ac_cv_search_op_open_agent+set}" = set; then 14712 echo $ECHO_N "(cached) $ECHO_C" >&6 14713else 14714 ac_func_search_save_LIBS=$LIBS 14715cat >conftest.$ac_ext <<_ACEOF 14716/* confdefs.h. */ 14717_ACEOF 14718cat confdefs.h >>conftest.$ac_ext 14719cat >>conftest.$ac_ext <<_ACEOF 14720/* end confdefs.h. */ 14721 14722/* Override any GCC internal prototype to avoid an error. 14723 Use char because int might match the return type of a GCC 14724 builtin and then its argument prototype would still apply. */ 14725#ifdef __cplusplus 14726extern "C" 14727#endif 14728char op_open_agent (); 14729int 14730main () 14731{ 14732return op_open_agent (); 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737for ac_lib in '' opagent; do 14738 if test -z "$ac_lib"; then 14739 ac_res="none required" 14740 else 14741 ac_res=-l$ac_lib 14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14743 fi 14744 rm -f conftest.$ac_objext conftest$ac_exeext 14745if { (ac_try="$ac_link" 14746case "(($ac_try" in 14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14748 *) ac_try_echo=$ac_try;; 14749esac 14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14751 (eval "$ac_link") 2>conftest.er1 14752 ac_status=$? 14753 grep -v '^ *+' conftest.er1 >conftest.err 14754 rm -f conftest.er1 14755 cat conftest.err >&5 14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14757 (exit $ac_status); } && 14758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14759 { (case "(($ac_try" in 14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14761 *) ac_try_echo=$ac_try;; 14762esac 14763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14764 (eval "$ac_try") 2>&5 14765 ac_status=$? 14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14767 (exit $ac_status); }; } && 14768 { ac_try='test -s conftest$ac_exeext' 14769 { (case "(($ac_try" in 14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14771 *) ac_try_echo=$ac_try;; 14772esac 14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14774 (eval "$ac_try") 2>&5 14775 ac_status=$? 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 (exit $ac_status); }; }; then 14778 ac_cv_search_op_open_agent=$ac_res 14779else 14780 echo "$as_me: failed program was:" >&5 14781sed 's/^/| /' conftest.$ac_ext >&5 14782 14783 14784fi 14785 14786rm -f core conftest.err conftest.$ac_objext \ 14787 conftest$ac_exeext 14788 if test "${ac_cv_search_op_open_agent+set}" = set; then 14789 break 14790fi 14791done 14792if test "${ac_cv_search_op_open_agent+set}" = set; then 14793 : 14794else 14795 ac_cv_search_op_open_agent=no 14796fi 14797rm conftest.$ac_ext 14798LIBS=$ac_func_search_save_LIBS 14799fi 14800{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 14801echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 14802ac_res=$ac_cv_search_op_open_agent 14803if test "$ac_res" != no; then 14804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14805 14806else 14807 14808 echo "Error! You need to have libopagent around." 14809 exit -1 14810 14811fi 14812 14813 if test "${ac_cv_header_opagent_h+set}" = set; then 14814 { echo "$as_me:$LINENO: checking for opagent.h" >&5 14815echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14816if test "${ac_cv_header_opagent_h+set}" = set; then 14817 echo $ECHO_N "(cached) $ECHO_C" >&6 14818fi 14819{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14820echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14821else 14822 # Is the header compilable? 14823{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 14824echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 14825cat >conftest.$ac_ext <<_ACEOF 14826/* confdefs.h. */ 14827_ACEOF 14828cat confdefs.h >>conftest.$ac_ext 14829cat >>conftest.$ac_ext <<_ACEOF 14830/* end confdefs.h. */ 14831$ac_includes_default 14832#include <opagent.h> 14833_ACEOF 14834rm -f conftest.$ac_objext 14835if { (ac_try="$ac_compile" 14836case "(($ac_try" in 14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14838 *) ac_try_echo=$ac_try;; 14839esac 14840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14841 (eval "$ac_compile") 2>conftest.er1 14842 ac_status=$? 14843 grep -v '^ *+' conftest.er1 >conftest.err 14844 rm -f conftest.er1 14845 cat conftest.err >&5 14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14847 (exit $ac_status); } && 14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14849 { (case "(($ac_try" in 14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14851 *) ac_try_echo=$ac_try;; 14852esac 14853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14854 (eval "$ac_try") 2>&5 14855 ac_status=$? 14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14857 (exit $ac_status); }; } && 14858 { ac_try='test -s conftest.$ac_objext' 14859 { (case "(($ac_try" in 14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14861 *) ac_try_echo=$ac_try;; 14862esac 14863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14864 (eval "$ac_try") 2>&5 14865 ac_status=$? 14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14867 (exit $ac_status); }; }; then 14868 ac_header_compiler=yes 14869else 14870 echo "$as_me: failed program was:" >&5 14871sed 's/^/| /' conftest.$ac_ext >&5 14872 14873 ac_header_compiler=no 14874fi 14875 14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14878echo "${ECHO_T}$ac_header_compiler" >&6; } 14879 14880# Is the header present? 14881{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 14882echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 14883cat >conftest.$ac_ext <<_ACEOF 14884/* confdefs.h. */ 14885_ACEOF 14886cat confdefs.h >>conftest.$ac_ext 14887cat >>conftest.$ac_ext <<_ACEOF 14888/* end confdefs.h. */ 14889#include <opagent.h> 14890_ACEOF 14891if { (ac_try="$ac_cpp conftest.$ac_ext" 14892case "(($ac_try" in 14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14894 *) ac_try_echo=$ac_try;; 14895esac 14896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14898 ac_status=$? 14899 grep -v '^ *+' conftest.er1 >conftest.err 14900 rm -f conftest.er1 14901 cat conftest.err >&5 14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14903 (exit $ac_status); } >/dev/null; then 14904 if test -s conftest.err; then 14905 ac_cpp_err=$ac_c_preproc_warn_flag 14906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14907 else 14908 ac_cpp_err= 14909 fi 14910else 14911 ac_cpp_err=yes 14912fi 14913if test -z "$ac_cpp_err"; then 14914 ac_header_preproc=yes 14915else 14916 echo "$as_me: failed program was:" >&5 14917sed 's/^/| /' conftest.$ac_ext >&5 14918 14919 ac_header_preproc=no 14920fi 14921 14922rm -f conftest.err conftest.$ac_ext 14923{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14924echo "${ECHO_T}$ac_header_preproc" >&6; } 14925 14926# So? What about this header? 14927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14928 yes:no: ) 14929 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14930echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14931 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14932echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14933 ac_header_preproc=yes 14934 ;; 14935 no:yes:* ) 14936 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14937echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14938 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14939echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14940 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14941echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14942 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14943echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14944 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14945echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14946 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14947echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14948 ( cat <<\_ASBOX 14949## ----------------------------------- ## 14950## Report this to llvmbugs@cs.uiuc.edu ## 14951## ----------------------------------- ## 14952_ASBOX 14953 ) | sed "s/^/$as_me: WARNING: /" >&2 14954 ;; 14955esac 14956{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14957echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14958if test "${ac_cv_header_opagent_h+set}" = set; then 14959 echo $ECHO_N "(cached) $ECHO_C" >&6 14960else 14961 ac_cv_header_opagent_h=$ac_header_preproc 14962fi 14963{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14964echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14965 14966fi 14967if test $ac_cv_header_opagent_h = yes; then 14968 : 14969else 14970 14971 echo "Error! You need to have opagent.h around." 14972 exit -1 14973 14974fi 14975 14976 14977 fi 14978 14979else 14980 14981 USE_OPROFILE=0 14982 14983 14984fi 14985 14986 14987cat >>confdefs.h <<_ACEOF 14988#define USE_OPROFILE $USE_OPROFILE 14989_ACEOF 14990 14991 14992 14993 14994 14995 14996 14997 14998ac_header_dirent=no 14999for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 15000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 15001{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 15002echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15004 echo $ECHO_N "(cached) $ECHO_C" >&6 15005else 15006 cat >conftest.$ac_ext <<_ACEOF 15007/* confdefs.h. */ 15008_ACEOF 15009cat confdefs.h >>conftest.$ac_ext 15010cat >>conftest.$ac_ext <<_ACEOF 15011/* end confdefs.h. */ 15012#include <sys/types.h> 15013#include <$ac_hdr> 15014 15015int 15016main () 15017{ 15018if ((DIR *) 0) 15019return 0; 15020 ; 15021 return 0; 15022} 15023_ACEOF 15024rm -f conftest.$ac_objext 15025if { (ac_try="$ac_compile" 15026case "(($ac_try" in 15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15028 *) ac_try_echo=$ac_try;; 15029esac 15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15031 (eval "$ac_compile") 2>conftest.er1 15032 ac_status=$? 15033 grep -v '^ *+' conftest.er1 >conftest.err 15034 rm -f conftest.er1 15035 cat conftest.err >&5 15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15037 (exit $ac_status); } && 15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15039 { (case "(($ac_try" in 15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15041 *) ac_try_echo=$ac_try;; 15042esac 15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15044 (eval "$ac_try") 2>&5 15045 ac_status=$? 15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15047 (exit $ac_status); }; } && 15048 { ac_try='test -s conftest.$ac_objext' 15049 { (case "(($ac_try" in 15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15051 *) ac_try_echo=$ac_try;; 15052esac 15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15054 (eval "$ac_try") 2>&5 15055 ac_status=$? 15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15057 (exit $ac_status); }; }; then 15058 eval "$as_ac_Header=yes" 15059else 15060 echo "$as_me: failed program was:" >&5 15061sed 's/^/| /' conftest.$ac_ext >&5 15062 15063 eval "$as_ac_Header=no" 15064fi 15065 15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15067fi 15068ac_res=`eval echo '${'$as_ac_Header'}'` 15069 { echo "$as_me:$LINENO: result: $ac_res" >&5 15070echo "${ECHO_T}$ac_res" >&6; } 15071if test `eval echo '${'$as_ac_Header'}'` = yes; then 15072 cat >>confdefs.h <<_ACEOF 15073#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 15074_ACEOF 15075 15076ac_header_dirent=$ac_hdr; break 15077fi 15078 15079done 15080# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15081if test $ac_header_dirent = dirent.h; then 15082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 15083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 15084if test "${ac_cv_search_opendir+set}" = set; then 15085 echo $ECHO_N "(cached) $ECHO_C" >&6 15086else 15087 ac_func_search_save_LIBS=$LIBS 15088cat >conftest.$ac_ext <<_ACEOF 15089/* confdefs.h. */ 15090_ACEOF 15091cat confdefs.h >>conftest.$ac_ext 15092cat >>conftest.$ac_ext <<_ACEOF 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098#ifdef __cplusplus 15099extern "C" 15100#endif 15101char opendir (); 15102int 15103main () 15104{ 15105return opendir (); 15106 ; 15107 return 0; 15108} 15109_ACEOF 15110for ac_lib in '' dir; do 15111 if test -z "$ac_lib"; then 15112 ac_res="none required" 15113 else 15114 ac_res=-l$ac_lib 15115 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15116 fi 15117 rm -f conftest.$ac_objext conftest$ac_exeext 15118if { (ac_try="$ac_link" 15119case "(($ac_try" in 15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15121 *) ac_try_echo=$ac_try;; 15122esac 15123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15124 (eval "$ac_link") 2>conftest.er1 15125 ac_status=$? 15126 grep -v '^ *+' conftest.er1 >conftest.err 15127 rm -f conftest.er1 15128 cat conftest.err >&5 15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15130 (exit $ac_status); } && 15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15132 { (case "(($ac_try" in 15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15134 *) ac_try_echo=$ac_try;; 15135esac 15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15137 (eval "$ac_try") 2>&5 15138 ac_status=$? 15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15140 (exit $ac_status); }; } && 15141 { ac_try='test -s conftest$ac_exeext' 15142 { (case "(($ac_try" in 15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15144 *) ac_try_echo=$ac_try;; 15145esac 15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15147 (eval "$ac_try") 2>&5 15148 ac_status=$? 15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15150 (exit $ac_status); }; }; then 15151 ac_cv_search_opendir=$ac_res 15152else 15153 echo "$as_me: failed program was:" >&5 15154sed 's/^/| /' conftest.$ac_ext >&5 15155 15156 15157fi 15158 15159rm -f core conftest.err conftest.$ac_objext \ 15160 conftest$ac_exeext 15161 if test "${ac_cv_search_opendir+set}" = set; then 15162 break 15163fi 15164done 15165if test "${ac_cv_search_opendir+set}" = set; then 15166 : 15167else 15168 ac_cv_search_opendir=no 15169fi 15170rm conftest.$ac_ext 15171LIBS=$ac_func_search_save_LIBS 15172fi 15173{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15174echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15175ac_res=$ac_cv_search_opendir 15176if test "$ac_res" != no; then 15177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15178 15179fi 15180 15181else 15182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 15183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 15184if test "${ac_cv_search_opendir+set}" = set; then 15185 echo $ECHO_N "(cached) $ECHO_C" >&6 15186else 15187 ac_func_search_save_LIBS=$LIBS 15188cat >conftest.$ac_ext <<_ACEOF 15189/* confdefs.h. */ 15190_ACEOF 15191cat confdefs.h >>conftest.$ac_ext 15192cat >>conftest.$ac_ext <<_ACEOF 15193/* end confdefs.h. */ 15194 15195/* Override any GCC internal prototype to avoid an error. 15196 Use char because int might match the return type of a GCC 15197 builtin and then its argument prototype would still apply. */ 15198#ifdef __cplusplus 15199extern "C" 15200#endif 15201char opendir (); 15202int 15203main () 15204{ 15205return opendir (); 15206 ; 15207 return 0; 15208} 15209_ACEOF 15210for ac_lib in '' x; do 15211 if test -z "$ac_lib"; then 15212 ac_res="none required" 15213 else 15214 ac_res=-l$ac_lib 15215 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15216 fi 15217 rm -f conftest.$ac_objext conftest$ac_exeext 15218if { (ac_try="$ac_link" 15219case "(($ac_try" in 15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15221 *) ac_try_echo=$ac_try;; 15222esac 15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15224 (eval "$ac_link") 2>conftest.er1 15225 ac_status=$? 15226 grep -v '^ *+' conftest.er1 >conftest.err 15227 rm -f conftest.er1 15228 cat conftest.err >&5 15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 (exit $ac_status); } && 15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15232 { (case "(($ac_try" in 15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15234 *) ac_try_echo=$ac_try;; 15235esac 15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15237 (eval "$ac_try") 2>&5 15238 ac_status=$? 15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15240 (exit $ac_status); }; } && 15241 { ac_try='test -s conftest$ac_exeext' 15242 { (case "(($ac_try" in 15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15244 *) ac_try_echo=$ac_try;; 15245esac 15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15247 (eval "$ac_try") 2>&5 15248 ac_status=$? 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); }; }; then 15251 ac_cv_search_opendir=$ac_res 15252else 15253 echo "$as_me: failed program was:" >&5 15254sed 's/^/| /' conftest.$ac_ext >&5 15255 15256 15257fi 15258 15259rm -f core conftest.err conftest.$ac_objext \ 15260 conftest$ac_exeext 15261 if test "${ac_cv_search_opendir+set}" = set; then 15262 break 15263fi 15264done 15265if test "${ac_cv_search_opendir+set}" = set; then 15266 : 15267else 15268 ac_cv_search_opendir=no 15269fi 15270rm conftest.$ac_ext 15271LIBS=$ac_func_search_save_LIBS 15272fi 15273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15274echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15275ac_res=$ac_cv_search_opendir 15276if test "$ac_res" != no; then 15277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15278 15279fi 15280 15281fi 15282 15283{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 15284echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 15285if test "${ac_cv_header_mmap_anon+set}" = set; then 15286 echo $ECHO_N "(cached) $ECHO_C" >&6 15287else 15288 ac_ext=c 15289ac_cpp='$CPP $CPPFLAGS' 15290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15292ac_compiler_gnu=$ac_cv_c_compiler_gnu 15293 15294 cat >conftest.$ac_ext <<_ACEOF 15295/* confdefs.h. */ 15296_ACEOF 15297cat confdefs.h >>conftest.$ac_ext 15298cat >>conftest.$ac_ext <<_ACEOF 15299/* end confdefs.h. */ 15300#include <sys/mman.h> 15301#include <unistd.h> 15302#include <fcntl.h> 15303int 15304main () 15305{ 15306mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 15307 ; 15308 return 0; 15309} 15310_ACEOF 15311rm -f conftest.$ac_objext 15312if { (ac_try="$ac_compile" 15313case "(($ac_try" in 15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15315 *) ac_try_echo=$ac_try;; 15316esac 15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15318 (eval "$ac_compile") 2>conftest.er1 15319 ac_status=$? 15320 grep -v '^ *+' conftest.er1 >conftest.err 15321 rm -f conftest.er1 15322 cat conftest.err >&5 15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15324 (exit $ac_status); } && 15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15326 { (case "(($ac_try" in 15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15328 *) ac_try_echo=$ac_try;; 15329esac 15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15331 (eval "$ac_try") 2>&5 15332 ac_status=$? 15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15334 (exit $ac_status); }; } && 15335 { ac_try='test -s conftest.$ac_objext' 15336 { (case "(($ac_try" in 15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15338 *) ac_try_echo=$ac_try;; 15339esac 15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15341 (eval "$ac_try") 2>&5 15342 ac_status=$? 15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15344 (exit $ac_status); }; }; then 15345 ac_cv_header_mmap_anon=yes 15346else 15347 echo "$as_me: failed program was:" >&5 15348sed 's/^/| /' conftest.$ac_ext >&5 15349 15350 ac_cv_header_mmap_anon=no 15351fi 15352 15353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15354 ac_ext=c 15355ac_cpp='$CPP $CPPFLAGS' 15356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15358ac_compiler_gnu=$ac_cv_c_compiler_gnu 15359 15360 15361fi 15362{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 15363echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 15364if test "$ac_cv_header_mmap_anon" = yes; then 15365 15366cat >>confdefs.h <<\_ACEOF 15367#define HAVE_MMAP_ANONYMOUS 1 15368_ACEOF 15369 15370fi 15371 15372{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 15373echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 15374if test "${ac_cv_header_stat_broken+set}" = set; then 15375 echo $ECHO_N "(cached) $ECHO_C" >&6 15376else 15377 cat >conftest.$ac_ext <<_ACEOF 15378/* confdefs.h. */ 15379_ACEOF 15380cat confdefs.h >>conftest.$ac_ext 15381cat >>conftest.$ac_ext <<_ACEOF 15382/* end confdefs.h. */ 15383#include <sys/types.h> 15384#include <sys/stat.h> 15385 15386#if defined S_ISBLK && defined S_IFDIR 15387# if S_ISBLK (S_IFDIR) 15388You lose. 15389# endif 15390#endif 15391 15392#if defined S_ISBLK && defined S_IFCHR 15393# if S_ISBLK (S_IFCHR) 15394You lose. 15395# endif 15396#endif 15397 15398#if defined S_ISLNK && defined S_IFREG 15399# if S_ISLNK (S_IFREG) 15400You lose. 15401# endif 15402#endif 15403 15404#if defined S_ISSOCK && defined S_IFREG 15405# if S_ISSOCK (S_IFREG) 15406You lose. 15407# endif 15408#endif 15409 15410_ACEOF 15411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15412 $EGREP "You lose" >/dev/null 2>&1; then 15413 ac_cv_header_stat_broken=yes 15414else 15415 ac_cv_header_stat_broken=no 15416fi 15417rm -f conftest* 15418 15419fi 15420{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 15421echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 15422if test $ac_cv_header_stat_broken = yes; then 15423 15424cat >>confdefs.h <<\_ACEOF 15425#define STAT_MACROS_BROKEN 1 15426_ACEOF 15427 15428fi 15429 15430{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15431echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 15432if test "${ac_cv_header_stdc+set}" = set; then 15433 echo $ECHO_N "(cached) $ECHO_C" >&6 15434else 15435 cat >conftest.$ac_ext <<_ACEOF 15436/* confdefs.h. */ 15437_ACEOF 15438cat confdefs.h >>conftest.$ac_ext 15439cat >>conftest.$ac_ext <<_ACEOF 15440/* end confdefs.h. */ 15441#include <stdlib.h> 15442#include <stdarg.h> 15443#include <string.h> 15444#include <float.h> 15445 15446int 15447main () 15448{ 15449 15450 ; 15451 return 0; 15452} 15453_ACEOF 15454rm -f conftest.$ac_objext 15455if { (ac_try="$ac_compile" 15456case "(($ac_try" in 15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15458 *) ac_try_echo=$ac_try;; 15459esac 15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15461 (eval "$ac_compile") 2>conftest.er1 15462 ac_status=$? 15463 grep -v '^ *+' conftest.er1 >conftest.err 15464 rm -f conftest.er1 15465 cat conftest.err >&5 15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15467 (exit $ac_status); } && 15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15469 { (case "(($ac_try" in 15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15471 *) ac_try_echo=$ac_try;; 15472esac 15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15474 (eval "$ac_try") 2>&5 15475 ac_status=$? 15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15477 (exit $ac_status); }; } && 15478 { ac_try='test -s conftest.$ac_objext' 15479 { (case "(($ac_try" in 15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15481 *) ac_try_echo=$ac_try;; 15482esac 15483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15484 (eval "$ac_try") 2>&5 15485 ac_status=$? 15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15487 (exit $ac_status); }; }; then 15488 ac_cv_header_stdc=yes 15489else 15490 echo "$as_me: failed program was:" >&5 15491sed 's/^/| /' conftest.$ac_ext >&5 15492 15493 ac_cv_header_stdc=no 15494fi 15495 15496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15497 15498if test $ac_cv_header_stdc = yes; then 15499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15500 cat >conftest.$ac_ext <<_ACEOF 15501/* confdefs.h. */ 15502_ACEOF 15503cat confdefs.h >>conftest.$ac_ext 15504cat >>conftest.$ac_ext <<_ACEOF 15505/* end confdefs.h. */ 15506#include <string.h> 15507 15508_ACEOF 15509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15510 $EGREP "memchr" >/dev/null 2>&1; then 15511 : 15512else 15513 ac_cv_header_stdc=no 15514fi 15515rm -f conftest* 15516 15517fi 15518 15519if test $ac_cv_header_stdc = yes; then 15520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15521 cat >conftest.$ac_ext <<_ACEOF 15522/* confdefs.h. */ 15523_ACEOF 15524cat confdefs.h >>conftest.$ac_ext 15525cat >>conftest.$ac_ext <<_ACEOF 15526/* end confdefs.h. */ 15527#include <stdlib.h> 15528 15529_ACEOF 15530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15531 $EGREP "free" >/dev/null 2>&1; then 15532 : 15533else 15534 ac_cv_header_stdc=no 15535fi 15536rm -f conftest* 15537 15538fi 15539 15540if test $ac_cv_header_stdc = yes; then 15541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15542 if test "$cross_compiling" = yes; then 15543 : 15544else 15545 cat >conftest.$ac_ext <<_ACEOF 15546/* confdefs.h. */ 15547_ACEOF 15548cat confdefs.h >>conftest.$ac_ext 15549cat >>conftest.$ac_ext <<_ACEOF 15550/* end confdefs.h. */ 15551#include <ctype.h> 15552#include <stdlib.h> 15553#if ((' ' & 0x0FF) == 0x020) 15554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15556#else 15557# define ISLOWER(c) \ 15558 (('a' <= (c) && (c) <= 'i') \ 15559 || ('j' <= (c) && (c) <= 'r') \ 15560 || ('s' <= (c) && (c) <= 'z')) 15561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15562#endif 15563 15564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15565int 15566main () 15567{ 15568 int i; 15569 for (i = 0; i < 256; i++) 15570 if (XOR (islower (i), ISLOWER (i)) 15571 || toupper (i) != TOUPPER (i)) 15572 return 2; 15573 return 0; 15574} 15575_ACEOF 15576rm -f conftest$ac_exeext 15577if { (ac_try="$ac_link" 15578case "(($ac_try" in 15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15580 *) ac_try_echo=$ac_try;; 15581esac 15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15583 (eval "$ac_link") 2>&5 15584 ac_status=$? 15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15587 { (case "(($ac_try" in 15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15589 *) ac_try_echo=$ac_try;; 15590esac 15591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15592 (eval "$ac_try") 2>&5 15593 ac_status=$? 15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15595 (exit $ac_status); }; }; then 15596 : 15597else 15598 echo "$as_me: program exited with status $ac_status" >&5 15599echo "$as_me: failed program was:" >&5 15600sed 's/^/| /' conftest.$ac_ext >&5 15601 15602( exit $ac_status ) 15603ac_cv_header_stdc=no 15604fi 15605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15606fi 15607 15608 15609fi 15610fi 15611{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15612echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15613if test $ac_cv_header_stdc = yes; then 15614 15615cat >>confdefs.h <<\_ACEOF 15616#define STDC_HEADERS 1 15617_ACEOF 15618 15619fi 15620 15621{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 15622echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 15623if test "${ac_cv_header_sys_wait_h+set}" = set; then 15624 echo $ECHO_N "(cached) $ECHO_C" >&6 15625else 15626 cat >conftest.$ac_ext <<_ACEOF 15627/* confdefs.h. */ 15628_ACEOF 15629cat confdefs.h >>conftest.$ac_ext 15630cat >>conftest.$ac_ext <<_ACEOF 15631/* end confdefs.h. */ 15632#include <sys/types.h> 15633#include <sys/wait.h> 15634#ifndef WEXITSTATUS 15635# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15636#endif 15637#ifndef WIFEXITED 15638# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15639#endif 15640 15641int 15642main () 15643{ 15644 int s; 15645 wait (&s); 15646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15647 ; 15648 return 0; 15649} 15650_ACEOF 15651rm -f conftest.$ac_objext 15652if { (ac_try="$ac_compile" 15653case "(($ac_try" in 15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15655 *) ac_try_echo=$ac_try;; 15656esac 15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15658 (eval "$ac_compile") 2>conftest.er1 15659 ac_status=$? 15660 grep -v '^ *+' conftest.er1 >conftest.err 15661 rm -f conftest.er1 15662 cat conftest.err >&5 15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15664 (exit $ac_status); } && 15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15666 { (case "(($ac_try" in 15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15668 *) ac_try_echo=$ac_try;; 15669esac 15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15671 (eval "$ac_try") 2>&5 15672 ac_status=$? 15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15674 (exit $ac_status); }; } && 15675 { ac_try='test -s conftest.$ac_objext' 15676 { (case "(($ac_try" in 15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15678 *) ac_try_echo=$ac_try;; 15679esac 15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15681 (eval "$ac_try") 2>&5 15682 ac_status=$? 15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15684 (exit $ac_status); }; }; then 15685 ac_cv_header_sys_wait_h=yes 15686else 15687 echo "$as_me: failed program was:" >&5 15688sed 's/^/| /' conftest.$ac_ext >&5 15689 15690 ac_cv_header_sys_wait_h=no 15691fi 15692 15693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15694fi 15695{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 15696echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 15697if test $ac_cv_header_sys_wait_h = yes; then 15698 15699cat >>confdefs.h <<\_ACEOF 15700#define HAVE_SYS_WAIT_H 1 15701_ACEOF 15702 15703fi 15704 15705{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15706echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 15707if test "${ac_cv_header_time+set}" = set; then 15708 echo $ECHO_N "(cached) $ECHO_C" >&6 15709else 15710 cat >conftest.$ac_ext <<_ACEOF 15711/* confdefs.h. */ 15712_ACEOF 15713cat confdefs.h >>conftest.$ac_ext 15714cat >>conftest.$ac_ext <<_ACEOF 15715/* end confdefs.h. */ 15716#include <sys/types.h> 15717#include <sys/time.h> 15718#include <time.h> 15719 15720int 15721main () 15722{ 15723if ((struct tm *) 0) 15724return 0; 15725 ; 15726 return 0; 15727} 15728_ACEOF 15729rm -f conftest.$ac_objext 15730if { (ac_try="$ac_compile" 15731case "(($ac_try" in 15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15733 *) ac_try_echo=$ac_try;; 15734esac 15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15736 (eval "$ac_compile") 2>conftest.er1 15737 ac_status=$? 15738 grep -v '^ *+' conftest.er1 >conftest.err 15739 rm -f conftest.er1 15740 cat conftest.err >&5 15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 (exit $ac_status); } && 15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15744 { (case "(($ac_try" in 15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15746 *) ac_try_echo=$ac_try;; 15747esac 15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15749 (eval "$ac_try") 2>&5 15750 ac_status=$? 15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15752 (exit $ac_status); }; } && 15753 { ac_try='test -s conftest.$ac_objext' 15754 { (case "(($ac_try" in 15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15756 *) ac_try_echo=$ac_try;; 15757esac 15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15759 (eval "$ac_try") 2>&5 15760 ac_status=$? 15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15762 (exit $ac_status); }; }; then 15763 ac_cv_header_time=yes 15764else 15765 echo "$as_me: failed program was:" >&5 15766sed 's/^/| /' conftest.$ac_ext >&5 15767 15768 ac_cv_header_time=no 15769fi 15770 15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15772fi 15773{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15774echo "${ECHO_T}$ac_cv_header_time" >&6; } 15775if test $ac_cv_header_time = yes; then 15776 15777cat >>confdefs.h <<\_ACEOF 15778#define TIME_WITH_SYS_TIME 1 15779_ACEOF 15780 15781fi 15782 15783 15784 15785 15786 15787 15788 15789 15790for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15791do 15792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15794 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15797 echo $ECHO_N "(cached) $ECHO_C" >&6 15798fi 15799ac_res=`eval echo '${'$as_ac_Header'}'` 15800 { echo "$as_me:$LINENO: result: $ac_res" >&5 15801echo "${ECHO_T}$ac_res" >&6; } 15802else 15803 # Is the header compilable? 15804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15806cat >conftest.$ac_ext <<_ACEOF 15807/* confdefs.h. */ 15808_ACEOF 15809cat confdefs.h >>conftest.$ac_ext 15810cat >>conftest.$ac_ext <<_ACEOF 15811/* end confdefs.h. */ 15812$ac_includes_default 15813#include <$ac_header> 15814_ACEOF 15815rm -f conftest.$ac_objext 15816if { (ac_try="$ac_compile" 15817case "(($ac_try" in 15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15819 *) ac_try_echo=$ac_try;; 15820esac 15821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15822 (eval "$ac_compile") 2>conftest.er1 15823 ac_status=$? 15824 grep -v '^ *+' conftest.er1 >conftest.err 15825 rm -f conftest.er1 15826 cat conftest.err >&5 15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15828 (exit $ac_status); } && 15829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15830 { (case "(($ac_try" in 15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15832 *) ac_try_echo=$ac_try;; 15833esac 15834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15835 (eval "$ac_try") 2>&5 15836 ac_status=$? 15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15838 (exit $ac_status); }; } && 15839 { ac_try='test -s conftest.$ac_objext' 15840 { (case "(($ac_try" in 15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15842 *) ac_try_echo=$ac_try;; 15843esac 15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15845 (eval "$ac_try") 2>&5 15846 ac_status=$? 15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15848 (exit $ac_status); }; }; then 15849 ac_header_compiler=yes 15850else 15851 echo "$as_me: failed program was:" >&5 15852sed 's/^/| /' conftest.$ac_ext >&5 15853 15854 ac_header_compiler=no 15855fi 15856 15857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15859echo "${ECHO_T}$ac_header_compiler" >&6; } 15860 15861# Is the header present? 15862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15864cat >conftest.$ac_ext <<_ACEOF 15865/* confdefs.h. */ 15866_ACEOF 15867cat confdefs.h >>conftest.$ac_ext 15868cat >>conftest.$ac_ext <<_ACEOF 15869/* end confdefs.h. */ 15870#include <$ac_header> 15871_ACEOF 15872if { (ac_try="$ac_cpp conftest.$ac_ext" 15873case "(($ac_try" in 15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15875 *) ac_try_echo=$ac_try;; 15876esac 15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15879 ac_status=$? 15880 grep -v '^ *+' conftest.er1 >conftest.err 15881 rm -f conftest.er1 15882 cat conftest.err >&5 15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15884 (exit $ac_status); } >/dev/null; then 15885 if test -s conftest.err; then 15886 ac_cpp_err=$ac_c_preproc_warn_flag 15887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15888 else 15889 ac_cpp_err= 15890 fi 15891else 15892 ac_cpp_err=yes 15893fi 15894if test -z "$ac_cpp_err"; then 15895 ac_header_preproc=yes 15896else 15897 echo "$as_me: failed program was:" >&5 15898sed 's/^/| /' conftest.$ac_ext >&5 15899 15900 ac_header_preproc=no 15901fi 15902 15903rm -f conftest.err conftest.$ac_ext 15904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15905echo "${ECHO_T}$ac_header_preproc" >&6; } 15906 15907# So? What about this header? 15908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15909 yes:no: ) 15910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15914 ac_header_preproc=yes 15915 ;; 15916 no:yes:* ) 15917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15929 ( cat <<\_ASBOX 15930## ----------------------------------- ## 15931## Report this to llvmbugs@cs.uiuc.edu ## 15932## ----------------------------------- ## 15933_ASBOX 15934 ) | sed "s/^/$as_me: WARNING: /" >&2 15935 ;; 15936esac 15937{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15940 echo $ECHO_N "(cached) $ECHO_C" >&6 15941else 15942 eval "$as_ac_Header=\$ac_header_preproc" 15943fi 15944ac_res=`eval echo '${'$as_ac_Header'}'` 15945 { echo "$as_me:$LINENO: result: $ac_res" >&5 15946echo "${ECHO_T}$ac_res" >&6; } 15947 15948fi 15949if test `eval echo '${'$as_ac_Header'}'` = yes; then 15950 cat >>confdefs.h <<_ACEOF 15951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15952_ACEOF 15953 15954fi 15955 15956done 15957 15958 15959 15960 15961 15962 15963 15964for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15965do 15966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15968 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15971 echo $ECHO_N "(cached) $ECHO_C" >&6 15972fi 15973ac_res=`eval echo '${'$as_ac_Header'}'` 15974 { echo "$as_me:$LINENO: result: $ac_res" >&5 15975echo "${ECHO_T}$ac_res" >&6; } 15976else 15977 # Is the header compilable? 15978{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15980cat >conftest.$ac_ext <<_ACEOF 15981/* confdefs.h. */ 15982_ACEOF 15983cat confdefs.h >>conftest.$ac_ext 15984cat >>conftest.$ac_ext <<_ACEOF 15985/* end confdefs.h. */ 15986$ac_includes_default 15987#include <$ac_header> 15988_ACEOF 15989rm -f conftest.$ac_objext 15990if { (ac_try="$ac_compile" 15991case "(($ac_try" in 15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15993 *) ac_try_echo=$ac_try;; 15994esac 15995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15996 (eval "$ac_compile") 2>conftest.er1 15997 ac_status=$? 15998 grep -v '^ *+' conftest.er1 >conftest.err 15999 rm -f conftest.er1 16000 cat conftest.err >&5 16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16002 (exit $ac_status); } && 16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16004 { (case "(($ac_try" in 16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16006 *) ac_try_echo=$ac_try;; 16007esac 16008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16009 (eval "$ac_try") 2>&5 16010 ac_status=$? 16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16012 (exit $ac_status); }; } && 16013 { ac_try='test -s conftest.$ac_objext' 16014 { (case "(($ac_try" in 16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16016 *) ac_try_echo=$ac_try;; 16017esac 16018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16019 (eval "$ac_try") 2>&5 16020 ac_status=$? 16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16022 (exit $ac_status); }; }; then 16023 ac_header_compiler=yes 16024else 16025 echo "$as_me: failed program was:" >&5 16026sed 's/^/| /' conftest.$ac_ext >&5 16027 16028 ac_header_compiler=no 16029fi 16030 16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16033echo "${ECHO_T}$ac_header_compiler" >&6; } 16034 16035# Is the header present? 16036{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16038cat >conftest.$ac_ext <<_ACEOF 16039/* confdefs.h. */ 16040_ACEOF 16041cat confdefs.h >>conftest.$ac_ext 16042cat >>conftest.$ac_ext <<_ACEOF 16043/* end confdefs.h. */ 16044#include <$ac_header> 16045_ACEOF 16046if { (ac_try="$ac_cpp conftest.$ac_ext" 16047case "(($ac_try" in 16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16049 *) ac_try_echo=$ac_try;; 16050esac 16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16053 ac_status=$? 16054 grep -v '^ *+' conftest.er1 >conftest.err 16055 rm -f conftest.er1 16056 cat conftest.err >&5 16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16058 (exit $ac_status); } >/dev/null; then 16059 if test -s conftest.err; then 16060 ac_cpp_err=$ac_c_preproc_warn_flag 16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16062 else 16063 ac_cpp_err= 16064 fi 16065else 16066 ac_cpp_err=yes 16067fi 16068if test -z "$ac_cpp_err"; then 16069 ac_header_preproc=yes 16070else 16071 echo "$as_me: failed program was:" >&5 16072sed 's/^/| /' conftest.$ac_ext >&5 16073 16074 ac_header_preproc=no 16075fi 16076 16077rm -f conftest.err conftest.$ac_ext 16078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16079echo "${ECHO_T}$ac_header_preproc" >&6; } 16080 16081# So? What about this header? 16082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16083 yes:no: ) 16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16088 ac_header_preproc=yes 16089 ;; 16090 no:yes:* ) 16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16103 ( cat <<\_ASBOX 16104## ----------------------------------- ## 16105## Report this to llvmbugs@cs.uiuc.edu ## 16106## ----------------------------------- ## 16107_ASBOX 16108 ) | sed "s/^/$as_me: WARNING: /" >&2 16109 ;; 16110esac 16111{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16114 echo $ECHO_N "(cached) $ECHO_C" >&6 16115else 16116 eval "$as_ac_Header=\$ac_header_preproc" 16117fi 16118ac_res=`eval echo '${'$as_ac_Header'}'` 16119 { echo "$as_me:$LINENO: result: $ac_res" >&5 16120echo "${ECHO_T}$ac_res" >&6; } 16121 16122fi 16123if test `eval echo '${'$as_ac_Header'}'` = yes; then 16124 cat >>confdefs.h <<_ACEOF 16125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16126_ACEOF 16127 16128fi 16129 16130done 16131 16132 16133 16134for ac_header in utime.h windows.h 16135do 16136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16141 echo $ECHO_N "(cached) $ECHO_C" >&6 16142fi 16143ac_res=`eval echo '${'$as_ac_Header'}'` 16144 { echo "$as_me:$LINENO: result: $ac_res" >&5 16145echo "${ECHO_T}$ac_res" >&6; } 16146else 16147 # Is the header compilable? 16148{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16150cat >conftest.$ac_ext <<_ACEOF 16151/* confdefs.h. */ 16152_ACEOF 16153cat confdefs.h >>conftest.$ac_ext 16154cat >>conftest.$ac_ext <<_ACEOF 16155/* end confdefs.h. */ 16156$ac_includes_default 16157#include <$ac_header> 16158_ACEOF 16159rm -f conftest.$ac_objext 16160if { (ac_try="$ac_compile" 16161case "(($ac_try" in 16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16163 *) ac_try_echo=$ac_try;; 16164esac 16165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16166 (eval "$ac_compile") 2>conftest.er1 16167 ac_status=$? 16168 grep -v '^ *+' conftest.er1 >conftest.err 16169 rm -f conftest.er1 16170 cat conftest.err >&5 16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16172 (exit $ac_status); } && 16173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16174 { (case "(($ac_try" in 16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16176 *) ac_try_echo=$ac_try;; 16177esac 16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16179 (eval "$ac_try") 2>&5 16180 ac_status=$? 16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16182 (exit $ac_status); }; } && 16183 { ac_try='test -s conftest.$ac_objext' 16184 { (case "(($ac_try" in 16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16186 *) ac_try_echo=$ac_try;; 16187esac 16188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16189 (eval "$ac_try") 2>&5 16190 ac_status=$? 16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16192 (exit $ac_status); }; }; then 16193 ac_header_compiler=yes 16194else 16195 echo "$as_me: failed program was:" >&5 16196sed 's/^/| /' conftest.$ac_ext >&5 16197 16198 ac_header_compiler=no 16199fi 16200 16201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16203echo "${ECHO_T}$ac_header_compiler" >&6; } 16204 16205# Is the header present? 16206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16208cat >conftest.$ac_ext <<_ACEOF 16209/* confdefs.h. */ 16210_ACEOF 16211cat confdefs.h >>conftest.$ac_ext 16212cat >>conftest.$ac_ext <<_ACEOF 16213/* end confdefs.h. */ 16214#include <$ac_header> 16215_ACEOF 16216if { (ac_try="$ac_cpp conftest.$ac_ext" 16217case "(($ac_try" in 16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16219 *) ac_try_echo=$ac_try;; 16220esac 16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16223 ac_status=$? 16224 grep -v '^ *+' conftest.er1 >conftest.err 16225 rm -f conftest.er1 16226 cat conftest.err >&5 16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16228 (exit $ac_status); } >/dev/null; then 16229 if test -s conftest.err; then 16230 ac_cpp_err=$ac_c_preproc_warn_flag 16231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16232 else 16233 ac_cpp_err= 16234 fi 16235else 16236 ac_cpp_err=yes 16237fi 16238if test -z "$ac_cpp_err"; then 16239 ac_header_preproc=yes 16240else 16241 echo "$as_me: failed program was:" >&5 16242sed 's/^/| /' conftest.$ac_ext >&5 16243 16244 ac_header_preproc=no 16245fi 16246 16247rm -f conftest.err conftest.$ac_ext 16248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16249echo "${ECHO_T}$ac_header_preproc" >&6; } 16250 16251# So? What about this header? 16252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16253 yes:no: ) 16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16258 ac_header_preproc=yes 16259 ;; 16260 no:yes:* ) 16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16273 ( cat <<\_ASBOX 16274## ----------------------------------- ## 16275## Report this to llvmbugs@cs.uiuc.edu ## 16276## ----------------------------------- ## 16277_ASBOX 16278 ) | sed "s/^/$as_me: WARNING: /" >&2 16279 ;; 16280esac 16281{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16284 echo $ECHO_N "(cached) $ECHO_C" >&6 16285else 16286 eval "$as_ac_Header=\$ac_header_preproc" 16287fi 16288ac_res=`eval echo '${'$as_ac_Header'}'` 16289 { echo "$as_me:$LINENO: result: $ac_res" >&5 16290echo "${ECHO_T}$ac_res" >&6; } 16291 16292fi 16293if test `eval echo '${'$as_ac_Header'}'` = yes; then 16294 cat >>confdefs.h <<_ACEOF 16295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16296_ACEOF 16297 16298fi 16299 16300done 16301 16302 16303 16304 16305 16306 16307for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 16308do 16309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16311 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16314 echo $ECHO_N "(cached) $ECHO_C" >&6 16315fi 16316ac_res=`eval echo '${'$as_ac_Header'}'` 16317 { echo "$as_me:$LINENO: result: $ac_res" >&5 16318echo "${ECHO_T}$ac_res" >&6; } 16319else 16320 # Is the header compilable? 16321{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16323cat >conftest.$ac_ext <<_ACEOF 16324/* confdefs.h. */ 16325_ACEOF 16326cat confdefs.h >>conftest.$ac_ext 16327cat >>conftest.$ac_ext <<_ACEOF 16328/* end confdefs.h. */ 16329$ac_includes_default 16330#include <$ac_header> 16331_ACEOF 16332rm -f conftest.$ac_objext 16333if { (ac_try="$ac_compile" 16334case "(($ac_try" in 16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16336 *) ac_try_echo=$ac_try;; 16337esac 16338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16339 (eval "$ac_compile") 2>conftest.er1 16340 ac_status=$? 16341 grep -v '^ *+' conftest.er1 >conftest.err 16342 rm -f conftest.er1 16343 cat conftest.err >&5 16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16345 (exit $ac_status); } && 16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16347 { (case "(($ac_try" in 16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16349 *) ac_try_echo=$ac_try;; 16350esac 16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16352 (eval "$ac_try") 2>&5 16353 ac_status=$? 16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16355 (exit $ac_status); }; } && 16356 { ac_try='test -s conftest.$ac_objext' 16357 { (case "(($ac_try" in 16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16359 *) ac_try_echo=$ac_try;; 16360esac 16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16362 (eval "$ac_try") 2>&5 16363 ac_status=$? 16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16365 (exit $ac_status); }; }; then 16366 ac_header_compiler=yes 16367else 16368 echo "$as_me: failed program was:" >&5 16369sed 's/^/| /' conftest.$ac_ext >&5 16370 16371 ac_header_compiler=no 16372fi 16373 16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16376echo "${ECHO_T}$ac_header_compiler" >&6; } 16377 16378# Is the header present? 16379{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16381cat >conftest.$ac_ext <<_ACEOF 16382/* confdefs.h. */ 16383_ACEOF 16384cat confdefs.h >>conftest.$ac_ext 16385cat >>conftest.$ac_ext <<_ACEOF 16386/* end confdefs.h. */ 16387#include <$ac_header> 16388_ACEOF 16389if { (ac_try="$ac_cpp conftest.$ac_ext" 16390case "(($ac_try" in 16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16392 *) ac_try_echo=$ac_try;; 16393esac 16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16396 ac_status=$? 16397 grep -v '^ *+' conftest.er1 >conftest.err 16398 rm -f conftest.er1 16399 cat conftest.err >&5 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); } >/dev/null; then 16402 if test -s conftest.err; then 16403 ac_cpp_err=$ac_c_preproc_warn_flag 16404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16405 else 16406 ac_cpp_err= 16407 fi 16408else 16409 ac_cpp_err=yes 16410fi 16411if test -z "$ac_cpp_err"; then 16412 ac_header_preproc=yes 16413else 16414 echo "$as_me: failed program was:" >&5 16415sed 's/^/| /' conftest.$ac_ext >&5 16416 16417 ac_header_preproc=no 16418fi 16419 16420rm -f conftest.err conftest.$ac_ext 16421{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16422echo "${ECHO_T}$ac_header_preproc" >&6; } 16423 16424# So? What about this header? 16425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16426 yes:no: ) 16427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16431 ac_header_preproc=yes 16432 ;; 16433 no:yes:* ) 16434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16446 ( cat <<\_ASBOX 16447## ----------------------------------- ## 16448## Report this to llvmbugs@cs.uiuc.edu ## 16449## ----------------------------------- ## 16450_ASBOX 16451 ) | sed "s/^/$as_me: WARNING: /" >&2 16452 ;; 16453esac 16454{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16457 echo $ECHO_N "(cached) $ECHO_C" >&6 16458else 16459 eval "$as_ac_Header=\$ac_header_preproc" 16460fi 16461ac_res=`eval echo '${'$as_ac_Header'}'` 16462 { echo "$as_me:$LINENO: result: $ac_res" >&5 16463echo "${ECHO_T}$ac_res" >&6; } 16464 16465fi 16466if test `eval echo '${'$as_ac_Header'}'` = yes; then 16467 cat >>confdefs.h <<_ACEOF 16468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16469_ACEOF 16470 16471fi 16472 16473done 16474 16475 16476 16477 16478 16479for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 16480do 16481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16483 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16486 echo $ECHO_N "(cached) $ECHO_C" >&6 16487fi 16488ac_res=`eval echo '${'$as_ac_Header'}'` 16489 { echo "$as_me:$LINENO: result: $ac_res" >&5 16490echo "${ECHO_T}$ac_res" >&6; } 16491else 16492 # Is the header compilable? 16493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16495cat >conftest.$ac_ext <<_ACEOF 16496/* confdefs.h. */ 16497_ACEOF 16498cat confdefs.h >>conftest.$ac_ext 16499cat >>conftest.$ac_ext <<_ACEOF 16500/* end confdefs.h. */ 16501$ac_includes_default 16502#include <$ac_header> 16503_ACEOF 16504rm -f conftest.$ac_objext 16505if { (ac_try="$ac_compile" 16506case "(($ac_try" in 16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16508 *) ac_try_echo=$ac_try;; 16509esac 16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16511 (eval "$ac_compile") 2>conftest.er1 16512 ac_status=$? 16513 grep -v '^ *+' conftest.er1 >conftest.err 16514 rm -f conftest.er1 16515 cat conftest.err >&5 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); } && 16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16519 { (case "(($ac_try" in 16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16521 *) ac_try_echo=$ac_try;; 16522esac 16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16524 (eval "$ac_try") 2>&5 16525 ac_status=$? 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16527 (exit $ac_status); }; } && 16528 { ac_try='test -s conftest.$ac_objext' 16529 { (case "(($ac_try" in 16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16531 *) ac_try_echo=$ac_try;; 16532esac 16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16534 (eval "$ac_try") 2>&5 16535 ac_status=$? 16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16537 (exit $ac_status); }; }; then 16538 ac_header_compiler=yes 16539else 16540 echo "$as_me: failed program was:" >&5 16541sed 's/^/| /' conftest.$ac_ext >&5 16542 16543 ac_header_compiler=no 16544fi 16545 16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16547{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16548echo "${ECHO_T}$ac_header_compiler" >&6; } 16549 16550# Is the header present? 16551{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16553cat >conftest.$ac_ext <<_ACEOF 16554/* confdefs.h. */ 16555_ACEOF 16556cat confdefs.h >>conftest.$ac_ext 16557cat >>conftest.$ac_ext <<_ACEOF 16558/* end confdefs.h. */ 16559#include <$ac_header> 16560_ACEOF 16561if { (ac_try="$ac_cpp conftest.$ac_ext" 16562case "(($ac_try" in 16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16564 *) ac_try_echo=$ac_try;; 16565esac 16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16568 ac_status=$? 16569 grep -v '^ *+' conftest.er1 >conftest.err 16570 rm -f conftest.er1 16571 cat conftest.err >&5 16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16573 (exit $ac_status); } >/dev/null; then 16574 if test -s conftest.err; then 16575 ac_cpp_err=$ac_c_preproc_warn_flag 16576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16577 else 16578 ac_cpp_err= 16579 fi 16580else 16581 ac_cpp_err=yes 16582fi 16583if test -z "$ac_cpp_err"; then 16584 ac_header_preproc=yes 16585else 16586 echo "$as_me: failed program was:" >&5 16587sed 's/^/| /' conftest.$ac_ext >&5 16588 16589 ac_header_preproc=no 16590fi 16591 16592rm -f conftest.err conftest.$ac_ext 16593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16594echo "${ECHO_T}$ac_header_preproc" >&6; } 16595 16596# So? What about this header? 16597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16598 yes:no: ) 16599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16603 ac_header_preproc=yes 16604 ;; 16605 no:yes:* ) 16606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16618 ( cat <<\_ASBOX 16619## ----------------------------------- ## 16620## Report this to llvmbugs@cs.uiuc.edu ## 16621## ----------------------------------- ## 16622_ASBOX 16623 ) | sed "s/^/$as_me: WARNING: /" >&2 16624 ;; 16625esac 16626{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16629 echo $ECHO_N "(cached) $ECHO_C" >&6 16630else 16631 eval "$as_ac_Header=\$ac_header_preproc" 16632fi 16633ac_res=`eval echo '${'$as_ac_Header'}'` 16634 { echo "$as_me:$LINENO: result: $ac_res" >&5 16635echo "${ECHO_T}$ac_res" >&6; } 16636 16637fi 16638if test `eval echo '${'$as_ac_Header'}'` = yes; then 16639 cat >>confdefs.h <<_ACEOF 16640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16641_ACEOF 16642 16643fi 16644 16645done 16646 16647 16648for ac_header in valgrind/valgrind.h 16649do 16650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16655 echo $ECHO_N "(cached) $ECHO_C" >&6 16656fi 16657ac_res=`eval echo '${'$as_ac_Header'}'` 16658 { echo "$as_me:$LINENO: result: $ac_res" >&5 16659echo "${ECHO_T}$ac_res" >&6; } 16660else 16661 # Is the header compilable? 16662{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16663echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16664cat >conftest.$ac_ext <<_ACEOF 16665/* confdefs.h. */ 16666_ACEOF 16667cat confdefs.h >>conftest.$ac_ext 16668cat >>conftest.$ac_ext <<_ACEOF 16669/* end confdefs.h. */ 16670$ac_includes_default 16671#include <$ac_header> 16672_ACEOF 16673rm -f conftest.$ac_objext 16674if { (ac_try="$ac_compile" 16675case "(($ac_try" in 16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16677 *) ac_try_echo=$ac_try;; 16678esac 16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16680 (eval "$ac_compile") 2>conftest.er1 16681 ac_status=$? 16682 grep -v '^ *+' conftest.er1 >conftest.err 16683 rm -f conftest.er1 16684 cat conftest.err >&5 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16686 (exit $ac_status); } && 16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16688 { (case "(($ac_try" in 16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16690 *) ac_try_echo=$ac_try;; 16691esac 16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16693 (eval "$ac_try") 2>&5 16694 ac_status=$? 16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16696 (exit $ac_status); }; } && 16697 { ac_try='test -s conftest.$ac_objext' 16698 { (case "(($ac_try" in 16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16700 *) ac_try_echo=$ac_try;; 16701esac 16702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16703 (eval "$ac_try") 2>&5 16704 ac_status=$? 16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16706 (exit $ac_status); }; }; then 16707 ac_header_compiler=yes 16708else 16709 echo "$as_me: failed program was:" >&5 16710sed 's/^/| /' conftest.$ac_ext >&5 16711 16712 ac_header_compiler=no 16713fi 16714 16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16716{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16717echo "${ECHO_T}$ac_header_compiler" >&6; } 16718 16719# Is the header present? 16720{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16722cat >conftest.$ac_ext <<_ACEOF 16723/* confdefs.h. */ 16724_ACEOF 16725cat confdefs.h >>conftest.$ac_ext 16726cat >>conftest.$ac_ext <<_ACEOF 16727/* end confdefs.h. */ 16728#include <$ac_header> 16729_ACEOF 16730if { (ac_try="$ac_cpp conftest.$ac_ext" 16731case "(($ac_try" in 16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16733 *) ac_try_echo=$ac_try;; 16734esac 16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16737 ac_status=$? 16738 grep -v '^ *+' conftest.er1 >conftest.err 16739 rm -f conftest.er1 16740 cat conftest.err >&5 16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16742 (exit $ac_status); } >/dev/null; then 16743 if test -s conftest.err; then 16744 ac_cpp_err=$ac_c_preproc_warn_flag 16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16746 else 16747 ac_cpp_err= 16748 fi 16749else 16750 ac_cpp_err=yes 16751fi 16752if test -z "$ac_cpp_err"; then 16753 ac_header_preproc=yes 16754else 16755 echo "$as_me: failed program was:" >&5 16756sed 's/^/| /' conftest.$ac_ext >&5 16757 16758 ac_header_preproc=no 16759fi 16760 16761rm -f conftest.err conftest.$ac_ext 16762{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16763echo "${ECHO_T}$ac_header_preproc" >&6; } 16764 16765# So? What about this header? 16766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16767 yes:no: ) 16768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16772 ac_header_preproc=yes 16773 ;; 16774 no:yes:* ) 16775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16787 ( cat <<\_ASBOX 16788## ----------------------------------- ## 16789## Report this to llvmbugs@cs.uiuc.edu ## 16790## ----------------------------------- ## 16791_ASBOX 16792 ) | sed "s/^/$as_me: WARNING: /" >&2 16793 ;; 16794esac 16795{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16798 echo $ECHO_N "(cached) $ECHO_C" >&6 16799else 16800 eval "$as_ac_Header=\$ac_header_preproc" 16801fi 16802ac_res=`eval echo '${'$as_ac_Header'}'` 16803 { echo "$as_me:$LINENO: result: $ac_res" >&5 16804echo "${ECHO_T}$ac_res" >&6; } 16805 16806fi 16807if test `eval echo '${'$as_ac_Header'}'` = yes; then 16808 cat >>confdefs.h <<_ACEOF 16809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16810_ACEOF 16811 16812fi 16813 16814done 16815 16816 16817for ac_header in fenv.h 16818do 16819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16824 echo $ECHO_N "(cached) $ECHO_C" >&6 16825fi 16826ac_res=`eval echo '${'$as_ac_Header'}'` 16827 { echo "$as_me:$LINENO: result: $ac_res" >&5 16828echo "${ECHO_T}$ac_res" >&6; } 16829else 16830 # Is the header compilable? 16831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16833cat >conftest.$ac_ext <<_ACEOF 16834/* confdefs.h. */ 16835_ACEOF 16836cat confdefs.h >>conftest.$ac_ext 16837cat >>conftest.$ac_ext <<_ACEOF 16838/* end confdefs.h. */ 16839$ac_includes_default 16840#include <$ac_header> 16841_ACEOF 16842rm -f conftest.$ac_objext 16843if { (ac_try="$ac_compile" 16844case "(($ac_try" in 16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16846 *) ac_try_echo=$ac_try;; 16847esac 16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16849 (eval "$ac_compile") 2>conftest.er1 16850 ac_status=$? 16851 grep -v '^ *+' conftest.er1 >conftest.err 16852 rm -f conftest.er1 16853 cat conftest.err >&5 16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16855 (exit $ac_status); } && 16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16857 { (case "(($ac_try" in 16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16859 *) ac_try_echo=$ac_try;; 16860esac 16861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16862 (eval "$ac_try") 2>&5 16863 ac_status=$? 16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16865 (exit $ac_status); }; } && 16866 { ac_try='test -s conftest.$ac_objext' 16867 { (case "(($ac_try" in 16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16869 *) ac_try_echo=$ac_try;; 16870esac 16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16872 (eval "$ac_try") 2>&5 16873 ac_status=$? 16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16875 (exit $ac_status); }; }; then 16876 ac_header_compiler=yes 16877else 16878 echo "$as_me: failed program was:" >&5 16879sed 's/^/| /' conftest.$ac_ext >&5 16880 16881 ac_header_compiler=no 16882fi 16883 16884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16886echo "${ECHO_T}$ac_header_compiler" >&6; } 16887 16888# Is the header present? 16889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16891cat >conftest.$ac_ext <<_ACEOF 16892/* confdefs.h. */ 16893_ACEOF 16894cat confdefs.h >>conftest.$ac_ext 16895cat >>conftest.$ac_ext <<_ACEOF 16896/* end confdefs.h. */ 16897#include <$ac_header> 16898_ACEOF 16899if { (ac_try="$ac_cpp conftest.$ac_ext" 16900case "(($ac_try" in 16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16902 *) ac_try_echo=$ac_try;; 16903esac 16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16906 ac_status=$? 16907 grep -v '^ *+' conftest.er1 >conftest.err 16908 rm -f conftest.er1 16909 cat conftest.err >&5 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); } >/dev/null; then 16912 if test -s conftest.err; then 16913 ac_cpp_err=$ac_c_preproc_warn_flag 16914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16915 else 16916 ac_cpp_err= 16917 fi 16918else 16919 ac_cpp_err=yes 16920fi 16921if test -z "$ac_cpp_err"; then 16922 ac_header_preproc=yes 16923else 16924 echo "$as_me: failed program was:" >&5 16925sed 's/^/| /' conftest.$ac_ext >&5 16926 16927 ac_header_preproc=no 16928fi 16929 16930rm -f conftest.err conftest.$ac_ext 16931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16932echo "${ECHO_T}$ac_header_preproc" >&6; } 16933 16934# So? What about this header? 16935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16936 yes:no: ) 16937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16941 ac_header_preproc=yes 16942 ;; 16943 no:yes:* ) 16944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16956 ( cat <<\_ASBOX 16957## ----------------------------------- ## 16958## Report this to llvmbugs@cs.uiuc.edu ## 16959## ----------------------------------- ## 16960_ASBOX 16961 ) | sed "s/^/$as_me: WARNING: /" >&2 16962 ;; 16963esac 16964{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16967 echo $ECHO_N "(cached) $ECHO_C" >&6 16968else 16969 eval "$as_ac_Header=\$ac_header_preproc" 16970fi 16971ac_res=`eval echo '${'$as_ac_Header'}'` 16972 { echo "$as_me:$LINENO: result: $ac_res" >&5 16973echo "${ECHO_T}$ac_res" >&6; } 16974 16975fi 16976if test `eval echo '${'$as_ac_Header'}'` = yes; then 16977 cat >>confdefs.h <<_ACEOF 16978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16979_ACEOF 16980 16981fi 16982 16983done 16984 16985if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 16986 16987for ac_header in pthread.h 16988do 16989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16991 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16994 echo $ECHO_N "(cached) $ECHO_C" >&6 16995fi 16996ac_res=`eval echo '${'$as_ac_Header'}'` 16997 { echo "$as_me:$LINENO: result: $ac_res" >&5 16998echo "${ECHO_T}$ac_res" >&6; } 16999else 17000 # Is the header compilable? 17001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17003cat >conftest.$ac_ext <<_ACEOF 17004/* confdefs.h. */ 17005_ACEOF 17006cat confdefs.h >>conftest.$ac_ext 17007cat >>conftest.$ac_ext <<_ACEOF 17008/* end confdefs.h. */ 17009$ac_includes_default 17010#include <$ac_header> 17011_ACEOF 17012rm -f conftest.$ac_objext 17013if { (ac_try="$ac_compile" 17014case "(($ac_try" in 17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17016 *) ac_try_echo=$ac_try;; 17017esac 17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17019 (eval "$ac_compile") 2>conftest.er1 17020 ac_status=$? 17021 grep -v '^ *+' conftest.er1 >conftest.err 17022 rm -f conftest.er1 17023 cat conftest.err >&5 17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17025 (exit $ac_status); } && 17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17027 { (case "(($ac_try" in 17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17029 *) ac_try_echo=$ac_try;; 17030esac 17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17032 (eval "$ac_try") 2>&5 17033 ac_status=$? 17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17035 (exit $ac_status); }; } && 17036 { ac_try='test -s conftest.$ac_objext' 17037 { (case "(($ac_try" in 17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17039 *) ac_try_echo=$ac_try;; 17040esac 17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17042 (eval "$ac_try") 2>&5 17043 ac_status=$? 17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17045 (exit $ac_status); }; }; then 17046 ac_header_compiler=yes 17047else 17048 echo "$as_me: failed program was:" >&5 17049sed 's/^/| /' conftest.$ac_ext >&5 17050 17051 ac_header_compiler=no 17052fi 17053 17054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17056echo "${ECHO_T}$ac_header_compiler" >&6; } 17057 17058# Is the header present? 17059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17061cat >conftest.$ac_ext <<_ACEOF 17062/* confdefs.h. */ 17063_ACEOF 17064cat confdefs.h >>conftest.$ac_ext 17065cat >>conftest.$ac_ext <<_ACEOF 17066/* end confdefs.h. */ 17067#include <$ac_header> 17068_ACEOF 17069if { (ac_try="$ac_cpp conftest.$ac_ext" 17070case "(($ac_try" in 17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17072 *) ac_try_echo=$ac_try;; 17073esac 17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17076 ac_status=$? 17077 grep -v '^ *+' conftest.er1 >conftest.err 17078 rm -f conftest.er1 17079 cat conftest.err >&5 17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17081 (exit $ac_status); } >/dev/null; then 17082 if test -s conftest.err; then 17083 ac_cpp_err=$ac_c_preproc_warn_flag 17084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17085 else 17086 ac_cpp_err= 17087 fi 17088else 17089 ac_cpp_err=yes 17090fi 17091if test -z "$ac_cpp_err"; then 17092 ac_header_preproc=yes 17093else 17094 echo "$as_me: failed program was:" >&5 17095sed 's/^/| /' conftest.$ac_ext >&5 17096 17097 ac_header_preproc=no 17098fi 17099 17100rm -f conftest.err conftest.$ac_ext 17101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17102echo "${ECHO_T}$ac_header_preproc" >&6; } 17103 17104# So? What about this header? 17105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17106 yes:no: ) 17107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17111 ac_header_preproc=yes 17112 ;; 17113 no:yes:* ) 17114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17126 ( cat <<\_ASBOX 17127## ----------------------------------- ## 17128## Report this to llvmbugs@cs.uiuc.edu ## 17129## ----------------------------------- ## 17130_ASBOX 17131 ) | sed "s/^/$as_me: WARNING: /" >&2 17132 ;; 17133esac 17134{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17137 echo $ECHO_N "(cached) $ECHO_C" >&6 17138else 17139 eval "$as_ac_Header=\$ac_header_preproc" 17140fi 17141ac_res=`eval echo '${'$as_ac_Header'}'` 17142 { echo "$as_me:$LINENO: result: $ac_res" >&5 17143echo "${ECHO_T}$ac_res" >&6; } 17144 17145fi 17146if test `eval echo '${'$as_ac_Header'}'` = yes; then 17147 cat >>confdefs.h <<_ACEOF 17148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17149_ACEOF 17150 HAVE_PTHREAD=1 17151 17152else 17153 HAVE_PTHREAD=0 17154 17155fi 17156 17157done 17158 17159else 17160 HAVE_PTHREAD=0 17161 17162fi 17163 17164if test "$llvm_cv_enable_libffi" = "yes" ; then 17165 17166 17167for ac_header in ffi.h ffi/ffi.h 17168do 17169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17171 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17174 echo $ECHO_N "(cached) $ECHO_C" >&6 17175fi 17176ac_res=`eval echo '${'$as_ac_Header'}'` 17177 { echo "$as_me:$LINENO: result: $ac_res" >&5 17178echo "${ECHO_T}$ac_res" >&6; } 17179else 17180 # Is the header compilable? 17181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17183cat >conftest.$ac_ext <<_ACEOF 17184/* confdefs.h. */ 17185_ACEOF 17186cat confdefs.h >>conftest.$ac_ext 17187cat >>conftest.$ac_ext <<_ACEOF 17188/* end confdefs.h. */ 17189$ac_includes_default 17190#include <$ac_header> 17191_ACEOF 17192rm -f conftest.$ac_objext 17193if { (ac_try="$ac_compile" 17194case "(($ac_try" in 17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17196 *) ac_try_echo=$ac_try;; 17197esac 17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17199 (eval "$ac_compile") 2>conftest.er1 17200 ac_status=$? 17201 grep -v '^ *+' conftest.er1 >conftest.err 17202 rm -f conftest.er1 17203 cat conftest.err >&5 17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17205 (exit $ac_status); } && 17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17207 { (case "(($ac_try" in 17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17209 *) ac_try_echo=$ac_try;; 17210esac 17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17212 (eval "$ac_try") 2>&5 17213 ac_status=$? 17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17215 (exit $ac_status); }; } && 17216 { ac_try='test -s conftest.$ac_objext' 17217 { (case "(($ac_try" in 17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17219 *) ac_try_echo=$ac_try;; 17220esac 17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17222 (eval "$ac_try") 2>&5 17223 ac_status=$? 17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17225 (exit $ac_status); }; }; then 17226 ac_header_compiler=yes 17227else 17228 echo "$as_me: failed program was:" >&5 17229sed 's/^/| /' conftest.$ac_ext >&5 17230 17231 ac_header_compiler=no 17232fi 17233 17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17236echo "${ECHO_T}$ac_header_compiler" >&6; } 17237 17238# Is the header present? 17239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17241cat >conftest.$ac_ext <<_ACEOF 17242/* confdefs.h. */ 17243_ACEOF 17244cat confdefs.h >>conftest.$ac_ext 17245cat >>conftest.$ac_ext <<_ACEOF 17246/* end confdefs.h. */ 17247#include <$ac_header> 17248_ACEOF 17249if { (ac_try="$ac_cpp conftest.$ac_ext" 17250case "(($ac_try" in 17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17252 *) ac_try_echo=$ac_try;; 17253esac 17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17256 ac_status=$? 17257 grep -v '^ *+' conftest.er1 >conftest.err 17258 rm -f conftest.er1 17259 cat conftest.err >&5 17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17261 (exit $ac_status); } >/dev/null; then 17262 if test -s conftest.err; then 17263 ac_cpp_err=$ac_c_preproc_warn_flag 17264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17265 else 17266 ac_cpp_err= 17267 fi 17268else 17269 ac_cpp_err=yes 17270fi 17271if test -z "$ac_cpp_err"; then 17272 ac_header_preproc=yes 17273else 17274 echo "$as_me: failed program was:" >&5 17275sed 's/^/| /' conftest.$ac_ext >&5 17276 17277 ac_header_preproc=no 17278fi 17279 17280rm -f conftest.err conftest.$ac_ext 17281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17282echo "${ECHO_T}$ac_header_preproc" >&6; } 17283 17284# So? What about this header? 17285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17286 yes:no: ) 17287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17291 ac_header_preproc=yes 17292 ;; 17293 no:yes:* ) 17294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17306 ( cat <<\_ASBOX 17307## ----------------------------------- ## 17308## Report this to llvmbugs@cs.uiuc.edu ## 17309## ----------------------------------- ## 17310_ASBOX 17311 ) | sed "s/^/$as_me: WARNING: /" >&2 17312 ;; 17313esac 17314{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17317 echo $ECHO_N "(cached) $ECHO_C" >&6 17318else 17319 eval "$as_ac_Header=\$ac_header_preproc" 17320fi 17321ac_res=`eval echo '${'$as_ac_Header'}'` 17322 { echo "$as_me:$LINENO: result: $ac_res" >&5 17323echo "${ECHO_T}$ac_res" >&6; } 17324 17325fi 17326if test `eval echo '${'$as_ac_Header'}'` = yes; then 17327 cat >>confdefs.h <<_ACEOF 17328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17329_ACEOF 17330 17331fi 17332 17333done 17334 17335fi 17336 17337 17338for ac_header in CrashReporterClient.h 17339do 17340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17342 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17345 echo $ECHO_N "(cached) $ECHO_C" >&6 17346fi 17347ac_res=`eval echo '${'$as_ac_Header'}'` 17348 { echo "$as_me:$LINENO: result: $ac_res" >&5 17349echo "${ECHO_T}$ac_res" >&6; } 17350else 17351 # Is the header compilable? 17352{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17354cat >conftest.$ac_ext <<_ACEOF 17355/* confdefs.h. */ 17356_ACEOF 17357cat confdefs.h >>conftest.$ac_ext 17358cat >>conftest.$ac_ext <<_ACEOF 17359/* end confdefs.h. */ 17360$ac_includes_default 17361#include <$ac_header> 17362_ACEOF 17363rm -f conftest.$ac_objext 17364if { (ac_try="$ac_compile" 17365case "(($ac_try" in 17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17367 *) ac_try_echo=$ac_try;; 17368esac 17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17370 (eval "$ac_compile") 2>conftest.er1 17371 ac_status=$? 17372 grep -v '^ *+' conftest.er1 >conftest.err 17373 rm -f conftest.er1 17374 cat conftest.err >&5 17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17376 (exit $ac_status); } && 17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17378 { (case "(($ac_try" in 17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17380 *) ac_try_echo=$ac_try;; 17381esac 17382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17383 (eval "$ac_try") 2>&5 17384 ac_status=$? 17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17386 (exit $ac_status); }; } && 17387 { ac_try='test -s conftest.$ac_objext' 17388 { (case "(($ac_try" in 17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17390 *) ac_try_echo=$ac_try;; 17391esac 17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17393 (eval "$ac_try") 2>&5 17394 ac_status=$? 17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17396 (exit $ac_status); }; }; then 17397 ac_header_compiler=yes 17398else 17399 echo "$as_me: failed program was:" >&5 17400sed 's/^/| /' conftest.$ac_ext >&5 17401 17402 ac_header_compiler=no 17403fi 17404 17405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17406{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17407echo "${ECHO_T}$ac_header_compiler" >&6; } 17408 17409# Is the header present? 17410{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17412cat >conftest.$ac_ext <<_ACEOF 17413/* confdefs.h. */ 17414_ACEOF 17415cat confdefs.h >>conftest.$ac_ext 17416cat >>conftest.$ac_ext <<_ACEOF 17417/* end confdefs.h. */ 17418#include <$ac_header> 17419_ACEOF 17420if { (ac_try="$ac_cpp conftest.$ac_ext" 17421case "(($ac_try" in 17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17423 *) ac_try_echo=$ac_try;; 17424esac 17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17427 ac_status=$? 17428 grep -v '^ *+' conftest.er1 >conftest.err 17429 rm -f conftest.er1 17430 cat conftest.err >&5 17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17432 (exit $ac_status); } >/dev/null; then 17433 if test -s conftest.err; then 17434 ac_cpp_err=$ac_c_preproc_warn_flag 17435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17436 else 17437 ac_cpp_err= 17438 fi 17439else 17440 ac_cpp_err=yes 17441fi 17442if test -z "$ac_cpp_err"; then 17443 ac_header_preproc=yes 17444else 17445 echo "$as_me: failed program was:" >&5 17446sed 's/^/| /' conftest.$ac_ext >&5 17447 17448 ac_header_preproc=no 17449fi 17450 17451rm -f conftest.err conftest.$ac_ext 17452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17453echo "${ECHO_T}$ac_header_preproc" >&6; } 17454 17455# So? What about this header? 17456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17457 yes:no: ) 17458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17462 ac_header_preproc=yes 17463 ;; 17464 no:yes:* ) 17465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17477 ( cat <<\_ASBOX 17478## ----------------------------------- ## 17479## Report this to llvmbugs@cs.uiuc.edu ## 17480## ----------------------------------- ## 17481_ASBOX 17482 ) | sed "s/^/$as_me: WARNING: /" >&2 17483 ;; 17484esac 17485{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17488 echo $ECHO_N "(cached) $ECHO_C" >&6 17489else 17490 eval "$as_ac_Header=\$ac_header_preproc" 17491fi 17492ac_res=`eval echo '${'$as_ac_Header'}'` 17493 { echo "$as_me:$LINENO: result: $ac_res" >&5 17494echo "${ECHO_T}$ac_res" >&6; } 17495 17496fi 17497if test `eval echo '${'$as_ac_Header'}'` = yes; then 17498 cat >>confdefs.h <<_ACEOF 17499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17500_ACEOF 17501 17502fi 17503 17504done 17505 17506 17507{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 17508echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 17509cat >conftest.$ac_ext <<_ACEOF 17510/* confdefs.h. */ 17511_ACEOF 17512cat confdefs.h >>conftest.$ac_ext 17513cat >>conftest.$ac_ext <<_ACEOF 17514/* end confdefs.h. */ 17515extern const char *__crashreporter_info__; 17516 int main() { 17517 __crashreporter_info__ = "test"; 17518 return 0; 17519 } 17520 17521_ACEOF 17522rm -f conftest.$ac_objext conftest$ac_exeext 17523if { (ac_try="$ac_link" 17524case "(($ac_try" in 17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17526 *) ac_try_echo=$ac_try;; 17527esac 17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17529 (eval "$ac_link") 2>conftest.er1 17530 ac_status=$? 17531 grep -v '^ *+' conftest.er1 >conftest.err 17532 rm -f conftest.er1 17533 cat conftest.err >&5 17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17535 (exit $ac_status); } && 17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17537 { (case "(($ac_try" in 17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17539 *) ac_try_echo=$ac_try;; 17540esac 17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17542 (eval "$ac_try") 2>&5 17543 ac_status=$? 17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17545 (exit $ac_status); }; } && 17546 { ac_try='test -s conftest$ac_exeext' 17547 { (case "(($ac_try" in 17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17549 *) ac_try_echo=$ac_try;; 17550esac 17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17552 (eval "$ac_try") 2>&5 17553 ac_status=$? 17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17555 (exit $ac_status); }; }; then 17556 { echo "$as_me:$LINENO: result: yes" >&5 17557echo "${ECHO_T}yes" >&6; } 17558 17559cat >>confdefs.h <<\_ACEOF 17560#define HAVE_CRASHREPORTER_INFO 1 17561_ACEOF 17562 17563else 17564 echo "$as_me: failed program was:" >&5 17565sed 's/^/| /' conftest.$ac_ext >&5 17566 17567 { echo "$as_me:$LINENO: result: no" >&5 17568echo "${ECHO_T}no" >&6; } 17569 17570cat >>confdefs.h <<\_ACEOF 17571#define HAVE_CRASHREPORTER_INFO 0 17572_ACEOF 17573 17574fi 17575 17576rm -f core conftest.err conftest.$ac_objext \ 17577 conftest$ac_exeext conftest.$ac_ext 17578 17579 17580 17581 17582 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 17583echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 17584if test "${ac_cv_huge_val_sanity+set}" = set; then 17585 echo $ECHO_N "(cached) $ECHO_C" >&6 17586else 17587 17588 ac_ext=cpp 17589ac_cpp='$CXXCPP $CPPFLAGS' 17590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17593 17594 ac_save_CXXFLAGS=$CXXFLAGS 17595 CXXFLAGS=-pedantic 17596 if test "$cross_compiling" = yes; then 17597 ac_cv_huge_val_sanity=yes 17598else 17599 cat >conftest.$ac_ext <<_ACEOF 17600/* confdefs.h. */ 17601_ACEOF 17602cat confdefs.h >>conftest.$ac_ext 17603cat >>conftest.$ac_ext <<_ACEOF 17604/* end confdefs.h. */ 17605#include <math.h> 17606int 17607main () 17608{ 17609double x = HUGE_VAL; return x != x; 17610 ; 17611 return 0; 17612} 17613_ACEOF 17614rm -f conftest$ac_exeext 17615if { (ac_try="$ac_link" 17616case "(($ac_try" in 17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17618 *) ac_try_echo=$ac_try;; 17619esac 17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17621 (eval "$ac_link") 2>&5 17622 ac_status=$? 17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17625 { (case "(($ac_try" in 17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17627 *) ac_try_echo=$ac_try;; 17628esac 17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17630 (eval "$ac_try") 2>&5 17631 ac_status=$? 17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17633 (exit $ac_status); }; }; then 17634 ac_cv_huge_val_sanity=yes 17635else 17636 echo "$as_me: program exited with status $ac_status" >&5 17637echo "$as_me: failed program was:" >&5 17638sed 's/^/| /' conftest.$ac_ext >&5 17639 17640( exit $ac_status ) 17641ac_cv_huge_val_sanity=no 17642fi 17643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17644fi 17645 17646 17647 CXXFLAGS=$ac_save_CXXFLAGS 17648 ac_ext=c 17649ac_cpp='$CPP $CPPFLAGS' 17650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17652ac_compiler_gnu=$ac_cv_c_compiler_gnu 17653 17654 17655fi 17656{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 17657echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 17658 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 17659 17660 17661{ echo "$as_me:$LINENO: checking for pid_t" >&5 17662echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 17663if test "${ac_cv_type_pid_t+set}" = set; then 17664 echo $ECHO_N "(cached) $ECHO_C" >&6 17665else 17666 cat >conftest.$ac_ext <<_ACEOF 17667/* confdefs.h. */ 17668_ACEOF 17669cat confdefs.h >>conftest.$ac_ext 17670cat >>conftest.$ac_ext <<_ACEOF 17671/* end confdefs.h. */ 17672$ac_includes_default 17673typedef pid_t ac__type_new_; 17674int 17675main () 17676{ 17677if ((ac__type_new_ *) 0) 17678 return 0; 17679if (sizeof (ac__type_new_)) 17680 return 0; 17681 ; 17682 return 0; 17683} 17684_ACEOF 17685rm -f conftest.$ac_objext 17686if { (ac_try="$ac_compile" 17687case "(($ac_try" in 17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17689 *) ac_try_echo=$ac_try;; 17690esac 17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17692 (eval "$ac_compile") 2>conftest.er1 17693 ac_status=$? 17694 grep -v '^ *+' conftest.er1 >conftest.err 17695 rm -f conftest.er1 17696 cat conftest.err >&5 17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17698 (exit $ac_status); } && 17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17700 { (case "(($ac_try" in 17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17702 *) ac_try_echo=$ac_try;; 17703esac 17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17705 (eval "$ac_try") 2>&5 17706 ac_status=$? 17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17708 (exit $ac_status); }; } && 17709 { ac_try='test -s conftest.$ac_objext' 17710 { (case "(($ac_try" in 17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17712 *) ac_try_echo=$ac_try;; 17713esac 17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17715 (eval "$ac_try") 2>&5 17716 ac_status=$? 17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17718 (exit $ac_status); }; }; then 17719 ac_cv_type_pid_t=yes 17720else 17721 echo "$as_me: failed program was:" >&5 17722sed 's/^/| /' conftest.$ac_ext >&5 17723 17724 ac_cv_type_pid_t=no 17725fi 17726 17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17728fi 17729{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 17730echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 17731if test $ac_cv_type_pid_t = yes; then 17732 : 17733else 17734 17735cat >>confdefs.h <<_ACEOF 17736#define pid_t int 17737_ACEOF 17738 17739fi 17740 17741{ echo "$as_me:$LINENO: checking for size_t" >&5 17742echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17743if test "${ac_cv_type_size_t+set}" = set; then 17744 echo $ECHO_N "(cached) $ECHO_C" >&6 17745else 17746 cat >conftest.$ac_ext <<_ACEOF 17747/* confdefs.h. */ 17748_ACEOF 17749cat confdefs.h >>conftest.$ac_ext 17750cat >>conftest.$ac_ext <<_ACEOF 17751/* end confdefs.h. */ 17752$ac_includes_default 17753typedef size_t ac__type_new_; 17754int 17755main () 17756{ 17757if ((ac__type_new_ *) 0) 17758 return 0; 17759if (sizeof (ac__type_new_)) 17760 return 0; 17761 ; 17762 return 0; 17763} 17764_ACEOF 17765rm -f conftest.$ac_objext 17766if { (ac_try="$ac_compile" 17767case "(($ac_try" in 17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17769 *) ac_try_echo=$ac_try;; 17770esac 17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17772 (eval "$ac_compile") 2>conftest.er1 17773 ac_status=$? 17774 grep -v '^ *+' conftest.er1 >conftest.err 17775 rm -f conftest.er1 17776 cat conftest.err >&5 17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17778 (exit $ac_status); } && 17779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17780 { (case "(($ac_try" in 17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17782 *) ac_try_echo=$ac_try;; 17783esac 17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17785 (eval "$ac_try") 2>&5 17786 ac_status=$? 17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17788 (exit $ac_status); }; } && 17789 { ac_try='test -s conftest.$ac_objext' 17790 { (case "(($ac_try" in 17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17792 *) ac_try_echo=$ac_try;; 17793esac 17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17795 (eval "$ac_try") 2>&5 17796 ac_status=$? 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); }; }; then 17799 ac_cv_type_size_t=yes 17800else 17801 echo "$as_me: failed program was:" >&5 17802sed 's/^/| /' conftest.$ac_ext >&5 17803 17804 ac_cv_type_size_t=no 17805fi 17806 17807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17808fi 17809{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17810echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17811if test $ac_cv_type_size_t = yes; then 17812 : 17813else 17814 17815cat >>confdefs.h <<_ACEOF 17816#define size_t unsigned int 17817_ACEOF 17818 17819fi 17820 17821 17822cat >>confdefs.h <<_ACEOF 17823#define RETSIGTYPE void 17824_ACEOF 17825 17826{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17827echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17828if test "${ac_cv_struct_tm+set}" = set; then 17829 echo $ECHO_N "(cached) $ECHO_C" >&6 17830else 17831 cat >conftest.$ac_ext <<_ACEOF 17832/* confdefs.h. */ 17833_ACEOF 17834cat confdefs.h >>conftest.$ac_ext 17835cat >>conftest.$ac_ext <<_ACEOF 17836/* end confdefs.h. */ 17837#include <sys/types.h> 17838#include <time.h> 17839 17840int 17841main () 17842{ 17843struct tm *tp; tp->tm_sec; 17844 ; 17845 return 0; 17846} 17847_ACEOF 17848rm -f conftest.$ac_objext 17849if { (ac_try="$ac_compile" 17850case "(($ac_try" in 17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17852 *) ac_try_echo=$ac_try;; 17853esac 17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17855 (eval "$ac_compile") 2>conftest.er1 17856 ac_status=$? 17857 grep -v '^ *+' conftest.er1 >conftest.err 17858 rm -f conftest.er1 17859 cat conftest.err >&5 17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17861 (exit $ac_status); } && 17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17863 { (case "(($ac_try" in 17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17865 *) ac_try_echo=$ac_try;; 17866esac 17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17868 (eval "$ac_try") 2>&5 17869 ac_status=$? 17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17871 (exit $ac_status); }; } && 17872 { ac_try='test -s conftest.$ac_objext' 17873 { (case "(($ac_try" in 17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17875 *) ac_try_echo=$ac_try;; 17876esac 17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17878 (eval "$ac_try") 2>&5 17879 ac_status=$? 17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17881 (exit $ac_status); }; }; then 17882 ac_cv_struct_tm=time.h 17883else 17884 echo "$as_me: failed program was:" >&5 17885sed 's/^/| /' conftest.$ac_ext >&5 17886 17887 ac_cv_struct_tm=sys/time.h 17888fi 17889 17890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17891fi 17892{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17893echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17894if test $ac_cv_struct_tm = sys/time.h; then 17895 17896cat >>confdefs.h <<\_ACEOF 17897#define TM_IN_SYS_TIME 1 17898_ACEOF 17899 17900fi 17901 17902{ echo "$as_me:$LINENO: checking for int64_t" >&5 17903echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17904if test "${ac_cv_type_int64_t+set}" = set; then 17905 echo $ECHO_N "(cached) $ECHO_C" >&6 17906else 17907 cat >conftest.$ac_ext <<_ACEOF 17908/* confdefs.h. */ 17909_ACEOF 17910cat confdefs.h >>conftest.$ac_ext 17911cat >>conftest.$ac_ext <<_ACEOF 17912/* end confdefs.h. */ 17913$ac_includes_default 17914typedef int64_t ac__type_new_; 17915int 17916main () 17917{ 17918if ((ac__type_new_ *) 0) 17919 return 0; 17920if (sizeof (ac__type_new_)) 17921 return 0; 17922 ; 17923 return 0; 17924} 17925_ACEOF 17926rm -f conftest.$ac_objext 17927if { (ac_try="$ac_compile" 17928case "(($ac_try" in 17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17930 *) ac_try_echo=$ac_try;; 17931esac 17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17933 (eval "$ac_compile") 2>conftest.er1 17934 ac_status=$? 17935 grep -v '^ *+' conftest.er1 >conftest.err 17936 rm -f conftest.er1 17937 cat conftest.err >&5 17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17939 (exit $ac_status); } && 17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17941 { (case "(($ac_try" in 17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17943 *) ac_try_echo=$ac_try;; 17944esac 17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17946 (eval "$ac_try") 2>&5 17947 ac_status=$? 17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17949 (exit $ac_status); }; } && 17950 { ac_try='test -s conftest.$ac_objext' 17951 { (case "(($ac_try" in 17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17953 *) ac_try_echo=$ac_try;; 17954esac 17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17956 (eval "$ac_try") 2>&5 17957 ac_status=$? 17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17959 (exit $ac_status); }; }; then 17960 ac_cv_type_int64_t=yes 17961else 17962 echo "$as_me: failed program was:" >&5 17963sed 's/^/| /' conftest.$ac_ext >&5 17964 17965 ac_cv_type_int64_t=no 17966fi 17967 17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17969fi 17970{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17971echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17972if test $ac_cv_type_int64_t = yes; then 17973 17974cat >>confdefs.h <<_ACEOF 17975#define HAVE_INT64_T 1 17976_ACEOF 17977 17978 17979else 17980 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17981echo "$as_me: error: Type int64_t required but not found" >&2;} 17982 { (exit 1); exit 1; }; } 17983fi 17984 17985{ echo "$as_me:$LINENO: checking for uint64_t" >&5 17986echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 17987if test "${ac_cv_type_uint64_t+set}" = set; then 17988 echo $ECHO_N "(cached) $ECHO_C" >&6 17989else 17990 cat >conftest.$ac_ext <<_ACEOF 17991/* confdefs.h. */ 17992_ACEOF 17993cat confdefs.h >>conftest.$ac_ext 17994cat >>conftest.$ac_ext <<_ACEOF 17995/* end confdefs.h. */ 17996$ac_includes_default 17997typedef uint64_t ac__type_new_; 17998int 17999main () 18000{ 18001if ((ac__type_new_ *) 0) 18002 return 0; 18003if (sizeof (ac__type_new_)) 18004 return 0; 18005 ; 18006 return 0; 18007} 18008_ACEOF 18009rm -f conftest.$ac_objext 18010if { (ac_try="$ac_compile" 18011case "(($ac_try" in 18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18013 *) ac_try_echo=$ac_try;; 18014esac 18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18016 (eval "$ac_compile") 2>conftest.er1 18017 ac_status=$? 18018 grep -v '^ *+' conftest.er1 >conftest.err 18019 rm -f conftest.er1 18020 cat conftest.err >&5 18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18022 (exit $ac_status); } && 18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18024 { (case "(($ac_try" in 18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18026 *) ac_try_echo=$ac_try;; 18027esac 18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18029 (eval "$ac_try") 2>&5 18030 ac_status=$? 18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18032 (exit $ac_status); }; } && 18033 { ac_try='test -s conftest.$ac_objext' 18034 { (case "(($ac_try" in 18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18036 *) ac_try_echo=$ac_try;; 18037esac 18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18039 (eval "$ac_try") 2>&5 18040 ac_status=$? 18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18042 (exit $ac_status); }; }; then 18043 ac_cv_type_uint64_t=yes 18044else 18045 echo "$as_me: failed program was:" >&5 18046sed 's/^/| /' conftest.$ac_ext >&5 18047 18048 ac_cv_type_uint64_t=no 18049fi 18050 18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18052fi 18053{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 18054echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 18055if test $ac_cv_type_uint64_t = yes; then 18056 18057cat >>confdefs.h <<_ACEOF 18058#define HAVE_UINT64_T 1 18059_ACEOF 18060 18061 18062else 18063 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 18064echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 18065if test "${ac_cv_type_u_int64_t+set}" = set; then 18066 echo $ECHO_N "(cached) $ECHO_C" >&6 18067else 18068 cat >conftest.$ac_ext <<_ACEOF 18069/* confdefs.h. */ 18070_ACEOF 18071cat confdefs.h >>conftest.$ac_ext 18072cat >>conftest.$ac_ext <<_ACEOF 18073/* end confdefs.h. */ 18074$ac_includes_default 18075typedef u_int64_t ac__type_new_; 18076int 18077main () 18078{ 18079if ((ac__type_new_ *) 0) 18080 return 0; 18081if (sizeof (ac__type_new_)) 18082 return 0; 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087rm -f conftest.$ac_objext 18088if { (ac_try="$ac_compile" 18089case "(($ac_try" in 18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18091 *) ac_try_echo=$ac_try;; 18092esac 18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18094 (eval "$ac_compile") 2>conftest.er1 18095 ac_status=$? 18096 grep -v '^ *+' conftest.er1 >conftest.err 18097 rm -f conftest.er1 18098 cat conftest.err >&5 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); } && 18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18102 { (case "(($ac_try" in 18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18104 *) ac_try_echo=$ac_try;; 18105esac 18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18107 (eval "$ac_try") 2>&5 18108 ac_status=$? 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18110 (exit $ac_status); }; } && 18111 { ac_try='test -s conftest.$ac_objext' 18112 { (case "(($ac_try" in 18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18114 *) ac_try_echo=$ac_try;; 18115esac 18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18117 (eval "$ac_try") 2>&5 18118 ac_status=$? 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); }; }; then 18121 ac_cv_type_u_int64_t=yes 18122else 18123 echo "$as_me: failed program was:" >&5 18124sed 's/^/| /' conftest.$ac_ext >&5 18125 18126 ac_cv_type_u_int64_t=no 18127fi 18128 18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18130fi 18131{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 18132echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 18133if test $ac_cv_type_u_int64_t = yes; then 18134 18135cat >>confdefs.h <<_ACEOF 18136#define HAVE_U_INT64_T 1 18137_ACEOF 18138 18139 18140else 18141 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 18142echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 18143 { (exit 1); exit 1; }; } 18144fi 18145 18146fi 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 18158do 18159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18160{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18163 echo $ECHO_N "(cached) $ECHO_C" >&6 18164else 18165 cat >conftest.$ac_ext <<_ACEOF 18166/* confdefs.h. */ 18167_ACEOF 18168cat confdefs.h >>conftest.$ac_ext 18169cat >>conftest.$ac_ext <<_ACEOF 18170/* end confdefs.h. */ 18171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18173#define $ac_func innocuous_$ac_func 18174 18175/* System header to define __stub macros and hopefully few prototypes, 18176 which can conflict with char $ac_func (); below. 18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18178 <limits.h> exists even on freestanding compilers. */ 18179 18180#ifdef __STDC__ 18181# include <limits.h> 18182#else 18183# include <assert.h> 18184#endif 18185 18186#undef $ac_func 18187 18188/* Override any GCC internal prototype to avoid an error. 18189 Use char because int might match the return type of a GCC 18190 builtin and then its argument prototype would still apply. */ 18191#ifdef __cplusplus 18192extern "C" 18193#endif 18194char $ac_func (); 18195/* The GNU C library defines this for functions which it implements 18196 to always fail with ENOSYS. Some functions are actually named 18197 something starting with __ and the normal name is an alias. */ 18198#if defined __stub_$ac_func || defined __stub___$ac_func 18199choke me 18200#endif 18201 18202int 18203main () 18204{ 18205return $ac_func (); 18206 ; 18207 return 0; 18208} 18209_ACEOF 18210rm -f conftest.$ac_objext conftest$ac_exeext 18211if { (ac_try="$ac_link" 18212case "(($ac_try" in 18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18214 *) ac_try_echo=$ac_try;; 18215esac 18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18217 (eval "$ac_link") 2>conftest.er1 18218 ac_status=$? 18219 grep -v '^ *+' conftest.er1 >conftest.err 18220 rm -f conftest.er1 18221 cat conftest.err >&5 18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18223 (exit $ac_status); } && 18224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18225 { (case "(($ac_try" in 18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18227 *) ac_try_echo=$ac_try;; 18228esac 18229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18230 (eval "$ac_try") 2>&5 18231 ac_status=$? 18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18233 (exit $ac_status); }; } && 18234 { ac_try='test -s conftest$ac_exeext' 18235 { (case "(($ac_try" in 18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18237 *) ac_try_echo=$ac_try;; 18238esac 18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18240 (eval "$ac_try") 2>&5 18241 ac_status=$? 18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18243 (exit $ac_status); }; }; then 18244 eval "$as_ac_var=yes" 18245else 18246 echo "$as_me: failed program was:" >&5 18247sed 's/^/| /' conftest.$ac_ext >&5 18248 18249 eval "$as_ac_var=no" 18250fi 18251 18252rm -f core conftest.err conftest.$ac_objext \ 18253 conftest$ac_exeext conftest.$ac_ext 18254fi 18255ac_res=`eval echo '${'$as_ac_var'}'` 18256 { echo "$as_me:$LINENO: result: $ac_res" >&5 18257echo "${ECHO_T}$ac_res" >&6; } 18258if test `eval echo '${'$as_ac_var'}'` = yes; then 18259 cat >>confdefs.h <<_ACEOF 18260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18261_ACEOF 18262 18263fi 18264done 18265 18266 18267 18268 18269 18270for ac_func in powf fmodf strtof round 18271do 18272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18273{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18276 echo $ECHO_N "(cached) $ECHO_C" >&6 18277else 18278 cat >conftest.$ac_ext <<_ACEOF 18279/* confdefs.h. */ 18280_ACEOF 18281cat confdefs.h >>conftest.$ac_ext 18282cat >>conftest.$ac_ext <<_ACEOF 18283/* end confdefs.h. */ 18284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18286#define $ac_func innocuous_$ac_func 18287 18288/* System header to define __stub macros and hopefully few prototypes, 18289 which can conflict with char $ac_func (); below. 18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18291 <limits.h> exists even on freestanding compilers. */ 18292 18293#ifdef __STDC__ 18294# include <limits.h> 18295#else 18296# include <assert.h> 18297#endif 18298 18299#undef $ac_func 18300 18301/* Override any GCC internal prototype to avoid an error. 18302 Use char because int might match the return type of a GCC 18303 builtin and then its argument prototype would still apply. */ 18304#ifdef __cplusplus 18305extern "C" 18306#endif 18307char $ac_func (); 18308/* The GNU C library defines this for functions which it implements 18309 to always fail with ENOSYS. Some functions are actually named 18310 something starting with __ and the normal name is an alias. */ 18311#if defined __stub_$ac_func || defined __stub___$ac_func 18312choke me 18313#endif 18314 18315int 18316main () 18317{ 18318return $ac_func (); 18319 ; 18320 return 0; 18321} 18322_ACEOF 18323rm -f conftest.$ac_objext conftest$ac_exeext 18324if { (ac_try="$ac_link" 18325case "(($ac_try" in 18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18327 *) ac_try_echo=$ac_try;; 18328esac 18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18330 (eval "$ac_link") 2>conftest.er1 18331 ac_status=$? 18332 grep -v '^ *+' conftest.er1 >conftest.err 18333 rm -f conftest.er1 18334 cat conftest.err >&5 18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18336 (exit $ac_status); } && 18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18338 { (case "(($ac_try" in 18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18340 *) ac_try_echo=$ac_try;; 18341esac 18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18343 (eval "$ac_try") 2>&5 18344 ac_status=$? 18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18346 (exit $ac_status); }; } && 18347 { ac_try='test -s conftest$ac_exeext' 18348 { (case "(($ac_try" in 18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18350 *) ac_try_echo=$ac_try;; 18351esac 18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18353 (eval "$ac_try") 2>&5 18354 ac_status=$? 18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18356 (exit $ac_status); }; }; then 18357 eval "$as_ac_var=yes" 18358else 18359 echo "$as_me: failed program was:" >&5 18360sed 's/^/| /' conftest.$ac_ext >&5 18361 18362 eval "$as_ac_var=no" 18363fi 18364 18365rm -f core conftest.err conftest.$ac_objext \ 18366 conftest$ac_exeext conftest.$ac_ext 18367fi 18368ac_res=`eval echo '${'$as_ac_var'}'` 18369 { echo "$as_me:$LINENO: result: $ac_res" >&5 18370echo "${ECHO_T}$ac_res" >&6; } 18371if test `eval echo '${'$as_ac_var'}'` = yes; then 18372 cat >>confdefs.h <<_ACEOF 18373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18374_ACEOF 18375 18376fi 18377done 18378 18379 18380 18381 18382 18383 18384for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 18385do 18386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18387{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18390 echo $ECHO_N "(cached) $ECHO_C" >&6 18391else 18392 cat >conftest.$ac_ext <<_ACEOF 18393/* confdefs.h. */ 18394_ACEOF 18395cat confdefs.h >>conftest.$ac_ext 18396cat >>conftest.$ac_ext <<_ACEOF 18397/* end confdefs.h. */ 18398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18399 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18400#define $ac_func innocuous_$ac_func 18401 18402/* System header to define __stub macros and hopefully few prototypes, 18403 which can conflict with char $ac_func (); below. 18404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18405 <limits.h> exists even on freestanding compilers. */ 18406 18407#ifdef __STDC__ 18408# include <limits.h> 18409#else 18410# include <assert.h> 18411#endif 18412 18413#undef $ac_func 18414 18415/* Override any GCC internal prototype to avoid an error. 18416 Use char because int might match the return type of a GCC 18417 builtin and then its argument prototype would still apply. */ 18418#ifdef __cplusplus 18419extern "C" 18420#endif 18421char $ac_func (); 18422/* The GNU C library defines this for functions which it implements 18423 to always fail with ENOSYS. Some functions are actually named 18424 something starting with __ and the normal name is an alias. */ 18425#if defined __stub_$ac_func || defined __stub___$ac_func 18426choke me 18427#endif 18428 18429int 18430main () 18431{ 18432return $ac_func (); 18433 ; 18434 return 0; 18435} 18436_ACEOF 18437rm -f conftest.$ac_objext conftest$ac_exeext 18438if { (ac_try="$ac_link" 18439case "(($ac_try" in 18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18441 *) ac_try_echo=$ac_try;; 18442esac 18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18444 (eval "$ac_link") 2>conftest.er1 18445 ac_status=$? 18446 grep -v '^ *+' conftest.er1 >conftest.err 18447 rm -f conftest.er1 18448 cat conftest.err >&5 18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18450 (exit $ac_status); } && 18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18452 { (case "(($ac_try" in 18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18454 *) ac_try_echo=$ac_try;; 18455esac 18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18457 (eval "$ac_try") 2>&5 18458 ac_status=$? 18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18460 (exit $ac_status); }; } && 18461 { ac_try='test -s conftest$ac_exeext' 18462 { (case "(($ac_try" in 18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18464 *) ac_try_echo=$ac_try;; 18465esac 18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18467 (eval "$ac_try") 2>&5 18468 ac_status=$? 18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18470 (exit $ac_status); }; }; then 18471 eval "$as_ac_var=yes" 18472else 18473 echo "$as_me: failed program was:" >&5 18474sed 's/^/| /' conftest.$ac_ext >&5 18475 18476 eval "$as_ac_var=no" 18477fi 18478 18479rm -f core conftest.err conftest.$ac_objext \ 18480 conftest$ac_exeext conftest.$ac_ext 18481fi 18482ac_res=`eval echo '${'$as_ac_var'}'` 18483 { echo "$as_me:$LINENO: result: $ac_res" >&5 18484echo "${ECHO_T}$ac_res" >&6; } 18485if test `eval echo '${'$as_ac_var'}'` = yes; then 18486 cat >>confdefs.h <<_ACEOF 18487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18488_ACEOF 18489 18490fi 18491done 18492 18493 18494 18495 18496for ac_func in isatty mkdtemp mkstemp 18497do 18498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18499{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18501if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18502 echo $ECHO_N "(cached) $ECHO_C" >&6 18503else 18504 cat >conftest.$ac_ext <<_ACEOF 18505/* confdefs.h. */ 18506_ACEOF 18507cat confdefs.h >>conftest.$ac_ext 18508cat >>conftest.$ac_ext <<_ACEOF 18509/* end confdefs.h. */ 18510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18511 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18512#define $ac_func innocuous_$ac_func 18513 18514/* System header to define __stub macros and hopefully few prototypes, 18515 which can conflict with char $ac_func (); below. 18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18517 <limits.h> exists even on freestanding compilers. */ 18518 18519#ifdef __STDC__ 18520# include <limits.h> 18521#else 18522# include <assert.h> 18523#endif 18524 18525#undef $ac_func 18526 18527/* Override any GCC internal prototype to avoid an error. 18528 Use char because int might match the return type of a GCC 18529 builtin and then its argument prototype would still apply. */ 18530#ifdef __cplusplus 18531extern "C" 18532#endif 18533char $ac_func (); 18534/* The GNU C library defines this for functions which it implements 18535 to always fail with ENOSYS. Some functions are actually named 18536 something starting with __ and the normal name is an alias. */ 18537#if defined __stub_$ac_func || defined __stub___$ac_func 18538choke me 18539#endif 18540 18541int 18542main () 18543{ 18544return $ac_func (); 18545 ; 18546 return 0; 18547} 18548_ACEOF 18549rm -f conftest.$ac_objext conftest$ac_exeext 18550if { (ac_try="$ac_link" 18551case "(($ac_try" in 18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18553 *) ac_try_echo=$ac_try;; 18554esac 18555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18556 (eval "$ac_link") 2>conftest.er1 18557 ac_status=$? 18558 grep -v '^ *+' conftest.er1 >conftest.err 18559 rm -f conftest.er1 18560 cat conftest.err >&5 18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18562 (exit $ac_status); } && 18563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18564 { (case "(($ac_try" in 18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18566 *) ac_try_echo=$ac_try;; 18567esac 18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18569 (eval "$ac_try") 2>&5 18570 ac_status=$? 18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18572 (exit $ac_status); }; } && 18573 { ac_try='test -s conftest$ac_exeext' 18574 { (case "(($ac_try" in 18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18576 *) ac_try_echo=$ac_try;; 18577esac 18578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18579 (eval "$ac_try") 2>&5 18580 ac_status=$? 18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18582 (exit $ac_status); }; }; then 18583 eval "$as_ac_var=yes" 18584else 18585 echo "$as_me: failed program was:" >&5 18586sed 's/^/| /' conftest.$ac_ext >&5 18587 18588 eval "$as_ac_var=no" 18589fi 18590 18591rm -f core conftest.err conftest.$ac_objext \ 18592 conftest$ac_exeext conftest.$ac_ext 18593fi 18594ac_res=`eval echo '${'$as_ac_var'}'` 18595 { echo "$as_me:$LINENO: result: $ac_res" >&5 18596echo "${ECHO_T}$ac_res" >&6; } 18597if test `eval echo '${'$as_ac_var'}'` = yes; then 18598 cat >>confdefs.h <<_ACEOF 18599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18600_ACEOF 18601 18602fi 18603done 18604 18605 18606 18607 18608 18609 18610 18611for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 18612do 18613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18614{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18617 echo $ECHO_N "(cached) $ECHO_C" >&6 18618else 18619 cat >conftest.$ac_ext <<_ACEOF 18620/* confdefs.h. */ 18621_ACEOF 18622cat confdefs.h >>conftest.$ac_ext 18623cat >>conftest.$ac_ext <<_ACEOF 18624/* end confdefs.h. */ 18625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18626 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18627#define $ac_func innocuous_$ac_func 18628 18629/* System header to define __stub macros and hopefully few prototypes, 18630 which can conflict with char $ac_func (); below. 18631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18632 <limits.h> exists even on freestanding compilers. */ 18633 18634#ifdef __STDC__ 18635# include <limits.h> 18636#else 18637# include <assert.h> 18638#endif 18639 18640#undef $ac_func 18641 18642/* Override any GCC internal prototype to avoid an error. 18643 Use char because int might match the return type of a GCC 18644 builtin and then its argument prototype would still apply. */ 18645#ifdef __cplusplus 18646extern "C" 18647#endif 18648char $ac_func (); 18649/* The GNU C library defines this for functions which it implements 18650 to always fail with ENOSYS. Some functions are actually named 18651 something starting with __ and the normal name is an alias. */ 18652#if defined __stub_$ac_func || defined __stub___$ac_func 18653choke me 18654#endif 18655 18656int 18657main () 18658{ 18659return $ac_func (); 18660 ; 18661 return 0; 18662} 18663_ACEOF 18664rm -f conftest.$ac_objext conftest$ac_exeext 18665if { (ac_try="$ac_link" 18666case "(($ac_try" in 18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18668 *) ac_try_echo=$ac_try;; 18669esac 18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18671 (eval "$ac_link") 2>conftest.er1 18672 ac_status=$? 18673 grep -v '^ *+' conftest.er1 >conftest.err 18674 rm -f conftest.er1 18675 cat conftest.err >&5 18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18677 (exit $ac_status); } && 18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18679 { (case "(($ac_try" in 18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18681 *) ac_try_echo=$ac_try;; 18682esac 18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18684 (eval "$ac_try") 2>&5 18685 ac_status=$? 18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18687 (exit $ac_status); }; } && 18688 { ac_try='test -s conftest$ac_exeext' 18689 { (case "(($ac_try" in 18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18691 *) ac_try_echo=$ac_try;; 18692esac 18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18694 (eval "$ac_try") 2>&5 18695 ac_status=$? 18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18697 (exit $ac_status); }; }; then 18698 eval "$as_ac_var=yes" 18699else 18700 echo "$as_me: failed program was:" >&5 18701sed 's/^/| /' conftest.$ac_ext >&5 18702 18703 eval "$as_ac_var=no" 18704fi 18705 18706rm -f core conftest.err conftest.$ac_objext \ 18707 conftest$ac_exeext conftest.$ac_ext 18708fi 18709ac_res=`eval echo '${'$as_ac_var'}'` 18710 { echo "$as_me:$LINENO: result: $ac_res" >&5 18711echo "${ECHO_T}$ac_res" >&6; } 18712if test `eval echo '${'$as_ac_var'}'` = yes; then 18713 cat >>confdefs.h <<_ACEOF 18714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18715_ACEOF 18716 18717fi 18718done 18719 18720 18721 18722 18723for ac_func in strerror strerror_r setenv 18724do 18725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18726{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18729 echo $ECHO_N "(cached) $ECHO_C" >&6 18730else 18731 cat >conftest.$ac_ext <<_ACEOF 18732/* confdefs.h. */ 18733_ACEOF 18734cat confdefs.h >>conftest.$ac_ext 18735cat >>conftest.$ac_ext <<_ACEOF 18736/* end confdefs.h. */ 18737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18739#define $ac_func innocuous_$ac_func 18740 18741/* System header to define __stub macros and hopefully few prototypes, 18742 which can conflict with char $ac_func (); below. 18743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18744 <limits.h> exists even on freestanding compilers. */ 18745 18746#ifdef __STDC__ 18747# include <limits.h> 18748#else 18749# include <assert.h> 18750#endif 18751 18752#undef $ac_func 18753 18754/* Override any GCC internal prototype to avoid an error. 18755 Use char because int might match the return type of a GCC 18756 builtin and then its argument prototype would still apply. */ 18757#ifdef __cplusplus 18758extern "C" 18759#endif 18760char $ac_func (); 18761/* The GNU C library defines this for functions which it implements 18762 to always fail with ENOSYS. Some functions are actually named 18763 something starting with __ and the normal name is an alias. */ 18764#if defined __stub_$ac_func || defined __stub___$ac_func 18765choke me 18766#endif 18767 18768int 18769main () 18770{ 18771return $ac_func (); 18772 ; 18773 return 0; 18774} 18775_ACEOF 18776rm -f conftest.$ac_objext conftest$ac_exeext 18777if { (ac_try="$ac_link" 18778case "(($ac_try" in 18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18780 *) ac_try_echo=$ac_try;; 18781esac 18782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18783 (eval "$ac_link") 2>conftest.er1 18784 ac_status=$? 18785 grep -v '^ *+' conftest.er1 >conftest.err 18786 rm -f conftest.er1 18787 cat conftest.err >&5 18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18789 (exit $ac_status); } && 18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18791 { (case "(($ac_try" in 18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18793 *) ac_try_echo=$ac_try;; 18794esac 18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18796 (eval "$ac_try") 2>&5 18797 ac_status=$? 18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18799 (exit $ac_status); }; } && 18800 { ac_try='test -s conftest$ac_exeext' 18801 { (case "(($ac_try" in 18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18803 *) ac_try_echo=$ac_try;; 18804esac 18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18806 (eval "$ac_try") 2>&5 18807 ac_status=$? 18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18809 (exit $ac_status); }; }; then 18810 eval "$as_ac_var=yes" 18811else 18812 echo "$as_me: failed program was:" >&5 18813sed 's/^/| /' conftest.$ac_ext >&5 18814 18815 eval "$as_ac_var=no" 18816fi 18817 18818rm -f core conftest.err conftest.$ac_objext \ 18819 conftest$ac_exeext conftest.$ac_ext 18820fi 18821ac_res=`eval echo '${'$as_ac_var'}'` 18822 { echo "$as_me:$LINENO: result: $ac_res" >&5 18823echo "${ECHO_T}$ac_res" >&6; } 18824if test `eval echo '${'$as_ac_var'}'` = yes; then 18825 cat >>confdefs.h <<_ACEOF 18826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18827_ACEOF 18828 18829fi 18830done 18831 18832 18833 18834 18835 18836for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18837do 18838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18839{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18842 echo $ECHO_N "(cached) $ECHO_C" >&6 18843else 18844 cat >conftest.$ac_ext <<_ACEOF 18845/* confdefs.h. */ 18846_ACEOF 18847cat confdefs.h >>conftest.$ac_ext 18848cat >>conftest.$ac_ext <<_ACEOF 18849/* end confdefs.h. */ 18850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18852#define $ac_func innocuous_$ac_func 18853 18854/* System header to define __stub macros and hopefully few prototypes, 18855 which can conflict with char $ac_func (); below. 18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18857 <limits.h> exists even on freestanding compilers. */ 18858 18859#ifdef __STDC__ 18860# include <limits.h> 18861#else 18862# include <assert.h> 18863#endif 18864 18865#undef $ac_func 18866 18867/* Override any GCC internal prototype to avoid an error. 18868 Use char because int might match the return type of a GCC 18869 builtin and then its argument prototype would still apply. */ 18870#ifdef __cplusplus 18871extern "C" 18872#endif 18873char $ac_func (); 18874/* The GNU C library defines this for functions which it implements 18875 to always fail with ENOSYS. Some functions are actually named 18876 something starting with __ and the normal name is an alias. */ 18877#if defined __stub_$ac_func || defined __stub___$ac_func 18878choke me 18879#endif 18880 18881int 18882main () 18883{ 18884return $ac_func (); 18885 ; 18886 return 0; 18887} 18888_ACEOF 18889rm -f conftest.$ac_objext conftest$ac_exeext 18890if { (ac_try="$ac_link" 18891case "(($ac_try" in 18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18893 *) ac_try_echo=$ac_try;; 18894esac 18895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18896 (eval "$ac_link") 2>conftest.er1 18897 ac_status=$? 18898 grep -v '^ *+' conftest.er1 >conftest.err 18899 rm -f conftest.er1 18900 cat conftest.err >&5 18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18902 (exit $ac_status); } && 18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18904 { (case "(($ac_try" in 18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18906 *) ac_try_echo=$ac_try;; 18907esac 18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18909 (eval "$ac_try") 2>&5 18910 ac_status=$? 18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18912 (exit $ac_status); }; } && 18913 { ac_try='test -s conftest$ac_exeext' 18914 { (case "(($ac_try" in 18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18916 *) ac_try_echo=$ac_try;; 18917esac 18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18919 (eval "$ac_try") 2>&5 18920 ac_status=$? 18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18922 (exit $ac_status); }; }; then 18923 eval "$as_ac_var=yes" 18924else 18925 echo "$as_me: failed program was:" >&5 18926sed 's/^/| /' conftest.$ac_ext >&5 18927 18928 eval "$as_ac_var=no" 18929fi 18930 18931rm -f core conftest.err conftest.$ac_objext \ 18932 conftest$ac_exeext conftest.$ac_ext 18933fi 18934ac_res=`eval echo '${'$as_ac_var'}'` 18935 { echo "$as_me:$LINENO: result: $ac_res" >&5 18936echo "${ECHO_T}$ac_res" >&6; } 18937if test `eval echo '${'$as_ac_var'}'` = yes; then 18938 cat >>confdefs.h <<_ACEOF 18939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18940_ACEOF 18941 18942fi 18943done 18944 18945 18946 18947 18948 18949 18950for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18951do 18952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18953{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18956 echo $ECHO_N "(cached) $ECHO_C" >&6 18957else 18958 cat >conftest.$ac_ext <<_ACEOF 18959/* confdefs.h. */ 18960_ACEOF 18961cat confdefs.h >>conftest.$ac_ext 18962cat >>conftest.$ac_ext <<_ACEOF 18963/* end confdefs.h. */ 18964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18966#define $ac_func innocuous_$ac_func 18967 18968/* System header to define __stub macros and hopefully few prototypes, 18969 which can conflict with char $ac_func (); below. 18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18971 <limits.h> exists even on freestanding compilers. */ 18972 18973#ifdef __STDC__ 18974# include <limits.h> 18975#else 18976# include <assert.h> 18977#endif 18978 18979#undef $ac_func 18980 18981/* Override any GCC internal prototype to avoid an error. 18982 Use char because int might match the return type of a GCC 18983 builtin and then its argument prototype would still apply. */ 18984#ifdef __cplusplus 18985extern "C" 18986#endif 18987char $ac_func (); 18988/* The GNU C library defines this for functions which it implements 18989 to always fail with ENOSYS. Some functions are actually named 18990 something starting with __ and the normal name is an alias. */ 18991#if defined __stub_$ac_func || defined __stub___$ac_func 18992choke me 18993#endif 18994 18995int 18996main () 18997{ 18998return $ac_func (); 18999 ; 19000 return 0; 19001} 19002_ACEOF 19003rm -f conftest.$ac_objext conftest$ac_exeext 19004if { (ac_try="$ac_link" 19005case "(($ac_try" in 19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19007 *) ac_try_echo=$ac_try;; 19008esac 19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19010 (eval "$ac_link") 2>conftest.er1 19011 ac_status=$? 19012 grep -v '^ *+' conftest.er1 >conftest.err 19013 rm -f conftest.er1 19014 cat conftest.err >&5 19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19016 (exit $ac_status); } && 19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19018 { (case "(($ac_try" in 19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19020 *) ac_try_echo=$ac_try;; 19021esac 19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19023 (eval "$ac_try") 2>&5 19024 ac_status=$? 19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19026 (exit $ac_status); }; } && 19027 { ac_try='test -s conftest$ac_exeext' 19028 { (case "(($ac_try" in 19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19030 *) ac_try_echo=$ac_try;; 19031esac 19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19033 (eval "$ac_try") 2>&5 19034 ac_status=$? 19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19036 (exit $ac_status); }; }; then 19037 eval "$as_ac_var=yes" 19038else 19039 echo "$as_me: failed program was:" >&5 19040sed 's/^/| /' conftest.$ac_ext >&5 19041 19042 eval "$as_ac_var=no" 19043fi 19044 19045rm -f core conftest.err conftest.$ac_objext \ 19046 conftest$ac_exeext conftest.$ac_ext 19047fi 19048ac_res=`eval echo '${'$as_ac_var'}'` 19049 { echo "$as_me:$LINENO: result: $ac_res" >&5 19050echo "${ECHO_T}$ac_res" >&6; } 19051if test `eval echo '${'$as_ac_var'}'` = yes; then 19052 cat >>confdefs.h <<_ACEOF 19053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19054_ACEOF 19055 19056fi 19057done 19058 19059{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 19060echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 19061if test "${llvm_cv_c_printf_a+set}" = set; then 19062 echo $ECHO_N "(cached) $ECHO_C" >&6 19063else 19064 ac_ext=c 19065ac_cpp='$CPP $CPPFLAGS' 19066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19068ac_compiler_gnu=$ac_cv_c_compiler_gnu 19069 19070 if test "$cross_compiling" = yes; then 19071 llvmac_cv_c_printf_a=no 19072else 19073 cat >conftest.$ac_ext <<_ACEOF 19074 19075 /* confdefs.h. */ 19076_ACEOF 19077cat confdefs.h >>conftest.$ac_ext 19078cat >>conftest.$ac_ext <<_ACEOF 19079/* end confdefs.h. */ 19080 19081#include <stdio.h> 19082#include <stdlib.h> 19083 19084int 19085main () 19086{ 19087 19088volatile double A, B; 19089char Buffer[100]; 19090A = 1; 19091A /= 10.0; 19092sprintf(Buffer, "%a", A); 19093B = atof(Buffer); 19094if (A != B) 19095 return (1); 19096if (A != 0x1.999999999999ap-4) 19097 return (1); 19098return (0); 19099 ; 19100 return 0; 19101} 19102_ACEOF 19103rm -f conftest$ac_exeext 19104if { (ac_try="$ac_link" 19105case "(($ac_try" in 19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19107 *) ac_try_echo=$ac_try;; 19108esac 19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19110 (eval "$ac_link") 2>&5 19111 ac_status=$? 19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19114 { (case "(($ac_try" in 19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19116 *) ac_try_echo=$ac_try;; 19117esac 19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19119 (eval "$ac_try") 2>&5 19120 ac_status=$? 19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19122 (exit $ac_status); }; }; then 19123 llvm_cv_c_printf_a=yes 19124else 19125 echo "$as_me: program exited with status $ac_status" >&5 19126echo "$as_me: failed program was:" >&5 19127sed 's/^/| /' conftest.$ac_ext >&5 19128 19129( exit $ac_status ) 19130llvmac_cv_c_printf_a=no 19131fi 19132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19133fi 19134 19135 19136 ac_ext=c 19137ac_cpp='$CPP $CPPFLAGS' 19138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19140ac_compiler_gnu=$ac_cv_c_compiler_gnu 19141 19142fi 19143{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 19144echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 19145 if test "$llvm_cv_c_printf_a" = "yes"; then 19146 19147cat >>confdefs.h <<\_ACEOF 19148#define HAVE_PRINTF_A 1 19149_ACEOF 19150 19151 fi 19152 19153 19154{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 19155echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 19156if test "${ac_cv_func_rand48+set}" = set; then 19157 echo $ECHO_N "(cached) $ECHO_C" >&6 19158else 19159 ac_ext=cpp 19160ac_cpp='$CXXCPP $CPPFLAGS' 19161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19164 19165 cat >conftest.$ac_ext <<_ACEOF 19166/* confdefs.h. */ 19167_ACEOF 19168cat confdefs.h >>conftest.$ac_ext 19169cat >>conftest.$ac_ext <<_ACEOF 19170/* end confdefs.h. */ 19171#include <stdlib.h> 19172int 19173main () 19174{ 19175srand48(0);lrand48();drand48(); 19176 ; 19177 return 0; 19178} 19179_ACEOF 19180rm -f conftest.$ac_objext 19181if { (ac_try="$ac_compile" 19182case "(($ac_try" in 19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19184 *) ac_try_echo=$ac_try;; 19185esac 19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19187 (eval "$ac_compile") 2>conftest.er1 19188 ac_status=$? 19189 grep -v '^ *+' conftest.er1 >conftest.err 19190 rm -f conftest.er1 19191 cat conftest.err >&5 19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19193 (exit $ac_status); } && 19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19195 { (case "(($ac_try" in 19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19197 *) ac_try_echo=$ac_try;; 19198esac 19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19200 (eval "$ac_try") 2>&5 19201 ac_status=$? 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19203 (exit $ac_status); }; } && 19204 { ac_try='test -s conftest.$ac_objext' 19205 { (case "(($ac_try" in 19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19207 *) ac_try_echo=$ac_try;; 19208esac 19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19210 (eval "$ac_try") 2>&5 19211 ac_status=$? 19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19213 (exit $ac_status); }; }; then 19214 ac_cv_func_rand48=yes 19215else 19216 echo "$as_me: failed program was:" >&5 19217sed 's/^/| /' conftest.$ac_ext >&5 19218 19219 ac_cv_func_rand48=no 19220fi 19221 19222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19223 ac_ext=c 19224ac_cpp='$CPP $CPPFLAGS' 19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19227ac_compiler_gnu=$ac_cv_c_compiler_gnu 19228 19229fi 19230{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 19231echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 19232 19233if test "$ac_cv_func_rand48" = "yes" ; then 19234 19235cat >>confdefs.h <<\_ACEOF 19236#define HAVE_RAND48 1 19237_ACEOF 19238 19239fi 19240 19241 19242{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 19243echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 19244if test "${ac_cv_have_decl_strerror_s+set}" = set; then 19245 echo $ECHO_N "(cached) $ECHO_C" >&6 19246else 19247 cat >conftest.$ac_ext <<_ACEOF 19248/* confdefs.h. */ 19249_ACEOF 19250cat confdefs.h >>conftest.$ac_ext 19251cat >>conftest.$ac_ext <<_ACEOF 19252/* end confdefs.h. */ 19253$ac_includes_default 19254int 19255main () 19256{ 19257#ifndef strerror_s 19258 char *p = (char *) strerror_s; 19259 return !p; 19260#endif 19261 19262 ; 19263 return 0; 19264} 19265_ACEOF 19266rm -f conftest.$ac_objext 19267if { (ac_try="$ac_compile" 19268case "(($ac_try" in 19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19270 *) ac_try_echo=$ac_try;; 19271esac 19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19273 (eval "$ac_compile") 2>conftest.er1 19274 ac_status=$? 19275 grep -v '^ *+' conftest.er1 >conftest.err 19276 rm -f conftest.er1 19277 cat conftest.err >&5 19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19279 (exit $ac_status); } && 19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19281 { (case "(($ac_try" in 19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19283 *) ac_try_echo=$ac_try;; 19284esac 19285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19286 (eval "$ac_try") 2>&5 19287 ac_status=$? 19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19289 (exit $ac_status); }; } && 19290 { ac_try='test -s conftest.$ac_objext' 19291 { (case "(($ac_try" in 19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19293 *) ac_try_echo=$ac_try;; 19294esac 19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19296 (eval "$ac_try") 2>&5 19297 ac_status=$? 19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19299 (exit $ac_status); }; }; then 19300 ac_cv_have_decl_strerror_s=yes 19301else 19302 echo "$as_me: failed program was:" >&5 19303sed 's/^/| /' conftest.$ac_ext >&5 19304 19305 ac_cv_have_decl_strerror_s=no 19306fi 19307 19308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19309fi 19310{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 19311echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 19312if test $ac_cv_have_decl_strerror_s = yes; then 19313 19314cat >>confdefs.h <<_ACEOF 19315#define HAVE_DECL_STRERROR_S 1 19316_ACEOF 19317 19318 19319else 19320 cat >>confdefs.h <<_ACEOF 19321#define HAVE_DECL_STRERROR_S 0 19322_ACEOF 19323 19324 19325fi 19326 19327 19328 19329if test "$llvm_cv_os_type" = "MingW" ; then 19330 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 19331echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 19332if test "${ac_cv_lib_gcc__alloca+set}" = set; then 19333 echo $ECHO_N "(cached) $ECHO_C" >&6 19334else 19335 ac_check_lib_save_LIBS=$LIBS 19336LIBS="-lgcc $LIBS" 19337cat >conftest.$ac_ext <<_ACEOF 19338/* confdefs.h. */ 19339_ACEOF 19340cat confdefs.h >>conftest.$ac_ext 19341cat >>conftest.$ac_ext <<_ACEOF 19342/* end confdefs.h. */ 19343 19344/* Override any GCC internal prototype to avoid an error. 19345 Use char because int might match the return type of a GCC 19346 builtin and then its argument prototype would still apply. */ 19347#ifdef __cplusplus 19348extern "C" 19349#endif 19350char _alloca (); 19351int 19352main () 19353{ 19354return _alloca (); 19355 ; 19356 return 0; 19357} 19358_ACEOF 19359rm -f conftest.$ac_objext conftest$ac_exeext 19360if { (ac_try="$ac_link" 19361case "(($ac_try" in 19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19363 *) ac_try_echo=$ac_try;; 19364esac 19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19366 (eval "$ac_link") 2>conftest.er1 19367 ac_status=$? 19368 grep -v '^ *+' conftest.er1 >conftest.err 19369 rm -f conftest.er1 19370 cat conftest.err >&5 19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19372 (exit $ac_status); } && 19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19374 { (case "(($ac_try" in 19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19376 *) ac_try_echo=$ac_try;; 19377esac 19378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19379 (eval "$ac_try") 2>&5 19380 ac_status=$? 19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19382 (exit $ac_status); }; } && 19383 { ac_try='test -s conftest$ac_exeext' 19384 { (case "(($ac_try" in 19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19386 *) ac_try_echo=$ac_try;; 19387esac 19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19389 (eval "$ac_try") 2>&5 19390 ac_status=$? 19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19392 (exit $ac_status); }; }; then 19393 ac_cv_lib_gcc__alloca=yes 19394else 19395 echo "$as_me: failed program was:" >&5 19396sed 's/^/| /' conftest.$ac_ext >&5 19397 19398 ac_cv_lib_gcc__alloca=no 19399fi 19400 19401rm -f core conftest.err conftest.$ac_objext \ 19402 conftest$ac_exeext conftest.$ac_ext 19403LIBS=$ac_check_lib_save_LIBS 19404fi 19405{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 19406echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 19407if test $ac_cv_lib_gcc__alloca = yes; then 19408 19409cat >>confdefs.h <<\_ACEOF 19410#define HAVE__ALLOCA 1 19411_ACEOF 19412 19413fi 19414 19415 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 19416echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 19417if test "${ac_cv_lib_gcc___alloca+set}" = set; then 19418 echo $ECHO_N "(cached) $ECHO_C" >&6 19419else 19420 ac_check_lib_save_LIBS=$LIBS 19421LIBS="-lgcc $LIBS" 19422cat >conftest.$ac_ext <<_ACEOF 19423/* confdefs.h. */ 19424_ACEOF 19425cat confdefs.h >>conftest.$ac_ext 19426cat >>conftest.$ac_ext <<_ACEOF 19427/* end confdefs.h. */ 19428 19429/* Override any GCC internal prototype to avoid an error. 19430 Use char because int might match the return type of a GCC 19431 builtin and then its argument prototype would still apply. */ 19432#ifdef __cplusplus 19433extern "C" 19434#endif 19435char __alloca (); 19436int 19437main () 19438{ 19439return __alloca (); 19440 ; 19441 return 0; 19442} 19443_ACEOF 19444rm -f conftest.$ac_objext conftest$ac_exeext 19445if { (ac_try="$ac_link" 19446case "(($ac_try" in 19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19448 *) ac_try_echo=$ac_try;; 19449esac 19450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19451 (eval "$ac_link") 2>conftest.er1 19452 ac_status=$? 19453 grep -v '^ *+' conftest.er1 >conftest.err 19454 rm -f conftest.er1 19455 cat conftest.err >&5 19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19457 (exit $ac_status); } && 19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19459 { (case "(($ac_try" in 19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19461 *) ac_try_echo=$ac_try;; 19462esac 19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19464 (eval "$ac_try") 2>&5 19465 ac_status=$? 19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19467 (exit $ac_status); }; } && 19468 { ac_try='test -s conftest$ac_exeext' 19469 { (case "(($ac_try" in 19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19471 *) ac_try_echo=$ac_try;; 19472esac 19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19474 (eval "$ac_try") 2>&5 19475 ac_status=$? 19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19477 (exit $ac_status); }; }; then 19478 ac_cv_lib_gcc___alloca=yes 19479else 19480 echo "$as_me: failed program was:" >&5 19481sed 's/^/| /' conftest.$ac_ext >&5 19482 19483 ac_cv_lib_gcc___alloca=no 19484fi 19485 19486rm -f core conftest.err conftest.$ac_objext \ 19487 conftest$ac_exeext conftest.$ac_ext 19488LIBS=$ac_check_lib_save_LIBS 19489fi 19490{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 19491echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 19492if test $ac_cv_lib_gcc___alloca = yes; then 19493 19494cat >>confdefs.h <<\_ACEOF 19495#define HAVE___ALLOCA 1 19496_ACEOF 19497 19498fi 19499 19500 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 19501echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 19502if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 19503 echo $ECHO_N "(cached) $ECHO_C" >&6 19504else 19505 ac_check_lib_save_LIBS=$LIBS 19506LIBS="-lgcc $LIBS" 19507cat >conftest.$ac_ext <<_ACEOF 19508/* confdefs.h. */ 19509_ACEOF 19510cat confdefs.h >>conftest.$ac_ext 19511cat >>conftest.$ac_ext <<_ACEOF 19512/* end confdefs.h. */ 19513 19514/* Override any GCC internal prototype to avoid an error. 19515 Use char because int might match the return type of a GCC 19516 builtin and then its argument prototype would still apply. */ 19517#ifdef __cplusplus 19518extern "C" 19519#endif 19520char __chkstk (); 19521int 19522main () 19523{ 19524return __chkstk (); 19525 ; 19526 return 0; 19527} 19528_ACEOF 19529rm -f conftest.$ac_objext conftest$ac_exeext 19530if { (ac_try="$ac_link" 19531case "(($ac_try" in 19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19533 *) ac_try_echo=$ac_try;; 19534esac 19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19536 (eval "$ac_link") 2>conftest.er1 19537 ac_status=$? 19538 grep -v '^ *+' conftest.er1 >conftest.err 19539 rm -f conftest.er1 19540 cat conftest.err >&5 19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19542 (exit $ac_status); } && 19543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19544 { (case "(($ac_try" in 19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19546 *) ac_try_echo=$ac_try;; 19547esac 19548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19549 (eval "$ac_try") 2>&5 19550 ac_status=$? 19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19552 (exit $ac_status); }; } && 19553 { ac_try='test -s conftest$ac_exeext' 19554 { (case "(($ac_try" in 19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19556 *) ac_try_echo=$ac_try;; 19557esac 19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19559 (eval "$ac_try") 2>&5 19560 ac_status=$? 19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19562 (exit $ac_status); }; }; then 19563 ac_cv_lib_gcc___chkstk=yes 19564else 19565 echo "$as_me: failed program was:" >&5 19566sed 's/^/| /' conftest.$ac_ext >&5 19567 19568 ac_cv_lib_gcc___chkstk=no 19569fi 19570 19571rm -f core conftest.err conftest.$ac_objext \ 19572 conftest$ac_exeext conftest.$ac_ext 19573LIBS=$ac_check_lib_save_LIBS 19574fi 19575{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 19576echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 19577if test $ac_cv_lib_gcc___chkstk = yes; then 19578 19579cat >>confdefs.h <<\_ACEOF 19580#define HAVE___CHKSTK 1 19581_ACEOF 19582 19583fi 19584 19585 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 19586echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 19587if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 19588 echo $ECHO_N "(cached) $ECHO_C" >&6 19589else 19590 ac_check_lib_save_LIBS=$LIBS 19591LIBS="-lgcc $LIBS" 19592cat >conftest.$ac_ext <<_ACEOF 19593/* confdefs.h. */ 19594_ACEOF 19595cat confdefs.h >>conftest.$ac_ext 19596cat >>conftest.$ac_ext <<_ACEOF 19597/* end confdefs.h. */ 19598 19599/* Override any GCC internal prototype to avoid an error. 19600 Use char because int might match the return type of a GCC 19601 builtin and then its argument prototype would still apply. */ 19602#ifdef __cplusplus 19603extern "C" 19604#endif 19605char ___chkstk (); 19606int 19607main () 19608{ 19609return ___chkstk (); 19610 ; 19611 return 0; 19612} 19613_ACEOF 19614rm -f conftest.$ac_objext conftest$ac_exeext 19615if { (ac_try="$ac_link" 19616case "(($ac_try" in 19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19618 *) ac_try_echo=$ac_try;; 19619esac 19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19621 (eval "$ac_link") 2>conftest.er1 19622 ac_status=$? 19623 grep -v '^ *+' conftest.er1 >conftest.err 19624 rm -f conftest.er1 19625 cat conftest.err >&5 19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19627 (exit $ac_status); } && 19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19629 { (case "(($ac_try" in 19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19631 *) ac_try_echo=$ac_try;; 19632esac 19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19634 (eval "$ac_try") 2>&5 19635 ac_status=$? 19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19637 (exit $ac_status); }; } && 19638 { ac_try='test -s conftest$ac_exeext' 19639 { (case "(($ac_try" in 19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19641 *) ac_try_echo=$ac_try;; 19642esac 19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19644 (eval "$ac_try") 2>&5 19645 ac_status=$? 19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19647 (exit $ac_status); }; }; then 19648 ac_cv_lib_gcc____chkstk=yes 19649else 19650 echo "$as_me: failed program was:" >&5 19651sed 's/^/| /' conftest.$ac_ext >&5 19652 19653 ac_cv_lib_gcc____chkstk=no 19654fi 19655 19656rm -f core conftest.err conftest.$ac_objext \ 19657 conftest$ac_exeext conftest.$ac_ext 19658LIBS=$ac_check_lib_save_LIBS 19659fi 19660{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 19661echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 19662if test $ac_cv_lib_gcc____chkstk = yes; then 19663 19664cat >>confdefs.h <<\_ACEOF 19665#define HAVE____CHKSTK 1 19666_ACEOF 19667 19668fi 19669 19670 19671 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 19672echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 19673if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 19674 echo $ECHO_N "(cached) $ECHO_C" >&6 19675else 19676 ac_check_lib_save_LIBS=$LIBS 19677LIBS="-lgcc $LIBS" 19678cat >conftest.$ac_ext <<_ACEOF 19679/* confdefs.h. */ 19680_ACEOF 19681cat confdefs.h >>conftest.$ac_ext 19682cat >>conftest.$ac_ext <<_ACEOF 19683/* end confdefs.h. */ 19684 19685/* Override any GCC internal prototype to avoid an error. 19686 Use char because int might match the return type of a GCC 19687 builtin and then its argument prototype would still apply. */ 19688#ifdef __cplusplus 19689extern "C" 19690#endif 19691char __ashldi3 (); 19692int 19693main () 19694{ 19695return __ashldi3 (); 19696 ; 19697 return 0; 19698} 19699_ACEOF 19700rm -f conftest.$ac_objext conftest$ac_exeext 19701if { (ac_try="$ac_link" 19702case "(($ac_try" in 19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19704 *) ac_try_echo=$ac_try;; 19705esac 19706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19707 (eval "$ac_link") 2>conftest.er1 19708 ac_status=$? 19709 grep -v '^ *+' conftest.er1 >conftest.err 19710 rm -f conftest.er1 19711 cat conftest.err >&5 19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19713 (exit $ac_status); } && 19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19715 { (case "(($ac_try" in 19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19717 *) ac_try_echo=$ac_try;; 19718esac 19719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19720 (eval "$ac_try") 2>&5 19721 ac_status=$? 19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19723 (exit $ac_status); }; } && 19724 { ac_try='test -s conftest$ac_exeext' 19725 { (case "(($ac_try" in 19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19727 *) ac_try_echo=$ac_try;; 19728esac 19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19730 (eval "$ac_try") 2>&5 19731 ac_status=$? 19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19733 (exit $ac_status); }; }; then 19734 ac_cv_lib_gcc___ashldi3=yes 19735else 19736 echo "$as_me: failed program was:" >&5 19737sed 's/^/| /' conftest.$ac_ext >&5 19738 19739 ac_cv_lib_gcc___ashldi3=no 19740fi 19741 19742rm -f core conftest.err conftest.$ac_objext \ 19743 conftest$ac_exeext conftest.$ac_ext 19744LIBS=$ac_check_lib_save_LIBS 19745fi 19746{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 19747echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 19748if test $ac_cv_lib_gcc___ashldi3 = yes; then 19749 19750cat >>confdefs.h <<\_ACEOF 19751#define HAVE___ASHLDI3 1 19752_ACEOF 19753 19754fi 19755 19756 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 19757echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 19758if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 19759 echo $ECHO_N "(cached) $ECHO_C" >&6 19760else 19761 ac_check_lib_save_LIBS=$LIBS 19762LIBS="-lgcc $LIBS" 19763cat >conftest.$ac_ext <<_ACEOF 19764/* confdefs.h. */ 19765_ACEOF 19766cat confdefs.h >>conftest.$ac_ext 19767cat >>conftest.$ac_ext <<_ACEOF 19768/* end confdefs.h. */ 19769 19770/* Override any GCC internal prototype to avoid an error. 19771 Use char because int might match the return type of a GCC 19772 builtin and then its argument prototype would still apply. */ 19773#ifdef __cplusplus 19774extern "C" 19775#endif 19776char __ashrdi3 (); 19777int 19778main () 19779{ 19780return __ashrdi3 (); 19781 ; 19782 return 0; 19783} 19784_ACEOF 19785rm -f conftest.$ac_objext conftest$ac_exeext 19786if { (ac_try="$ac_link" 19787case "(($ac_try" in 19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19789 *) ac_try_echo=$ac_try;; 19790esac 19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19792 (eval "$ac_link") 2>conftest.er1 19793 ac_status=$? 19794 grep -v '^ *+' conftest.er1 >conftest.err 19795 rm -f conftest.er1 19796 cat conftest.err >&5 19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19798 (exit $ac_status); } && 19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19800 { (case "(($ac_try" in 19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19802 *) ac_try_echo=$ac_try;; 19803esac 19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19805 (eval "$ac_try") 2>&5 19806 ac_status=$? 19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19808 (exit $ac_status); }; } && 19809 { ac_try='test -s conftest$ac_exeext' 19810 { (case "(($ac_try" in 19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19812 *) ac_try_echo=$ac_try;; 19813esac 19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19815 (eval "$ac_try") 2>&5 19816 ac_status=$? 19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19818 (exit $ac_status); }; }; then 19819 ac_cv_lib_gcc___ashrdi3=yes 19820else 19821 echo "$as_me: failed program was:" >&5 19822sed 's/^/| /' conftest.$ac_ext >&5 19823 19824 ac_cv_lib_gcc___ashrdi3=no 19825fi 19826 19827rm -f core conftest.err conftest.$ac_objext \ 19828 conftest$ac_exeext conftest.$ac_ext 19829LIBS=$ac_check_lib_save_LIBS 19830fi 19831{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 19832echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 19833if test $ac_cv_lib_gcc___ashrdi3 = yes; then 19834 19835cat >>confdefs.h <<\_ACEOF 19836#define HAVE___ASHRDI3 1 19837_ACEOF 19838 19839fi 19840 19841 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 19842echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 19843if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 19844 echo $ECHO_N "(cached) $ECHO_C" >&6 19845else 19846 ac_check_lib_save_LIBS=$LIBS 19847LIBS="-lgcc $LIBS" 19848cat >conftest.$ac_ext <<_ACEOF 19849/* confdefs.h. */ 19850_ACEOF 19851cat confdefs.h >>conftest.$ac_ext 19852cat >>conftest.$ac_ext <<_ACEOF 19853/* end confdefs.h. */ 19854 19855/* Override any GCC internal prototype to avoid an error. 19856 Use char because int might match the return type of a GCC 19857 builtin and then its argument prototype would still apply. */ 19858#ifdef __cplusplus 19859extern "C" 19860#endif 19861char __divdi3 (); 19862int 19863main () 19864{ 19865return __divdi3 (); 19866 ; 19867 return 0; 19868} 19869_ACEOF 19870rm -f conftest.$ac_objext conftest$ac_exeext 19871if { (ac_try="$ac_link" 19872case "(($ac_try" in 19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19874 *) ac_try_echo=$ac_try;; 19875esac 19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19877 (eval "$ac_link") 2>conftest.er1 19878 ac_status=$? 19879 grep -v '^ *+' conftest.er1 >conftest.err 19880 rm -f conftest.er1 19881 cat conftest.err >&5 19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19883 (exit $ac_status); } && 19884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19885 { (case "(($ac_try" in 19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19887 *) ac_try_echo=$ac_try;; 19888esac 19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19890 (eval "$ac_try") 2>&5 19891 ac_status=$? 19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19893 (exit $ac_status); }; } && 19894 { ac_try='test -s conftest$ac_exeext' 19895 { (case "(($ac_try" in 19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19897 *) ac_try_echo=$ac_try;; 19898esac 19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19900 (eval "$ac_try") 2>&5 19901 ac_status=$? 19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19903 (exit $ac_status); }; }; then 19904 ac_cv_lib_gcc___divdi3=yes 19905else 19906 echo "$as_me: failed program was:" >&5 19907sed 's/^/| /' conftest.$ac_ext >&5 19908 19909 ac_cv_lib_gcc___divdi3=no 19910fi 19911 19912rm -f core conftest.err conftest.$ac_objext \ 19913 conftest$ac_exeext conftest.$ac_ext 19914LIBS=$ac_check_lib_save_LIBS 19915fi 19916{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19917echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19918if test $ac_cv_lib_gcc___divdi3 = yes; then 19919 19920cat >>confdefs.h <<\_ACEOF 19921#define HAVE___DIVDI3 1 19922_ACEOF 19923 19924fi 19925 19926 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19927echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19928if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19929 echo $ECHO_N "(cached) $ECHO_C" >&6 19930else 19931 ac_check_lib_save_LIBS=$LIBS 19932LIBS="-lgcc $LIBS" 19933cat >conftest.$ac_ext <<_ACEOF 19934/* confdefs.h. */ 19935_ACEOF 19936cat confdefs.h >>conftest.$ac_ext 19937cat >>conftest.$ac_ext <<_ACEOF 19938/* end confdefs.h. */ 19939 19940/* Override any GCC internal prototype to avoid an error. 19941 Use char because int might match the return type of a GCC 19942 builtin and then its argument prototype would still apply. */ 19943#ifdef __cplusplus 19944extern "C" 19945#endif 19946char __fixdfdi (); 19947int 19948main () 19949{ 19950return __fixdfdi (); 19951 ; 19952 return 0; 19953} 19954_ACEOF 19955rm -f conftest.$ac_objext conftest$ac_exeext 19956if { (ac_try="$ac_link" 19957case "(($ac_try" in 19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19959 *) ac_try_echo=$ac_try;; 19960esac 19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19962 (eval "$ac_link") 2>conftest.er1 19963 ac_status=$? 19964 grep -v '^ *+' conftest.er1 >conftest.err 19965 rm -f conftest.er1 19966 cat conftest.err >&5 19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19968 (exit $ac_status); } && 19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19970 { (case "(($ac_try" in 19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19972 *) ac_try_echo=$ac_try;; 19973esac 19974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19975 (eval "$ac_try") 2>&5 19976 ac_status=$? 19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19978 (exit $ac_status); }; } && 19979 { ac_try='test -s conftest$ac_exeext' 19980 { (case "(($ac_try" in 19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19982 *) ac_try_echo=$ac_try;; 19983esac 19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19985 (eval "$ac_try") 2>&5 19986 ac_status=$? 19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19988 (exit $ac_status); }; }; then 19989 ac_cv_lib_gcc___fixdfdi=yes 19990else 19991 echo "$as_me: failed program was:" >&5 19992sed 's/^/| /' conftest.$ac_ext >&5 19993 19994 ac_cv_lib_gcc___fixdfdi=no 19995fi 19996 19997rm -f core conftest.err conftest.$ac_objext \ 19998 conftest$ac_exeext conftest.$ac_ext 19999LIBS=$ac_check_lib_save_LIBS 20000fi 20001{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 20002echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 20003if test $ac_cv_lib_gcc___fixdfdi = yes; then 20004 20005cat >>confdefs.h <<\_ACEOF 20006#define HAVE___FIXDFDI 1 20007_ACEOF 20008 20009fi 20010 20011 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 20012echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 20013if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 20014 echo $ECHO_N "(cached) $ECHO_C" >&6 20015else 20016 ac_check_lib_save_LIBS=$LIBS 20017LIBS="-lgcc $LIBS" 20018cat >conftest.$ac_ext <<_ACEOF 20019/* confdefs.h. */ 20020_ACEOF 20021cat confdefs.h >>conftest.$ac_ext 20022cat >>conftest.$ac_ext <<_ACEOF 20023/* end confdefs.h. */ 20024 20025/* Override any GCC internal prototype to avoid an error. 20026 Use char because int might match the return type of a GCC 20027 builtin and then its argument prototype would still apply. */ 20028#ifdef __cplusplus 20029extern "C" 20030#endif 20031char __fixsfdi (); 20032int 20033main () 20034{ 20035return __fixsfdi (); 20036 ; 20037 return 0; 20038} 20039_ACEOF 20040rm -f conftest.$ac_objext conftest$ac_exeext 20041if { (ac_try="$ac_link" 20042case "(($ac_try" in 20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20044 *) ac_try_echo=$ac_try;; 20045esac 20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20047 (eval "$ac_link") 2>conftest.er1 20048 ac_status=$? 20049 grep -v '^ *+' conftest.er1 >conftest.err 20050 rm -f conftest.er1 20051 cat conftest.err >&5 20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20053 (exit $ac_status); } && 20054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20055 { (case "(($ac_try" in 20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20057 *) ac_try_echo=$ac_try;; 20058esac 20059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20060 (eval "$ac_try") 2>&5 20061 ac_status=$? 20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20063 (exit $ac_status); }; } && 20064 { ac_try='test -s conftest$ac_exeext' 20065 { (case "(($ac_try" in 20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20067 *) ac_try_echo=$ac_try;; 20068esac 20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20070 (eval "$ac_try") 2>&5 20071 ac_status=$? 20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20073 (exit $ac_status); }; }; then 20074 ac_cv_lib_gcc___fixsfdi=yes 20075else 20076 echo "$as_me: failed program was:" >&5 20077sed 's/^/| /' conftest.$ac_ext >&5 20078 20079 ac_cv_lib_gcc___fixsfdi=no 20080fi 20081 20082rm -f core conftest.err conftest.$ac_objext \ 20083 conftest$ac_exeext conftest.$ac_ext 20084LIBS=$ac_check_lib_save_LIBS 20085fi 20086{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 20087echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 20088if test $ac_cv_lib_gcc___fixsfdi = yes; then 20089 20090cat >>confdefs.h <<\_ACEOF 20091#define HAVE___FIXSFDI 1 20092_ACEOF 20093 20094fi 20095 20096 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 20097echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 20098if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 20099 echo $ECHO_N "(cached) $ECHO_C" >&6 20100else 20101 ac_check_lib_save_LIBS=$LIBS 20102LIBS="-lgcc $LIBS" 20103cat >conftest.$ac_ext <<_ACEOF 20104/* confdefs.h. */ 20105_ACEOF 20106cat confdefs.h >>conftest.$ac_ext 20107cat >>conftest.$ac_ext <<_ACEOF 20108/* end confdefs.h. */ 20109 20110/* Override any GCC internal prototype to avoid an error. 20111 Use char because int might match the return type of a GCC 20112 builtin and then its argument prototype would still apply. */ 20113#ifdef __cplusplus 20114extern "C" 20115#endif 20116char __floatdidf (); 20117int 20118main () 20119{ 20120return __floatdidf (); 20121 ; 20122 return 0; 20123} 20124_ACEOF 20125rm -f conftest.$ac_objext conftest$ac_exeext 20126if { (ac_try="$ac_link" 20127case "(($ac_try" in 20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20129 *) ac_try_echo=$ac_try;; 20130esac 20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20132 (eval "$ac_link") 2>conftest.er1 20133 ac_status=$? 20134 grep -v '^ *+' conftest.er1 >conftest.err 20135 rm -f conftest.er1 20136 cat conftest.err >&5 20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20138 (exit $ac_status); } && 20139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20140 { (case "(($ac_try" in 20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20142 *) ac_try_echo=$ac_try;; 20143esac 20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20145 (eval "$ac_try") 2>&5 20146 ac_status=$? 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); }; } && 20149 { ac_try='test -s conftest$ac_exeext' 20150 { (case "(($ac_try" in 20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20152 *) ac_try_echo=$ac_try;; 20153esac 20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20155 (eval "$ac_try") 2>&5 20156 ac_status=$? 20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20158 (exit $ac_status); }; }; then 20159 ac_cv_lib_gcc___floatdidf=yes 20160else 20161 echo "$as_me: failed program was:" >&5 20162sed 's/^/| /' conftest.$ac_ext >&5 20163 20164 ac_cv_lib_gcc___floatdidf=no 20165fi 20166 20167rm -f core conftest.err conftest.$ac_objext \ 20168 conftest$ac_exeext conftest.$ac_ext 20169LIBS=$ac_check_lib_save_LIBS 20170fi 20171{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 20172echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 20173if test $ac_cv_lib_gcc___floatdidf = yes; then 20174 20175cat >>confdefs.h <<\_ACEOF 20176#define HAVE___FLOATDIDF 1 20177_ACEOF 20178 20179fi 20180 20181 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 20182echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 20183if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 20184 echo $ECHO_N "(cached) $ECHO_C" >&6 20185else 20186 ac_check_lib_save_LIBS=$LIBS 20187LIBS="-lgcc $LIBS" 20188cat >conftest.$ac_ext <<_ACEOF 20189/* confdefs.h. */ 20190_ACEOF 20191cat confdefs.h >>conftest.$ac_ext 20192cat >>conftest.$ac_ext <<_ACEOF 20193/* end confdefs.h. */ 20194 20195/* Override any GCC internal prototype to avoid an error. 20196 Use char because int might match the return type of a GCC 20197 builtin and then its argument prototype would still apply. */ 20198#ifdef __cplusplus 20199extern "C" 20200#endif 20201char __lshrdi3 (); 20202int 20203main () 20204{ 20205return __lshrdi3 (); 20206 ; 20207 return 0; 20208} 20209_ACEOF 20210rm -f conftest.$ac_objext conftest$ac_exeext 20211if { (ac_try="$ac_link" 20212case "(($ac_try" in 20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20214 *) ac_try_echo=$ac_try;; 20215esac 20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20217 (eval "$ac_link") 2>conftest.er1 20218 ac_status=$? 20219 grep -v '^ *+' conftest.er1 >conftest.err 20220 rm -f conftest.er1 20221 cat conftest.err >&5 20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20223 (exit $ac_status); } && 20224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20225 { (case "(($ac_try" in 20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20227 *) ac_try_echo=$ac_try;; 20228esac 20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20230 (eval "$ac_try") 2>&5 20231 ac_status=$? 20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20233 (exit $ac_status); }; } && 20234 { ac_try='test -s conftest$ac_exeext' 20235 { (case "(($ac_try" in 20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20237 *) ac_try_echo=$ac_try;; 20238esac 20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20240 (eval "$ac_try") 2>&5 20241 ac_status=$? 20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20243 (exit $ac_status); }; }; then 20244 ac_cv_lib_gcc___lshrdi3=yes 20245else 20246 echo "$as_me: failed program was:" >&5 20247sed 's/^/| /' conftest.$ac_ext >&5 20248 20249 ac_cv_lib_gcc___lshrdi3=no 20250fi 20251 20252rm -f core conftest.err conftest.$ac_objext \ 20253 conftest$ac_exeext conftest.$ac_ext 20254LIBS=$ac_check_lib_save_LIBS 20255fi 20256{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 20257echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 20258if test $ac_cv_lib_gcc___lshrdi3 = yes; then 20259 20260cat >>confdefs.h <<\_ACEOF 20261#define HAVE___LSHRDI3 1 20262_ACEOF 20263 20264fi 20265 20266 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 20267echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 20268if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 20269 echo $ECHO_N "(cached) $ECHO_C" >&6 20270else 20271 ac_check_lib_save_LIBS=$LIBS 20272LIBS="-lgcc $LIBS" 20273cat >conftest.$ac_ext <<_ACEOF 20274/* confdefs.h. */ 20275_ACEOF 20276cat confdefs.h >>conftest.$ac_ext 20277cat >>conftest.$ac_ext <<_ACEOF 20278/* end confdefs.h. */ 20279 20280/* Override any GCC internal prototype to avoid an error. 20281 Use char because int might match the return type of a GCC 20282 builtin and then its argument prototype would still apply. */ 20283#ifdef __cplusplus 20284extern "C" 20285#endif 20286char __moddi3 (); 20287int 20288main () 20289{ 20290return __moddi3 (); 20291 ; 20292 return 0; 20293} 20294_ACEOF 20295rm -f conftest.$ac_objext conftest$ac_exeext 20296if { (ac_try="$ac_link" 20297case "(($ac_try" in 20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20299 *) ac_try_echo=$ac_try;; 20300esac 20301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20302 (eval "$ac_link") 2>conftest.er1 20303 ac_status=$? 20304 grep -v '^ *+' conftest.er1 >conftest.err 20305 rm -f conftest.er1 20306 cat conftest.err >&5 20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20308 (exit $ac_status); } && 20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20310 { (case "(($ac_try" in 20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20312 *) ac_try_echo=$ac_try;; 20313esac 20314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20315 (eval "$ac_try") 2>&5 20316 ac_status=$? 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); }; } && 20319 { ac_try='test -s conftest$ac_exeext' 20320 { (case "(($ac_try" in 20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20322 *) ac_try_echo=$ac_try;; 20323esac 20324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20325 (eval "$ac_try") 2>&5 20326 ac_status=$? 20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20328 (exit $ac_status); }; }; then 20329 ac_cv_lib_gcc___moddi3=yes 20330else 20331 echo "$as_me: failed program was:" >&5 20332sed 's/^/| /' conftest.$ac_ext >&5 20333 20334 ac_cv_lib_gcc___moddi3=no 20335fi 20336 20337rm -f core conftest.err conftest.$ac_objext \ 20338 conftest$ac_exeext conftest.$ac_ext 20339LIBS=$ac_check_lib_save_LIBS 20340fi 20341{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 20342echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 20343if test $ac_cv_lib_gcc___moddi3 = yes; then 20344 20345cat >>confdefs.h <<\_ACEOF 20346#define HAVE___MODDI3 1 20347_ACEOF 20348 20349fi 20350 20351 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 20352echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 20353if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 20354 echo $ECHO_N "(cached) $ECHO_C" >&6 20355else 20356 ac_check_lib_save_LIBS=$LIBS 20357LIBS="-lgcc $LIBS" 20358cat >conftest.$ac_ext <<_ACEOF 20359/* confdefs.h. */ 20360_ACEOF 20361cat confdefs.h >>conftest.$ac_ext 20362cat >>conftest.$ac_ext <<_ACEOF 20363/* end confdefs.h. */ 20364 20365/* Override any GCC internal prototype to avoid an error. 20366 Use char because int might match the return type of a GCC 20367 builtin and then its argument prototype would still apply. */ 20368#ifdef __cplusplus 20369extern "C" 20370#endif 20371char __udivdi3 (); 20372int 20373main () 20374{ 20375return __udivdi3 (); 20376 ; 20377 return 0; 20378} 20379_ACEOF 20380rm -f conftest.$ac_objext conftest$ac_exeext 20381if { (ac_try="$ac_link" 20382case "(($ac_try" in 20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20384 *) ac_try_echo=$ac_try;; 20385esac 20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20387 (eval "$ac_link") 2>conftest.er1 20388 ac_status=$? 20389 grep -v '^ *+' conftest.er1 >conftest.err 20390 rm -f conftest.er1 20391 cat conftest.err >&5 20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20393 (exit $ac_status); } && 20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20395 { (case "(($ac_try" in 20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20397 *) ac_try_echo=$ac_try;; 20398esac 20399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20400 (eval "$ac_try") 2>&5 20401 ac_status=$? 20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20403 (exit $ac_status); }; } && 20404 { ac_try='test -s conftest$ac_exeext' 20405 { (case "(($ac_try" in 20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20407 *) ac_try_echo=$ac_try;; 20408esac 20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20410 (eval "$ac_try") 2>&5 20411 ac_status=$? 20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20413 (exit $ac_status); }; }; then 20414 ac_cv_lib_gcc___udivdi3=yes 20415else 20416 echo "$as_me: failed program was:" >&5 20417sed 's/^/| /' conftest.$ac_ext >&5 20418 20419 ac_cv_lib_gcc___udivdi3=no 20420fi 20421 20422rm -f core conftest.err conftest.$ac_objext \ 20423 conftest$ac_exeext conftest.$ac_ext 20424LIBS=$ac_check_lib_save_LIBS 20425fi 20426{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 20427echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 20428if test $ac_cv_lib_gcc___udivdi3 = yes; then 20429 20430cat >>confdefs.h <<\_ACEOF 20431#define HAVE___UDIVDI3 1 20432_ACEOF 20433 20434fi 20435 20436 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 20437echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 20438if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 20439 echo $ECHO_N "(cached) $ECHO_C" >&6 20440else 20441 ac_check_lib_save_LIBS=$LIBS 20442LIBS="-lgcc $LIBS" 20443cat >conftest.$ac_ext <<_ACEOF 20444/* confdefs.h. */ 20445_ACEOF 20446cat confdefs.h >>conftest.$ac_ext 20447cat >>conftest.$ac_ext <<_ACEOF 20448/* end confdefs.h. */ 20449 20450/* Override any GCC internal prototype to avoid an error. 20451 Use char because int might match the return type of a GCC 20452 builtin and then its argument prototype would still apply. */ 20453#ifdef __cplusplus 20454extern "C" 20455#endif 20456char __umoddi3 (); 20457int 20458main () 20459{ 20460return __umoddi3 (); 20461 ; 20462 return 0; 20463} 20464_ACEOF 20465rm -f conftest.$ac_objext conftest$ac_exeext 20466if { (ac_try="$ac_link" 20467case "(($ac_try" in 20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20469 *) ac_try_echo=$ac_try;; 20470esac 20471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20472 (eval "$ac_link") 2>conftest.er1 20473 ac_status=$? 20474 grep -v '^ *+' conftest.er1 >conftest.err 20475 rm -f conftest.er1 20476 cat conftest.err >&5 20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20478 (exit $ac_status); } && 20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20480 { (case "(($ac_try" in 20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20482 *) ac_try_echo=$ac_try;; 20483esac 20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20485 (eval "$ac_try") 2>&5 20486 ac_status=$? 20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20488 (exit $ac_status); }; } && 20489 { ac_try='test -s conftest$ac_exeext' 20490 { (case "(($ac_try" in 20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20492 *) ac_try_echo=$ac_try;; 20493esac 20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20495 (eval "$ac_try") 2>&5 20496 ac_status=$? 20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20498 (exit $ac_status); }; }; then 20499 ac_cv_lib_gcc___umoddi3=yes 20500else 20501 echo "$as_me: failed program was:" >&5 20502sed 's/^/| /' conftest.$ac_ext >&5 20503 20504 ac_cv_lib_gcc___umoddi3=no 20505fi 20506 20507rm -f core conftest.err conftest.$ac_objext \ 20508 conftest$ac_exeext conftest.$ac_ext 20509LIBS=$ac_check_lib_save_LIBS 20510fi 20511{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 20512echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 20513if test $ac_cv_lib_gcc___umoddi3 = yes; then 20514 20515cat >>confdefs.h <<\_ACEOF 20516#define HAVE___UMODDI3 1 20517_ACEOF 20518 20519fi 20520 20521 20522 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 20523echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 20524if test "${ac_cv_lib_gcc___main+set}" = set; then 20525 echo $ECHO_N "(cached) $ECHO_C" >&6 20526else 20527 ac_check_lib_save_LIBS=$LIBS 20528LIBS="-lgcc $LIBS" 20529cat >conftest.$ac_ext <<_ACEOF 20530/* confdefs.h. */ 20531_ACEOF 20532cat confdefs.h >>conftest.$ac_ext 20533cat >>conftest.$ac_ext <<_ACEOF 20534/* end confdefs.h. */ 20535 20536/* Override any GCC internal prototype to avoid an error. 20537 Use char because int might match the return type of a GCC 20538 builtin and then its argument prototype would still apply. */ 20539#ifdef __cplusplus 20540extern "C" 20541#endif 20542char __main (); 20543int 20544main () 20545{ 20546return __main (); 20547 ; 20548 return 0; 20549} 20550_ACEOF 20551rm -f conftest.$ac_objext conftest$ac_exeext 20552if { (ac_try="$ac_link" 20553case "(($ac_try" in 20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20555 *) ac_try_echo=$ac_try;; 20556esac 20557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20558 (eval "$ac_link") 2>conftest.er1 20559 ac_status=$? 20560 grep -v '^ *+' conftest.er1 >conftest.err 20561 rm -f conftest.er1 20562 cat conftest.err >&5 20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20564 (exit $ac_status); } && 20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20566 { (case "(($ac_try" in 20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20568 *) ac_try_echo=$ac_try;; 20569esac 20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20571 (eval "$ac_try") 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); }; } && 20575 { ac_try='test -s conftest$ac_exeext' 20576 { (case "(($ac_try" in 20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20578 *) ac_try_echo=$ac_try;; 20579esac 20580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20581 (eval "$ac_try") 2>&5 20582 ac_status=$? 20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20584 (exit $ac_status); }; }; then 20585 ac_cv_lib_gcc___main=yes 20586else 20587 echo "$as_me: failed program was:" >&5 20588sed 's/^/| /' conftest.$ac_ext >&5 20589 20590 ac_cv_lib_gcc___main=no 20591fi 20592 20593rm -f core conftest.err conftest.$ac_objext \ 20594 conftest$ac_exeext conftest.$ac_ext 20595LIBS=$ac_check_lib_save_LIBS 20596fi 20597{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 20598echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 20599if test $ac_cv_lib_gcc___main = yes; then 20600 20601cat >>confdefs.h <<\_ACEOF 20602#define HAVE___MAIN 1 20603_ACEOF 20604 20605fi 20606 20607 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 20608echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 20609if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 20610 echo $ECHO_N "(cached) $ECHO_C" >&6 20611else 20612 ac_check_lib_save_LIBS=$LIBS 20613LIBS="-lgcc $LIBS" 20614cat >conftest.$ac_ext <<_ACEOF 20615/* confdefs.h. */ 20616_ACEOF 20617cat confdefs.h >>conftest.$ac_ext 20618cat >>conftest.$ac_ext <<_ACEOF 20619/* end confdefs.h. */ 20620 20621/* Override any GCC internal prototype to avoid an error. 20622 Use char because int might match the return type of a GCC 20623 builtin and then its argument prototype would still apply. */ 20624#ifdef __cplusplus 20625extern "C" 20626#endif 20627char __cmpdi2 (); 20628int 20629main () 20630{ 20631return __cmpdi2 (); 20632 ; 20633 return 0; 20634} 20635_ACEOF 20636rm -f conftest.$ac_objext conftest$ac_exeext 20637if { (ac_try="$ac_link" 20638case "(($ac_try" in 20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20640 *) ac_try_echo=$ac_try;; 20641esac 20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20643 (eval "$ac_link") 2>conftest.er1 20644 ac_status=$? 20645 grep -v '^ *+' conftest.er1 >conftest.err 20646 rm -f conftest.er1 20647 cat conftest.err >&5 20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20649 (exit $ac_status); } && 20650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20651 { (case "(($ac_try" in 20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20653 *) ac_try_echo=$ac_try;; 20654esac 20655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20656 (eval "$ac_try") 2>&5 20657 ac_status=$? 20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20659 (exit $ac_status); }; } && 20660 { ac_try='test -s conftest$ac_exeext' 20661 { (case "(($ac_try" in 20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20663 *) ac_try_echo=$ac_try;; 20664esac 20665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20666 (eval "$ac_try") 2>&5 20667 ac_status=$? 20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20669 (exit $ac_status); }; }; then 20670 ac_cv_lib_gcc___cmpdi2=yes 20671else 20672 echo "$as_me: failed program was:" >&5 20673sed 's/^/| /' conftest.$ac_ext >&5 20674 20675 ac_cv_lib_gcc___cmpdi2=no 20676fi 20677 20678rm -f core conftest.err conftest.$ac_objext \ 20679 conftest$ac_exeext conftest.$ac_ext 20680LIBS=$ac_check_lib_save_LIBS 20681fi 20682{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 20683echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 20684if test $ac_cv_lib_gcc___cmpdi2 = yes; then 20685 20686cat >>confdefs.h <<\_ACEOF 20687#define HAVE___CMPDI2 1 20688_ACEOF 20689 20690fi 20691 20692fi 20693 20694if test "$llvm_cv_os_type" = "MingW" ; then 20695 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 20696echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 20697 cat >conftest.$ac_ext <<_ACEOF 20698#include <windows.h> 20699#include <imagehlp.h> 20700extern void foo(PENUMLOADED_MODULES_CALLBACK); 20701extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 20702_ACEOF 20703rm -f conftest.$ac_objext 20704if { (ac_try="$ac_compile" 20705case "(($ac_try" in 20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20707 *) ac_try_echo=$ac_try;; 20708esac 20709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20710 (eval "$ac_compile") 2>conftest.er1 20711 ac_status=$? 20712 grep -v '^ *+' conftest.er1 >conftest.err 20713 rm -f conftest.er1 20714 cat conftest.err >&5 20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20716 (exit $ac_status); } && 20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20718 { (case "(($ac_try" in 20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20720 *) ac_try_echo=$ac_try;; 20721esac 20722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20723 (eval "$ac_try") 2>&5 20724 ac_status=$? 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); }; } && 20727 { ac_try='test -s conftest.$ac_objext' 20728 { (case "(($ac_try" in 20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20730 *) ac_try_echo=$ac_try;; 20731esac 20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20733 (eval "$ac_try") 2>&5 20734 ac_status=$? 20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20736 (exit $ac_status); }; }; then 20737 20738 { echo "$as_me:$LINENO: result: yes" >&5 20739echo "${ECHO_T}yes" >&6; } 20740 llvm_cv_win32_elmcb_pcstr="PCSTR" 20741 20742else 20743 echo "$as_me: failed program was:" >&5 20744sed 's/^/| /' conftest.$ac_ext >&5 20745 20746 20747 { echo "$as_me:$LINENO: result: no" >&5 20748echo "${ECHO_T}no" >&6; } 20749 llvm_cv_win32_elmcb_pcstr="PSTR" 20750 20751fi 20752 20753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20754 20755cat >>confdefs.h <<_ACEOF 20756#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 20757_ACEOF 20758 20759fi 20760 20761 20762{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20763echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 20764if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20765 echo $ECHO_N "(cached) $ECHO_C" >&6 20766else 20767 ac_ext=cpp 20768ac_cpp='$CXXCPP $CPPFLAGS' 20769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20772 20773 cat >conftest.$ac_ext <<_ACEOF 20774/* confdefs.h. */ 20775_ACEOF 20776cat confdefs.h >>conftest.$ac_ext 20777cat >>conftest.$ac_ext <<_ACEOF 20778/* end confdefs.h. */ 20779#include <math.h> 20780int 20781main () 20782{ 20783float f; isnan(f); 20784 ; 20785 return 0; 20786} 20787_ACEOF 20788rm -f conftest.$ac_objext 20789if { (ac_try="$ac_compile" 20790case "(($ac_try" in 20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20792 *) ac_try_echo=$ac_try;; 20793esac 20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20795 (eval "$ac_compile") 2>conftest.er1 20796 ac_status=$? 20797 grep -v '^ *+' conftest.er1 >conftest.err 20798 rm -f conftest.er1 20799 cat conftest.err >&5 20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20801 (exit $ac_status); } && 20802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20803 { (case "(($ac_try" in 20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20805 *) ac_try_echo=$ac_try;; 20806esac 20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20808 (eval "$ac_try") 2>&5 20809 ac_status=$? 20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20811 (exit $ac_status); }; } && 20812 { ac_try='test -s conftest.$ac_objext' 20813 { (case "(($ac_try" in 20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20815 *) ac_try_echo=$ac_try;; 20816esac 20817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20818 (eval "$ac_try") 2>&5 20819 ac_status=$? 20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20821 (exit $ac_status); }; }; then 20822 ac_cv_func_isnan_in_math_h=yes 20823else 20824 echo "$as_me: failed program was:" >&5 20825sed 's/^/| /' conftest.$ac_ext >&5 20826 20827 ac_cv_func_isnan_in_math_h=no 20828fi 20829 20830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20831 ac_ext=c 20832ac_cpp='$CPP $CPPFLAGS' 20833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20835ac_compiler_gnu=$ac_cv_c_compiler_gnu 20836 20837fi 20838{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20839echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 20840 20841 20842if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 20843 20844cat >>confdefs.h <<\_ACEOF 20845#define HAVE_ISNAN_IN_MATH_H 1 20846_ACEOF 20847 20848fi 20849 20850{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20851echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 20852if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20853 echo $ECHO_N "(cached) $ECHO_C" >&6 20854else 20855 ac_ext=cpp 20856ac_cpp='$CXXCPP $CPPFLAGS' 20857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20860 20861 cat >conftest.$ac_ext <<_ACEOF 20862/* confdefs.h. */ 20863_ACEOF 20864cat confdefs.h >>conftest.$ac_ext 20865cat >>conftest.$ac_ext <<_ACEOF 20866/* end confdefs.h. */ 20867#include <cmath> 20868int 20869main () 20870{ 20871float f; isnan(f); 20872 ; 20873 return 0; 20874} 20875_ACEOF 20876rm -f conftest.$ac_objext 20877if { (ac_try="$ac_compile" 20878case "(($ac_try" in 20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20880 *) ac_try_echo=$ac_try;; 20881esac 20882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20883 (eval "$ac_compile") 2>conftest.er1 20884 ac_status=$? 20885 grep -v '^ *+' conftest.er1 >conftest.err 20886 rm -f conftest.er1 20887 cat conftest.err >&5 20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20889 (exit $ac_status); } && 20890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20891 { (case "(($ac_try" in 20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20893 *) ac_try_echo=$ac_try;; 20894esac 20895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20896 (eval "$ac_try") 2>&5 20897 ac_status=$? 20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20899 (exit $ac_status); }; } && 20900 { ac_try='test -s conftest.$ac_objext' 20901 { (case "(($ac_try" in 20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20903 *) ac_try_echo=$ac_try;; 20904esac 20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20906 (eval "$ac_try") 2>&5 20907 ac_status=$? 20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20909 (exit $ac_status); }; }; then 20910 ac_cv_func_isnan_in_cmath=yes 20911else 20912 echo "$as_me: failed program was:" >&5 20913sed 's/^/| /' conftest.$ac_ext >&5 20914 20915 ac_cv_func_isnan_in_cmath=no 20916fi 20917 20918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20919 ac_ext=c 20920ac_cpp='$CPP $CPPFLAGS' 20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20923ac_compiler_gnu=$ac_cv_c_compiler_gnu 20924 20925fi 20926{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20927echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20928 20929if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20930 20931cat >>confdefs.h <<\_ACEOF 20932#define HAVE_ISNAN_IN_CMATH 1 20933_ACEOF 20934 20935fi 20936 20937{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20938echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20939if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20940 echo $ECHO_N "(cached) $ECHO_C" >&6 20941else 20942 ac_ext=cpp 20943ac_cpp='$CXXCPP $CPPFLAGS' 20944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20947 20948 cat >conftest.$ac_ext <<_ACEOF 20949/* confdefs.h. */ 20950_ACEOF 20951cat confdefs.h >>conftest.$ac_ext 20952cat >>conftest.$ac_ext <<_ACEOF 20953/* end confdefs.h. */ 20954#include <cmath> 20955int 20956main () 20957{ 20958float f; std::isnan(f); 20959 ; 20960 return 0; 20961} 20962_ACEOF 20963rm -f conftest.$ac_objext 20964if { (ac_try="$ac_compile" 20965case "(($ac_try" in 20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20967 *) ac_try_echo=$ac_try;; 20968esac 20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20970 (eval "$ac_compile") 2>conftest.er1 20971 ac_status=$? 20972 grep -v '^ *+' conftest.er1 >conftest.err 20973 rm -f conftest.er1 20974 cat conftest.err >&5 20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20976 (exit $ac_status); } && 20977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20978 { (case "(($ac_try" in 20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20980 *) ac_try_echo=$ac_try;; 20981esac 20982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20983 (eval "$ac_try") 2>&5 20984 ac_status=$? 20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20986 (exit $ac_status); }; } && 20987 { ac_try='test -s conftest.$ac_objext' 20988 { (case "(($ac_try" in 20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20990 *) ac_try_echo=$ac_try;; 20991esac 20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20993 (eval "$ac_try") 2>&5 20994 ac_status=$? 20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20996 (exit $ac_status); }; }; then 20997 ac_cv_func_std_isnan_in_cmath=yes 20998else 20999 echo "$as_me: failed program was:" >&5 21000sed 's/^/| /' conftest.$ac_ext >&5 21001 21002 ac_cv_func_std_isnan_in_cmath=no 21003fi 21004 21005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21006 ac_ext=c 21007ac_cpp='$CPP $CPPFLAGS' 21008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21010ac_compiler_gnu=$ac_cv_c_compiler_gnu 21011 21012fi 21013{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 21014echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 21015 21016if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 21017 21018cat >>confdefs.h <<\_ACEOF 21019#define HAVE_STD_ISNAN_IN_CMATH 1 21020_ACEOF 21021 21022fi 21023 21024 21025{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 21026echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 21027if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 21028 echo $ECHO_N "(cached) $ECHO_C" >&6 21029else 21030 ac_ext=cpp 21031ac_cpp='$CXXCPP $CPPFLAGS' 21032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21035 21036 cat >conftest.$ac_ext <<_ACEOF 21037/* confdefs.h. */ 21038_ACEOF 21039cat confdefs.h >>conftest.$ac_ext 21040cat >>conftest.$ac_ext <<_ACEOF 21041/* end confdefs.h. */ 21042#include <math.h> 21043int 21044main () 21045{ 21046float f; isinf(f); 21047 ; 21048 return 0; 21049} 21050_ACEOF 21051rm -f conftest.$ac_objext 21052if { (ac_try="$ac_compile" 21053case "(($ac_try" in 21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21055 *) ac_try_echo=$ac_try;; 21056esac 21057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21058 (eval "$ac_compile") 2>conftest.er1 21059 ac_status=$? 21060 grep -v '^ *+' conftest.er1 >conftest.err 21061 rm -f conftest.er1 21062 cat conftest.err >&5 21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21064 (exit $ac_status); } && 21065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21066 { (case "(($ac_try" in 21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21068 *) ac_try_echo=$ac_try;; 21069esac 21070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21071 (eval "$ac_try") 2>&5 21072 ac_status=$? 21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21074 (exit $ac_status); }; } && 21075 { ac_try='test -s conftest.$ac_objext' 21076 { (case "(($ac_try" in 21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21078 *) ac_try_echo=$ac_try;; 21079esac 21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21081 (eval "$ac_try") 2>&5 21082 ac_status=$? 21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21084 (exit $ac_status); }; }; then 21085 ac_cv_func_isinf_in_math_h=yes 21086else 21087 echo "$as_me: failed program was:" >&5 21088sed 's/^/| /' conftest.$ac_ext >&5 21089 21090 ac_cv_func_isinf_in_math_h=no 21091fi 21092 21093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21094 ac_ext=c 21095ac_cpp='$CPP $CPPFLAGS' 21096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21098ac_compiler_gnu=$ac_cv_c_compiler_gnu 21099 21100fi 21101{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 21102echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 21103 21104if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 21105 21106cat >>confdefs.h <<\_ACEOF 21107#define HAVE_ISINF_IN_MATH_H 1 21108_ACEOF 21109 21110fi 21111 21112{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 21113echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 21114if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 21115 echo $ECHO_N "(cached) $ECHO_C" >&6 21116else 21117 ac_ext=cpp 21118ac_cpp='$CXXCPP $CPPFLAGS' 21119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21122 21123 cat >conftest.$ac_ext <<_ACEOF 21124/* confdefs.h. */ 21125_ACEOF 21126cat confdefs.h >>conftest.$ac_ext 21127cat >>conftest.$ac_ext <<_ACEOF 21128/* end confdefs.h. */ 21129#include <cmath> 21130int 21131main () 21132{ 21133float f; isinf(f); 21134 ; 21135 return 0; 21136} 21137_ACEOF 21138rm -f conftest.$ac_objext 21139if { (ac_try="$ac_compile" 21140case "(($ac_try" in 21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21142 *) ac_try_echo=$ac_try;; 21143esac 21144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21145 (eval "$ac_compile") 2>conftest.er1 21146 ac_status=$? 21147 grep -v '^ *+' conftest.er1 >conftest.err 21148 rm -f conftest.er1 21149 cat conftest.err >&5 21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21151 (exit $ac_status); } && 21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21153 { (case "(($ac_try" in 21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21155 *) ac_try_echo=$ac_try;; 21156esac 21157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21158 (eval "$ac_try") 2>&5 21159 ac_status=$? 21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21161 (exit $ac_status); }; } && 21162 { ac_try='test -s conftest.$ac_objext' 21163 { (case "(($ac_try" in 21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21165 *) ac_try_echo=$ac_try;; 21166esac 21167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21168 (eval "$ac_try") 2>&5 21169 ac_status=$? 21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21171 (exit $ac_status); }; }; then 21172 ac_cv_func_isinf_in_cmath=yes 21173else 21174 echo "$as_me: failed program was:" >&5 21175sed 's/^/| /' conftest.$ac_ext >&5 21176 21177 ac_cv_func_isinf_in_cmath=no 21178fi 21179 21180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21181 ac_ext=c 21182ac_cpp='$CPP $CPPFLAGS' 21183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21185ac_compiler_gnu=$ac_cv_c_compiler_gnu 21186 21187fi 21188{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 21189echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 21190 21191if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 21192 21193cat >>confdefs.h <<\_ACEOF 21194#define HAVE_ISINF_IN_CMATH 1 21195_ACEOF 21196 21197fi 21198 21199{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 21200echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 21201if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 21202 echo $ECHO_N "(cached) $ECHO_C" >&6 21203else 21204 ac_ext=cpp 21205ac_cpp='$CXXCPP $CPPFLAGS' 21206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21209 21210 cat >conftest.$ac_ext <<_ACEOF 21211/* confdefs.h. */ 21212_ACEOF 21213cat confdefs.h >>conftest.$ac_ext 21214cat >>conftest.$ac_ext <<_ACEOF 21215/* end confdefs.h. */ 21216#include <cmath> 21217int 21218main () 21219{ 21220float f; std::isinf(f)} 21221 ; 21222 return 0; 21223} 21224_ACEOF 21225rm -f conftest.$ac_objext 21226if { (ac_try="$ac_compile" 21227case "(($ac_try" in 21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21229 *) ac_try_echo=$ac_try;; 21230esac 21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21232 (eval "$ac_compile") 2>conftest.er1 21233 ac_status=$? 21234 grep -v '^ *+' conftest.er1 >conftest.err 21235 rm -f conftest.er1 21236 cat conftest.err >&5 21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21238 (exit $ac_status); } && 21239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21240 { (case "(($ac_try" in 21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21242 *) ac_try_echo=$ac_try;; 21243esac 21244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21245 (eval "$ac_try") 2>&5 21246 ac_status=$? 21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21248 (exit $ac_status); }; } && 21249 { ac_try='test -s conftest.$ac_objext' 21250 { (case "(($ac_try" in 21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21252 *) ac_try_echo=$ac_try;; 21253esac 21254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21255 (eval "$ac_try") 2>&5 21256 ac_status=$? 21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21258 (exit $ac_status); }; }; then 21259 ac_cv_func_std_isinf_in_cmath=yes 21260else 21261 echo "$as_me: failed program was:" >&5 21262sed 's/^/| /' conftest.$ac_ext >&5 21263 21264 ac_cv_func_std_isinf_in_cmath=no 21265fi 21266 21267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21268 ac_ext=c 21269ac_cpp='$CPP $CPPFLAGS' 21270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21272ac_compiler_gnu=$ac_cv_c_compiler_gnu 21273 21274fi 21275{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 21276echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 21277 21278if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 21279 21280cat >>confdefs.h <<\_ACEOF 21281#define HAVE_STD_ISINF_IN_CMATH 1 21282_ACEOF 21283 21284fi 21285 21286{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 21287echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 21288if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 21289 echo $ECHO_N "(cached) $ECHO_C" >&6 21290else 21291 ac_ext=cpp 21292ac_cpp='$CXXCPP $CPPFLAGS' 21293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21296 21297 cat >conftest.$ac_ext <<_ACEOF 21298/* confdefs.h. */ 21299_ACEOF 21300cat confdefs.h >>conftest.$ac_ext 21301cat >>conftest.$ac_ext <<_ACEOF 21302/* end confdefs.h. */ 21303#include <ieeefp.h> 21304int 21305main () 21306{ 21307float f; finite(f); 21308 ; 21309 return 0; 21310} 21311_ACEOF 21312rm -f conftest.$ac_objext 21313if { (ac_try="$ac_compile" 21314case "(($ac_try" in 21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21316 *) ac_try_echo=$ac_try;; 21317esac 21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21319 (eval "$ac_compile") 2>conftest.er1 21320 ac_status=$? 21321 grep -v '^ *+' conftest.er1 >conftest.err 21322 rm -f conftest.er1 21323 cat conftest.err >&5 21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21325 (exit $ac_status); } && 21326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21327 { (case "(($ac_try" in 21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21329 *) ac_try_echo=$ac_try;; 21330esac 21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21332 (eval "$ac_try") 2>&5 21333 ac_status=$? 21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21335 (exit $ac_status); }; } && 21336 { ac_try='test -s conftest.$ac_objext' 21337 { (case "(($ac_try" in 21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21339 *) ac_try_echo=$ac_try;; 21340esac 21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21342 (eval "$ac_try") 2>&5 21343 ac_status=$? 21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21345 (exit $ac_status); }; }; then 21346 ac_cv_func_finite_in_ieeefp_h=yes 21347else 21348 echo "$as_me: failed program was:" >&5 21349sed 's/^/| /' conftest.$ac_ext >&5 21350 21351 ac_cv_func_finite_in_ieeefp_h=no 21352fi 21353 21354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21355 ac_ext=c 21356ac_cpp='$CPP $CPPFLAGS' 21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21359ac_compiler_gnu=$ac_cv_c_compiler_gnu 21360 21361fi 21362{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 21363echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 21364 21365if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 21366 21367cat >>confdefs.h <<\_ACEOF 21368#define HAVE_FINITE_IN_IEEEFP_H 1 21369_ACEOF 21370 21371fi 21372 21373 21374 21375if test "$llvm_cv_platform_type" = "Unix" ; then 21376 21377 21378for ac_header in stdlib.h unistd.h 21379do 21380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21382 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21385 echo $ECHO_N "(cached) $ECHO_C" >&6 21386fi 21387ac_res=`eval echo '${'$as_ac_Header'}'` 21388 { echo "$as_me:$LINENO: result: $ac_res" >&5 21389echo "${ECHO_T}$ac_res" >&6; } 21390else 21391 # Is the header compilable? 21392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21394cat >conftest.$ac_ext <<_ACEOF 21395/* confdefs.h. */ 21396_ACEOF 21397cat confdefs.h >>conftest.$ac_ext 21398cat >>conftest.$ac_ext <<_ACEOF 21399/* end confdefs.h. */ 21400$ac_includes_default 21401#include <$ac_header> 21402_ACEOF 21403rm -f conftest.$ac_objext 21404if { (ac_try="$ac_compile" 21405case "(($ac_try" in 21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21407 *) ac_try_echo=$ac_try;; 21408esac 21409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21410 (eval "$ac_compile") 2>conftest.er1 21411 ac_status=$? 21412 grep -v '^ *+' conftest.er1 >conftest.err 21413 rm -f conftest.er1 21414 cat conftest.err >&5 21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21416 (exit $ac_status); } && 21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21418 { (case "(($ac_try" in 21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21420 *) ac_try_echo=$ac_try;; 21421esac 21422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21423 (eval "$ac_try") 2>&5 21424 ac_status=$? 21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21426 (exit $ac_status); }; } && 21427 { ac_try='test -s conftest.$ac_objext' 21428 { (case "(($ac_try" in 21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21430 *) ac_try_echo=$ac_try;; 21431esac 21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21433 (eval "$ac_try") 2>&5 21434 ac_status=$? 21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21436 (exit $ac_status); }; }; then 21437 ac_header_compiler=yes 21438else 21439 echo "$as_me: failed program was:" >&5 21440sed 's/^/| /' conftest.$ac_ext >&5 21441 21442 ac_header_compiler=no 21443fi 21444 21445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21447echo "${ECHO_T}$ac_header_compiler" >&6; } 21448 21449# Is the header present? 21450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21452cat >conftest.$ac_ext <<_ACEOF 21453/* confdefs.h. */ 21454_ACEOF 21455cat confdefs.h >>conftest.$ac_ext 21456cat >>conftest.$ac_ext <<_ACEOF 21457/* end confdefs.h. */ 21458#include <$ac_header> 21459_ACEOF 21460if { (ac_try="$ac_cpp conftest.$ac_ext" 21461case "(($ac_try" in 21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21463 *) ac_try_echo=$ac_try;; 21464esac 21465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21467 ac_status=$? 21468 grep -v '^ *+' conftest.er1 >conftest.err 21469 rm -f conftest.er1 21470 cat conftest.err >&5 21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21472 (exit $ac_status); } >/dev/null; then 21473 if test -s conftest.err; then 21474 ac_cpp_err=$ac_c_preproc_warn_flag 21475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21476 else 21477 ac_cpp_err= 21478 fi 21479else 21480 ac_cpp_err=yes 21481fi 21482if test -z "$ac_cpp_err"; then 21483 ac_header_preproc=yes 21484else 21485 echo "$as_me: failed program was:" >&5 21486sed 's/^/| /' conftest.$ac_ext >&5 21487 21488 ac_header_preproc=no 21489fi 21490 21491rm -f conftest.err conftest.$ac_ext 21492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21493echo "${ECHO_T}$ac_header_preproc" >&6; } 21494 21495# So? What about this header? 21496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21497 yes:no: ) 21498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21502 ac_header_preproc=yes 21503 ;; 21504 no:yes:* ) 21505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21517 ( cat <<\_ASBOX 21518## ----------------------------------- ## 21519## Report this to llvmbugs@cs.uiuc.edu ## 21520## ----------------------------------- ## 21521_ASBOX 21522 ) | sed "s/^/$as_me: WARNING: /" >&2 21523 ;; 21524esac 21525{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21528 echo $ECHO_N "(cached) $ECHO_C" >&6 21529else 21530 eval "$as_ac_Header=\$ac_header_preproc" 21531fi 21532ac_res=`eval echo '${'$as_ac_Header'}'` 21533 { echo "$as_me:$LINENO: result: $ac_res" >&5 21534echo "${ECHO_T}$ac_res" >&6; } 21535 21536fi 21537if test `eval echo '${'$as_ac_Header'}'` = yes; then 21538 cat >>confdefs.h <<_ACEOF 21539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21540_ACEOF 21541 21542fi 21543 21544done 21545 21546 21547for ac_func in getpagesize 21548do 21549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21550{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21553 echo $ECHO_N "(cached) $ECHO_C" >&6 21554else 21555 cat >conftest.$ac_ext <<_ACEOF 21556/* confdefs.h. */ 21557_ACEOF 21558cat confdefs.h >>conftest.$ac_ext 21559cat >>conftest.$ac_ext <<_ACEOF 21560/* end confdefs.h. */ 21561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21562 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21563#define $ac_func innocuous_$ac_func 21564 21565/* System header to define __stub macros and hopefully few prototypes, 21566 which can conflict with char $ac_func (); below. 21567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21568 <limits.h> exists even on freestanding compilers. */ 21569 21570#ifdef __STDC__ 21571# include <limits.h> 21572#else 21573# include <assert.h> 21574#endif 21575 21576#undef $ac_func 21577 21578/* Override any GCC internal prototype to avoid an error. 21579 Use char because int might match the return type of a GCC 21580 builtin and then its argument prototype would still apply. */ 21581#ifdef __cplusplus 21582extern "C" 21583#endif 21584char $ac_func (); 21585/* The GNU C library defines this for functions which it implements 21586 to always fail with ENOSYS. Some functions are actually named 21587 something starting with __ and the normal name is an alias. */ 21588#if defined __stub_$ac_func || defined __stub___$ac_func 21589choke me 21590#endif 21591 21592int 21593main () 21594{ 21595return $ac_func (); 21596 ; 21597 return 0; 21598} 21599_ACEOF 21600rm -f conftest.$ac_objext conftest$ac_exeext 21601if { (ac_try="$ac_link" 21602case "(($ac_try" in 21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21604 *) ac_try_echo=$ac_try;; 21605esac 21606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21607 (eval "$ac_link") 2>conftest.er1 21608 ac_status=$? 21609 grep -v '^ *+' conftest.er1 >conftest.err 21610 rm -f conftest.er1 21611 cat conftest.err >&5 21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21613 (exit $ac_status); } && 21614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21615 { (case "(($ac_try" in 21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21617 *) ac_try_echo=$ac_try;; 21618esac 21619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21620 (eval "$ac_try") 2>&5 21621 ac_status=$? 21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21623 (exit $ac_status); }; } && 21624 { ac_try='test -s conftest$ac_exeext' 21625 { (case "(($ac_try" in 21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21627 *) ac_try_echo=$ac_try;; 21628esac 21629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21630 (eval "$ac_try") 2>&5 21631 ac_status=$? 21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21633 (exit $ac_status); }; }; then 21634 eval "$as_ac_var=yes" 21635else 21636 echo "$as_me: failed program was:" >&5 21637sed 's/^/| /' conftest.$ac_ext >&5 21638 21639 eval "$as_ac_var=no" 21640fi 21641 21642rm -f core conftest.err conftest.$ac_objext \ 21643 conftest$ac_exeext conftest.$ac_ext 21644fi 21645ac_res=`eval echo '${'$as_ac_var'}'` 21646 { echo "$as_me:$LINENO: result: $ac_res" >&5 21647echo "${ECHO_T}$ac_res" >&6; } 21648if test `eval echo '${'$as_ac_var'}'` = yes; then 21649 cat >>confdefs.h <<_ACEOF 21650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21651_ACEOF 21652 21653fi 21654done 21655 21656{ echo "$as_me:$LINENO: checking for working mmap" >&5 21657echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21658if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21659 echo $ECHO_N "(cached) $ECHO_C" >&6 21660else 21661 if test "$cross_compiling" = yes; then 21662 ac_cv_func_mmap_fixed_mapped=no 21663else 21664 cat >conftest.$ac_ext <<_ACEOF 21665/* confdefs.h. */ 21666_ACEOF 21667cat confdefs.h >>conftest.$ac_ext 21668cat >>conftest.$ac_ext <<_ACEOF 21669/* end confdefs.h. */ 21670$ac_includes_default 21671/* malloc might have been renamed as rpl_malloc. */ 21672#undef malloc 21673 21674/* Thanks to Mike Haertel and Jim Avera for this test. 21675 Here is a matrix of mmap possibilities: 21676 mmap private not fixed 21677 mmap private fixed at somewhere currently unmapped 21678 mmap private fixed at somewhere already mapped 21679 mmap shared not fixed 21680 mmap shared fixed at somewhere currently unmapped 21681 mmap shared fixed at somewhere already mapped 21682 For private mappings, we should verify that changes cannot be read() 21683 back from the file, nor mmap's back from the file at a different 21684 address. (There have been systems where private was not correctly 21685 implemented like the infamous i386 svr4.0, and systems where the 21686 VM page cache was not coherent with the file system buffer cache 21687 like early versions of FreeBSD and possibly contemporary NetBSD.) 21688 For shared mappings, we should conversely verify that changes get 21689 propagated back to all the places they're supposed to be. 21690 21691 Grep wants private fixed already mapped. 21692 The main things grep needs to know about mmap are: 21693 * does it exist and is it safe to write into the mmap'd area 21694 * how to use it (BSD variants) */ 21695 21696#include <fcntl.h> 21697#include <sys/mman.h> 21698 21699#if !STDC_HEADERS && !HAVE_STDLIB_H 21700char *malloc (); 21701#endif 21702 21703/* This mess was copied from the GNU getpagesize.h. */ 21704#if !HAVE_GETPAGESIZE 21705/* Assume that all systems that can run configure have sys/param.h. */ 21706# if !HAVE_SYS_PARAM_H 21707# define HAVE_SYS_PARAM_H 1 21708# endif 21709 21710# ifdef _SC_PAGESIZE 21711# define getpagesize() sysconf(_SC_PAGESIZE) 21712# else /* no _SC_PAGESIZE */ 21713# if HAVE_SYS_PARAM_H 21714# include <sys/param.h> 21715# ifdef EXEC_PAGESIZE 21716# define getpagesize() EXEC_PAGESIZE 21717# else /* no EXEC_PAGESIZE */ 21718# ifdef NBPG 21719# define getpagesize() NBPG * CLSIZE 21720# ifndef CLSIZE 21721# define CLSIZE 1 21722# endif /* no CLSIZE */ 21723# else /* no NBPG */ 21724# ifdef NBPC 21725# define getpagesize() NBPC 21726# else /* no NBPC */ 21727# ifdef PAGESIZE 21728# define getpagesize() PAGESIZE 21729# endif /* PAGESIZE */ 21730# endif /* no NBPC */ 21731# endif /* no NBPG */ 21732# endif /* no EXEC_PAGESIZE */ 21733# else /* no HAVE_SYS_PARAM_H */ 21734# define getpagesize() 8192 /* punt totally */ 21735# endif /* no HAVE_SYS_PARAM_H */ 21736# endif /* no _SC_PAGESIZE */ 21737 21738#endif /* no HAVE_GETPAGESIZE */ 21739 21740int 21741main () 21742{ 21743 char *data, *data2, *data3; 21744 int i, pagesize; 21745 int fd; 21746 21747 pagesize = getpagesize (); 21748 21749 /* First, make a file with some known garbage in it. */ 21750 data = (char *) malloc (pagesize); 21751 if (!data) 21752 return 1; 21753 for (i = 0; i < pagesize; ++i) 21754 *(data + i) = rand (); 21755 umask (0); 21756 fd = creat ("conftest.mmap", 0600); 21757 if (fd < 0) 21758 return 1; 21759 if (write (fd, data, pagesize) != pagesize) 21760 return 1; 21761 close (fd); 21762 21763 /* Next, try to mmap the file at a fixed address which already has 21764 something else allocated at it. If we can, also make sure that 21765 we see the same garbage. */ 21766 fd = open ("conftest.mmap", O_RDWR); 21767 if (fd < 0) 21768 return 1; 21769 data2 = (char *) malloc (2 * pagesize); 21770 if (!data2) 21771 return 1; 21772 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21773 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21774 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21775 return 1; 21776 for (i = 0; i < pagesize; ++i) 21777 if (*(data + i) != *(data2 + i)) 21778 return 1; 21779 21780 /* Finally, make sure that changes to the mapped area do not 21781 percolate back to the file as seen by read(). (This is a bug on 21782 some variants of i386 svr4.0.) */ 21783 for (i = 0; i < pagesize; ++i) 21784 *(data2 + i) = *(data2 + i) + 1; 21785 data3 = (char *) malloc (pagesize); 21786 if (!data3) 21787 return 1; 21788 if (read (fd, data3, pagesize) != pagesize) 21789 return 1; 21790 for (i = 0; i < pagesize; ++i) 21791 if (*(data + i) != *(data3 + i)) 21792 return 1; 21793 close (fd); 21794 return 0; 21795} 21796_ACEOF 21797rm -f conftest$ac_exeext 21798if { (ac_try="$ac_link" 21799case "(($ac_try" in 21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21801 *) ac_try_echo=$ac_try;; 21802esac 21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21804 (eval "$ac_link") 2>&5 21805 ac_status=$? 21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21808 { (case "(($ac_try" in 21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21810 *) ac_try_echo=$ac_try;; 21811esac 21812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21813 (eval "$ac_try") 2>&5 21814 ac_status=$? 21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21816 (exit $ac_status); }; }; then 21817 ac_cv_func_mmap_fixed_mapped=yes 21818else 21819 echo "$as_me: program exited with status $ac_status" >&5 21820echo "$as_me: failed program was:" >&5 21821sed 's/^/| /' conftest.$ac_ext >&5 21822 21823( exit $ac_status ) 21824ac_cv_func_mmap_fixed_mapped=no 21825fi 21826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21827fi 21828 21829 21830fi 21831{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21832echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21833if test $ac_cv_func_mmap_fixed_mapped = yes; then 21834 21835cat >>confdefs.h <<\_ACEOF 21836#define HAVE_MMAP 1 21837_ACEOF 21838 21839fi 21840rm -f conftest.mmap 21841 21842 { echo "$as_me:$LINENO: checking for mmap of files" >&5 21843echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 21844if test "${ac_cv_func_mmap_file+set}" = set; then 21845 echo $ECHO_N "(cached) $ECHO_C" >&6 21846else 21847 ac_ext=c 21848ac_cpp='$CPP $CPPFLAGS' 21849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21851ac_compiler_gnu=$ac_cv_c_compiler_gnu 21852 21853 if test "$cross_compiling" = yes; then 21854 ac_cv_func_mmap_file=no 21855else 21856 cat >conftest.$ac_ext <<_ACEOF 21857 21858 /* confdefs.h. */ 21859_ACEOF 21860cat confdefs.h >>conftest.$ac_ext 21861cat >>conftest.$ac_ext <<_ACEOF 21862/* end confdefs.h. */ 21863 21864#include <sys/types.h> 21865#include <sys/mman.h> 21866#include <fcntl.h> 21867 21868int 21869main () 21870{ 21871 21872 int fd; 21873 fd = creat ("foo",0777); 21874 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 21875 unlink ("foo"); 21876 return (fd != (int) MAP_FAILED); 21877 ; 21878 return 0; 21879} 21880_ACEOF 21881rm -f conftest$ac_exeext 21882if { (ac_try="$ac_link" 21883case "(($ac_try" in 21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21885 *) ac_try_echo=$ac_try;; 21886esac 21887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21888 (eval "$ac_link") 2>&5 21889 ac_status=$? 21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21892 { (case "(($ac_try" in 21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21894 *) ac_try_echo=$ac_try;; 21895esac 21896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21897 (eval "$ac_try") 2>&5 21898 ac_status=$? 21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21900 (exit $ac_status); }; }; then 21901 ac_cv_func_mmap_file=yes 21902else 21903 echo "$as_me: program exited with status $ac_status" >&5 21904echo "$as_me: failed program was:" >&5 21905sed 's/^/| /' conftest.$ac_ext >&5 21906 21907( exit $ac_status ) 21908ac_cv_func_mmap_file=no 21909fi 21910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21911fi 21912 21913 21914 ac_ext=c 21915ac_cpp='$CPP $CPPFLAGS' 21916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21918ac_compiler_gnu=$ac_cv_c_compiler_gnu 21919 21920 21921fi 21922{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21923echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21924if test "$ac_cv_func_mmap_file" = yes; then 21925 21926cat >>confdefs.h <<\_ACEOF 21927#define HAVE_MMAP_FILE 21928_ACEOF 21929 21930 MMAP_FILE=yes 21931 21932fi 21933 21934 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21935echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21936if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21937 echo $ECHO_N "(cached) $ECHO_C" >&6 21938else 21939 if test "$llvm_cv_os_type" = "Interix" ; then 21940 ac_cv_need_dev_zero_for_mmap=yes 21941 else 21942 ac_cv_need_dev_zero_for_mmap=no 21943 fi 21944 21945fi 21946{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21947echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21948if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21949 21950cat >>confdefs.h <<\_ACEOF 21951#define NEED_DEV_ZERO_FOR_MMAP 1 21952_ACEOF 21953 21954fi 21955 21956 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21957 then 21958 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21959echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21960 fi 21961 if test "$ac_cv_func_mmap_file" = "no" 21962 then 21963 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21964echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21965 fi 21966fi 21967 21968{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21969echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21970ac_ext=cpp 21971ac_cpp='$CXXCPP $CPPFLAGS' 21972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21975 21976cat >conftest.$ac_ext <<_ACEOF 21977/* confdefs.h. */ 21978_ACEOF 21979cat confdefs.h >>conftest.$ac_ext 21980cat >>conftest.$ac_ext <<_ACEOF 21981/* end confdefs.h. */ 21982int main() { 21983 volatile unsigned long val = 1; 21984 __sync_synchronize(); 21985 __sync_val_compare_and_swap(&val, 1, 0); 21986 __sync_add_and_fetch(&val, 1); 21987 __sync_sub_and_fetch(&val, 1); 21988 return 0; 21989 } 21990 21991_ACEOF 21992rm -f conftest.$ac_objext conftest$ac_exeext 21993if { (ac_try="$ac_link" 21994case "(($ac_try" in 21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21996 *) ac_try_echo=$ac_try;; 21997esac 21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21999 (eval "$ac_link") 2>conftest.er1 22000 ac_status=$? 22001 grep -v '^ *+' conftest.er1 >conftest.err 22002 rm -f conftest.er1 22003 cat conftest.err >&5 22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22005 (exit $ac_status); } && 22006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22007 { (case "(($ac_try" in 22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22009 *) ac_try_echo=$ac_try;; 22010esac 22011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22012 (eval "$ac_try") 2>&5 22013 ac_status=$? 22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22015 (exit $ac_status); }; } && 22016 { ac_try='test -s conftest$ac_exeext' 22017 { (case "(($ac_try" in 22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22019 *) ac_try_echo=$ac_try;; 22020esac 22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22022 (eval "$ac_try") 2>&5 22023 ac_status=$? 22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22025 (exit $ac_status); }; }; then 22026 ac_ext=c 22027ac_cpp='$CPP $CPPFLAGS' 22028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22030ac_compiler_gnu=$ac_cv_c_compiler_gnu 22031 22032 { echo "$as_me:$LINENO: result: yes" >&5 22033echo "${ECHO_T}yes" >&6; } 22034 22035cat >>confdefs.h <<\_ACEOF 22036#define LLVM_MULTITHREADED 1 22037_ACEOF 22038 22039else 22040 echo "$as_me: failed program was:" >&5 22041sed 's/^/| /' conftest.$ac_ext >&5 22042 22043 { echo "$as_me:$LINENO: result: no" >&5 22044echo "${ECHO_T}no" >&6; } 22045 22046cat >>confdefs.h <<\_ACEOF 22047#define LLVM_MULTITHREADED 0 22048_ACEOF 22049 22050 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 22051echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 22052fi 22053 22054rm -f core conftest.err conftest.$ac_objext \ 22055 conftest$ac_exeext conftest.$ac_ext 22056 22057 22058if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 22059 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 22060echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 22061if test "${llvm_cv_linux_mixed+set}" = set; then 22062 echo $ECHO_N "(cached) $ECHO_C" >&6 22063else 22064 ac_ext=c 22065ac_cpp='$CPP $CPPFLAGS' 22066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22068ac_compiler_gnu=$ac_cv_c_compiler_gnu 22069 22070 cat >conftest.$ac_ext <<_ACEOF 22071/* confdefs.h. */ 22072_ACEOF 22073cat confdefs.h >>conftest.$ac_ext 22074cat >>conftest.$ac_ext <<_ACEOF 22075/* end confdefs.h. */ 22076#ifndef __x86_64__ 22077 error: Not x86-64 even if uname says so! 22078 #endif 22079 22080int 22081main () 22082{ 22083 22084 ; 22085 return 0; 22086} 22087_ACEOF 22088rm -f conftest.$ac_objext 22089if { (ac_try="$ac_compile" 22090case "(($ac_try" in 22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22092 *) ac_try_echo=$ac_try;; 22093esac 22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22095 (eval "$ac_compile") 2>conftest.er1 22096 ac_status=$? 22097 grep -v '^ *+' conftest.er1 >conftest.err 22098 rm -f conftest.er1 22099 cat conftest.err >&5 22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22101 (exit $ac_status); } && 22102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22103 { (case "(($ac_try" in 22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22105 *) ac_try_echo=$ac_try;; 22106esac 22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22108 (eval "$ac_try") 2>&5 22109 ac_status=$? 22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22111 (exit $ac_status); }; } && 22112 { ac_try='test -s conftest.$ac_objext' 22113 { (case "(($ac_try" in 22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22115 *) ac_try_echo=$ac_try;; 22116esac 22117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22118 (eval "$ac_try") 2>&5 22119 ac_status=$? 22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22121 (exit $ac_status); }; }; then 22122 llvm_cv_linux_mixed=no 22123else 22124 echo "$as_me: failed program was:" >&5 22125sed 's/^/| /' conftest.$ac_ext >&5 22126 22127 llvm_cv_linux_mixed=yes 22128fi 22129 22130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22131 ac_ext=c 22132ac_cpp='$CPP $CPPFLAGS' 22133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22135ac_compiler_gnu=$ac_cv_c_compiler_gnu 22136 22137 22138fi 22139{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 22140echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 22141 22142 if test "$llvm_cv_linux_mixed" = "yes"; then 22143 llvm_cv_target_arch="x86" 22144 ARCH="x86" 22145 fi 22146fi 22147 22148 22149for ac_func in __dso_handle 22150do 22151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22152{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22155 echo $ECHO_N "(cached) $ECHO_C" >&6 22156else 22157 cat >conftest.$ac_ext <<_ACEOF 22158/* confdefs.h. */ 22159_ACEOF 22160cat confdefs.h >>conftest.$ac_ext 22161cat >>conftest.$ac_ext <<_ACEOF 22162/* end confdefs.h. */ 22163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22164 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22165#define $ac_func innocuous_$ac_func 22166 22167/* System header to define __stub macros and hopefully few prototypes, 22168 which can conflict with char $ac_func (); below. 22169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22170 <limits.h> exists even on freestanding compilers. */ 22171 22172#ifdef __STDC__ 22173# include <limits.h> 22174#else 22175# include <assert.h> 22176#endif 22177 22178#undef $ac_func 22179 22180/* Override any GCC internal prototype to avoid an error. 22181 Use char because int might match the return type of a GCC 22182 builtin and then its argument prototype would still apply. */ 22183#ifdef __cplusplus 22184extern "C" 22185#endif 22186char $ac_func (); 22187/* The GNU C library defines this for functions which it implements 22188 to always fail with ENOSYS. Some functions are actually named 22189 something starting with __ and the normal name is an alias. */ 22190#if defined __stub_$ac_func || defined __stub___$ac_func 22191choke me 22192#endif 22193 22194int 22195main () 22196{ 22197return $ac_func (); 22198 ; 22199 return 0; 22200} 22201_ACEOF 22202rm -f conftest.$ac_objext conftest$ac_exeext 22203if { (ac_try="$ac_link" 22204case "(($ac_try" in 22205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22206 *) ac_try_echo=$ac_try;; 22207esac 22208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22209 (eval "$ac_link") 2>conftest.er1 22210 ac_status=$? 22211 grep -v '^ *+' conftest.er1 >conftest.err 22212 rm -f conftest.er1 22213 cat conftest.err >&5 22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22215 (exit $ac_status); } && 22216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22217 { (case "(($ac_try" in 22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22219 *) ac_try_echo=$ac_try;; 22220esac 22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22222 (eval "$ac_try") 2>&5 22223 ac_status=$? 22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22225 (exit $ac_status); }; } && 22226 { ac_try='test -s conftest$ac_exeext' 22227 { (case "(($ac_try" in 22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22229 *) ac_try_echo=$ac_try;; 22230esac 22231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22232 (eval "$ac_try") 2>&5 22233 ac_status=$? 22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22235 (exit $ac_status); }; }; then 22236 eval "$as_ac_var=yes" 22237else 22238 echo "$as_me: failed program was:" >&5 22239sed 's/^/| /' conftest.$ac_ext >&5 22240 22241 eval "$as_ac_var=no" 22242fi 22243 22244rm -f core conftest.err conftest.$ac_objext \ 22245 conftest$ac_exeext conftest.$ac_ext 22246fi 22247ac_res=`eval echo '${'$as_ac_var'}'` 22248 { echo "$as_me:$LINENO: result: $ac_res" >&5 22249echo "${ECHO_T}$ac_res" >&6; } 22250if test `eval echo '${'$as_ac_var'}'` = yes; then 22251 cat >>confdefs.h <<_ACEOF 22252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22253_ACEOF 22254 22255fi 22256done 22257 22258 22259{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5 22260echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; } 22261if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then 22262 echo $ECHO_N "(cached) $ECHO_C" >&6 22263else 22264 llvm_cv_llvmgcc_dragonegg="no" 22265if test -n "$LLVMGCC" ; then 22266 cp /dev/null conftest.c 22267 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1 22268 if test $? -eq 0 ; then 22269 llvm_cv_llvmgcc_dragonegg="yes" 22270 fi 22271 rm conftest.c 22272fi 22273fi 22274{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5 22275echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; } 22276 22277if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then 22278 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir" 22279 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0" 22280else 22281 LLVMCC_EMITIR_FLAG="-emit-llvm" 22282 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns" 22283fi 22284 22285 22286 22287{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 22288echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } 22289if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 22290 echo $ECHO_N "(cached) $ECHO_C" >&6 22291else 22292 llvm_cv_llvmgcc_sanity="no" 22293if test -n "$LLVMGCC" ; then 22294 cp /dev/null conftest.c 22295 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \ 22296 grep 'target datalayout =' > /dev/null 2>&1 22297 if test $? -eq 0 ; then 22298 llvm_cv_llvmgcc_sanity="yes" 22299 fi 22300 rm conftest.c 22301fi 22302fi 22303{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 22304echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } 22305 22306if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 22307 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 22308echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } 22309 llvmcc1path=`$LLVMGCC --print-prog-name=cc1` 22310 LLVMCC1=$llvmcc1path 22311 22312 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus` 22313 LLVMCC1PLUS=$llvmcc1pluspath 22314 22315 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` 22316 LLVMGCCDIR=$llvmgccdir 22317 22318 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` 22319 LLVMGCC_LANGS=$llvmgcclangs 22320 22321 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg 22322 22323 22324 { echo "$as_me:$LINENO: result: ok" >&5 22325echo "${ECHO_T}ok" >&6; } 22326fi 22327 22328SHLIBEXT=$libltdl_cv_shlibext 22329 22330 22331SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 22332 22333 22334# Translate the various configuration directories and other basic 22335# information into substitutions that will end up in Makefile.config.in 22336# that these configured values can be used by the makefiles 22337if test "${prefix}" = "NONE" ; then 22338 prefix="/usr/local" 22339fi 22340eval LLVM_PREFIX="${prefix}"; 22341eval LLVM_BINDIR="${prefix}/bin"; 22342eval LLVM_LIBDIR="${prefix}/lib"; 22343eval LLVM_DATADIR="${prefix}/share/llvm"; 22344eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 22345eval LLVM_ETCDIR="${prefix}/etc/llvm"; 22346eval LLVM_INCLUDEDIR="${prefix}/include"; 22347eval LLVM_INFODIR="${prefix}/info"; 22348eval LLVM_MANDIR="${prefix}/man"; 22349LLVM_CONFIGTIME=`date` 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361# Place the various directores into the config.h file as #defines so that we 22362# can know about the installation paths within LLVM. 22363 22364cat >>confdefs.h <<_ACEOF 22365#define LLVM_PREFIX "$LLVM_PREFIX" 22366_ACEOF 22367 22368 22369cat >>confdefs.h <<_ACEOF 22370#define LLVM_BINDIR "$LLVM_BINDIR" 22371_ACEOF 22372 22373 22374cat >>confdefs.h <<_ACEOF 22375#define LLVM_LIBDIR "$LLVM_LIBDIR" 22376_ACEOF 22377 22378 22379cat >>confdefs.h <<_ACEOF 22380#define LLVM_DATADIR "$LLVM_DATADIR" 22381_ACEOF 22382 22383 22384cat >>confdefs.h <<_ACEOF 22385#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 22386_ACEOF 22387 22388 22389cat >>confdefs.h <<_ACEOF 22390#define LLVM_ETCDIR "$LLVM_ETCDIR" 22391_ACEOF 22392 22393 22394cat >>confdefs.h <<_ACEOF 22395#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 22396_ACEOF 22397 22398 22399cat >>confdefs.h <<_ACEOF 22400#define LLVM_INFODIR "$LLVM_INFODIR" 22401_ACEOF 22402 22403 22404cat >>confdefs.h <<_ACEOF 22405#define LLVM_MANDIR "$LLVM_MANDIR" 22406_ACEOF 22407 22408 22409cat >>confdefs.h <<_ACEOF 22410#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 22411_ACEOF 22412 22413 22414cat >>confdefs.h <<_ACEOF 22415#define LLVM_HOSTTRIPLE "$host" 22416_ACEOF 22417 22418 22419# Determine which bindings to build. 22420if test "$BINDINGS_TO_BUILD" = auto ; then 22421 BINDINGS_TO_BUILD="" 22422 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 22423 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 22424 fi 22425fi 22426BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 22427 22428 22429# This isn't really configurey, but it avoids having to repeat the list in 22430# other files. 22431ALL_BINDINGS=ocaml 22432 22433 22434# Do any work necessary to ensure that bindings have what they need. 22435binding_prereqs_failed=0 22436for a_binding in $BINDINGS_TO_BUILD ; do 22437 case "$a_binding" in 22438 ocaml) 22439 if test "x$OCAMLC" = x ; then 22440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 22441echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 22442 binding_prereqs_failed=1 22443 fi 22444 if test "x$OCAMLDEP" = x ; then 22445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 22446echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 22447 binding_prereqs_failed=1 22448 fi 22449 if test "x$OCAMLOPT" = x ; then 22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 22451echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 22452 fi 22453 if test "x$with_ocaml_libdir" != xauto ; then 22454 OCAML_LIBDIR=$with_ocaml_libdir 22455 22456 else 22457 ocaml_stdlib="`"$OCAMLC" -where`" 22458 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 22459 then 22460 # ocaml stdlib is beneath our prefix; use stdlib 22461 OCAML_LIBDIR=$ocaml_stdlib 22462 22463 else 22464 # ocaml stdlib is outside our prefix; use libdir/ocaml 22465 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 22466 22467 fi 22468 fi 22469 ;; 22470 esac 22471done 22472if test "$binding_prereqs_failed" = 1 ; then 22473 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 22474echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 22475 { (exit 1); exit 1; }; } 22476fi 22477 22478{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 22479echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 22480if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 22481 echo $ECHO_N "(cached) $ECHO_C" >&6 22482else 22483 ac_ext=cpp 22484ac_cpp='$CXXCPP $CPPFLAGS' 22485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22488 22489 oldcxxflags="$CXXFLAGS" 22490 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 22491 cat >conftest.$ac_ext <<_ACEOF 22492/* confdefs.h. */ 22493_ACEOF 22494cat confdefs.h >>conftest.$ac_ext 22495cat >>conftest.$ac_ext <<_ACEOF 22496/* end confdefs.h. */ 22497 22498int 22499main () 22500{ 22501 22502 ; 22503 return 0; 22504} 22505_ACEOF 22506rm -f conftest.$ac_objext 22507if { (ac_try="$ac_compile" 22508case "(($ac_try" in 22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22510 *) ac_try_echo=$ac_try;; 22511esac 22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22513 (eval "$ac_compile") 2>conftest.er1 22514 ac_status=$? 22515 grep -v '^ *+' conftest.er1 >conftest.err 22516 rm -f conftest.er1 22517 cat conftest.err >&5 22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22519 (exit $ac_status); } && 22520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 22521 { (case "(($ac_try" in 22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22523 *) ac_try_echo=$ac_try;; 22524esac 22525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22526 (eval "$ac_try") 2>&5 22527 ac_status=$? 22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22529 (exit $ac_status); }; } && 22530 { ac_try='test -s conftest.$ac_objext' 22531 { (case "(($ac_try" in 22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22533 *) ac_try_echo=$ac_try;; 22534esac 22535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22536 (eval "$ac_try") 2>&5 22537 ac_status=$? 22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22539 (exit $ac_status); }; }; then 22540 llvm_cv_cxx_visibility_inlines_hidden=yes 22541else 22542 echo "$as_me: failed program was:" >&5 22543sed 's/^/| /' conftest.$ac_ext >&5 22544 22545 llvm_cv_cxx_visibility_inlines_hidden=no 22546fi 22547 22548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22549 CXXFLAGS="$oldcxxflags" 22550 ac_ext=c 22551ac_cpp='$CPP $CPPFLAGS' 22552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22554ac_compiler_gnu=$ac_cv_c_compiler_gnu 22555 22556 22557fi 22558{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 22559echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 22560if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 22561 ENABLE_VISIBILITY_INLINES_HIDDEN=1 22562 22563else 22564 ENABLE_VISIBILITY_INLINES_HIDDEN=0 22565 22566fi 22567 22568 22569if test "$llvm_cv_link_use_r" = "yes" ; then 22570 RPATH="-Wl,-R" 22571else 22572 RPATH="-Wl,-rpath" 22573fi 22574 22575 22576if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 22577 RDYNAMIC="-Wl,-export-dynamic" 22578else 22579 RDYNAMIC="" 22580fi 22581 22582 22583 22584ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 22585 22586 22587 22588 22589 22590 22591ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 22592 22593ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 22594 22595ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 22596 22597ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 22598 22599ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 22600 22601 22602ac_config_files="$ac_config_files Makefile.config" 22603 22604 22605ac_config_files="$ac_config_files llvm.spec" 22606 22607 22608ac_config_files="$ac_config_files docs/doxygen.cfg" 22609 22610if test -f ${srcdir}/tools/clang/README.txt; then 22611 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" 22612 22613fi 22614 22615ac_config_files="$ac_config_files tools/llvmc/src/Base.td" 22616 22617 22618ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 22619 22620 22621ac_config_commands="$ac_config_commands setup" 22622 22623ac_config_commands="$ac_config_commands Makefile" 22624 22625 22626ac_config_commands="$ac_config_commands Makefile.common" 22627 22628 22629ac_config_commands="$ac_config_commands examples/Makefile" 22630 22631 22632ac_config_commands="$ac_config_commands lib/Makefile" 22633 22634 22635ac_config_commands="$ac_config_commands runtime/Makefile" 22636 22637 22638ac_config_commands="$ac_config_commands test/Makefile" 22639 22640 22641ac_config_commands="$ac_config_commands test/Makefile.tests" 22642 22643 22644ac_config_commands="$ac_config_commands unittests/Makefile" 22645 22646 22647ac_config_commands="$ac_config_commands tools/Makefile" 22648 22649 22650ac_config_commands="$ac_config_commands utils/Makefile" 22651 22652 22653ac_config_commands="$ac_config_commands projects/Makefile" 22654 22655 22656ac_config_commands="$ac_config_commands bindings/Makefile" 22657 22658 22659ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 22660 22661 22662 22663cat >confcache <<\_ACEOF 22664# This file is a shell script that caches the results of configure 22665# tests run on this system so they can be shared between configure 22666# scripts and configure runs, see configure's option --config-cache. 22667# It is not useful on other systems. If it contains results you don't 22668# want to keep, you may remove or edit it. 22669# 22670# config.status only pays attention to the cache file if you give it 22671# the --recheck option to rerun configure. 22672# 22673# `ac_cv_env_foo' variables (set or unset) will be overridden when 22674# loading this file, other *unset* `ac_cv_foo' will be assigned the 22675# following values. 22676 22677_ACEOF 22678 22679# The following way of writing the cache mishandles newlines in values, 22680# but we know of no workaround that is simple, portable, and efficient. 22681# So, we kill variables containing newlines. 22682# Ultrix sh set writes to stderr and can't be redirected directly, 22683# and sets the high bit in the cache file unless we assign to the vars. 22684( 22685 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22686 eval ac_val=\$$ac_var 22687 case $ac_val in #( 22688 *${as_nl}*) 22689 case $ac_var in #( 22690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22691echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22692 esac 22693 case $ac_var in #( 22694 _ | IFS | as_nl) ;; #( 22695 *) $as_unset $ac_var ;; 22696 esac ;; 22697 esac 22698 done 22699 22700 (set) 2>&1 | 22701 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22702 *${as_nl}ac_space=\ *) 22703 # `set' does not quote correctly, so add quotes (double-quote 22704 # substitution turns \\\\ into \\, and sed turns \\ into \). 22705 sed -n \ 22706 "s/'/'\\\\''/g; 22707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22708 ;; #( 22709 *) 22710 # `set' quotes correctly as required by POSIX, so do not add quotes. 22711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22712 ;; 22713 esac | 22714 sort 22715) | 22716 sed ' 22717 /^ac_cv_env_/b end 22718 t clear 22719 :clear 22720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22721 t end 22722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22723 :end' >>confcache 22724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22725 if test -w "$cache_file"; then 22726 test "x$cache_file" != "x/dev/null" && 22727 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22728echo "$as_me: updating cache $cache_file" >&6;} 22729 cat confcache >$cache_file 22730 else 22731 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22732echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22733 fi 22734fi 22735rm -f confcache 22736 22737test "x$prefix" = xNONE && prefix=$ac_default_prefix 22738# Let make expand exec_prefix. 22739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22740 22741DEFS=-DHAVE_CONFIG_H 22742 22743ac_libobjs= 22744ac_ltlibobjs= 22745for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22746 # 1. Remove the extension, and $U if already installed. 22747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22748 ac_i=`echo "$ac_i" | sed "$ac_script"` 22749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22750 # will be set to the directory where LIBOBJS objects are built. 22751 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22752 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22753done 22754LIBOBJS=$ac_libobjs 22755 22756LTLIBOBJS=$ac_ltlibobjs 22757 22758 22759if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 22760 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 22761Usually this means the macro was only invoked conditionally." >&5 22762echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 22763Usually this means the macro was only invoked conditionally." >&2;} 22764 { (exit 1); exit 1; }; } 22765fi 22766if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 22767 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22768Usually this means the macro was only invoked conditionally." >&5 22769echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22770Usually this means the macro was only invoked conditionally." >&2;} 22771 { (exit 1); exit 1; }; } 22772fi 22773 22774: ${CONFIG_STATUS=./config.status} 22775ac_clean_files_save=$ac_clean_files 22776ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22777{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22778echo "$as_me: creating $CONFIG_STATUS" >&6;} 22779cat >$CONFIG_STATUS <<_ACEOF 22780#! $SHELL 22781# Generated by $as_me. 22782# Run this file to recreate the current configuration. 22783# Compiler output produced by configure, useful for debugging 22784# configure, is in config.log if it exists. 22785 22786debug=false 22787ac_cs_recheck=false 22788ac_cs_silent=false 22789SHELL=\${CONFIG_SHELL-$SHELL} 22790_ACEOF 22791 22792cat >>$CONFIG_STATUS <<\_ACEOF 22793## --------------------- ## 22794## M4sh Initialization. ## 22795## --------------------- ## 22796 22797# Be Bourne compatible 22798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22799 emulate sh 22800 NULLCMD=: 22801 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22802 # is contrary to our usage. Disable this feature. 22803 alias -g '${1+"$@"}'='"$@"' 22804 setopt NO_GLOB_SUBST 22805else 22806 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22807fi 22808BIN_SH=xpg4; export BIN_SH # for Tru64 22809DUALCASE=1; export DUALCASE # for MKS sh 22810 22811 22812# PATH needs CR 22813# Avoid depending upon Character Ranges. 22814as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22815as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22816as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22817as_cr_digits='0123456789' 22818as_cr_alnum=$as_cr_Letters$as_cr_digits 22819 22820# The user is always right. 22821if test "${PATH_SEPARATOR+set}" != set; then 22822 echo "#! /bin/sh" >conf$$.sh 22823 echo "exit 0" >>conf$$.sh 22824 chmod +x conf$$.sh 22825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22826 PATH_SEPARATOR=';' 22827 else 22828 PATH_SEPARATOR=: 22829 fi 22830 rm -f conf$$.sh 22831fi 22832 22833# Support unset when possible. 22834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22835 as_unset=unset 22836else 22837 as_unset=false 22838fi 22839 22840 22841# IFS 22842# We need space, tab and new line, in precisely that order. Quoting is 22843# there to prevent editors from complaining about space-tab. 22844# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22845# splitting by setting IFS to empty value.) 22846as_nl=' 22847' 22848IFS=" "" $as_nl" 22849 22850# Find who we are. Look in the path if we contain no directory separator. 22851case $0 in 22852 *[\\/]* ) as_myself=$0 ;; 22853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22854for as_dir in $PATH 22855do 22856 IFS=$as_save_IFS 22857 test -z "$as_dir" && as_dir=. 22858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22859done 22860IFS=$as_save_IFS 22861 22862 ;; 22863esac 22864# We did not find ourselves, most probably we were run as `sh COMMAND' 22865# in which case we are not to be found in the path. 22866if test "x$as_myself" = x; then 22867 as_myself=$0 22868fi 22869if test ! -f "$as_myself"; then 22870 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22871 { (exit 1); exit 1; } 22872fi 22873 22874# Work around bugs in pre-3.0 UWIN ksh. 22875for as_var in ENV MAIL MAILPATH 22876do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22877done 22878PS1='$ ' 22879PS2='> ' 22880PS4='+ ' 22881 22882# NLS nuisances. 22883for as_var in \ 22884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22886 LC_TELEPHONE LC_TIME 22887do 22888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22889 eval $as_var=C; export $as_var 22890 else 22891 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22892 fi 22893done 22894 22895# Required to use basename. 22896if expr a : '\(a\)' >/dev/null 2>&1 && 22897 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22898 as_expr=expr 22899else 22900 as_expr=false 22901fi 22902 22903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22904 as_basename=basename 22905else 22906 as_basename=false 22907fi 22908 22909 22910# Name of the executable. 22911as_me=`$as_basename -- "$0" || 22912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22913 X"$0" : 'X\(//\)$' \| \ 22914 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22915echo X/"$0" | 22916 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22917 s//\1/ 22918 q 22919 } 22920 /^X\/\(\/\/\)$/{ 22921 s//\1/ 22922 q 22923 } 22924 /^X\/\(\/\).*/{ 22925 s//\1/ 22926 q 22927 } 22928 s/.*/./; q'` 22929 22930# CDPATH. 22931$as_unset CDPATH 22932 22933 22934 22935 as_lineno_1=$LINENO 22936 as_lineno_2=$LINENO 22937 test "x$as_lineno_1" != "x$as_lineno_2" && 22938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22939 22940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22941 # uniformly replaced by the line number. The first 'sed' inserts a 22942 # line-number line after each line using $LINENO; the second 'sed' 22943 # does the real work. The second script uses 'N' to pair each 22944 # line-number line with the line containing $LINENO, and appends 22945 # trailing '-' during substitution so that $LINENO is not a special 22946 # case at line end. 22947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22948 # scripts with optimization help from Paolo Bonzini. Blame Lee 22949 # E. McMahon (1931-1989) for sed's syntax. :-) 22950 sed -n ' 22951 p 22952 /[$]LINENO/= 22953 ' <$as_myself | 22954 sed ' 22955 s/[$]LINENO.*/&-/ 22956 t lineno 22957 b 22958 :lineno 22959 N 22960 :loop 22961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22962 t loop 22963 s/-\n.*// 22964 ' >$as_me.lineno && 22965 chmod +x "$as_me.lineno" || 22966 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22967 { (exit 1); exit 1; }; } 22968 22969 # Don't try to exec as it changes $[0], causing all sort of problems 22970 # (the dirname of $[0] is not the place where we might find the 22971 # original and so on. Autoconf is especially sensitive to this). 22972 . "./$as_me.lineno" 22973 # Exit status is that of the last command. 22974 exit 22975} 22976 22977 22978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22979 as_dirname=dirname 22980else 22981 as_dirname=false 22982fi 22983 22984ECHO_C= ECHO_N= ECHO_T= 22985case `echo -n x` in 22986-n*) 22987 case `echo 'x\c'` in 22988 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22989 *) ECHO_C='\c';; 22990 esac;; 22991*) 22992 ECHO_N='-n';; 22993esac 22994 22995if expr a : '\(a\)' >/dev/null 2>&1 && 22996 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22997 as_expr=expr 22998else 22999 as_expr=false 23000fi 23001 23002rm -f conf$$ conf$$.exe conf$$.file 23003if test -d conf$$.dir; then 23004 rm -f conf$$.dir/conf$$.file 23005else 23006 rm -f conf$$.dir 23007 mkdir conf$$.dir 23008fi 23009echo >conf$$.file 23010if ln -s conf$$.file conf$$ 2>/dev/null; then 23011 as_ln_s='ln -s' 23012 # ... but there are two gotchas: 23013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23015 # In both cases, we have to default to `cp -p'. 23016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23017 as_ln_s='cp -p' 23018elif ln conf$$.file conf$$ 2>/dev/null; then 23019 as_ln_s=ln 23020else 23021 as_ln_s='cp -p' 23022fi 23023rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23024rmdir conf$$.dir 2>/dev/null 23025 23026if mkdir -p . 2>/dev/null; then 23027 as_mkdir_p=: 23028else 23029 test -d ./-p && rmdir ./-p 23030 as_mkdir_p=false 23031fi 23032 23033# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23034# systems may use methods other than mode bits to determine executability. 23035cat >conf$$.file <<_ASEOF 23036#! /bin/sh 23037exit 0 23038_ASEOF 23039chmod +x conf$$.file 23040if test -x conf$$.file >/dev/null 2>&1; then 23041 as_executable_p="test -x" 23042else 23043 as_executable_p=: 23044fi 23045rm -f conf$$.file 23046 23047# Sed expression to map a string onto a valid CPP name. 23048as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23049 23050# Sed expression to map a string onto a valid variable name. 23051as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23052 23053 23054exec 6>&1 23055 23056# Save the log message, to keep $[0] and so on meaningful, and to 23057# report actual input values of CONFIG_FILES etc. instead of their 23058# values after options handling. 23059ac_log=" 23060This file was extended by llvm $as_me 3.0svn, which was 23061generated by GNU Autoconf 2.60. Invocation command line was 23062 23063 CONFIG_FILES = $CONFIG_FILES 23064 CONFIG_HEADERS = $CONFIG_HEADERS 23065 CONFIG_LINKS = $CONFIG_LINKS 23066 CONFIG_COMMANDS = $CONFIG_COMMANDS 23067 $ $0 $@ 23068 23069on `(hostname || uname -n) 2>/dev/null | sed 1q` 23070" 23071 23072_ACEOF 23073 23074cat >>$CONFIG_STATUS <<_ACEOF 23075# Files that config.status was made for. 23076config_files="$ac_config_files" 23077config_headers="$ac_config_headers" 23078config_commands="$ac_config_commands" 23079 23080_ACEOF 23081 23082cat >>$CONFIG_STATUS <<\_ACEOF 23083ac_cs_usage="\ 23084\`$as_me' instantiates files from templates according to the 23085current configuration. 23086 23087Usage: $0 [OPTIONS] [FILE]... 23088 23089 -h, --help print this help, then exit 23090 -V, --version print version number, then exit 23091 -q, --quiet do not print progress messages 23092 -d, --debug don't remove temporary files 23093 --recheck update $as_me by reconfiguring in the same conditions 23094 --file=FILE[:TEMPLATE] 23095 instantiate the configuration file FILE 23096 --header=FILE[:TEMPLATE] 23097 instantiate the configuration header FILE 23098 23099Configuration files: 23100$config_files 23101 23102Configuration headers: 23103$config_headers 23104 23105Configuration commands: 23106$config_commands 23107 23108Report bugs to <bug-autoconf@gnu.org>." 23109 23110_ACEOF 23111cat >>$CONFIG_STATUS <<_ACEOF 23112ac_cs_version="\\ 23113llvm config.status 3.0svn 23114configured by $0, generated by GNU Autoconf 2.60, 23115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23116 23117Copyright (C) 2006 Free Software Foundation, Inc. 23118This config.status script is free software; the Free Software Foundation 23119gives unlimited permission to copy, distribute and modify it." 23120 23121ac_pwd='$ac_pwd' 23122srcdir='$srcdir' 23123INSTALL='$INSTALL' 23124_ACEOF 23125 23126cat >>$CONFIG_STATUS <<\_ACEOF 23127# If no file are specified by the user, then we need to provide default 23128# value. By we need to know if files were specified by the user. 23129ac_need_defaults=: 23130while test $# != 0 23131do 23132 case $1 in 23133 --*=*) 23134 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23136 ac_shift=: 23137 ;; 23138 *) 23139 ac_option=$1 23140 ac_optarg=$2 23141 ac_shift=shift 23142 ;; 23143 esac 23144 23145 case $ac_option in 23146 # Handling of the options. 23147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23148 ac_cs_recheck=: ;; 23149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23150 echo "$ac_cs_version"; exit ;; 23151 --debug | --debu | --deb | --de | --d | -d ) 23152 debug=: ;; 23153 --file | --fil | --fi | --f ) 23154 $ac_shift 23155 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23156 ac_need_defaults=false;; 23157 --header | --heade | --head | --hea ) 23158 $ac_shift 23159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23160 ac_need_defaults=false;; 23161 --he | --h) 23162 # Conflict between --help and --header 23163 { echo "$as_me: error: ambiguous option: $1 23164Try \`$0 --help' for more information." >&2 23165 { (exit 1); exit 1; }; };; 23166 --help | --hel | -h ) 23167 echo "$ac_cs_usage"; exit ;; 23168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23169 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23170 ac_cs_silent=: ;; 23171 23172 # This is an error. 23173 -*) { echo "$as_me: error: unrecognized option: $1 23174Try \`$0 --help' for more information." >&2 23175 { (exit 1); exit 1; }; } ;; 23176 23177 *) ac_config_targets="$ac_config_targets $1" 23178 ac_need_defaults=false ;; 23179 23180 esac 23181 shift 23182done 23183 23184ac_configure_extra_args= 23185 23186if $ac_cs_silent; then 23187 exec 6>/dev/null 23188 ac_configure_extra_args="$ac_configure_extra_args --silent" 23189fi 23190 23191_ACEOF 23192cat >>$CONFIG_STATUS <<_ACEOF 23193if \$ac_cs_recheck; then 23194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23195 CONFIG_SHELL=$SHELL 23196 export CONFIG_SHELL 23197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23198fi 23199 23200_ACEOF 23201cat >>$CONFIG_STATUS <<\_ACEOF 23202exec 5>>config.log 23203{ 23204 echo 23205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23206## Running $as_me. ## 23207_ASBOX 23208 echo "$ac_log" 23209} >&5 23210 23211_ACEOF 23212cat >>$CONFIG_STATUS <<_ACEOF 23213# 23214# INIT-COMMANDS 23215# 23216llvm_src="${srcdir}" 23217 23218_ACEOF 23219 23220cat >>$CONFIG_STATUS <<\_ACEOF 23221 23222# Handling of arguments. 23223for ac_config_target in $ac_config_targets 23224do 23225 case $ac_config_target in 23226 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 23227 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 23228 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 23229 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 23230 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 23231 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 23232 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 23233 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 23234 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 23235 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 23236 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; 23237 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; 23238 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 23239 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 23240 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23241 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23242 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 23243 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23244 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23245 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23246 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23247 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 23248 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23249 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23250 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23251 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 23252 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 23253 23254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23255echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23256 { (exit 1); exit 1; }; };; 23257 esac 23258done 23259 23260 23261# If the user did not use the arguments to specify the items to instantiate, 23262# then the envvar interface is used. Set only those that are not. 23263# We use the long form for the default assignment because of an extremely 23264# bizarre bug on SunOS 4.1.3. 23265if $ac_need_defaults; then 23266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23269fi 23270 23271# Have a temporary directory for convenience. Make it in the build tree 23272# simply because there is no reason against having it here, and in addition, 23273# creating and moving files from /tmp can sometimes cause problems. 23274# Hook for its removal unless debugging. 23275# Note that there is a small window in which the directory will not be cleaned: 23276# after its creation but before its name has been assigned to `$tmp'. 23277$debug || 23278{ 23279 tmp= 23280 trap 'exit_status=$? 23281 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23282' 0 23283 trap '{ (exit 1); exit 1; }' 1 2 13 15 23284} 23285# Create a (secure) tmp directory for tmp files. 23286 23287{ 23288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23289 test -n "$tmp" && test -d "$tmp" 23290} || 23291{ 23292 tmp=./conf$$-$RANDOM 23293 (umask 077 && mkdir "$tmp") 23294} || 23295{ 23296 echo "$me: cannot create a temporary directory in ." >&2 23297 { (exit 1); exit 1; } 23298} 23299 23300# 23301# Set up the sed scripts for CONFIG_FILES section. 23302# 23303 23304# No need to generate the scripts if there are no CONFIG_FILES. 23305# This happens for instance when ./config.status config.h 23306if test -n "$CONFIG_FILES"; then 23307 23308_ACEOF 23309 23310 23311 23312ac_delim='%!_!# ' 23313for ac_last_try in false false false false false :; do 23314 cat >conf$$subs.sed <<_ACEOF 23315SHELL!$SHELL$ac_delim 23316PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23317PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23318PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23319PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23320PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23321PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23322exec_prefix!$exec_prefix$ac_delim 23323prefix!$prefix$ac_delim 23324program_transform_name!$program_transform_name$ac_delim 23325bindir!$bindir$ac_delim 23326sbindir!$sbindir$ac_delim 23327libexecdir!$libexecdir$ac_delim 23328datarootdir!$datarootdir$ac_delim 23329datadir!$datadir$ac_delim 23330sysconfdir!$sysconfdir$ac_delim 23331sharedstatedir!$sharedstatedir$ac_delim 23332localstatedir!$localstatedir$ac_delim 23333includedir!$includedir$ac_delim 23334oldincludedir!$oldincludedir$ac_delim 23335docdir!$docdir$ac_delim 23336infodir!$infodir$ac_delim 23337htmldir!$htmldir$ac_delim 23338dvidir!$dvidir$ac_delim 23339pdfdir!$pdfdir$ac_delim 23340psdir!$psdir$ac_delim 23341libdir!$libdir$ac_delim 23342localedir!$localedir$ac_delim 23343mandir!$mandir$ac_delim 23344DEFS!$DEFS$ac_delim 23345ECHO_C!$ECHO_C$ac_delim 23346ECHO_N!$ECHO_N$ac_delim 23347ECHO_T!$ECHO_T$ac_delim 23348LIBS!$LIBS$ac_delim 23349build_alias!$build_alias$ac_delim 23350host_alias!$host_alias$ac_delim 23351target_alias!$target_alias$ac_delim 23352LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 23353subdirs!$subdirs$ac_delim 23354ENABLE_POLLY!$ENABLE_POLLY$ac_delim 23355LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 23356build!$build$ac_delim 23357build_cpu!$build_cpu$ac_delim 23358build_vendor!$build_vendor$ac_delim 23359build_os!$build_os$ac_delim 23360host!$host$ac_delim 23361host_cpu!$host_cpu$ac_delim 23362host_vendor!$host_vendor$ac_delim 23363host_os!$host_os$ac_delim 23364target!$target$ac_delim 23365target_cpu!$target_cpu$ac_delim 23366target_vendor!$target_vendor$ac_delim 23367target_os!$target_os$ac_delim 23368OS!$OS$ac_delim 23369HOST_OS!$HOST_OS$ac_delim 23370TARGET_OS!$TARGET_OS$ac_delim 23371LINKALL!$LINKALL$ac_delim 23372NOLINKALL!$NOLINKALL$ac_delim 23373LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 23374LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 23375ARCH!$ARCH$ac_delim 23376ENDIAN!$ENDIAN$ac_delim 23377CC!$CC$ac_delim 23378CFLAGS!$CFLAGS$ac_delim 23379LDFLAGS!$LDFLAGS$ac_delim 23380CPPFLAGS!$CPPFLAGS$ac_delim 23381ac_ct_CC!$ac_ct_CC$ac_delim 23382EXEEXT!$EXEEXT$ac_delim 23383OBJEXT!$OBJEXT$ac_delim 23384CPP!$CPP$ac_delim 23385GREP!$GREP$ac_delim 23386EGREP!$EGREP$ac_delim 23387LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 23388BUILD_CC!$BUILD_CC$ac_delim 23389BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 23390BUILD_CXX!$BUILD_CXX$ac_delim 23391CVSBUILD!$CVSBUILD$ac_delim 23392ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 23393ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 23394DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 23395ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 23396EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 23397DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 23398DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 23399JIT!$JIT$ac_delim 23400TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 23401ENABLE_DOCS!$ENABLE_DOCS$ac_delim 23402ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 23403ENABLE_THREADS!$ENABLE_THREADS$ac_delim 23404ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 23405ENABLE_PIC!$ENABLE_PIC$ac_delim 23406ENABLE_SHARED!$ENABLE_SHARED$ac_delim 23407ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 23408ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 23409TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 23410LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 23411LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 23412_ACEOF 23413 23414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23415 break 23416 elif $ac_last_try; then 23417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23418echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23419 { (exit 1); exit 1; }; } 23420 else 23421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23422 fi 23423done 23424 23425ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23426if test -n "$ac_eof"; then 23427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23428 ac_eof=`expr $ac_eof + 1` 23429fi 23430 23431cat >>$CONFIG_STATUS <<_ACEOF 23432cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23434_ACEOF 23435sed ' 23436s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23437s/^/s,@/; s/!/@,|#_!!_#|/ 23438:n 23439t n 23440s/'"$ac_delim"'$/,g/; t 23441s/$/\\/; p 23442N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23443' >>$CONFIG_STATUS <conf$$subs.sed 23444rm -f conf$$subs.sed 23445cat >>$CONFIG_STATUS <<_ACEOF 23446CEOF$ac_eof 23447_ACEOF 23448 23449 23450ac_delim='%!_!# ' 23451for ac_last_try in false false false false false :; do 23452 cat >conf$$subs.sed <<_ACEOF 23453LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 23454LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 23455ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 23456CLANGPATH!$CLANGPATH$ac_delim 23457CLANGXXPATH!$CLANGXXPATH$ac_delim 23458ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim 23459OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 23460EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 23461EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 23462BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 23463CXX!$CXX$ac_delim 23464CXXFLAGS!$CXXFLAGS$ac_delim 23465ac_ct_CXX!$ac_ct_CXX$ac_delim 23466NM!$NM$ac_delim 23467ifGNUmake!$ifGNUmake$ac_delim 23468LN_S!$LN_S$ac_delim 23469CMP!$CMP$ac_delim 23470CP!$CP$ac_delim 23471DATE!$DATE$ac_delim 23472FIND!$FIND$ac_delim 23473MKDIR!$MKDIR$ac_delim 23474MV!$MV$ac_delim 23475RANLIB!$RANLIB$ac_delim 23476AR!$AR$ac_delim 23477RM!$RM$ac_delim 23478SED!$SED$ac_delim 23479TAR!$TAR$ac_delim 23480BINPWD!$BINPWD$ac_delim 23481GRAPHVIZ!$GRAPHVIZ$ac_delim 23482DOT!$DOT$ac_delim 23483FDP!$FDP$ac_delim 23484NEATO!$NEATO$ac_delim 23485TWOPI!$TWOPI$ac_delim 23486CIRCO!$CIRCO$ac_delim 23487GV!$GV$ac_delim 23488DOTTY!$DOTTY$ac_delim 23489XDOT_PY!$XDOT_PY$ac_delim 23490PERL!$PERL$ac_delim 23491HAVE_PERL!$HAVE_PERL$ac_delim 23492INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23493INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23494INSTALL_DATA!$INSTALL_DATA$ac_delim 23495BZIP2!$BZIP2$ac_delim 23496CAT!$CAT$ac_delim 23497DOXYGEN!$DOXYGEN$ac_delim 23498GROFF!$GROFF$ac_delim 23499GZIPBIN!$GZIPBIN$ac_delim 23500POD2HTML!$POD2HTML$ac_delim 23501POD2MAN!$POD2MAN$ac_delim 23502PDFROFF!$PDFROFF$ac_delim 23503RUNTEST!$RUNTEST$ac_delim 23504TCLSH!$TCLSH$ac_delim 23505ZIP!$ZIP$ac_delim 23506OCAMLC!$OCAMLC$ac_delim 23507OCAMLOPT!$OCAMLOPT$ac_delim 23508OCAMLDEP!$OCAMLDEP$ac_delim 23509OCAMLDOC!$OCAMLDOC$ac_delim 23510GAS!$GAS$ac_delim 23511HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 23512INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 23513INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 23514CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 23515CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 23516LIBADD_DL!$LIBADD_DL$ac_delim 23517LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim 23518LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim 23519LLVMGCC!$LLVMGCC$ac_delim 23520LLVMGXX!$LLVMGXX$ac_delim 23521LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim 23522NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 23523NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 23524USE_UDIS86!$USE_UDIS86$ac_delim 23525USE_OPROFILE!$USE_OPROFILE$ac_delim 23526HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 23527HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 23528MMAP_FILE!$MMAP_FILE$ac_delim 23529LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim 23530LLVMCC1!$LLVMCC1$ac_delim 23531LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim 23532LLVMGCCDIR!$LLVMGCCDIR$ac_delim 23533LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim 23534LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim 23535LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim 23536SHLIBEXT!$SHLIBEXT$ac_delim 23537SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 23538LLVM_PREFIX!$LLVM_PREFIX$ac_delim 23539LLVM_BINDIR!$LLVM_BINDIR$ac_delim 23540LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 23541LLVM_DATADIR!$LLVM_DATADIR$ac_delim 23542LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 23543LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 23544LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 23545LLVM_INFODIR!$LLVM_INFODIR$ac_delim 23546LLVM_MANDIR!$LLVM_MANDIR$ac_delim 23547LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 23548BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 23549ALL_BINDINGS!$ALL_BINDINGS$ac_delim 23550_ACEOF 23551 23552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23553 break 23554 elif $ac_last_try; then 23555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23556echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23557 { (exit 1); exit 1; }; } 23558 else 23559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23560 fi 23561done 23562 23563ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23564if test -n "$ac_eof"; then 23565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23566 ac_eof=`expr $ac_eof + 1` 23567fi 23568 23569cat >>$CONFIG_STATUS <<_ACEOF 23570cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23572_ACEOF 23573sed ' 23574s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23575s/^/s,@/; s/!/@,|#_!!_#|/ 23576:n 23577t n 23578s/'"$ac_delim"'$/,g/; t 23579s/$/\\/; p 23580N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23581' >>$CONFIG_STATUS <conf$$subs.sed 23582rm -f conf$$subs.sed 23583cat >>$CONFIG_STATUS <<_ACEOF 23584CEOF$ac_eof 23585_ACEOF 23586 23587 23588ac_delim='%!_!# ' 23589for ac_last_try in false false false false false :; do 23590 cat >conf$$subs.sed <<_ACEOF 23591OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 23592ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 23593RPATH!$RPATH$ac_delim 23594RDYNAMIC!$RDYNAMIC$ac_delim 23595LIBOBJS!$LIBOBJS$ac_delim 23596LTLIBOBJS!$LTLIBOBJS$ac_delim 23597_ACEOF 23598 23599 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then 23600 break 23601 elif $ac_last_try; then 23602 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23603echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23604 { (exit 1); exit 1; }; } 23605 else 23606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23607 fi 23608done 23609 23610ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23611if test -n "$ac_eof"; then 23612 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23613 ac_eof=`expr $ac_eof + 1` 23614fi 23615 23616cat >>$CONFIG_STATUS <<_ACEOF 23617cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 23618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23619_ACEOF 23620sed ' 23621s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23622s/^/s,@/; s/!/@,|#_!!_#|/ 23623:n 23624t n 23625s/'"$ac_delim"'$/,g/; t 23626s/$/\\/; p 23627N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23628' >>$CONFIG_STATUS <conf$$subs.sed 23629rm -f conf$$subs.sed 23630cat >>$CONFIG_STATUS <<_ACEOF 23631:end 23632s/|#_!!_#|//g 23633CEOF$ac_eof 23634_ACEOF 23635 23636 23637# VPATH may cause trouble with some makes, so we remove $(srcdir), 23638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23639# trailing colons and then remove the whole line if VPATH becomes empty 23640# (actually we leave an empty line to preserve line numbers). 23641if test "x$srcdir" = x.; then 23642 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23643s/:*\$(srcdir):*/:/ 23644s/:*\${srcdir}:*/:/ 23645s/:*@srcdir@:*/:/ 23646s/^\([^=]*=[ ]*\):*/\1/ 23647s/:*$// 23648s/^[^=]*=[ ]*$// 23649}' 23650fi 23651 23652cat >>$CONFIG_STATUS <<\_ACEOF 23653fi # test -n "$CONFIG_FILES" 23654 23655 23656for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23657do 23658 case $ac_tag in 23659 :[FHLC]) ac_mode=$ac_tag; continue;; 23660 esac 23661 case $ac_mode$ac_tag in 23662 :[FHL]*:*);; 23663 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23664echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23665 { (exit 1); exit 1; }; };; 23666 :[FH]-) ac_tag=-:-;; 23667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23668 esac 23669 ac_save_IFS=$IFS 23670 IFS=: 23671 set x $ac_tag 23672 IFS=$ac_save_IFS 23673 shift 23674 ac_file=$1 23675 shift 23676 23677 case $ac_mode in 23678 :L) ac_source=$1;; 23679 :[FH]) 23680 ac_file_inputs= 23681 for ac_f 23682 do 23683 case $ac_f in 23684 -) ac_f="$tmp/stdin";; 23685 *) # Look for the file first in the build tree, then in the source tree 23686 # (if the path is not absolute). The absolute path cannot be DOS-style, 23687 # because $ac_f cannot contain `:'. 23688 test -f "$ac_f" || 23689 case $ac_f in 23690 [\\/$]*) false;; 23691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23692 esac || 23693 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23694echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23695 { (exit 1); exit 1; }; };; 23696 esac 23697 ac_file_inputs="$ac_file_inputs $ac_f" 23698 done 23699 23700 # Let's still pretend it is `configure' which instantiates (i.e., don't 23701 # use $as_me), people would be surprised to read: 23702 # /* config.h. Generated by config.status. */ 23703 configure_input="Generated from "`IFS=: 23704 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23705 if test x"$ac_file" != x-; then 23706 configure_input="$ac_file. $configure_input" 23707 { echo "$as_me:$LINENO: creating $ac_file" >&5 23708echo "$as_me: creating $ac_file" >&6;} 23709 fi 23710 23711 case $ac_tag in 23712 *:-:* | *:-) cat >"$tmp/stdin";; 23713 esac 23714 ;; 23715 esac 23716 23717 ac_dir=`$as_dirname -- "$ac_file" || 23718$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23719 X"$ac_file" : 'X\(//\)[^/]' \| \ 23720 X"$ac_file" : 'X\(//\)$' \| \ 23721 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23722echo X"$ac_file" | 23723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23724 s//\1/ 23725 q 23726 } 23727 /^X\(\/\/\)[^/].*/{ 23728 s//\1/ 23729 q 23730 } 23731 /^X\(\/\/\)$/{ 23732 s//\1/ 23733 q 23734 } 23735 /^X\(\/\).*/{ 23736 s//\1/ 23737 q 23738 } 23739 s/.*/./; q'` 23740 { as_dir="$ac_dir" 23741 case $as_dir in #( 23742 -*) as_dir=./$as_dir;; 23743 esac 23744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23745 as_dirs= 23746 while :; do 23747 case $as_dir in #( 23748 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23749 *) as_qdir=$as_dir;; 23750 esac 23751 as_dirs="'$as_qdir' $as_dirs" 23752 as_dir=`$as_dirname -- "$as_dir" || 23753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23754 X"$as_dir" : 'X\(//\)[^/]' \| \ 23755 X"$as_dir" : 'X\(//\)$' \| \ 23756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23757echo X"$as_dir" | 23758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23759 s//\1/ 23760 q 23761 } 23762 /^X\(\/\/\)[^/].*/{ 23763 s//\1/ 23764 q 23765 } 23766 /^X\(\/\/\)$/{ 23767 s//\1/ 23768 q 23769 } 23770 /^X\(\/\).*/{ 23771 s//\1/ 23772 q 23773 } 23774 s/.*/./; q'` 23775 test -d "$as_dir" && break 23776 done 23777 test -z "$as_dirs" || eval "mkdir $as_dirs" 23778 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23779echo "$as_me: error: cannot create directory $as_dir" >&2;} 23780 { (exit 1); exit 1; }; }; } 23781 ac_builddir=. 23782 23783case "$ac_dir" in 23784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23785*) 23786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23787 # A ".." for each directory in $ac_dir_suffix. 23788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23789 case $ac_top_builddir_sub in 23790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23792 esac ;; 23793esac 23794ac_abs_top_builddir=$ac_pwd 23795ac_abs_builddir=$ac_pwd$ac_dir_suffix 23796# for backward compatibility: 23797ac_top_builddir=$ac_top_build_prefix 23798 23799case $srcdir in 23800 .) # We are building in place. 23801 ac_srcdir=. 23802 ac_top_srcdir=$ac_top_builddir_sub 23803 ac_abs_top_srcdir=$ac_pwd ;; 23804 [\\/]* | ?:[\\/]* ) # Absolute name. 23805 ac_srcdir=$srcdir$ac_dir_suffix; 23806 ac_top_srcdir=$srcdir 23807 ac_abs_top_srcdir=$srcdir ;; 23808 *) # Relative name. 23809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23810 ac_top_srcdir=$ac_top_build_prefix$srcdir 23811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23812esac 23813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23814 23815 23816 case $ac_mode in 23817 :F) 23818 # 23819 # CONFIG_FILE 23820 # 23821 23822 case $INSTALL in 23823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23825 esac 23826_ACEOF 23827 23828cat >>$CONFIG_STATUS <<\_ACEOF 23829# If the template does not know about datarootdir, expand it. 23830# FIXME: This hack should be removed a few years after 2.60. 23831ac_datarootdir_hack=; ac_datarootdir_seen= 23832 23833case `sed -n '/datarootdir/ { 23834 p 23835 q 23836} 23837/@datadir@/p 23838/@docdir@/p 23839/@infodir@/p 23840/@localedir@/p 23841/@mandir@/p 23842' $ac_file_inputs` in 23843*datarootdir*) ac_datarootdir_seen=yes;; 23844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23845 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23846echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23847_ACEOF 23848cat >>$CONFIG_STATUS <<_ACEOF 23849 ac_datarootdir_hack=' 23850 s&@datadir@&$datadir&g 23851 s&@docdir@&$docdir&g 23852 s&@infodir@&$infodir&g 23853 s&@localedir@&$localedir&g 23854 s&@mandir@&$mandir&g 23855 s&\\\${datarootdir}&$datarootdir&g' ;; 23856esac 23857_ACEOF 23858 23859# Neutralize VPATH when `$srcdir' = `.'. 23860# Shell code in configure.ac might set extrasub. 23861# FIXME: do we really want to maintain this feature? 23862cat >>$CONFIG_STATUS <<_ACEOF 23863 sed "$ac_vpsub 23864$extrasub 23865_ACEOF 23866cat >>$CONFIG_STATUS <<\_ACEOF 23867:t 23868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23869s&@configure_input@&$configure_input&;t t 23870s&@top_builddir@&$ac_top_builddir_sub&;t t 23871s&@srcdir@&$ac_srcdir&;t t 23872s&@abs_srcdir@&$ac_abs_srcdir&;t t 23873s&@top_srcdir@&$ac_top_srcdir&;t t 23874s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23875s&@builddir@&$ac_builddir&;t t 23876s&@abs_builddir@&$ac_abs_builddir&;t t 23877s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23878s&@INSTALL@&$ac_INSTALL&;t t 23879$ac_datarootdir_hack 23880" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 23881 23882test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23885 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23886which seems to be undefined. Please make sure it is defined." >&5 23887echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23888which seems to be undefined. Please make sure it is defined." >&2;} 23889 23890 rm -f "$tmp/stdin" 23891 case $ac_file in 23892 -) cat "$tmp/out"; rm -f "$tmp/out";; 23893 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23894 esac 23895 ;; 23896 :H) 23897 # 23898 # CONFIG_HEADER 23899 # 23900_ACEOF 23901 23902# Transform confdefs.h into a sed script `conftest.defines', that 23903# substitutes the proper values into config.h.in to produce config.h. 23904rm -f conftest.defines conftest.tail 23905# First, append a space to every undef/define line, to ease matching. 23906echo 's/$/ /' >conftest.defines 23907# Then, protect against being on the right side of a sed subst, or in 23908# an unquoted here document, in config.status. If some macros were 23909# called several times there might be several #defines for the same 23910# symbol, which is useless. But do not sort them, since the last 23911# AC_DEFINE must be honored. 23912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23913# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23914# NAME is the cpp macro being defined, VALUE is the value it is being given. 23915# PARAMS is the parameter list in the macro definition--in most cases, it's 23916# just an empty string. 23917ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23918ac_dB='\\)[ (].*,\\1define\\2' 23919ac_dC=' ' 23920ac_dD=' ,' 23921 23922uniq confdefs.h | 23923 sed -n ' 23924 t rset 23925 :rset 23926 s/^[ ]*#[ ]*define[ ][ ]*// 23927 t ok 23928 d 23929 :ok 23930 s/[\\&,]/\\&/g 23931 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23932 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23933 ' >>conftest.defines 23934 23935# Remove the space that was appended to ease matching. 23936# Then replace #undef with comments. This is necessary, for 23937# example, in the case of _POSIX_SOURCE, which is predefined and required 23938# on some systems where configure will not decide to define it. 23939# (The regexp can be short, since the line contains either #define or #undef.) 23940echo 's/ $// 23941s,^[ #]*u.*,/* & */,' >>conftest.defines 23942 23943# Break up conftest.defines: 23944ac_max_sed_lines=50 23945 23946# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23947# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23948# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23949# et cetera. 23950ac_in='$ac_file_inputs' 23951ac_out='"$tmp/out1"' 23952ac_nxt='"$tmp/out2"' 23953 23954while : 23955do 23956 # Write a here document: 23957 cat >>$CONFIG_STATUS <<_ACEOF 23958 # First, check the format of the line: 23959 cat >"\$tmp/defines.sed" <<\\CEOF 23960/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23961/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23962b 23963:def 23964_ACEOF 23965 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23966 echo 'CEOF 23967 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23968 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23969 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23970 grep . conftest.tail >/dev/null || break 23971 rm -f conftest.defines 23972 mv conftest.tail conftest.defines 23973done 23974rm -f conftest.defines conftest.tail 23975 23976echo "ac_result=$ac_in" >>$CONFIG_STATUS 23977cat >>$CONFIG_STATUS <<\_ACEOF 23978 if test x"$ac_file" != x-; then 23979 echo "/* $configure_input */" >"$tmp/config.h" 23980 cat "$ac_result" >>"$tmp/config.h" 23981 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23983echo "$as_me: $ac_file is unchanged" >&6;} 23984 else 23985 rm -f $ac_file 23986 mv "$tmp/config.h" $ac_file 23987 fi 23988 else 23989 echo "/* $configure_input */" 23990 cat "$ac_result" 23991 fi 23992 rm -f "$tmp/out12" 23993 ;; 23994 23995 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23996echo "$as_me: executing $ac_file commands" >&6;} 23997 ;; 23998 esac 23999 24000 24001 case $ac_file$ac_mode in 24002 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 24004 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 24006 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 24008 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 24010 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 24012 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 24014 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 24016 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 24018 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 24020 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 24022 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 24024 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 24026 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 24028 24029 esac 24030done # for ac_tag 24031 24032 24033{ (exit 0); exit 0; } 24034_ACEOF 24035chmod +x $CONFIG_STATUS 24036ac_clean_files=$ac_clean_files_save 24037 24038 24039# configure is writing to config.log, and then calls config.status. 24040# config.status does its own redirection, appending to config.log. 24041# Unfortunately, on DOS this fails, as config.log is still kept open 24042# by configure, so config.status won't be able to write to it; its 24043# output is simply discarded. So we exec the FD to /dev/null, 24044# effectively closing config.log, so it can be properly (re)opened and 24045# appended to by config.status. When coming back to configure, we 24046# need to make the FD available again. 24047if test "$no_create" != yes; then 24048 ac_cs_success=: 24049 ac_config_status_args= 24050 test "$silent" = yes && 24051 ac_config_status_args="$ac_config_status_args --quiet" 24052 exec 5>/dev/null 24053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24054 exec 5>>config.log 24055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24056 # would make configure fail if this is the last instruction. 24057 $ac_cs_success || { (exit 1); exit 1; } 24058fi 24059 24060# 24061# CONFIG_SUBDIRS section. 24062# 24063if test "$no_recursion" != yes; then 24064 24065 # Remove --cache-file and --srcdir arguments so they do not pile up. 24066 ac_sub_configure_args= 24067 ac_prev= 24068 eval "set x $ac_configure_args" 24069 shift 24070 for ac_arg 24071 do 24072 if test -n "$ac_prev"; then 24073 ac_prev= 24074 continue 24075 fi 24076 case $ac_arg in 24077 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24079 ac_prev=cache_file ;; 24080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24082 | --c=*) 24083 ;; 24084 --config-cache | -C) 24085 ;; 24086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24087 ac_prev=srcdir ;; 24088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24089 ;; 24090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24091 ac_prev=prefix ;; 24092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24093 ;; 24094 *) 24095 case $ac_arg in 24096 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24097 esac 24098 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 24099 esac 24100 done 24101 24102 # Always prepend --prefix to ensure using the same prefix 24103 # in subdir configurations. 24104 ac_arg="--prefix=$prefix" 24105 case $ac_arg in 24106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24107 esac 24108 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 24109 24110 ac_popdir=`pwd` 24111 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24112 24113 # Do not complain, so a configure script can configure whichever 24114 # parts of a large source tree are present. 24115 test -d "$srcdir/$ac_dir" || continue 24116 24117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24118 echo "$as_me:$LINENO: $ac_msg" >&5 24119 echo "$ac_msg" >&6 24120 { as_dir="$ac_dir" 24121 case $as_dir in #( 24122 -*) as_dir=./$as_dir;; 24123 esac 24124 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24125 as_dirs= 24126 while :; do 24127 case $as_dir in #( 24128 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24129 *) as_qdir=$as_dir;; 24130 esac 24131 as_dirs="'$as_qdir' $as_dirs" 24132 as_dir=`$as_dirname -- "$as_dir" || 24133$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24134 X"$as_dir" : 'X\(//\)[^/]' \| \ 24135 X"$as_dir" : 'X\(//\)$' \| \ 24136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24137echo X"$as_dir" | 24138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24139 s//\1/ 24140 q 24141 } 24142 /^X\(\/\/\)[^/].*/{ 24143 s//\1/ 24144 q 24145 } 24146 /^X\(\/\/\)$/{ 24147 s//\1/ 24148 q 24149 } 24150 /^X\(\/\).*/{ 24151 s//\1/ 24152 q 24153 } 24154 s/.*/./; q'` 24155 test -d "$as_dir" && break 24156 done 24157 test -z "$as_dirs" || eval "mkdir $as_dirs" 24158 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24159echo "$as_me: error: cannot create directory $as_dir" >&2;} 24160 { (exit 1); exit 1; }; }; } 24161 ac_builddir=. 24162 24163case "$ac_dir" in 24164.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24165*) 24166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24167 # A ".." for each directory in $ac_dir_suffix. 24168 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24169 case $ac_top_builddir_sub in 24170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24172 esac ;; 24173esac 24174ac_abs_top_builddir=$ac_pwd 24175ac_abs_builddir=$ac_pwd$ac_dir_suffix 24176# for backward compatibility: 24177ac_top_builddir=$ac_top_build_prefix 24178 24179case $srcdir in 24180 .) # We are building in place. 24181 ac_srcdir=. 24182 ac_top_srcdir=$ac_top_builddir_sub 24183 ac_abs_top_srcdir=$ac_pwd ;; 24184 [\\/]* | ?:[\\/]* ) # Absolute name. 24185 ac_srcdir=$srcdir$ac_dir_suffix; 24186 ac_top_srcdir=$srcdir 24187 ac_abs_top_srcdir=$srcdir ;; 24188 *) # Relative name. 24189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24190 ac_top_srcdir=$ac_top_build_prefix$srcdir 24191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24192esac 24193ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24194 24195 24196 cd "$ac_dir" 24197 24198 # Check for guested configure; otherwise get Cygnus style configure. 24199 if test -f "$ac_srcdir/configure.gnu"; then 24200 ac_sub_configure=$ac_srcdir/configure.gnu 24201 elif test -f "$ac_srcdir/configure"; then 24202 ac_sub_configure=$ac_srcdir/configure 24203 elif test -f "$ac_srcdir/configure.in"; then 24204 # This should be Cygnus configure. 24205 ac_sub_configure=$ac_aux_dir/configure 24206 else 24207 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24208echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24209 ac_sub_configure= 24210 fi 24211 24212 # The recursion is here. 24213 if test -n "$ac_sub_configure"; then 24214 # Make the cache file name correct relative to the subdirectory. 24215 case $cache_file in 24216 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24217 *) # Relative name. 24218 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24219 esac 24220 24221 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24222echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24223 # The eval makes quoting arguments work. 24224 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24225 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24226 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24227echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24228 { (exit 1); exit 1; }; } 24229 fi 24230 24231 cd "$ac_popdir" 24232 done 24233fi 24234 24235