configure revision 407fbdd161d4134901fefe267779a4aaaeab2f0d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for llvm 2.7svn. 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-2009 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='2.7svn' 565PACKAGE_STRING='llvm 2.7svn' 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 644build 645build_cpu 646build_vendor 647build_os 648host 649host_cpu 650host_vendor 651host_os 652target 653target_cpu 654target_vendor 655target_os 656OS 657HOST_OS 658TARGET_OS 659LINKALL 660NOLINKALL 661LLVM_ON_UNIX 662LLVM_ON_WIN32 663ARCH 664ENDIAN 665CC 666CFLAGS 667LDFLAGS 668CPPFLAGS 669ac_ct_CC 670EXEEXT 671OBJEXT 672CPP 673GREP 674EGREP 675LLVM_CROSS_COMPILING 676BUILD_CC 677BUILD_EXEEXT 678BUILD_CXX 679CVSBUILD 680ENABLE_OPTIMIZED 681ENABLE_PROFILING 682DISABLE_ASSERTIONS 683ENABLE_EXPENSIVE_CHECKS 684EXPENSIVE_CHECKS 685DEBUG_RUNTIME 686DEBUG_SYMBOLS 687JIT 688TARGET_HAS_JIT 689ENABLE_DOXYGEN 690ENABLE_THREADS 691ENABLE_PIC 692TARGETS_TO_BUILD 693LLVM_ENUM_TARGETS 694LLVM_ENUM_ASM_PRINTERS 695LLVM_ENUM_ASM_PARSERS 696LLVM_ENUM_DISASSEMBLERS 697ENABLE_CBE_PRINTF_A 698CLANGPATH 699CLANGXXPATH 700ENABLE_BUILT_CLANG 701OPTIMIZE_OPTION 702EXTRA_OPTIONS 703BINUTILS_INCDIR 704ENABLE_LLVMC_DYNAMIC 705ENABLE_LLVMC_DYNAMIC_PLUGINS 706CXX 707CXXFLAGS 708ac_ct_CXX 709NM 710ifGNUmake 711LN_S 712CMP 713CP 714DATE 715FIND 716MKDIR 717MV 718RANLIB 719AR 720RM 721SED 722TAR 723BINPWD 724GRAPHVIZ 725DOT 726FDP 727NEATO 728TWOPI 729CIRCO 730GV 731DOTTY 732PERL 733HAVE_PERL 734INSTALL_PROGRAM 735INSTALL_SCRIPT 736INSTALL_DATA 737BZIP2 738DOXYGEN 739GROFF 740GZIP 741POD2HTML 742POD2MAN 743RUNTEST 744TCLSH 745ZIP 746OCAMLC 747OCAMLOPT 748OCAMLDEP 749OCAMLDOC 750GAS 751INSTALL_LTDL_TRUE 752INSTALL_LTDL_FALSE 753CONVENIENCE_LTDL_TRUE 754CONVENIENCE_LTDL_FALSE 755LIBADD_DL 756LLVMGCCCOMMAND 757LLVMGXXCOMMAND 758LLVMGCC 759LLVMGXX 760LLVMCC_OPTION 761NO_VARIADIC_MACROS 762NO_MISSING_FIELD_INITIALIZERS 763USE_UDIS86 764USE_OPROFILE 765HAVE_PTHREAD 766HUGE_VAL_SANITY 767MMAP_FILE 768LLVMCC1 769LLVMCC1PLUS 770LLVMGCCDIR 771LLVMGCC_LANGS 772SHLIBEXT 773LLVM_PREFIX 774LLVM_BINDIR 775LLVM_LIBDIR 776LLVM_DATADIR 777LLVM_DOCSDIR 778LLVM_ETCDIR 779LLVM_INCLUDEDIR 780LLVM_INFODIR 781LLVM_MANDIR 782LLVM_CONFIGTIME 783BINDINGS_TO_BUILD 784ALL_BINDINGS 785OCAML_LIBDIR 786ENABLE_VISIBILITY_INLINES_HIDDEN 787RPATH 788RDYNAMIC 789LIBOBJS 790LTLIBOBJS' 791ac_subst_files='' 792 ac_precious_vars='build_alias 793host_alias 794target_alias 795CC 796CFLAGS 797LDFLAGS 798CPPFLAGS 799CPP 800CXX 801CXXFLAGS 802CCC' 803ac_subdirs_all='projects/sample 804projects/privbracket 805projects/llvm-stacker 806projects/llvm-test 807projects/test-suite 808projects/llvm-reopt 809projects/llvm-gcc 810projects/llvm-java 811projects/llvm-tv 812projects/llvm-poolalloc 813projects/poolalloc 814projects/llvm-kernel' 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819# The variables have the same names as the options, with 820# dashes changed to underlines. 821cache_file=/dev/null 822exec_prefix=NONE 823no_create= 824no_recursion= 825prefix=NONE 826program_prefix=NONE 827program_suffix=NONE 828program_transform_name=s,x,x, 829silent= 830site= 831srcdir= 832verbose= 833x_includes=NONE 834x_libraries=NONE 835 836# Installation directory options. 837# These are left unexpanded so users can "make install exec_prefix=/foo" 838# and all the variables that are supposed to be based on exec_prefix 839# by default will actually change. 840# Use braces instead of parens because sh, perl, etc. also accept them. 841# (The list follows the same order as the GNU Coding Standards.) 842bindir='${exec_prefix}/bin' 843sbindir='${exec_prefix}/sbin' 844libexecdir='${exec_prefix}/libexec' 845datarootdir='${prefix}/share' 846datadir='${datarootdir}' 847sysconfdir='${prefix}/etc' 848sharedstatedir='${prefix}/com' 849localstatedir='${prefix}/var' 850includedir='${prefix}/include' 851oldincludedir='/usr/include' 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 853infodir='${datarootdir}/info' 854htmldir='${docdir}' 855dvidir='${docdir}' 856pdfdir='${docdir}' 857psdir='${docdir}' 858libdir='${exec_prefix}/lib' 859localedir='${datarootdir}/locale' 860mandir='${datarootdir}/man' 861 862ac_prev= 863ac_dashdash= 864for ac_option 865do 866 # If the previous option needs an argument, assign it. 867 if test -n "$ac_prev"; then 868 eval $ac_prev=\$ac_option 869 ac_prev= 870 continue 871 fi 872 873 case $ac_option in 874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875 *) ac_optarg=yes ;; 876 esac 877 878 # Accept the important Cygnus configure options, so we can diagnose typos. 879 880 case $ac_dashdash$ac_option in 881 --) 882 ac_dashdash=yes ;; 883 884 -bindir | --bindir | --bindi | --bind | --bin | --bi) 885 ac_prev=bindir ;; 886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 887 bindir=$ac_optarg ;; 888 889 -build | --build | --buil | --bui | --bu) 890 ac_prev=build_alias ;; 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 892 build_alias=$ac_optarg ;; 893 894 -cache-file | --cache-file | --cache-fil | --cache-fi \ 895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 896 ac_prev=cache_file ;; 897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 899 cache_file=$ac_optarg ;; 900 901 --config-cache | -C) 902 cache_file=config.cache ;; 903 904 -datadir | --datadir | --datadi | --datad) 905 ac_prev=datadir ;; 906 -datadir=* | --datadir=* | --datadi=* | --datad=*) 907 datadir=$ac_optarg ;; 908 909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 910 | --dataroo | --dataro | --datar) 911 ac_prev=datarootdir ;; 912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 914 datarootdir=$ac_optarg ;; 915 916 -disable-* | --disable-*) 917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 918 # Reject names that are not valid shell variable names. 919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 921 { (exit 1); exit 1; }; } 922 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 923 eval enable_$ac_feature=no ;; 924 925 -docdir | --docdir | --docdi | --doc | --do) 926 ac_prev=docdir ;; 927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 928 docdir=$ac_optarg ;; 929 930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 931 ac_prev=dvidir ;; 932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 933 dvidir=$ac_optarg ;; 934 935 -enable-* | --enable-*) 936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 940 { (exit 1); exit 1; }; } 941 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 942 eval enable_$ac_feature=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1136 { echo "$as_me: error: invalid package name: $ac_package" >&2 1137 { (exit 1); exit 1; }; } 1138 ac_package=`echo $ac_package| sed 's/-/_/g'` 1139 eval with_$ac_package=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1145 { echo "$as_me: error: invalid package name: $ac_package" >&2 1146 { (exit 1); exit 1; }; } 1147 ac_package=`echo $ac_package | sed 's/-/_/g'` 1148 eval with_$ac_package=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) { echo "$as_me: error: unrecognized option: $ac_option 1169Try \`$0 --help' for more information." >&2 1170 { (exit 1); exit 1; }; } 1171 ;; 1172 1173 *=*) 1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1175 # Reject names that are not valid shell variable names. 1176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1178 { (exit 1); exit 1; }; } 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 { echo "$as_me: error: missing argument to $ac_option" >&2 1196 { (exit 1); exit 1; }; } 1197fi 1198 1199# Be sure to have absolute directory names. 1200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1201 datadir sysconfdir sharedstatedir localstatedir includedir \ 1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1203 libdir localedir mandir 1204do 1205 eval ac_val=\$$ac_var 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1211 { (exit 1); exit 1; }; } 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1226 If a cross compiler is detected then cross compile mode will be used." >&2 1227 elif test "x$build_alias" != "x$host_alias"; then 1228 cross_compiling=yes 1229 fi 1230fi 1231 1232ac_tool_prefix= 1233test -n "$host_alias" && ac_tool_prefix=$host_alias- 1234 1235test "$silent" = yes && exec 6>/dev/null 1236 1237 1238ac_pwd=`pwd` && test -n "$ac_pwd" && 1239ac_ls_di=`ls -di .` && 1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1241 { echo "$as_me: error: Working directory cannot be determined" >&2 1242 { (exit 1); exit 1; }; } 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 { echo "$as_me: error: pwd does not report name of working directory" >&2 1245 { (exit 1); exit 1; }; } 1246 1247 1248# Find the source files, if location was not specified. 1249if test -z "$srcdir"; then 1250 ac_srcdir_defaulted=yes 1251 # Try the directory containing this script, then the parent directory. 1252 ac_confdir=`$as_dirname -- "$0" || 1253$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1254 X"$0" : 'X\(//\)[^/]' \| \ 1255 X"$0" : 'X\(//\)$' \| \ 1256 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1257echo X"$0" | 1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)[^/].*/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\).*/{ 1271 s//\1/ 1272 q 1273 } 1274 s/.*/./; q'` 1275 srcdir=$ac_confdir 1276 if test ! -r "$srcdir/$ac_unique_file"; then 1277 srcdir=.. 1278 fi 1279else 1280 ac_srcdir_defaulted=no 1281fi 1282if test ! -r "$srcdir/$ac_unique_file"; then 1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1285 { (exit 1); exit 1; }; } 1286fi 1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1288ac_abs_confdir=`( 1289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1290 { (exit 1); exit 1; }; } 1291 pwd)` 1292# When building in place, set srcdir=. 1293if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295fi 1296# Remove unnecessary trailing slashes from srcdir. 1297# Double slashes in file names in object file debugging info 1298# mess up M-x gdb in Emacs. 1299case $srcdir in 1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301esac 1302for ac_var in $ac_precious_vars; do 1303 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_env_${ac_var}_value=\$${ac_var} 1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1307done 1308 1309# 1310# Report the --help message. 1311# 1312if test "$ac_init_help" = "long"; then 1313 # Omit some internal or obsolete options to make the list less imposing. 1314 # This message is too long to be a string in the A/UX 3.1 sh. 1315 cat <<_ACEOF 1316\`configure' configures llvm 2.7svn to adapt to many kinds of systems. 1317 1318Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323Defaults for the options are specified in brackets. 1324 1325Configuration: 1326 -h, --help display this help and exit 1327 --help=short display options specific to this package 1328 --help=recursive display the short help of all the included packages 1329 -V, --version display version information and exit 1330 -q, --quiet, --silent do not print \`checking...' messages 1331 --cache-file=FILE cache test results in FILE [disabled] 1332 -C, --config-cache alias for \`--cache-file=config.cache' 1333 -n, --no-create do not create output files 1334 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1335 1336Installation directories: 1337 --prefix=PREFIX install architecture-independent files in PREFIX 1338 [$ac_default_prefix] 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1340 [PREFIX] 1341 1342By default, \`make install' will install all the files in 1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345for instance \`--prefix=\$HOME'. 1346 1347For better control, use the options below. 1348 1349Fine tuning of the installation directories: 1350 --bindir=DIR user executables [EPREFIX/bin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin] 1352 --libexecdir=DIR program executables [EPREFIX/libexec] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1356 --libdir=DIR object code libraries [EPREFIX/lib] 1357 --includedir=DIR C header files [PREFIX/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1361 --infodir=DIR info documentation [DATAROOTDIR/info] 1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1363 --mandir=DIR man documentation [DATAROOTDIR/man] 1364 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1365 --htmldir=DIR html documentation [DOCDIR] 1366 --dvidir=DIR dvi documentation [DOCDIR] 1367 --pdfdir=DIR pdf documentation [DOCDIR] 1368 --psdir=DIR ps documentation [DOCDIR] 1369_ACEOF 1370 1371 cat <<\_ACEOF 1372 1373System types: 1374 --build=BUILD configure for building on BUILD [guessed] 1375 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1376 --target=TARGET configure for building compilers for TARGET [HOST] 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of llvm 2.7svn:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1389 --enable-optimized Compile with optimizations enabled (default is NO) 1390 --enable-profiling Compile with profiling enabled (default is NO) 1391 --enable-assertions Compile with assertion checks enabled (default is 1392 YES) 1393 --enable-expensive-checks 1394 Compile with expensive debug checks enabled (default 1395 is NO) 1396 --enable-debug-runtime Build runtime libs with debug symbols (default is 1397 NO) 1398 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1399 optimization is on and YES if it's off) 1400 --enable-jit Enable Just In Time Compiling (default is YES) 1401 --enable-doxygen Build doxygen documentation (default is NO) 1402 --enable-threads Use threads if available (default is YES) 1403 --enable-pic Build LLVM with Position Independent Code (default 1404 is YES) 1405 --enable-targets Build specific host targets: all or 1406 target1,target2,... Valid targets are: host, x86, 1407 x86_64, sparc, powerpc, alpha, arm, mips, spu, 1408 pic16, xcore, msp430, systemz, blackfin, cbe, msil, 1409 and cpp (default=all) 1410 --enable-cbe-printf-a Enable C Backend output with hex floating point via 1411 %a (default is YES) 1412 --enable-bindings Build specific language bindings: 1413 all,auto,none,{binding-name} (default=auto) 1414 --enable-libffi Check for the presence of libffi (default is NO) 1415 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on 1416 Win32) 1417 --enable-llvmc-dynamic-plugins 1418 Enable dynamic LLVMC plugins (default is YES) 1419 --enable-ltdl-install install libltdl 1420 1421Optional Packages: 1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1424 --with-llvmgccdir Specify location of llvm-gcc install dir (default 1425 searches PATH) 1426 --with-llvmgcc Specify location of llvm-gcc driver (default 1427 searches PATH) 1428 --with-llvmgxx Specify location of llvm-g++ driver (default 1429 searches PATH) 1430 --with-clang Specify location of clang compiler (default is 1431 --with-built-clang) 1432 --with-built-clang Use the compiled Clang as the LLVM compiler 1433 (default=check) 1434 --with-optimize-option Select the compiler options to use for optimized 1435 builds 1436 --with-extra-options Specify additional options to compile LLVM with 1437 --with-ocaml-libdir Specify install location for ocaml bindings (default 1438 is stdlib) 1439 --with-c-include-dirs Colon separated list of directories clang will 1440 search for headers 1441 --with-cxx-include-root Directory with the libstdc++ headers. 1442 --with-cxx-include-arch Architecture of the libstdc++ headers. 1443 --with-cxx-include-32bit-dir 1444 32 bit multilib dir. 1445 --with-cxx-include-64bit-dir 1446 64 bit multilib directory. 1447 --with-binutils-include Specify path to binutils/include/ containing 1448 plugin-api.h file for gold plugin. 1449 --with-tclinclude directory where tcl headers are 1450 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, 1451 clang, or none; default=check) 1452 --with-udis86=<path> Use udis86 external x86 disassembler library 1453 --with-oprofile=<prefix> 1454 Tell OProfile >= 0.9.4 how to symbolize JIT output 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1462 you have headers in a nonstandard directory <include dir> 1463 CPP C preprocessor 1464 CXX C++ compiler command 1465 CXXFLAGS C++ compiler flags 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <llvmbugs@cs.uiuc.edu>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for guested configure. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526fi 1527 1528test -n "$ac_init_help" && exit $ac_status 1529if $ac_init_version; then 1530 cat <<\_ACEOF 1531llvm configure 2.7svn 1532generated by GNU Autoconf 2.60 1533 1534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1536This configure script is free software; the Free Software Foundation 1537gives unlimited permission to copy, distribute and modify it. 1538 1539Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. 1540_ACEOF 1541 exit 1542fi 1543cat >config.log <<_ACEOF 1544This file contains any messages produced by compilers while 1545running configure, to aid debugging if configure makes a mistake. 1546 1547It was created by llvm $as_me 2.7svn, which was 1548generated by GNU Autoconf 2.60. Invocation command line was 1549 1550 $ $0 $@ 1551 1552_ACEOF 1553exec 5>>config.log 1554{ 1555cat <<_ASUNAME 1556## --------- ## 1557## Platform. ## 1558## --------- ## 1559 1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1561uname -m = `(uname -m) 2>/dev/null || echo unknown` 1562uname -r = `(uname -r) 2>/dev/null || echo unknown` 1563uname -s = `(uname -s) 2>/dev/null || echo unknown` 1564uname -v = `(uname -v) 2>/dev/null || echo unknown` 1565 1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1568 1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1576 1577_ASUNAME 1578 1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1580for as_dir in $PATH 1581do 1582 IFS=$as_save_IFS 1583 test -z "$as_dir" && as_dir=. 1584 echo "PATH: $as_dir" 1585done 1586IFS=$as_save_IFS 1587 1588} >&5 1589 1590cat >&5 <<_ACEOF 1591 1592 1593## ----------- ## 1594## Core tests. ## 1595## ----------- ## 1596 1597_ACEOF 1598 1599 1600# Keep a trace of the command line. 1601# Strip out --no-create and --no-recursion so they do not pile up. 1602# Strip out --silent because we don't want to record it for future runs. 1603# Also quote any args containing shell meta-characters. 1604# Make two passes to allow for proper duplicate-argument suppression. 1605ac_configure_args= 1606ac_configure_args0= 1607ac_configure_args1= 1608ac_must_keep_next=false 1609for ac_pass in 1 2 1610do 1611 for ac_arg 1612 do 1613 case $ac_arg in 1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1616 | -silent | --silent | --silen | --sile | --sil) 1617 continue ;; 1618 *\'*) 1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1620 esac 1621 case $ac_pass in 1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1623 2) 1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1625 if test $ac_must_keep_next = true; then 1626 ac_must_keep_next=false # Got value, back to normal. 1627 else 1628 case $ac_arg in 1629 *=* | --config-cache | -C | -disable-* | --disable-* \ 1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1632 | -with-* | --with-* | -without-* | --without-* | --x) 1633 case "$ac_configure_args0 " in 1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1635 esac 1636 ;; 1637 -* ) ac_must_keep_next=true ;; 1638 esac 1639 fi 1640 ac_configure_args="$ac_configure_args '$ac_arg'" 1641 ;; 1642 esac 1643 done 1644done 1645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1646$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1647 1648# When interrupted or exit'd, cleanup temporary files, and complete 1649# config.log. We remove comments because anyway the quotes in there 1650# would cause problems or look ugly. 1651# WARNING: Use '\'' to represent an apostrophe within the trap. 1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1653trap 'exit_status=$? 1654 # Save into config.log some information that might help in debugging. 1655 { 1656 echo 1657 1658 cat <<\_ASBOX 1659## ---------------- ## 1660## Cache variables. ## 1661## ---------------- ## 1662_ASBOX 1663 echo 1664 # The following way of writing the cache mishandles newlines in values, 1665( 1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1667 eval ac_val=\$$ac_var 1668 case $ac_val in #( 1669 *${as_nl}*) 1670 case $ac_var in #( 1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1673 esac 1674 case $ac_var in #( 1675 _ | IFS | as_nl) ;; #( 1676 *) $as_unset $ac_var ;; 1677 esac ;; 1678 esac 1679 done 1680 (set) 2>&1 | 1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1682 *${as_nl}ac_space=\ *) 1683 sed -n \ 1684 "s/'\''/'\''\\\\'\'''\''/g; 1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1686 ;; #( 1687 *) 1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1689 ;; 1690 esac | 1691 sort 1692) 1693 echo 1694 1695 cat <<\_ASBOX 1696## ----------------- ## 1697## Output variables. ## 1698## ----------------- ## 1699_ASBOX 1700 echo 1701 for ac_var in $ac_subst_vars 1702 do 1703 eval ac_val=\$$ac_var 1704 case $ac_val in 1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1706 esac 1707 echo "$ac_var='\''$ac_val'\''" 1708 done | sort 1709 echo 1710 1711 if test -n "$ac_subst_files"; then 1712 cat <<\_ASBOX 1713## ------------------- ## 1714## File substitutions. ## 1715## ------------------- ## 1716_ASBOX 1717 echo 1718 for ac_var in $ac_subst_files 1719 do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in 1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1723 esac 1724 echo "$ac_var='\''$ac_val'\''" 1725 done | sort 1726 echo 1727 fi 1728 1729 if test -s confdefs.h; then 1730 cat <<\_ASBOX 1731## ----------- ## 1732## confdefs.h. ## 1733## ----------- ## 1734_ASBOX 1735 echo 1736 cat confdefs.h 1737 echo 1738 fi 1739 test "$ac_signal" != 0 && 1740 echo "$as_me: caught signal $ac_signal" 1741 echo "$as_me: exit $exit_status" 1742 } >&5 1743 rm -f core *.core core.conftest.* && 1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1745 exit $exit_status 1746' 0 1747for ac_signal in 1 2 13 15; do 1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1749done 1750ac_signal=0 1751 1752# confdefs.h avoids OS command line length limits that DEFS can exceed. 1753rm -f -r conftest* confdefs.h 1754 1755# Predefined preprocessor variables. 1756 1757cat >>confdefs.h <<_ACEOF 1758#define PACKAGE_NAME "$PACKAGE_NAME" 1759_ACEOF 1760 1761 1762cat >>confdefs.h <<_ACEOF 1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1764_ACEOF 1765 1766 1767cat >>confdefs.h <<_ACEOF 1768#define PACKAGE_VERSION "$PACKAGE_VERSION" 1769_ACEOF 1770 1771 1772cat >>confdefs.h <<_ACEOF 1773#define PACKAGE_STRING "$PACKAGE_STRING" 1774_ACEOF 1775 1776 1777cat >>confdefs.h <<_ACEOF 1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1779_ACEOF 1780 1781 1782# Let the site file select an alternate cache file if it wants to. 1783# Prefer explicitly selected file to automatically selected ones. 1784if test -n "$CONFIG_SITE"; then 1785 set x "$CONFIG_SITE" 1786elif test "x$prefix" != xNONE; then 1787 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1788else 1789 set x "$ac_default_prefix/share/config.site" \ 1790 "$ac_default_prefix/etc/config.site" 1791fi 1792shift 1793for ac_site_file 1794do 1795 if test -r "$ac_site_file"; then 1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1797echo "$as_me: loading site script $ac_site_file" >&6;} 1798 sed 's/^/| /' "$ac_site_file" >&5 1799 . "$ac_site_file" 1800 fi 1801done 1802 1803if test -r "$cache_file"; then 1804 # Some versions of bash will fail to source /dev/null (special 1805 # files actually), so we avoid doing that. 1806 if test -f "$cache_file"; then 1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1808echo "$as_me: loading cache $cache_file" >&6;} 1809 case $cache_file in 1810 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1811 *) . "./$cache_file";; 1812 esac 1813 fi 1814else 1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1816echo "$as_me: creating cache $cache_file" >&6;} 1817 >$cache_file 1818fi 1819 1820# Check that the precious variables saved in the cache have kept the same 1821# value. 1822ac_cache_corrupted=false 1823for ac_var in $ac_precious_vars; do 1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1825 eval ac_new_set=\$ac_env_${ac_var}_set 1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1827 eval ac_new_val=\$ac_env_${ac_var}_value 1828 case $ac_old_set,$ac_new_set in 1829 set,) 1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1832 ac_cache_corrupted=: ;; 1833 ,set) 1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1836 ac_cache_corrupted=: ;; 1837 ,);; 1838 *) 1839 if test "x$ac_old_val" != "x$ac_new_val"; then 1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1843echo "$as_me: former value: $ac_old_val" >&2;} 1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1845echo "$as_me: current value: $ac_new_val" >&2;} 1846 ac_cache_corrupted=: 1847 fi;; 1848 esac 1849 # Pass precious variables to config.status. 1850 if test "$ac_new_set" = set; then 1851 case $ac_new_val in 1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 *) ac_arg=$ac_var=$ac_new_val ;; 1854 esac 1855 case " $ac_configure_args " in 1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1858 esac 1859 fi 1860done 1861if $ac_cache_corrupted; then 1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1863echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1866 { (exit 1); exit 1; }; } 1867fi 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893ac_ext=c 1894ac_cpp='$CPP $CPPFLAGS' 1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1897ac_compiler_gnu=$ac_cv_c_compiler_gnu 1898 1899 1900 1901LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." 1902 1903 1904 1905 1906 1907 1908 1909ac_aux_dir= 1910for ac_dir in autoconf "$srcdir"/autoconf; do 1911 if test -f "$ac_dir/install-sh"; then 1912 ac_aux_dir=$ac_dir 1913 ac_install_sh="$ac_aux_dir/install-sh -c" 1914 break 1915 elif test -f "$ac_dir/install.sh"; then 1916 ac_aux_dir=$ac_dir 1917 ac_install_sh="$ac_aux_dir/install.sh -c" 1918 break 1919 elif test -f "$ac_dir/shtool"; then 1920 ac_aux_dir=$ac_dir 1921 ac_install_sh="$ac_aux_dir/shtool install -c" 1922 break 1923 fi 1924done 1925if test -z "$ac_aux_dir"; then 1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1927echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1928 { (exit 1); exit 1; }; } 1929fi 1930 1931# These three variables are undocumented and unsupported, 1932# and are intended to be withdrawn in a future Autoconf release. 1933# They can cause serious problems if a builder's source tree is in a directory 1934# whose full name contains unusual characters. 1935ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1936ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1937ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1938 1939 1940 1941if test ${srcdir} != "." ; then 1942 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1944echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1945 { (exit 1); exit 1; }; } 1946 fi 1947fi 1948 1949for i in `ls ${srcdir}/projects` 1950do 1951 if test -d ${srcdir}/projects/${i} ; then 1952 case ${i} in 1953 CVS) ;; 1954 sample) subdirs="$subdirs projects/sample" 1955 ;; 1956 privbracket) subdirs="$subdirs projects/privbracket" 1957 ;; 1958 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 1959 ;; 1960 # llvm-test is the old name of the test-suite, kept here for backwards 1961 # compatibility 1962 llvm-test) subdirs="$subdirs projects/llvm-test" 1963 ;; 1964 test-suite) subdirs="$subdirs projects/test-suite" 1965 ;; 1966 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 1967;; 1968 llvm-gcc) subdirs="$subdirs projects/llvm-gcc" 1969 ;; 1970 llvm-java) subdirs="$subdirs projects/llvm-java" 1971 ;; 1972 llvm-tv) subdirs="$subdirs projects/llvm-tv" 1973 ;; 1974 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" 1975 ;; 1976 poolalloc) subdirs="$subdirs projects/poolalloc" 1977 ;; 1978 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 1979 ;; 1980 *) 1981 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 1982echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 1983 ;; 1984 esac 1985 fi 1986done 1987 1988 1989# Make sure we can run config.sub. 1990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1991 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1992echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1993 { (exit 1); exit 1; }; } 1994 1995{ echo "$as_me:$LINENO: checking build system type" >&5 1996echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1997if test "${ac_cv_build+set}" = set; then 1998 echo $ECHO_N "(cached) $ECHO_C" >&6 1999else 2000 ac_build_alias=$build_alias 2001test "x$ac_build_alias" = x && 2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2003test "x$ac_build_alias" = x && 2004 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2005echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2006 { (exit 1); exit 1; }; } 2007ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2008 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2009echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2010 { (exit 1); exit 1; }; } 2011 2012fi 2013{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2014echo "${ECHO_T}$ac_cv_build" >&6; } 2015case $ac_cv_build in 2016*-*-*) ;; 2017*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2018echo "$as_me: error: invalid value of canonical build" >&2;} 2019 { (exit 1); exit 1; }; };; 2020esac 2021build=$ac_cv_build 2022ac_save_IFS=$IFS; IFS='-' 2023set x $ac_cv_build 2024shift 2025build_cpu=$1 2026build_vendor=$2 2027shift; shift 2028# Remember, the first character of IFS is used to create $*, 2029# except with old shells: 2030build_os=$* 2031IFS=$ac_save_IFS 2032case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2033 2034 2035{ echo "$as_me:$LINENO: checking host system type" >&5 2036echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2037if test "${ac_cv_host+set}" = set; then 2038 echo $ECHO_N "(cached) $ECHO_C" >&6 2039else 2040 if test "x$host_alias" = x; then 2041 ac_cv_host=$ac_cv_build 2042else 2043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2045echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2046 { (exit 1); exit 1; }; } 2047fi 2048 2049fi 2050{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2051echo "${ECHO_T}$ac_cv_host" >&6; } 2052case $ac_cv_host in 2053*-*-*) ;; 2054*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2055echo "$as_me: error: invalid value of canonical host" >&2;} 2056 { (exit 1); exit 1; }; };; 2057esac 2058host=$ac_cv_host 2059ac_save_IFS=$IFS; IFS='-' 2060set x $ac_cv_host 2061shift 2062host_cpu=$1 2063host_vendor=$2 2064shift; shift 2065# Remember, the first character of IFS is used to create $*, 2066# except with old shells: 2067host_os=$* 2068IFS=$ac_save_IFS 2069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2070 2071 2072{ echo "$as_me:$LINENO: checking target system type" >&5 2073echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2074if test "${ac_cv_target+set}" = set; then 2075 echo $ECHO_N "(cached) $ECHO_C" >&6 2076else 2077 if test "x$target_alias" = x; then 2078 ac_cv_target=$ac_cv_host 2079else 2080 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2083 { (exit 1); exit 1; }; } 2084fi 2085 2086fi 2087{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2088echo "${ECHO_T}$ac_cv_target" >&6; } 2089case $ac_cv_target in 2090*-*-*) ;; 2091*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2092echo "$as_me: error: invalid value of canonical target" >&2;} 2093 { (exit 1); exit 1; }; };; 2094esac 2095target=$ac_cv_target 2096ac_save_IFS=$IFS; IFS='-' 2097set x $ac_cv_target 2098shift 2099target_cpu=$1 2100target_vendor=$2 2101shift; shift 2102# Remember, the first character of IFS is used to create $*, 2103# except with old shells: 2104target_os=$* 2105IFS=$ac_save_IFS 2106case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2107 2108 2109# The aliases save the names the user supplied, while $host etc. 2110# will get canonicalized. 2111test -n "$target_alias" && 2112 test "$program_prefix$program_suffix$program_transform_name" = \ 2113 NONENONEs,x,x, && 2114 program_prefix=${target_alias}- 2115 2116{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2117echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2118if test "${llvm_cv_os_type+set}" = set; then 2119 echo $ECHO_N "(cached) $ECHO_C" >&6 2120else 2121 case $host in 2122 *-*-aix*) 2123 llvm_cv_link_all_option="-Wl,--whole-archive" 2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2125 llvm_cv_os_type="AIX" 2126 llvm_cv_platform_type="Unix" ;; 2127 *-*-irix*) 2128 llvm_cv_link_all_option="-Wl,--whole-archive" 2129 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2130 llvm_cv_os_type="IRIX" 2131 llvm_cv_platform_type="Unix" ;; 2132 *-*-cygwin*) 2133 llvm_cv_link_all_option="-Wl,--whole-archive" 2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2135 llvm_cv_os_type="Cygwin" 2136 llvm_cv_platform_type="Unix" ;; 2137 *-*-darwin*) 2138 llvm_cv_link_all_option="-Wl,-all_load" 2139 llvm_cv_no_link_all_option="-Wl,-noall_load" 2140 llvm_cv_os_type="Darwin" 2141 llvm_cv_platform_type="Unix" ;; 2142 *-*-freebsd*) 2143 llvm_cv_link_all_option="-Wl,--whole-archive" 2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2145 llvm_cv_os_type="FreeBSD" 2146 llvm_cv_platform_type="Unix" ;; 2147 *-*-openbsd*) 2148 llvm_cv_link_all_option="-Wl,--whole-archive" 2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2150 llvm_cv_os_type="OpenBSD" 2151 llvm_cv_platform_type="Unix" ;; 2152 *-*-netbsd*) 2153 llvm_cv_link_all_option="-Wl,--whole-archive" 2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2155 llvm_cv_os_type="NetBSD" 2156 llvm_cv_platform_type="Unix" ;; 2157 *-*-dragonfly*) 2158 llvm_cv_link_all_option="-Wl,--whole-archive" 2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2160 llvm_cv_os_type="DragonFly" 2161 llvm_cv_platform_type="Unix" ;; 2162 *-*-hpux*) 2163 llvm_cv_link_all_option="-Wl,--whole-archive" 2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2165 llvm_cv_os_type="HP-UX" 2166 llvm_cv_platform_type="Unix" ;; 2167 *-*-interix*) 2168 llvm_cv_link_all_option="-Wl,--whole-archive" 2169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2170 llvm_cv_os_type="Interix" 2171 llvm_cv_platform_type="Unix" ;; 2172 *-*-linux*) 2173 llvm_cv_link_all_option="-Wl,--whole-archive" 2174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2175 llvm_cv_os_type="Linux" 2176 llvm_cv_platform_type="Unix" ;; 2177 *-*-solaris*) 2178 llvm_cv_link_all_option="-Wl,-z,allextract" 2179 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2180 llvm_cv_os_type="SunOS" 2181 llvm_cv_platform_type="Unix" ;; 2182 *-*-auroraux*) 2183 llvm_cv_link_all_option="-Wl,-z,allextract" 2184 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2185 llvm_cv_os_type="AuroraUX" 2186 llvm_cv_platform_type="Unix" ;; 2187 *-*-win32*) 2188 llvm_cv_link_all_option="-Wl,--whole-archive" 2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2190 llvm_cv_os_type="Win32" 2191 llvm_cv_platform_type="Win32" ;; 2192 *-*-mingw*) 2193 llvm_cv_link_all_option="-Wl,--whole-archive" 2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2195 llvm_cv_os_type="MingW" 2196 llvm_cv_platform_type="Win32" ;; 2197 *-*-haiku*) 2198 llvm_cv_link_all_option="-Wl,--whole-archive" 2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2200 llvm_cv_os_type="Haiku" 2201 llvm_cv_platform_type="Unix" ;; 2202 *-unknown-eabi*) 2203 llvm_cv_link_all_option="-Wl,--whole-archive" 2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2205 llvm_cv_os_type="Freestanding" 2206 llvm_cv_platform_type="Unix" ;; 2207 *-unknown-elf*) 2208 llvm_cv_link_all_option="-Wl,--whole-archive" 2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2210 llvm_cv_os_type="Freestanding" 2211 llvm_cv_platform_type="Unix" ;; 2212 *) 2213 llvm_cv_link_all_option="" 2214 llvm_cv_no_link_all_option="" 2215 llvm_cv_os_type="Unknown" 2216 llvm_cv_platform_type="Unknown" ;; 2217esac 2218fi 2219{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2220echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2221 2222{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2223echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2224if test "${llvm_cv_target_os_type+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 case $target in 2228 *-*-aix*) 2229 llvm_cv_target_os_type="AIX" ;; 2230 *-*-irix*) 2231 llvm_cv_target_os_type="IRIX" ;; 2232 *-*-cygwin*) 2233 llvm_cv_target_os_type="Cygwin" ;; 2234 *-*-darwin*) 2235 llvm_cv_target_os_type="Darwin" ;; 2236 *-*-freebsd*) 2237 llvm_cv_target_os_type="FreeBSD" ;; 2238 *-*-openbsd*) 2239 llvm_cv_target_os_type="OpenBSD" ;; 2240 *-*-netbsd*) 2241 llvm_cv_target_os_type="NetBSD" ;; 2242 *-*-dragonfly*) 2243 llvm_cv_target_os_type="DragonFly" ;; 2244 *-*-hpux*) 2245 llvm_cv_target_os_type="HP-UX" ;; 2246 *-*-interix*) 2247 llvm_cv_target_os_type="Interix" ;; 2248 *-*-linux*) 2249 llvm_cv_target_os_type="Linux" ;; 2250 *-*-solaris*) 2251 llvm_cv_target_os_type="SunOS" ;; 2252 *-*-auroraux*) 2253 llvm_cv_target_os_type="AuroraUX" ;; 2254 *-*-win32*) 2255 llvm_cv_target_os_type="Win32" ;; 2256 *-*-mingw*) 2257 llvm_cv_target_os_type="MingW" ;; 2258 *-*-haiku*) 2259 llvm_cv_target_os_type="Haiku" ;; 2260 *-unknown-eabi*) 2261 llvm_cv_target_os_type="Freestanding" ;; 2262 *) 2263 llvm_cv_target_os_type="Unknown" ;; 2264esac 2265fi 2266{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2267echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2268 2269if test "$llvm_cv_os_type" = "Unknown" ; then 2270 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2271echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2272 { (exit 1); exit 1; }; } 2273fi 2274 2275OS=$llvm_cv_os_type 2276 2277HOST_OS=$llvm_cv_os_type 2278 2279TARGET_OS=$llvm_cv_target_os_type 2280 2281 2282LINKALL=$llvm_cv_link_all_option 2283 2284NOLINKALL=$llvm_cv_no_link_all_option 2285 2286 2287case $llvm_cv_platform_type in 2288 Unix) 2289 2290cat >>confdefs.h <<\_ACEOF 2291#define LLVM_ON_UNIX 1 2292_ACEOF 2293 2294 LLVM_ON_UNIX=1 2295 2296 LLVM_ON_WIN32=0 2297 2298 ;; 2299 Win32) 2300 2301cat >>confdefs.h <<\_ACEOF 2302#define LLVM_ON_WIN32 1 2303_ACEOF 2304 2305 LLVM_ON_UNIX=0 2306 2307 LLVM_ON_WIN32=1 2308 2309 ;; 2310esac 2311 2312{ echo "$as_me:$LINENO: checking target architecture" >&5 2313echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2314if test "${llvm_cv_target_arch+set}" = set; then 2315 echo $ECHO_N "(cached) $ECHO_C" >&6 2316else 2317 case $target in 2318 i?86-*) llvm_cv_target_arch="x86" ;; 2319 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2320 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2321 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2322 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2323 arm*-*) llvm_cv_target_arch="ARM" ;; 2324 mips-*) llvm_cv_target_arch="Mips" ;; 2325 pic16-*) llvm_cv_target_arch="PIC16" ;; 2326 xcore-*) llvm_cv_target_arch="XCore" ;; 2327 msp430-*) llvm_cv_target_arch="MSP430" ;; 2328 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2329 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2330 microblaze-*) llvm_cv_target_arch="MBlaze" ;; 2331 *) llvm_cv_target_arch="Unknown" ;; 2332esac 2333fi 2334{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2335echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2336 2337if test "$llvm_cv_target_arch" = "Unknown" ; then 2338 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2339echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2340fi 2341 2342# Determine the LLVM native architecture for the target 2343case "$llvm_cv_target_arch" in 2344 x86) LLVM_NATIVE_ARCH="X86" ;; 2345 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2346 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2347esac 2348 2349ARCH=$llvm_cv_target_arch 2350 2351 2352ac_ext=c 2353ac_cpp='$CPP $CPPFLAGS' 2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2356ac_compiler_gnu=$ac_cv_c_compiler_gnu 2357if test -n "$ac_tool_prefix"; then 2358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2359set dummy ${ac_tool_prefix}gcc; ac_word=$2 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2362if test "${ac_cv_prog_CC+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 if test -n "$CC"; then 2366 ac_cv_prog_CC="$CC" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385CC=$ac_cv_prog_CC 2386if test -n "$CC"; then 2387 { echo "$as_me:$LINENO: result: $CC" >&5 2388echo "${ECHO_T}$CC" >&6; } 2389else 2390 { echo "$as_me:$LINENO: result: no" >&5 2391echo "${ECHO_T}no" >&6; } 2392fi 2393 2394 2395fi 2396if test -z "$ac_cv_prog_CC"; then 2397 ac_ct_CC=$CC 2398 # Extract the first word of "gcc", so it can be a program name with args. 2399set dummy gcc; ac_word=$2 2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 if test -n "$ac_ct_CC"; then 2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2415 ac_cv_prog_ac_ct_CC="gcc" 2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425ac_ct_CC=$ac_cv_prog_ac_ct_CC 2426if test -n "$ac_ct_CC"; then 2427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2428echo "${ECHO_T}$ac_ct_CC" >&6; } 2429else 2430 { echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6; } 2432fi 2433 2434 if test "x$ac_ct_CC" = x; then 2435 CC="" 2436 else 2437 case $cross_compiling:$ac_tool_warned in 2438yes:) 2439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2440whose name does not start with the host triplet. If you think this 2441configuration is useful to you, please write to autoconf@gnu.org." >&5 2442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2443whose name does not start with the host triplet. If you think this 2444configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2445ac_tool_warned=yes ;; 2446esac 2447 CC=$ac_ct_CC 2448 fi 2449else 2450 CC="$ac_cv_prog_CC" 2451fi 2452 2453if test -z "$CC"; then 2454 if test -n "$ac_tool_prefix"; then 2455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2456set dummy ${ac_tool_prefix}cc; ac_word=$2 2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2459if test "${ac_cv_prog_CC+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 if test -n "$CC"; then 2463 ac_cv_prog_CC="$CC" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_CC="${ac_tool_prefix}cc" 2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477done 2478IFS=$as_save_IFS 2479 2480fi 2481fi 2482CC=$ac_cv_prog_CC 2483if test -n "$CC"; then 2484 { echo "$as_me:$LINENO: result: $CC" >&5 2485echo "${ECHO_T}$CC" >&6; } 2486else 2487 { echo "$as_me:$LINENO: result: no" >&5 2488echo "${ECHO_T}no" >&6; } 2489fi 2490 2491 2492 fi 2493fi 2494if test -z "$CC"; then 2495 # Extract the first word of "cc", so it can be a program name with args. 2496set dummy cc; ac_word=$2 2497{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2499if test "${ac_cv_prog_CC+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 if test -n "$CC"; then 2503 ac_cv_prog_CC="$CC" # Let the user override the test. 2504else 2505 ac_prog_rejected=no 2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507for as_dir in $PATH 2508do 2509 IFS=$as_save_IFS 2510 test -z "$as_dir" && as_dir=. 2511 for ac_exec_ext in '' $ac_executable_extensions; do 2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2514 ac_prog_rejected=yes 2515 continue 2516 fi 2517 ac_cv_prog_CC="cc" 2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2519 break 2 2520 fi 2521done 2522done 2523IFS=$as_save_IFS 2524 2525if test $ac_prog_rejected = yes; then 2526 # We found a bogon in the path, so make sure we never use it. 2527 set dummy $ac_cv_prog_CC 2528 shift 2529 if test $# != 0; then 2530 # We chose a different compiler from the bogus one. 2531 # However, it has the same basename, so the bogon will be chosen 2532 # first if we set CC to just the basename; use the full file name. 2533 shift 2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2535 fi 2536fi 2537fi 2538fi 2539CC=$ac_cv_prog_CC 2540if test -n "$CC"; then 2541 { echo "$as_me:$LINENO: result: $CC" >&5 2542echo "${ECHO_T}$CC" >&6; } 2543else 2544 { echo "$as_me:$LINENO: result: no" >&5 2545echo "${ECHO_T}no" >&6; } 2546fi 2547 2548 2549fi 2550if test -z "$CC"; then 2551 if test -n "$ac_tool_prefix"; then 2552 for ac_prog in cl.exe 2553 do 2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2555set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2556{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2558if test "${ac_cv_prog_CC+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560else 2561 if test -n "$CC"; then 2562 ac_cv_prog_CC="$CC" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581CC=$ac_cv_prog_CC 2582if test -n "$CC"; then 2583 { echo "$as_me:$LINENO: result: $CC" >&5 2584echo "${ECHO_T}$CC" >&6; } 2585else 2586 { echo "$as_me:$LINENO: result: no" >&5 2587echo "${ECHO_T}no" >&6; } 2588fi 2589 2590 2591 test -n "$CC" && break 2592 done 2593fi 2594if test -z "$CC"; then 2595 ac_ct_CC=$CC 2596 for ac_prog in cl.exe 2597do 2598 # Extract the first word of "$ac_prog", so it can be a program name with args. 2599set dummy $ac_prog; ac_word=$2 2600{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2603 echo $ECHO_N "(cached) $ECHO_C" >&6 2604else 2605 if test -n "$ac_ct_CC"; then 2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2615 ac_cv_prog_ac_ct_CC="$ac_prog" 2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625ac_ct_CC=$ac_cv_prog_ac_ct_CC 2626if test -n "$ac_ct_CC"; then 2627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2628echo "${ECHO_T}$ac_ct_CC" >&6; } 2629else 2630 { echo "$as_me:$LINENO: result: no" >&5 2631echo "${ECHO_T}no" >&6; } 2632fi 2633 2634 2635 test -n "$ac_ct_CC" && break 2636done 2637 2638 if test "x$ac_ct_CC" = x; then 2639 CC="" 2640 else 2641 case $cross_compiling:$ac_tool_warned in 2642yes:) 2643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2644whose name does not start with the host triplet. If you think this 2645configuration is useful to you, please write to autoconf@gnu.org." >&5 2646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2647whose name does not start with the host triplet. If you think this 2648configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2649ac_tool_warned=yes ;; 2650esac 2651 CC=$ac_ct_CC 2652 fi 2653fi 2654 2655fi 2656 2657 2658test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2659See \`config.log' for more details." >&5 2660echo "$as_me: error: no acceptable C compiler found in \$PATH 2661See \`config.log' for more details." >&2;} 2662 { (exit 1); exit 1; }; } 2663 2664# Provide some information about the compiler. 2665echo "$as_me:$LINENO: checking for C compiler version" >&5 2666ac_compiler=`set X $ac_compile; echo $2` 2667{ (ac_try="$ac_compiler --version >&5" 2668case "(($ac_try" in 2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2670 *) ac_try_echo=$ac_try;; 2671esac 2672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2673 (eval "$ac_compiler --version >&5") 2>&5 2674 ac_status=$? 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); } 2677{ (ac_try="$ac_compiler -v >&5" 2678case "(($ac_try" in 2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2680 *) ac_try_echo=$ac_try;; 2681esac 2682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2683 (eval "$ac_compiler -v >&5") 2>&5 2684 ac_status=$? 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); } 2687{ (ac_try="$ac_compiler -V >&5" 2688case "(($ac_try" in 2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2690 *) ac_try_echo=$ac_try;; 2691esac 2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2693 (eval "$ac_compiler -V >&5") 2>&5 2694 ac_status=$? 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2696 (exit $ac_status); } 2697 2698cat >conftest.$ac_ext <<_ACEOF 2699/* confdefs.h. */ 2700_ACEOF 2701cat confdefs.h >>conftest.$ac_ext 2702cat >>conftest.$ac_ext <<_ACEOF 2703/* end confdefs.h. */ 2704 2705int 2706main () 2707{ 2708 2709 ; 2710 return 0; 2711} 2712_ACEOF 2713ac_clean_files_save=$ac_clean_files 2714ac_clean_files="$ac_clean_files a.out a.exe b.out" 2715# Try to create an executable without -o first, disregard a.out. 2716# It will help us diagnose broken compilers, and finding out an intuition 2717# of exeext. 2718{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2719echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2720ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2721# 2722# List of possible output files, starting from the most likely. 2723# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2724# only as a last resort. b.out is created by i960 compilers. 2725ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2726# 2727# The IRIX 6 linker writes into existing files which may not be 2728# executable, retaining their permissions. Remove them first so a 2729# subsequent execution test works. 2730ac_rmfiles= 2731for ac_file in $ac_files 2732do 2733 case $ac_file in 2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2736 esac 2737done 2738rm -f $ac_rmfiles 2739 2740if { (ac_try="$ac_link_default" 2741case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744esac 2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2746 (eval "$ac_link_default") 2>&5 2747 ac_status=$? 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2749 (exit $ac_status); }; then 2750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2751# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2752# in a Makefile. We should not override ac_cv_exeext if it was cached, 2753# so that the user can short-circuit this test for compilers unknown to 2754# Autoconf. 2755for ac_file in $ac_files 2756do 2757 test -f "$ac_file" || continue 2758 case $ac_file in 2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2760 ;; 2761 [ab].out ) 2762 # We found the default executable, but exeext='' is most 2763 # certainly right. 2764 break;; 2765 *.* ) 2766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2767 then :; else 2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2769 fi 2770 # We set ac_cv_exeext here because the later test for it is not 2771 # safe: cross compilers may not add the suffix if given an `-o' 2772 # argument, so we may need to know it at that point already. 2773 # Even if this section looks crufty: it has the advantage of 2774 # actually working. 2775 break;; 2776 * ) 2777 break;; 2778 esac 2779done 2780test "$ac_cv_exeext" = no && ac_cv_exeext= 2781 2782else 2783 echo "$as_me: failed program was:" >&5 2784sed 's/^/| /' conftest.$ac_ext >&5 2785 2786{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2787See \`config.log' for more details." >&5 2788echo "$as_me: error: C compiler cannot create executables 2789See \`config.log' for more details." >&2;} 2790 { (exit 77); exit 77; }; } 2791fi 2792 2793ac_exeext=$ac_cv_exeext 2794{ echo "$as_me:$LINENO: result: $ac_file" >&5 2795echo "${ECHO_T}$ac_file" >&6; } 2796 2797# Check that the compiler produces executables we can run. If not, either 2798# the compiler is broken, or we cross compile. 2799{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2800echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2801# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2802# If not cross compiling, check that we can run a simple program. 2803if test "$cross_compiling" != yes; then 2804 if { ac_try='./$ac_file' 2805 { (case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808esac 2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2810 (eval "$ac_try") 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 2814 cross_compiling=no 2815 else 2816 if test "$cross_compiling" = maybe; then 2817 cross_compiling=yes 2818 else 2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2820If you meant to cross compile, use \`--host'. 2821See \`config.log' for more details." >&5 2822echo "$as_me: error: cannot run C compiled programs. 2823If you meant to cross compile, use \`--host'. 2824See \`config.log' for more details." >&2;} 2825 { (exit 1); exit 1; }; } 2826 fi 2827 fi 2828fi 2829{ echo "$as_me:$LINENO: result: yes" >&5 2830echo "${ECHO_T}yes" >&6; } 2831 2832rm -f a.out a.exe conftest$ac_cv_exeext b.out 2833ac_clean_files=$ac_clean_files_save 2834# Check that the compiler produces executables we can run. If not, either 2835# the compiler is broken, or we cross compile. 2836{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2837echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2838{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2839echo "${ECHO_T}$cross_compiling" >&6; } 2840 2841{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2842echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2843if { (ac_try="$ac_link" 2844case "(($ac_try" in 2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2846 *) ac_try_echo=$ac_try;; 2847esac 2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2849 (eval "$ac_link") 2>&5 2850 ac_status=$? 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); }; then 2853 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2854# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2855# work properly (i.e., refer to `conftest.exe'), while it won't with 2856# `rm'. 2857for ac_file in conftest.exe conftest conftest.*; do 2858 test -f "$ac_file" || continue 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2862 break;; 2863 * ) break;; 2864 esac 2865done 2866else 2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2868See \`config.log' for more details." >&5 2869echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2870See \`config.log' for more details." >&2;} 2871 { (exit 1); exit 1; }; } 2872fi 2873 2874rm -f conftest$ac_cv_exeext 2875{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2876echo "${ECHO_T}$ac_cv_exeext" >&6; } 2877 2878rm -f conftest.$ac_ext 2879EXEEXT=$ac_cv_exeext 2880ac_exeext=$EXEEXT 2881{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2882echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2883if test "${ac_cv_objext+set}" = set; then 2884 echo $ECHO_N "(cached) $ECHO_C" >&6 2885else 2886 cat >conftest.$ac_ext <<_ACEOF 2887/* confdefs.h. */ 2888_ACEOF 2889cat confdefs.h >>conftest.$ac_ext 2890cat >>conftest.$ac_ext <<_ACEOF 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896 2897 ; 2898 return 0; 2899} 2900_ACEOF 2901rm -f conftest.o conftest.obj 2902if { (ac_try="$ac_compile" 2903case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2908 (eval "$ac_compile") 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); }; then 2912 for ac_file in conftest.o conftest.obj conftest.*; do 2913 test -f "$ac_file" || continue; 2914 case $ac_file in 2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2917 break;; 2918 esac 2919done 2920else 2921 echo "$as_me: failed program was:" >&5 2922sed 's/^/| /' conftest.$ac_ext >&5 2923 2924{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2925See \`config.log' for more details." >&5 2926echo "$as_me: error: cannot compute suffix of object files: cannot compile 2927See \`config.log' for more details." >&2;} 2928 { (exit 1); exit 1; }; } 2929fi 2930 2931rm -f conftest.$ac_cv_objext conftest.$ac_ext 2932fi 2933{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2934echo "${ECHO_T}$ac_cv_objext" >&6; } 2935OBJEXT=$ac_cv_objext 2936ac_objext=$OBJEXT 2937{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2938echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2939if test "${ac_cv_c_compiler_gnu+set}" = set; then 2940 echo $ECHO_N "(cached) $ECHO_C" >&6 2941else 2942 cat >conftest.$ac_ext <<_ACEOF 2943/* confdefs.h. */ 2944_ACEOF 2945cat confdefs.h >>conftest.$ac_ext 2946cat >>conftest.$ac_ext <<_ACEOF 2947/* end confdefs.h. */ 2948 2949int 2950main () 2951{ 2952#ifndef __GNUC__ 2953 choke me 2954#endif 2955 2956 ; 2957 return 0; 2958} 2959_ACEOF 2960rm -f conftest.$ac_objext 2961if { (ac_try="$ac_compile" 2962case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965esac 2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2967 (eval "$ac_compile") 2>conftest.er1 2968 ac_status=$? 2969 grep -v '^ *+' conftest.er1 >conftest.err 2970 rm -f conftest.er1 2971 cat conftest.err >&5 2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2973 (exit $ac_status); } && 2974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2975 { (case "(($ac_try" in 2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2977 *) ac_try_echo=$ac_try;; 2978esac 2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2980 (eval "$ac_try") 2>&5 2981 ac_status=$? 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); }; } && 2984 { ac_try='test -s conftest.$ac_objext' 2985 { (case "(($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_try") 2>&5 2991 ac_status=$? 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); }; }; then 2994 ac_compiler_gnu=yes 2995else 2996 echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999 ac_compiler_gnu=no 3000fi 3001 3002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3003ac_cv_c_compiler_gnu=$ac_compiler_gnu 3004 3005fi 3006{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3007echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3008GCC=`test $ac_compiler_gnu = yes && echo yes` 3009ac_test_CFLAGS=${CFLAGS+set} 3010ac_save_CFLAGS=$CFLAGS 3011{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3012echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3013if test "${ac_cv_prog_cc_g+set}" = set; then 3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3015else 3016 ac_save_c_werror_flag=$ac_c_werror_flag 3017 ac_c_werror_flag=yes 3018 ac_cv_prog_cc_g=no 3019 CFLAGS="-g" 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_compile") 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && 3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3050 { (case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053esac 3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3055 (eval "$ac_try") 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); }; } && 3059 { ac_try='test -s conftest.$ac_objext' 3060 { (case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3065 (eval "$ac_try") 2>&5 3066 ac_status=$? 3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3068 (exit $ac_status); }; }; then 3069 ac_cv_prog_cc_g=yes 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074 CFLAGS="" 3075 cat >conftest.$ac_ext <<_ACEOF 3076/* confdefs.h. */ 3077_ACEOF 3078cat confdefs.h >>conftest.$ac_ext 3079cat >>conftest.$ac_ext <<_ACEOF 3080/* end confdefs.h. */ 3081 3082int 3083main () 3084{ 3085 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090rm -f conftest.$ac_objext 3091if { (ac_try="$ac_compile" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3097 (eval "$ac_compile") 2>conftest.er1 3098 ac_status=$? 3099 grep -v '^ *+' conftest.er1 >conftest.err 3100 rm -f conftest.er1 3101 cat conftest.err >&5 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); } && 3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3105 { (case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3110 (eval "$ac_try") 2>&5 3111 ac_status=$? 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); }; } && 3114 { ac_try='test -s conftest.$ac_objext' 3115 { (case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3120 (eval "$ac_try") 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; }; then 3124 : 3125else 3126 echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129 ac_c_werror_flag=$ac_save_c_werror_flag 3130 CFLAGS="-g" 3131 cat >conftest.$ac_ext <<_ACEOF 3132/* confdefs.h. */ 3133_ACEOF 3134cat confdefs.h >>conftest.$ac_ext 3135cat >>conftest.$ac_ext <<_ACEOF 3136/* end confdefs.h. */ 3137 3138int 3139main () 3140{ 3141 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146rm -f conftest.$ac_objext 3147if { (ac_try="$ac_compile" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3153 (eval "$ac_compile") 2>conftest.er1 3154 ac_status=$? 3155 grep -v '^ *+' conftest.er1 >conftest.err 3156 rm -f conftest.er1 3157 cat conftest.err >&5 3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); } && 3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3161 { (case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_try") 2>&5 3167 ac_status=$? 3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); }; } && 3170 { ac_try='test -s conftest.$ac_objext' 3171 { (case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3176 (eval "$ac_try") 2>&5 3177 ac_status=$? 3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3179 (exit $ac_status); }; }; then 3180 ac_cv_prog_cc_g=yes 3181else 3182 echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185 3186fi 3187 3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3189fi 3190 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192fi 3193 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195 ac_c_werror_flag=$ac_save_c_werror_flag 3196fi 3197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3199if test "$ac_test_CFLAGS" = set; then 3200 CFLAGS=$ac_save_CFLAGS 3201elif test $ac_cv_prog_cc_g = yes; then 3202 if test "$GCC" = yes; then 3203 CFLAGS="-g -O2" 3204 else 3205 CFLAGS="-g" 3206 fi 3207else 3208 if test "$GCC" = yes; then 3209 CFLAGS="-O2" 3210 else 3211 CFLAGS= 3212 fi 3213fi 3214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3216if test "${ac_cv_prog_cc_c89+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 ac_cv_prog_cc_c89=no 3220ac_save_CC=$CC 3221cat >conftest.$ac_ext <<_ACEOF 3222/* confdefs.h. */ 3223_ACEOF 3224cat confdefs.h >>conftest.$ac_ext 3225cat >>conftest.$ac_ext <<_ACEOF 3226/* end confdefs.h. */ 3227#include <stdarg.h> 3228#include <stdio.h> 3229#include <sys/types.h> 3230#include <sys/stat.h> 3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3232struct buf { int x; }; 3233FILE * (*rcsopen) (struct buf *, struct stat *, int); 3234static char *e (p, i) 3235 char **p; 3236 int i; 3237{ 3238 return p[i]; 3239} 3240static char *f (char * (*g) (char **, int), char **p, ...) 3241{ 3242 char *s; 3243 va_list v; 3244 va_start (v,p); 3245 s = g (p, va_arg (v,int)); 3246 va_end (v); 3247 return s; 3248} 3249 3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3251 function prototypes and stuff, but not '\xHH' hex character constants. 3252 These don't provoke an error unfortunately, instead are silently treated 3253 as 'x'. The following induces an error, until -std is added to get 3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3255 array size at least. It's necessary to write '\x00'==0 to get something 3256 that's true only with -std. */ 3257int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3258 3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3260 inside strings and character constants. */ 3261#define FOO(x) 'x' 3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3263 3264int test (int i, double x); 3265struct s1 {int (*f) (int a);}; 3266struct s2 {int (*f) (double a);}; 3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3268int argc; 3269char **argv; 3270int 3271main () 3272{ 3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3280do 3281 CC="$ac_save_CC $ac_arg" 3282 rm -f conftest.$ac_objext 3283if { (ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && 3296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3297 { (case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3302 (eval "$ac_try") 2>&5 3303 ac_status=$? 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); }; } && 3306 { ac_try='test -s conftest.$ac_objext' 3307 { (case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3312 (eval "$ac_try") 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; }; then 3316 ac_cv_prog_cc_c89=$ac_arg 3317else 3318 echo "$as_me: failed program was:" >&5 3319sed 's/^/| /' conftest.$ac_ext >&5 3320 3321 3322fi 3323 3324rm -f core conftest.err conftest.$ac_objext 3325 test "x$ac_cv_prog_cc_c89" != "xno" && break 3326done 3327rm -f conftest.$ac_ext 3328CC=$ac_save_CC 3329 3330fi 3331# AC_CACHE_VAL 3332case "x$ac_cv_prog_cc_c89" in 3333 x) 3334 { echo "$as_me:$LINENO: result: none needed" >&5 3335echo "${ECHO_T}none needed" >&6; } ;; 3336 xno) 3337 { echo "$as_me:$LINENO: result: unsupported" >&5 3338echo "${ECHO_T}unsupported" >&6; } ;; 3339 *) 3340 CC="$CC $ac_cv_prog_cc_c89" 3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3342echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3343esac 3344 3345 3346ac_ext=c 3347ac_cpp='$CPP $CPPFLAGS' 3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3350ac_compiler_gnu=$ac_cv_c_compiler_gnu 3351 3352 3353ac_ext=c 3354ac_cpp='$CPP $CPPFLAGS' 3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3357ac_compiler_gnu=$ac_cv_c_compiler_gnu 3358{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3359echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3360# On Suns, sometimes $CPP names a directory. 3361if test -n "$CPP" && test -d "$CPP"; then 3362 CPP= 3363fi 3364if test -z "$CPP"; then 3365 if test "${ac_cv_prog_CPP+set}" = set; then 3366 echo $ECHO_N "(cached) $ECHO_C" >&6 3367else 3368 # Double quotes because CPP needs to be expanded 3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3370 do 3371 ac_preproc_ok=false 3372for ac_c_preproc_warn_flag in '' yes 3373do 3374 # Use a header file that comes with gcc, so configuring glibc 3375 # with a fresh cross-compiler works. 3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3377 # <limits.h> exists even on freestanding compilers. 3378 # On the NeXT, cc -E runs the code through the compiler's parser, 3379 # not just through cpp. "Syntax error" is here to catch this case. 3380 cat >conftest.$ac_ext <<_ACEOF 3381/* confdefs.h. */ 3382_ACEOF 3383cat confdefs.h >>conftest.$ac_ext 3384cat >>conftest.$ac_ext <<_ACEOF 3385/* end confdefs.h. */ 3386#ifdef __STDC__ 3387# include <limits.h> 3388#else 3389# include <assert.h> 3390#endif 3391 Syntax error 3392_ACEOF 3393if { (ac_try="$ac_cpp conftest.$ac_ext" 3394case "(($ac_try" in 3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3396 *) ac_try_echo=$ac_try;; 3397esac 3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3400 ac_status=$? 3401 grep -v '^ *+' conftest.er1 >conftest.err 3402 rm -f conftest.er1 3403 cat conftest.err >&5 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } >/dev/null; then 3406 if test -s conftest.err; then 3407 ac_cpp_err=$ac_c_preproc_warn_flag 3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3409 else 3410 ac_cpp_err= 3411 fi 3412else 3413 ac_cpp_err=yes 3414fi 3415if test -z "$ac_cpp_err"; then 3416 : 3417else 3418 echo "$as_me: failed program was:" >&5 3419sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 # Broken: fails on valid input. 3422continue 3423fi 3424 3425rm -f conftest.err conftest.$ac_ext 3426 3427 # OK, works on sane cases. Now check whether nonexistent headers 3428 # can be detected and how. 3429 cat >conftest.$ac_ext <<_ACEOF 3430/* confdefs.h. */ 3431_ACEOF 3432cat confdefs.h >>conftest.$ac_ext 3433cat >>conftest.$ac_ext <<_ACEOF 3434/* end confdefs.h. */ 3435#include <ac_nonexistent.h> 3436_ACEOF 3437if { (ac_try="$ac_cpp conftest.$ac_ext" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3444 ac_status=$? 3445 grep -v '^ *+' conftest.er1 >conftest.err 3446 rm -f conftest.er1 3447 cat conftest.err >&5 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); } >/dev/null; then 3450 if test -s conftest.err; then 3451 ac_cpp_err=$ac_c_preproc_warn_flag 3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3453 else 3454 ac_cpp_err= 3455 fi 3456else 3457 ac_cpp_err=yes 3458fi 3459if test -z "$ac_cpp_err"; then 3460 # Broken: success on invalid input. 3461continue 3462else 3463 echo "$as_me: failed program was:" >&5 3464sed 's/^/| /' conftest.$ac_ext >&5 3465 3466 # Passes both tests. 3467ac_preproc_ok=: 3468break 3469fi 3470 3471rm -f conftest.err conftest.$ac_ext 3472 3473done 3474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3475rm -f conftest.err conftest.$ac_ext 3476if $ac_preproc_ok; then 3477 break 3478fi 3479 3480 done 3481 ac_cv_prog_CPP=$CPP 3482 3483fi 3484 CPP=$ac_cv_prog_CPP 3485else 3486 ac_cv_prog_CPP=$CPP 3487fi 3488{ echo "$as_me:$LINENO: result: $CPP" >&5 3489echo "${ECHO_T}$CPP" >&6; } 3490ac_preproc_ok=false 3491for ac_c_preproc_warn_flag in '' yes 3492do 3493 # Use a header file that comes with gcc, so configuring glibc 3494 # with a fresh cross-compiler works. 3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3496 # <limits.h> exists even on freestanding compilers. 3497 # On the NeXT, cc -E runs the code through the compiler's parser, 3498 # not just through cpp. "Syntax error" is here to catch this case. 3499 cat >conftest.$ac_ext <<_ACEOF 3500/* confdefs.h. */ 3501_ACEOF 3502cat confdefs.h >>conftest.$ac_ext 3503cat >>conftest.$ac_ext <<_ACEOF 3504/* end confdefs.h. */ 3505#ifdef __STDC__ 3506# include <limits.h> 3507#else 3508# include <assert.h> 3509#endif 3510 Syntax error 3511_ACEOF 3512if { (ac_try="$ac_cpp conftest.$ac_ext" 3513case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3519 ac_status=$? 3520 grep -v '^ *+' conftest.er1 >conftest.err 3521 rm -f conftest.er1 3522 cat conftest.err >&5 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); } >/dev/null; then 3525 if test -s conftest.err; then 3526 ac_cpp_err=$ac_c_preproc_warn_flag 3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3528 else 3529 ac_cpp_err= 3530 fi 3531else 3532 ac_cpp_err=yes 3533fi 3534if test -z "$ac_cpp_err"; then 3535 : 3536else 3537 echo "$as_me: failed program was:" >&5 3538sed 's/^/| /' conftest.$ac_ext >&5 3539 3540 # Broken: fails on valid input. 3541continue 3542fi 3543 3544rm -f conftest.err conftest.$ac_ext 3545 3546 # OK, works on sane cases. Now check whether nonexistent headers 3547 # can be detected and how. 3548 cat >conftest.$ac_ext <<_ACEOF 3549/* confdefs.h. */ 3550_ACEOF 3551cat confdefs.h >>conftest.$ac_ext 3552cat >>conftest.$ac_ext <<_ACEOF 3553/* end confdefs.h. */ 3554#include <ac_nonexistent.h> 3555_ACEOF 3556if { (ac_try="$ac_cpp conftest.$ac_ext" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3563 ac_status=$? 3564 grep -v '^ *+' conftest.er1 >conftest.err 3565 rm -f conftest.er1 3566 cat conftest.err >&5 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } >/dev/null; then 3569 if test -s conftest.err; then 3570 ac_cpp_err=$ac_c_preproc_warn_flag 3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3572 else 3573 ac_cpp_err= 3574 fi 3575else 3576 ac_cpp_err=yes 3577fi 3578if test -z "$ac_cpp_err"; then 3579 # Broken: success on invalid input. 3580continue 3581else 3582 echo "$as_me: failed program was:" >&5 3583sed 's/^/| /' conftest.$ac_ext >&5 3584 3585 # Passes both tests. 3586ac_preproc_ok=: 3587break 3588fi 3589 3590rm -f conftest.err conftest.$ac_ext 3591 3592done 3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3594rm -f conftest.err conftest.$ac_ext 3595if $ac_preproc_ok; then 3596 : 3597else 3598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3599See \`config.log' for more details." >&5 3600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3601See \`config.log' for more details." >&2;} 3602 { (exit 1); exit 1; }; } 3603fi 3604 3605ac_ext=c 3606ac_cpp='$CPP $CPPFLAGS' 3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3609ac_compiler_gnu=$ac_cv_c_compiler_gnu 3610 3611 3612{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3613echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3614if test "${ac_cv_path_GREP+set}" = set; then 3615 echo $ECHO_N "(cached) $ECHO_C" >&6 3616else 3617 # Extract the first word of "grep ggrep" to use in msg output 3618if test -z "$GREP"; then 3619set dummy grep ggrep; ac_prog_name=$2 3620if test "${ac_cv_path_GREP+set}" = set; then 3621 echo $ECHO_N "(cached) $ECHO_C" >&6 3622else 3623 ac_path_GREP_found=false 3624# Loop through the user's path and test for each of PROGNAME-LIST 3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3627do 3628 IFS=$as_save_IFS 3629 test -z "$as_dir" && as_dir=. 3630 for ac_prog in grep ggrep; do 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3633 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3634 # Check for GNU ac_path_GREP and select it if it is found. 3635 # Check for GNU $ac_path_GREP 3636case `"$ac_path_GREP" --version 2>&1` in 3637*GNU*) 3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3639*) 3640 ac_count=0 3641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3642 while : 3643 do 3644 cat "conftest.in" "conftest.in" >"conftest.tmp" 3645 mv "conftest.tmp" "conftest.in" 3646 cp "conftest.in" "conftest.nl" 3647 echo 'GREP' >> "conftest.nl" 3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3650 ac_count=`expr $ac_count + 1` 3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3652 # Best one so far, save it but keep looking for a better one 3653 ac_cv_path_GREP="$ac_path_GREP" 3654 ac_path_GREP_max=$ac_count 3655 fi 3656 # 10*(2^10) chars as input seems more than enough 3657 test $ac_count -gt 10 && break 3658 done 3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3660esac 3661 3662 3663 $ac_path_GREP_found && break 3 3664 done 3665done 3666 3667done 3668IFS=$as_save_IFS 3669 3670 3671fi 3672 3673GREP="$ac_cv_path_GREP" 3674if test -z "$GREP"; then 3675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3676echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3677 { (exit 1); exit 1; }; } 3678fi 3679 3680else 3681 ac_cv_path_GREP=$GREP 3682fi 3683 3684 3685fi 3686{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3687echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3688 GREP="$ac_cv_path_GREP" 3689 3690 3691{ echo "$as_me:$LINENO: checking for egrep" >&5 3692echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3693if test "${ac_cv_path_EGREP+set}" = set; then 3694 echo $ECHO_N "(cached) $ECHO_C" >&6 3695else 3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3697 then ac_cv_path_EGREP="$GREP -E" 3698 else 3699 # Extract the first word of "egrep" to use in msg output 3700if test -z "$EGREP"; then 3701set dummy egrep; ac_prog_name=$2 3702if test "${ac_cv_path_EGREP+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704else 3705 ac_path_EGREP_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 egrep; do 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3715 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3716 # Check for GNU ac_path_EGREP and select it if it is found. 3717 # Check for GNU $ac_path_EGREP 3718case `"$ac_path_EGREP" --version 2>&1` in 3719*GNU*) 3720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl" 3730 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then 3734 # Best one so far, save it but keep looking for a better one 3735 ac_cv_path_EGREP="$ac_path_EGREP" 3736 ac_path_EGREP_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_EGREP_found && break 3 3746 done 3747done 3748 3749done 3750IFS=$as_save_IFS 3751 3752 3753fi 3754 3755EGREP="$ac_cv_path_EGREP" 3756if test -z "$EGREP"; 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_EGREP=$EGREP 3764fi 3765 3766 3767 fi 3768fi 3769{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3770echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3771 EGREP="$ac_cv_path_EGREP" 3772 3773 3774{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3775echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3776if test "${ac_cv_header_stdc+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 cat >conftest.$ac_ext <<_ACEOF 3780/* confdefs.h. */ 3781_ACEOF 3782cat confdefs.h >>conftest.$ac_ext 3783cat >>conftest.$ac_ext <<_ACEOF 3784/* end confdefs.h. */ 3785#include <stdlib.h> 3786#include <stdarg.h> 3787#include <string.h> 3788#include <float.h> 3789 3790int 3791main () 3792{ 3793 3794 ; 3795 return 0; 3796} 3797_ACEOF 3798rm -f conftest.$ac_objext 3799if { (ac_try="$ac_compile" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3805 (eval "$ac_compile") 2>conftest.er1 3806 ac_status=$? 3807 grep -v '^ *+' conftest.er1 >conftest.err 3808 rm -f conftest.er1 3809 cat conftest.err >&5 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && 3812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3813 { (case "(($ac_try" in 3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3815 *) ac_try_echo=$ac_try;; 3816esac 3817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3818 (eval "$ac_try") 2>&5 3819 ac_status=$? 3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); }; } && 3822 { ac_try='test -s conftest.$ac_objext' 3823 { (case "(($ac_try" in 3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3825 *) ac_try_echo=$ac_try;; 3826esac 3827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3828 (eval "$ac_try") 2>&5 3829 ac_status=$? 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); }; }; then 3832 ac_cv_header_stdc=yes 3833else 3834 echo "$as_me: failed program was:" >&5 3835sed 's/^/| /' conftest.$ac_ext >&5 3836 3837 ac_cv_header_stdc=no 3838fi 3839 3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3841 3842if test $ac_cv_header_stdc = yes; then 3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3844 cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850#include <string.h> 3851 3852_ACEOF 3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3854 $EGREP "memchr" >/dev/null 2>&1; then 3855 : 3856else 3857 ac_cv_header_stdc=no 3858fi 3859rm -f conftest* 3860 3861fi 3862 3863if test $ac_cv_header_stdc = yes; then 3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3865 cat >conftest.$ac_ext <<_ACEOF 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871#include <stdlib.h> 3872 3873_ACEOF 3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3875 $EGREP "free" >/dev/null 2>&1; then 3876 : 3877else 3878 ac_cv_header_stdc=no 3879fi 3880rm -f conftest* 3881 3882fi 3883 3884if test $ac_cv_header_stdc = yes; then 3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3886 if test "$cross_compiling" = yes; then 3887 : 3888else 3889 cat >conftest.$ac_ext <<_ACEOF 3890/* confdefs.h. */ 3891_ACEOF 3892cat confdefs.h >>conftest.$ac_ext 3893cat >>conftest.$ac_ext <<_ACEOF 3894/* end confdefs.h. */ 3895#include <ctype.h> 3896#include <stdlib.h> 3897#if ((' ' & 0x0FF) == 0x020) 3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3900#else 3901# define ISLOWER(c) \ 3902 (('a' <= (c) && (c) <= 'i') \ 3903 || ('j' <= (c) && (c) <= 'r') \ 3904 || ('s' <= (c) && (c) <= 'z')) 3905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3906#endif 3907 3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3909int 3910main () 3911{ 3912 int i; 3913 for (i = 0; i < 256; i++) 3914 if (XOR (islower (i), ISLOWER (i)) 3915 || toupper (i) != TOUPPER (i)) 3916 return 2; 3917 return 0; 3918} 3919_ACEOF 3920rm -f conftest$ac_exeext 3921if { (ac_try="$ac_link" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3927 (eval "$ac_link") 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3931 { (case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3936 (eval "$ac_try") 2>&5 3937 ac_status=$? 3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3939 (exit $ac_status); }; }; then 3940 : 3941else 3942 echo "$as_me: program exited with status $ac_status" >&5 3943echo "$as_me: failed program was:" >&5 3944sed 's/^/| /' conftest.$ac_ext >&5 3945 3946( exit $ac_status ) 3947ac_cv_header_stdc=no 3948fi 3949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3950fi 3951 3952 3953fi 3954fi 3955{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3956echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3957if test $ac_cv_header_stdc = yes; then 3958 3959cat >>confdefs.h <<\_ACEOF 3960#define STDC_HEADERS 1 3961_ACEOF 3962 3963fi 3964 3965# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3976 inttypes.h stdint.h unistd.h 3977do 3978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3979{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3982 echo $ECHO_N "(cached) $ECHO_C" >&6 3983else 3984 cat >conftest.$ac_ext <<_ACEOF 3985/* confdefs.h. */ 3986_ACEOF 3987cat confdefs.h >>conftest.$ac_ext 3988cat >>conftest.$ac_ext <<_ACEOF 3989/* end confdefs.h. */ 3990$ac_includes_default 3991 3992#include <$ac_header> 3993_ACEOF 3994rm -f conftest.$ac_objext 3995if { (ac_try="$ac_compile" 3996case "(($ac_try" in 3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3998 *) ac_try_echo=$ac_try;; 3999esac 4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4001 (eval "$ac_compile") 2>conftest.er1 4002 ac_status=$? 4003 grep -v '^ *+' conftest.er1 >conftest.err 4004 rm -f conftest.er1 4005 cat conftest.err >&5 4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4007 (exit $ac_status); } && 4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4009 { (case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4014 (eval "$ac_try") 2>&5 4015 ac_status=$? 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); }; } && 4018 { ac_try='test -s conftest.$ac_objext' 4019 { (case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4024 (eval "$ac_try") 2>&5 4025 ac_status=$? 4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4027 (exit $ac_status); }; }; then 4028 eval "$as_ac_Header=yes" 4029else 4030 echo "$as_me: failed program was:" >&5 4031sed 's/^/| /' conftest.$ac_ext >&5 4032 4033 eval "$as_ac_Header=no" 4034fi 4035 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037fi 4038ac_res=`eval echo '${'$as_ac_Header'}'` 4039 { echo "$as_me:$LINENO: result: $ac_res" >&5 4040echo "${ECHO_T}$ac_res" >&6; } 4041if test `eval echo '${'$as_ac_Header'}'` = yes; then 4042 cat >>confdefs.h <<_ACEOF 4043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4044_ACEOF 4045 4046fi 4047 4048done 4049 4050 4051{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4052echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4053if test "${ac_cv_c_bigendian+set}" = set; then 4054 echo $ECHO_N "(cached) $ECHO_C" >&6 4055else 4056 # See if sys/param.h defines the BYTE_ORDER macro. 4057cat >conftest.$ac_ext <<_ACEOF 4058/* confdefs.h. */ 4059_ACEOF 4060cat confdefs.h >>conftest.$ac_ext 4061cat >>conftest.$ac_ext <<_ACEOF 4062/* end confdefs.h. */ 4063#include <sys/types.h> 4064#include <sys/param.h> 4065 4066int 4067main () 4068{ 4069#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4070 bogus endian macros 4071#endif 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077rm -f conftest.$ac_objext 4078if { (ac_try="$ac_compile" 4079case "(($ac_try" in 4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4081 *) ac_try_echo=$ac_try;; 4082esac 4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4084 (eval "$ac_compile") 2>conftest.er1 4085 ac_status=$? 4086 grep -v '^ *+' conftest.er1 >conftest.err 4087 rm -f conftest.er1 4088 cat conftest.err >&5 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4090 (exit $ac_status); } && 4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4092 { (case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4097 (eval "$ac_try") 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; } && 4101 { ac_try='test -s conftest.$ac_objext' 4102 { (case "(($ac_try" in 4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4104 *) ac_try_echo=$ac_try;; 4105esac 4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4107 (eval "$ac_try") 2>&5 4108 ac_status=$? 4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4110 (exit $ac_status); }; }; then 4111 # It does; now see whether it defined to BIG_ENDIAN or not. 4112cat >conftest.$ac_ext <<_ACEOF 4113/* confdefs.h. */ 4114_ACEOF 4115cat confdefs.h >>conftest.$ac_ext 4116cat >>conftest.$ac_ext <<_ACEOF 4117/* end confdefs.h. */ 4118#include <sys/types.h> 4119#include <sys/param.h> 4120 4121int 4122main () 4123{ 4124#if BYTE_ORDER != BIG_ENDIAN 4125 not big endian 4126#endif 4127 4128 ; 4129 return 0; 4130} 4131_ACEOF 4132rm -f conftest.$ac_objext 4133if { (ac_try="$ac_compile" 4134case "(($ac_try" in 4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4136 *) ac_try_echo=$ac_try;; 4137esac 4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4139 (eval "$ac_compile") 2>conftest.er1 4140 ac_status=$? 4141 grep -v '^ *+' conftest.er1 >conftest.err 4142 rm -f conftest.er1 4143 cat conftest.err >&5 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); } && 4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4147 { (case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4152 (eval "$ac_try") 2>&5 4153 ac_status=$? 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); }; } && 4156 { ac_try='test -s conftest.$ac_objext' 4157 { (case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4162 (eval "$ac_try") 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; }; then 4166 ac_cv_c_bigendian=yes 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171 ac_cv_c_bigendian=no 4172fi 4173 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4175else 4176 echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179 # It does not; compile a test program. 4180if test "$cross_compiling" = yes; then 4181 # try to guess the endianness by grepping values into an object file 4182 ac_cv_c_bigendian=unknown 4183 cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4190short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4191void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4192short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4193short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4194void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4195int 4196main () 4197{ 4198 _ascii (); _ebcdic (); 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f conftest.$ac_objext 4204if { (ac_try="$ac_compile" 4205case "(($ac_try" in 4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4207 *) ac_try_echo=$ac_try;; 4208esac 4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4210 (eval "$ac_compile") 2>conftest.er1 4211 ac_status=$? 4212 grep -v '^ *+' conftest.er1 >conftest.err 4213 rm -f conftest.er1 4214 cat conftest.err >&5 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); } && 4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4218 { (case "(($ac_try" in 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4220 *) ac_try_echo=$ac_try;; 4221esac 4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4223 (eval "$ac_try") 2>&5 4224 ac_status=$? 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4226 (exit $ac_status); }; } && 4227 { ac_try='test -s conftest.$ac_objext' 4228 { (case "(($ac_try" in 4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4230 *) ac_try_echo=$ac_try;; 4231esac 4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4233 (eval "$ac_try") 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); }; }; then 4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4238 ac_cv_c_bigendian=yes 4239fi 4240if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4241 if test "$ac_cv_c_bigendian" = unknown; then 4242 ac_cv_c_bigendian=no 4243 else 4244 # finding both strings is unlikely to happen, but who knows? 4245 ac_cv_c_bigendian=unknown 4246 fi 4247fi 4248else 4249 echo "$as_me: failed program was:" >&5 4250sed 's/^/| /' conftest.$ac_ext >&5 4251 4252 4253fi 4254 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256else 4257 cat >conftest.$ac_ext <<_ACEOF 4258/* confdefs.h. */ 4259_ACEOF 4260cat confdefs.h >>conftest.$ac_ext 4261cat >>conftest.$ac_ext <<_ACEOF 4262/* end confdefs.h. */ 4263$ac_includes_default 4264int 4265main () 4266{ 4267 4268 /* Are we little or big endian? From Harbison&Steele. */ 4269 union 4270 { 4271 long int l; 4272 char c[sizeof (long int)]; 4273 } u; 4274 u.l = 1; 4275 return u.c[sizeof (long int) - 1] == 1; 4276 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281rm -f conftest$ac_exeext 4282if { (ac_try="$ac_link" 4283case "(($ac_try" in 4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4285 *) ac_try_echo=$ac_try;; 4286esac 4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4288 (eval "$ac_link") 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4292 { (case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295esac 4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4297 (eval "$ac_try") 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); }; }; then 4301 ac_cv_c_bigendian=no 4302else 4303 echo "$as_me: program exited with status $ac_status" >&5 4304echo "$as_me: failed program was:" >&5 4305sed 's/^/| /' conftest.$ac_ext >&5 4306 4307( exit $ac_status ) 4308ac_cv_c_bigendian=yes 4309fi 4310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4311fi 4312 4313 4314fi 4315 4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4317fi 4318{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4319echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4320case $ac_cv_c_bigendian in 4321 yes) 4322 ENDIAN=big 4323 ;; 4324 no) 4325 ENDIAN=little 4326 ;; 4327 *) 4328 { { echo "$as_me:$LINENO: error: unknown endianness 4329presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4330echo "$as_me: error: unknown endianness 4331presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4332 { (exit 1); exit 1; }; } ;; 4333esac 4334 4335 4336if test "$cross_compiling" = yes; then 4337 LLVM_CROSS_COMPILING=1 4338 4339 4340{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4341echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4342if test "${ac_cv_build_exeext+set}" = set; then 4343 echo $ECHO_N "(cached) $ECHO_C" >&6 4344else 4345 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4346 ac_cv_build_exeext=.exe 4347else 4348 ac_build_prefix=${build_alias}- 4349 4350 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4351set dummy ${ac_build_prefix}gcc; ac_word=$2 4352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4354if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4355 echo $ECHO_N "(cached) $ECHO_C" >&6 4356else 4357 if test -n "$BUILD_CC"; then 4358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4359else 4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4361for as_dir in $PATH 4362do 4363 IFS=$as_save_IFS 4364 test -z "$as_dir" && as_dir=. 4365 for ac_exec_ext in '' $ac_executable_extensions; do 4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4367 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4369 break 2 4370 fi 4371done 4372done 4373IFS=$as_save_IFS 4374 4375fi 4376fi 4377BUILD_CC=$ac_cv_prog_BUILD_CC 4378if test -n "$BUILD_CC"; then 4379 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4380echo "${ECHO_T}$BUILD_CC" >&6; } 4381else 4382 { echo "$as_me:$LINENO: result: no" >&5 4383echo "${ECHO_T}no" >&6; } 4384fi 4385 4386 4387 if test -z "$BUILD_CC"; then 4388 # Extract the first word of "gcc", so it can be a program name with args. 4389set dummy gcc; ac_word=$2 4390{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4392if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394else 4395 if test -n "$BUILD_CC"; then 4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4397else 4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4405 ac_cv_prog_BUILD_CC="gcc" 4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410done 4411IFS=$as_save_IFS 4412 4413fi 4414fi 4415BUILD_CC=$ac_cv_prog_BUILD_CC 4416if test -n "$BUILD_CC"; then 4417 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4418echo "${ECHO_T}$BUILD_CC" >&6; } 4419else 4420 { echo "$as_me:$LINENO: result: no" >&5 4421echo "${ECHO_T}no" >&6; } 4422fi 4423 4424 4425 if test -z "$BUILD_CC"; then 4426 # Extract the first word of "cc", so it can be a program name with args. 4427set dummy cc; ac_word=$2 4428{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4430if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432else 4433 if test -n "$BUILD_CC"; then 4434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4435else 4436 ac_prog_rejected=no 4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4438for as_dir in $PATH 4439do 4440 IFS=$as_save_IFS 4441 test -z "$as_dir" && as_dir=. 4442 for ac_exec_ext in '' $ac_executable_extensions; do 4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4445 ac_prog_rejected=yes 4446 continue 4447 fi 4448 ac_cv_prog_BUILD_CC="cc" 4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452done 4453done 4454IFS=$as_save_IFS 4455 4456if test $ac_prog_rejected = yes; then 4457 # We found a bogon in the path, so make sure we never use it. 4458 set dummy $ac_cv_prog_BUILD_CC 4459 shift 4460 if test $# != 0; then 4461 # We chose a different compiler from the bogus one. 4462 # However, it has the same basename, so the bogon will be chosen 4463 # first if we set BUILD_CC to just the basename; use the full file name. 4464 shift 4465 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4466 fi 4467fi 4468fi 4469fi 4470BUILD_CC=$ac_cv_prog_BUILD_CC 4471if test -n "$BUILD_CC"; then 4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4473echo "${ECHO_T}$BUILD_CC" >&6; } 4474else 4475 { echo "$as_me:$LINENO: result: no" >&5 4476echo "${ECHO_T}no" >&6; } 4477fi 4478 4479 4480 fi 4481 fi 4482 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4483echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4484 { (exit 1); exit 1; }; } 4485 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4486 rm -f conftest* 4487 echo 'int main () { return 0; }' > conftest.$ac_ext 4488 ac_cv_build_exeext= 4489 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4490 (eval $ac_build_link) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; then 4494 for file in conftest.*; do 4495 case $file in 4496 *.c | *.o | *.obj | *.dSYM) ;; 4497 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4498 esac 4499 done 4500 else 4501 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4502echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4503 { (exit 1); exit 1; }; } 4504 fi 4505 rm -f conftest* 4506 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4507fi 4508fi 4509 4510BUILD_EXEEXT="" 4511test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4512{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4513echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4514ac_build_exeext=$BUILD_EXEEXT 4515 4516 ac_build_prefix=${build_alias}- 4517 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4518set dummy ${ac_build_prefix}g++; ac_word=$2 4519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4521if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4522 echo $ECHO_N "(cached) $ECHO_C" >&6 4523else 4524 if test -n "$BUILD_CXX"; then 4525 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4526else 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4534 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538done 4539done 4540IFS=$as_save_IFS 4541 4542fi 4543fi 4544BUILD_CXX=$ac_cv_prog_BUILD_CXX 4545if test -n "$BUILD_CXX"; then 4546 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4547echo "${ECHO_T}$BUILD_CXX" >&6; } 4548else 4549 { echo "$as_me:$LINENO: result: no" >&5 4550echo "${ECHO_T}no" >&6; } 4551fi 4552 4553 4554 if test -z "$BUILD_CXX"; then 4555 # Extract the first word of "g++", so it can be a program name with args. 4556set dummy g++; ac_word=$2 4557{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4559if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4560 echo $ECHO_N "(cached) $ECHO_C" >&6 4561else 4562 if test -n "$BUILD_CXX"; then 4563 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4564else 4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4566for as_dir in $PATH 4567do 4568 IFS=$as_save_IFS 4569 test -z "$as_dir" && as_dir=. 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4572 ac_cv_prog_BUILD_CXX="g++" 4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4574 break 2 4575 fi 4576done 4577done 4578IFS=$as_save_IFS 4579 4580fi 4581fi 4582BUILD_CXX=$ac_cv_prog_BUILD_CXX 4583if test -n "$BUILD_CXX"; then 4584 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4585echo "${ECHO_T}$BUILD_CXX" >&6; } 4586else 4587 { echo "$as_me:$LINENO: result: no" >&5 4588echo "${ECHO_T}no" >&6; } 4589fi 4590 4591 4592 if test -z "$BUILD_CXX"; then 4593 # Extract the first word of "c++", so it can be a program name with args. 4594set dummy c++; ac_word=$2 4595{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4597if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 if test -n "$BUILD_CXX"; then 4601 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4602else 4603 ac_prog_rejected=no 4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4605for as_dir in $PATH 4606do 4607 IFS=$as_save_IFS 4608 test -z "$as_dir" && as_dir=. 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4612 ac_prog_rejected=yes 4613 continue 4614 fi 4615 ac_cv_prog_BUILD_CXX="c++" 4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4617 break 2 4618 fi 4619done 4620done 4621IFS=$as_save_IFS 4622 4623if test $ac_prog_rejected = yes; then 4624 # We found a bogon in the path, so make sure we never use it. 4625 set dummy $ac_cv_prog_BUILD_CXX 4626 shift 4627 if test $# != 0; then 4628 # We chose a different compiler from the bogus one. 4629 # However, it has the same basename, so the bogon will be chosen 4630 # first if we set BUILD_CXX to just the basename; use the full file name. 4631 shift 4632 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4633 fi 4634fi 4635fi 4636fi 4637BUILD_CXX=$ac_cv_prog_BUILD_CXX 4638if test -n "$BUILD_CXX"; then 4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4640echo "${ECHO_T}$BUILD_CXX" >&6; } 4641else 4642 { echo "$as_me:$LINENO: result: no" >&5 4643echo "${ECHO_T}no" >&6; } 4644fi 4645 4646 4647 fi 4648 fi 4649else 4650 LLVM_CROSS_COMPILING=0 4651 4652fi 4653 4654if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4655 cvsbuild="yes" 4656 optimize="no" 4657 CVSBUILD=CVSBUILD=1 4658 4659else 4660 cvsbuild="no" 4661 optimize="yes" 4662fi 4663 4664 4665# Check whether --enable-optimized was given. 4666if test "${enable_optimized+set}" = set; then 4667 enableval=$enable_optimized; 4668else 4669 enableval=$optimize 4670fi 4671 4672if test ${enableval} = "no" ; then 4673 ENABLE_OPTIMIZED= 4674 4675else 4676 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4677 4678fi 4679 4680# Check whether --enable-profiling was given. 4681if test "${enable_profiling+set}" = set; then 4682 enableval=$enable_profiling; 4683else 4684 enableval="no" 4685fi 4686 4687if test ${enableval} = "no" ; then 4688 ENABLE_PROFILING= 4689 4690else 4691 ENABLE_PROFILING=ENABLE_PROFILING=1 4692 4693fi 4694 4695# Check whether --enable-assertions was given. 4696if test "${enable_assertions+set}" = set; then 4697 enableval=$enable_assertions; 4698else 4699 enableval="yes" 4700fi 4701 4702if test ${enableval} = "yes" ; then 4703 DISABLE_ASSERTIONS= 4704 4705else 4706 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4707 4708fi 4709 4710# Check whether --enable-expensive-checks was given. 4711if test "${enable_expensive_checks+set}" = set; then 4712 enableval=$enable_expensive_checks; 4713else 4714 enableval="no" 4715fi 4716 4717if test ${enableval} = "yes" ; then 4718 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4719 4720 EXPENSIVE_CHECKS=yes 4721 4722else 4723 ENABLE_EXPENSIVE_CHECKS= 4724 4725 EXPENSIVE_CHECKS=no 4726 4727fi 4728 4729# Check whether --enable-debug-runtime was given. 4730if test "${enable_debug_runtime+set}" = set; then 4731 enableval=$enable_debug_runtime; 4732else 4733 enableval=no 4734fi 4735 4736if test ${enableval} = "no" ; then 4737 DEBUG_RUNTIME= 4738 4739else 4740 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4741 4742fi 4743 4744# Check whether --enable-debug-symbols was given. 4745if test "${enable_debug_symbols+set}" = set; then 4746 enableval=$enable_debug_symbols; 4747else 4748 enableval=no 4749fi 4750 4751if test ${enableval} = "no" ; then 4752 DEBUG_SYMBOLS= 4753 4754else 4755 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4756 4757fi 4758 4759# Check whether --enable-jit was given. 4760if test "${enable_jit+set}" = set; then 4761 enableval=$enable_jit; 4762else 4763 enableval=default 4764fi 4765 4766if test ${enableval} = "no" 4767then 4768 JIT= 4769 4770else 4771 case "$llvm_cv_target_arch" in 4772 x86) TARGET_HAS_JIT=1 4773 ;; 4774 Sparc) TARGET_HAS_JIT=0 4775 ;; 4776 PowerPC) TARGET_HAS_JIT=1 4777 ;; 4778 x86_64) TARGET_HAS_JIT=1 4779 ;; 4780 Alpha) TARGET_HAS_JIT=1 4781 ;; 4782 ARM) TARGET_HAS_JIT=1 4783 ;; 4784 Mips) TARGET_HAS_JIT=0 4785 ;; 4786 PIC16) TARGET_HAS_JIT=0 4787 ;; 4788 XCore) TARGET_HAS_JIT=0 4789 ;; 4790 MSP430) TARGET_HAS_JIT=0 4791 ;; 4792 SystemZ) TARGET_HAS_JIT=0 4793 ;; 4794 Blackfin) TARGET_HAS_JIT=0 4795 ;; 4796 MBlaze) TARGET_HAS_JIT=0 4797 ;; 4798 *) TARGET_HAS_JIT=0 4799 ;; 4800 esac 4801fi 4802 4803# Check whether --enable-doxygen was given. 4804if test "${enable_doxygen+set}" = set; then 4805 enableval=$enable_doxygen; 4806else 4807 enableval=default 4808fi 4809 4810case "$enableval" in 4811 yes) ENABLE_DOXYGEN=1 4812 ;; 4813 no) ENABLE_DOXYGEN=0 4814 ;; 4815 default) ENABLE_DOXYGEN=0 4816 ;; 4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4818echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4819 { (exit 1); exit 1; }; } ;; 4820esac 4821 4822# Check whether --enable-threads was given. 4823if test "${enable_threads+set}" = set; then 4824 enableval=$enable_threads; 4825else 4826 enableval=default 4827fi 4828 4829case "$enableval" in 4830 yes) ENABLE_THREADS=1 4831 ;; 4832 no) ENABLE_THREADS=0 4833 ;; 4834 default) ENABLE_THREADS=1 4835 ;; 4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4837echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4838 { (exit 1); exit 1; }; } ;; 4839esac 4840 4841cat >>confdefs.h <<_ACEOF 4842#define ENABLE_THREADS $ENABLE_THREADS 4843_ACEOF 4844 4845 4846# Check whether --enable-pic was given. 4847if test "${enable_pic+set}" = set; then 4848 enableval=$enable_pic; 4849else 4850 enableval=default 4851fi 4852 4853case "$enableval" in 4854 yes) ENABLE_PIC=1 4855 ;; 4856 no) ENABLE_PIC=0 4857 ;; 4858 default) ENABLE_PIC=1 4859 ;; 4860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4861echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4862 { (exit 1); exit 1; }; } ;; 4863esac 4864 4865cat >>confdefs.h <<_ACEOF 4866#define ENABLE_PIC $ENABLE_PIC 4867_ACEOF 4868 4869 4870TARGETS_TO_BUILD="" 4871# Check whether --enable-targets was given. 4872if test "${enable_targets+set}" = set; then 4873 enableval=$enable_targets; 4874else 4875 enableval=all 4876fi 4877 4878if test "$enableval" = host-only ; then 4879 enableval=host 4880fi 4881case "$enableval" in 4882 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;; 4883 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 4884 case "$a_target" in 4885 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4886 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4887 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4888 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4889 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4890 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4891 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4892 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4893 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; 4894 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4895 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4896 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4897 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4898 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 4899 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; 4900 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 4901 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 4902 host) case "$llvm_cv_target_arch" in 4903 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4904 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4905 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4906 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4907 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4908 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4909 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4910 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 4911 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4912 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; 4913 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4914 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4915 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4916 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4917 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 4918echo "$as_me: error: Can not set target to build" >&2;} 4919 { (exit 1); exit 1; }; } ;; 4920 esac ;; 4921 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 4922echo "$as_me: error: Unrecognized target $a_target" >&2;} 4923 { (exit 1); exit 1; }; } ;; 4924 esac 4925 done 4926 ;; 4927esac 4928TARGETS_TO_BUILD=$TARGETS_TO_BUILD 4929 4930 4931# Determine whether we are building LLVM support for the native architecture. 4932# If so, define LLVM_NATIVE_ARCH to that LLVM target. 4933for a_target in $TARGETS_TO_BUILD; do 4934 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 4935 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" 4936 4937cat >>confdefs.h <<_ACEOF 4938#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET 4939_ACEOF 4940 4941 fi 4942done 4943 4944# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 4945# target feature def files. 4946LLVM_ENUM_TARGETS="" 4947LLVM_ENUM_ASM_PRINTERS="" 4948LLVM_ENUM_ASM_PARSERS="" 4949LLVM_ENUM_DISASSEMBLERS="" 4950for target_to_build in $TARGETS_TO_BUILD; do 4951 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 4952 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then 4953 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 4954 fi 4955 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 4956 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 4957 fi 4958 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 4959 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 4960 fi 4961done 4962 4963 4964 4965 4966 4967# Check whether --enable-cbe-printf-a was given. 4968if test "${enable_cbe_printf_a+set}" = set; then 4969 enableval=$enable_cbe_printf_a; 4970else 4971 enableval=default 4972fi 4973 4974case "$enableval" in 4975 yes) ENABLE_CBE_PRINTF_A=1 4976 ;; 4977 no) ENABLE_CBE_PRINTF_A=0 4978 ;; 4979 default) ENABLE_CBE_PRINTF_A=1 4980 ;; 4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 4982echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 4983 { (exit 1); exit 1; }; } ;; 4984esac 4985 4986cat >>confdefs.h <<_ACEOF 4987#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 4988_ACEOF 4989 4990 4991 4992# Check whether --with-llvmgccdir was given. 4993if test "${with_llvmgccdir+set}" = set; then 4994 withval=$with_llvmgccdir; 4995else 4996 withval=default 4997fi 4998 4999case "$withval" in 5000 default) WITH_LLVMGCCDIR=default ;; 5001 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 5002 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 5003echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 5004 { (exit 1); exit 1; }; } ;; 5005esac 5006 5007 5008# Check whether --with-llvmgcc was given. 5009if test "${with_llvmgcc+set}" = set; then 5010 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 5011 WITH_LLVMGCCDIR="" 5012fi 5013 5014 5015 5016# Check whether --with-llvmgxx was given. 5017if test "${with_llvmgxx+set}" = set; then 5018 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5019 WITH_LLVMGCCDIR="" 5020fi 5021 5022 5023if test -n "$LLVMGCC"; then 5024 LLVMGCCCOMMAND="$LLVMGCC" 5025fi 5026 5027if test -n "$LLVMGXX"; then 5028 LLVMGXXCOMMAND="$LLVMGXX" 5029fi 5030 5031if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5032 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5033echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5034 { (exit 1); exit 1; }; }; 5035fi 5036 5037if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5038 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5039echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5040 { (exit 1); exit 1; }; }; 5041fi 5042 5043 5044# Check whether --with-clang was given. 5045if test "${with_clang+set}" = set; then 5046 withval=$with_clang; 5047else 5048 with_clang=default 5049fi 5050 5051 5052 5053# Check whether --with-built-clang was given. 5054if test "${with_built_clang+set}" = set; then 5055 withval=$with_built_clang; 5056else 5057 with_built_clang=check 5058fi 5059 5060 5061{ echo "$as_me:$LINENO: checking clang compiler" >&5 5062echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } 5063WITH_CLANGPATH="" 5064WITH_BUILT_CLANG=0 5065if test "$with_clang" != "default"; then 5066 WITH_CLANGPATH="$with_clang" 5067 if ! test -x "$WITH_CLANGPATH"; then 5068 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 5069echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} 5070 { (exit 1); exit 1; }; } 5071 fi 5072elif test "$with_built_clang" = "yes"; then 5073 WITH_BUILT_CLANG=1 5074elif test "$with_built_clang" = "no"; then 5075 WITH_BUILT_CLANG=0 5076else 5077 if test "$with_built_clang" != "check"; then 5078 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 5079echo "$as_me: error: invalid value for --with-built-clang." >&2;} 5080 { (exit 1); exit 1; }; } 5081 fi 5082 5083 if test -f ${srcdir}/tools/clang/README.txt; then 5084 WITH_BUILT_CLANG=1 5085 fi 5086fi 5087 5088if ! test -z "$WITH_CLANGPATH"; then 5089 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 5090echo "${ECHO_T}$WITH_CLANGPATH" >&6; } 5091 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` 5092elif test "$WITH_BUILT_CLANG" = "1"; then 5093 { echo "$as_me:$LINENO: result: built" >&5 5094echo "${ECHO_T}built" >&6; } 5095else 5096 { echo "$as_me:$LINENO: result: none" >&5 5097echo "${ECHO_T}none" >&6; } 5098fi 5099CLANGPATH=$WITH_CLANGPATH 5100 5101CLANGXXPATH=$WITH_CLANGXXPATH 5102 5103ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG 5104 5105 5106 5107# Check whether --with-optimize-option was given. 5108if test "${with_optimize_option+set}" = set; then 5109 withval=$with_optimize_option; 5110else 5111 withval=default 5112fi 5113 5114{ echo "$as_me:$LINENO: checking optimization flags" >&5 5115echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5116case "$withval" in 5117 default) 5118 case "$llvm_cv_os_type" in 5119 MingW) optimize_option=-O3 ;; 5120 *) optimize_option=-O2 ;; 5121 esac ;; 5122 *) optimize_option="$withval" ;; 5123esac 5124OPTIMIZE_OPTION=$optimize_option 5125 5126{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5127echo "${ECHO_T}$optimize_option" >&6; } 5128 5129 5130# Check whether --with-extra-options was given. 5131if test "${with_extra_options+set}" = set; then 5132 withval=$with_extra_options; 5133else 5134 withval=default 5135fi 5136 5137case "$withval" in 5138 default) EXTRA_OPTIONS= ;; 5139 *) EXTRA_OPTIONS=$withval ;; 5140esac 5141EXTRA_OPTIONS=$EXTRA_OPTIONS 5142 5143 5144# Check whether --enable-bindings was given. 5145if test "${enable_bindings+set}" = set; then 5146 enableval=$enable_bindings; 5147else 5148 enableval=default 5149fi 5150 5151BINDINGS_TO_BUILD="" 5152case "$enableval" in 5153 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5154 all ) BINDINGS_TO_BUILD="ocaml" ;; 5155 none | no) BINDINGS_TO_BUILD="" ;; 5156 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5157 case "$a_binding" in 5158 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5159 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5160echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5161 { (exit 1); exit 1; }; } ;; 5162 esac 5163 done 5164 ;; 5165esac 5166 5167 5168# Check whether --with-ocaml-libdir was given. 5169if test "${with_ocaml_libdir+set}" = set; then 5170 withval=$with_ocaml_libdir; 5171else 5172 withval=auto 5173fi 5174 5175case "$withval" in 5176 auto) with_ocaml_libdir="$withval" ;; 5177 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5178 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5179echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5180 { (exit 1); exit 1; }; } ;; 5181esac 5182 5183 5184# Check whether --with-c-include-dirs was given. 5185if test "${with_c_include_dirs+set}" = set; then 5186 withval=$with_c_include_dirs; 5187else 5188 withval="" 5189fi 5190 5191 5192cat >>confdefs.h <<_ACEOF 5193#define C_INCLUDE_DIRS "$withval" 5194_ACEOF 5195 5196 5197 5198# Check whether --with-cxx-include-root was given. 5199if test "${with_cxx_include_root+set}" = set; then 5200 withval=$with_cxx_include_root; 5201else 5202 withval="" 5203fi 5204 5205 5206cat >>confdefs.h <<_ACEOF 5207#define CXX_INCLUDE_ROOT "$withval" 5208_ACEOF 5209 5210 5211 5212# Check whether --with-cxx-include-arch was given. 5213if test "${with_cxx_include_arch+set}" = set; then 5214 withval=$with_cxx_include_arch; 5215else 5216 withval="" 5217fi 5218 5219 5220cat >>confdefs.h <<_ACEOF 5221#define CXX_INCLUDE_ARCH "$withval" 5222_ACEOF 5223 5224 5225 5226# Check whether --with-cxx-include-32bit-dir was given. 5227if test "${with_cxx_include_32bit_dir+set}" = set; then 5228 withval=$with_cxx_include_32bit_dir; 5229else 5230 withval="" 5231fi 5232 5233 5234cat >>confdefs.h <<_ACEOF 5235#define CXX_INCLUDE_32BIT_DIR "$withval" 5236_ACEOF 5237 5238 5239 5240# Check whether --with-cxx-include-64bit-dir was given. 5241if test "${with_cxx_include_64bit_dir+set}" = set; then 5242 withval=$with_cxx_include_64bit_dir; 5243else 5244 withval="" 5245fi 5246 5247 5248cat >>confdefs.h <<_ACEOF 5249#define CXX_INCLUDE_64BIT_DIR "$withval" 5250_ACEOF 5251 5252 5253 5254# Check whether --with-binutils-include was given. 5255if test "${with_binutils_include+set}" = set; then 5256 withval=$with_binutils_include; 5257else 5258 withval=default 5259fi 5260 5261case "$withval" in 5262 default) WITH_BINUTILS_INCDIR=default ;; 5263 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5264 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5265echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5266 { (exit 1); exit 1; }; } ;; 5267esac 5268if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5269 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5270 5271 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5272 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5273 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5274echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5275 { (exit 1); exit 1; }; }; 5276 fi 5277fi 5278 5279# Check whether --enable-libffi was given. 5280if test "${enable_libffi+set}" = set; then 5281 enableval=$enable_libffi; case "$enableval" in 5282 yes) llvm_cv_enable_libffi="yes" ;; 5283 no) llvm_cv_enable_libffi="no" ;; 5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5285echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5286 { (exit 1); exit 1; }; } ;; 5287 esac 5288else 5289 llvm_cv_enable_libffi=no 5290fi 5291 5292 5293if test "$llvm_cv_os_type" = "Win32" ; then 5294 llvmc_dynamic="yes" 5295else 5296 llvmc_dynamic="no" 5297fi 5298 5299# Check whether --enable-llvmc-dynamic was given. 5300if test "${enable_llvmc_dynamic+set}" = set; then 5301 enableval=$enable_llvmc_dynamic; 5302else 5303 enableval=$llvmc_dynamic 5304fi 5305 5306if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then 5307 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 5308 5309else 5310 ENABLE_LLVMC_DYNAMIC= 5311 5312fi 5313 5314# Check whether --enable-llvmc-dynamic-plugins was given. 5315if test "${enable_llvmc_dynamic_plugins+set}" = set; then 5316 enableval=$enable_llvmc_dynamic_plugins; 5317else 5318 enableval=yes 5319fi 5320 5321if test ${enableval} = "yes" ; then 5322 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 5323 5324else 5325 ENABLE_LLVMC_DYNAMIC_PLUGINS= 5326 5327fi 5328 5329 5330ac_ext=c 5331ac_cpp='$CPP $CPPFLAGS' 5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5334ac_compiler_gnu=$ac_cv_c_compiler_gnu 5335{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5336echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5337# On Suns, sometimes $CPP names a directory. 5338if test -n "$CPP" && test -d "$CPP"; then 5339 CPP= 5340fi 5341if test -z "$CPP"; then 5342 if test "${ac_cv_prog_CPP+set}" = set; then 5343 echo $ECHO_N "(cached) $ECHO_C" >&6 5344else 5345 # Double quotes because CPP needs to be expanded 5346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5347 do 5348 ac_preproc_ok=false 5349for ac_c_preproc_warn_flag in '' yes 5350do 5351 # Use a header file that comes with gcc, so configuring glibc 5352 # with a fresh cross-compiler works. 5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5354 # <limits.h> exists even on freestanding compilers. 5355 # On the NeXT, cc -E runs the code through the compiler's parser, 5356 # not just through cpp. "Syntax error" is here to catch this case. 5357 cat >conftest.$ac_ext <<_ACEOF 5358/* confdefs.h. */ 5359_ACEOF 5360cat confdefs.h >>conftest.$ac_ext 5361cat >>conftest.$ac_ext <<_ACEOF 5362/* end confdefs.h. */ 5363#ifdef __STDC__ 5364# include <limits.h> 5365#else 5366# include <assert.h> 5367#endif 5368 Syntax error 5369_ACEOF 5370if { (ac_try="$ac_cpp conftest.$ac_ext" 5371case "(($ac_try" in 5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5373 *) ac_try_echo=$ac_try;; 5374esac 5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5377 ac_status=$? 5378 grep -v '^ *+' conftest.er1 >conftest.err 5379 rm -f conftest.er1 5380 cat conftest.err >&5 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5382 (exit $ac_status); } >/dev/null; then 5383 if test -s conftest.err; then 5384 ac_cpp_err=$ac_c_preproc_warn_flag 5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5386 else 5387 ac_cpp_err= 5388 fi 5389else 5390 ac_cpp_err=yes 5391fi 5392if test -z "$ac_cpp_err"; then 5393 : 5394else 5395 echo "$as_me: failed program was:" >&5 5396sed 's/^/| /' conftest.$ac_ext >&5 5397 5398 # Broken: fails on valid input. 5399continue 5400fi 5401 5402rm -f conftest.err conftest.$ac_ext 5403 5404 # OK, works on sane cases. Now check whether nonexistent headers 5405 # can be detected and how. 5406 cat >conftest.$ac_ext <<_ACEOF 5407/* confdefs.h. */ 5408_ACEOF 5409cat confdefs.h >>conftest.$ac_ext 5410cat >>conftest.$ac_ext <<_ACEOF 5411/* end confdefs.h. */ 5412#include <ac_nonexistent.h> 5413_ACEOF 5414if { (ac_try="$ac_cpp conftest.$ac_ext" 5415case "(($ac_try" in 5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5417 *) ac_try_echo=$ac_try;; 5418esac 5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5421 ac_status=$? 5422 grep -v '^ *+' conftest.er1 >conftest.err 5423 rm -f conftest.er1 5424 cat conftest.err >&5 5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426 (exit $ac_status); } >/dev/null; then 5427 if test -s conftest.err; then 5428 ac_cpp_err=$ac_c_preproc_warn_flag 5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5430 else 5431 ac_cpp_err= 5432 fi 5433else 5434 ac_cpp_err=yes 5435fi 5436if test -z "$ac_cpp_err"; then 5437 # Broken: success on invalid input. 5438continue 5439else 5440 echo "$as_me: failed program was:" >&5 5441sed 's/^/| /' conftest.$ac_ext >&5 5442 5443 # Passes both tests. 5444ac_preproc_ok=: 5445break 5446fi 5447 5448rm -f conftest.err conftest.$ac_ext 5449 5450done 5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5452rm -f conftest.err conftest.$ac_ext 5453if $ac_preproc_ok; then 5454 break 5455fi 5456 5457 done 5458 ac_cv_prog_CPP=$CPP 5459 5460fi 5461 CPP=$ac_cv_prog_CPP 5462else 5463 ac_cv_prog_CPP=$CPP 5464fi 5465{ echo "$as_me:$LINENO: result: $CPP" >&5 5466echo "${ECHO_T}$CPP" >&6; } 5467ac_preproc_ok=false 5468for ac_c_preproc_warn_flag in '' yes 5469do 5470 # Use a header file that comes with gcc, so configuring glibc 5471 # with a fresh cross-compiler works. 5472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5473 # <limits.h> exists even on freestanding compilers. 5474 # On the NeXT, cc -E runs the code through the compiler's parser, 5475 # not just through cpp. "Syntax error" is here to catch this case. 5476 cat >conftest.$ac_ext <<_ACEOF 5477/* confdefs.h. */ 5478_ACEOF 5479cat confdefs.h >>conftest.$ac_ext 5480cat >>conftest.$ac_ext <<_ACEOF 5481/* end confdefs.h. */ 5482#ifdef __STDC__ 5483# include <limits.h> 5484#else 5485# include <assert.h> 5486#endif 5487 Syntax error 5488_ACEOF 5489if { (ac_try="$ac_cpp conftest.$ac_ext" 5490case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493esac 5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5496 ac_status=$? 5497 grep -v '^ *+' conftest.er1 >conftest.err 5498 rm -f conftest.er1 5499 cat conftest.err >&5 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } >/dev/null; then 5502 if test -s conftest.err; then 5503 ac_cpp_err=$ac_c_preproc_warn_flag 5504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5505 else 5506 ac_cpp_err= 5507 fi 5508else 5509 ac_cpp_err=yes 5510fi 5511if test -z "$ac_cpp_err"; then 5512 : 5513else 5514 echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 # Broken: fails on valid input. 5518continue 5519fi 5520 5521rm -f conftest.err conftest.$ac_ext 5522 5523 # OK, works on sane cases. Now check whether nonexistent headers 5524 # can be detected and how. 5525 cat >conftest.$ac_ext <<_ACEOF 5526/* confdefs.h. */ 5527_ACEOF 5528cat confdefs.h >>conftest.$ac_ext 5529cat >>conftest.$ac_ext <<_ACEOF 5530/* end confdefs.h. */ 5531#include <ac_nonexistent.h> 5532_ACEOF 5533if { (ac_try="$ac_cpp conftest.$ac_ext" 5534case "(($ac_try" in 5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5536 *) ac_try_echo=$ac_try;; 5537esac 5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5540 ac_status=$? 5541 grep -v '^ *+' conftest.er1 >conftest.err 5542 rm -f conftest.er1 5543 cat conftest.err >&5 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545 (exit $ac_status); } >/dev/null; then 5546 if test -s conftest.err; then 5547 ac_cpp_err=$ac_c_preproc_warn_flag 5548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5549 else 5550 ac_cpp_err= 5551 fi 5552else 5553 ac_cpp_err=yes 5554fi 5555if test -z "$ac_cpp_err"; then 5556 # Broken: success on invalid input. 5557continue 5558else 5559 echo "$as_me: failed program was:" >&5 5560sed 's/^/| /' conftest.$ac_ext >&5 5561 5562 # Passes both tests. 5563ac_preproc_ok=: 5564break 5565fi 5566 5567rm -f conftest.err conftest.$ac_ext 5568 5569done 5570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5571rm -f conftest.err conftest.$ac_ext 5572if $ac_preproc_ok; then 5573 : 5574else 5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5576See \`config.log' for more details." >&5 5577echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5578See \`config.log' for more details." >&2;} 5579 { (exit 1); exit 1; }; } 5580fi 5581 5582ac_ext=c 5583ac_cpp='$CPP $CPPFLAGS' 5584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5586ac_compiler_gnu=$ac_cv_c_compiler_gnu 5587 5588ac_ext=c 5589ac_cpp='$CPP $CPPFLAGS' 5590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5592ac_compiler_gnu=$ac_cv_c_compiler_gnu 5593if test -n "$ac_tool_prefix"; then 5594 for ac_prog in gcc 5595 do 5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5597set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5598{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5600if test "${ac_cv_prog_CC+set}" = set; then 5601 echo $ECHO_N "(cached) $ECHO_C" >&6 5602else 5603 if test -n "$CC"; then 5604 ac_cv_prog_CC="$CC" # Let the user override the test. 5605else 5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5607for as_dir in $PATH 5608do 5609 IFS=$as_save_IFS 5610 test -z "$as_dir" && as_dir=. 5611 for ac_exec_ext in '' $ac_executable_extensions; do 5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5615 break 2 5616 fi 5617done 5618done 5619IFS=$as_save_IFS 5620 5621fi 5622fi 5623CC=$ac_cv_prog_CC 5624if test -n "$CC"; then 5625 { echo "$as_me:$LINENO: result: $CC" >&5 5626echo "${ECHO_T}$CC" >&6; } 5627else 5628 { echo "$as_me:$LINENO: result: no" >&5 5629echo "${ECHO_T}no" >&6; } 5630fi 5631 5632 5633 test -n "$CC" && break 5634 done 5635fi 5636if test -z "$CC"; then 5637 ac_ct_CC=$CC 5638 for ac_prog in gcc 5639do 5640 # Extract the first word of "$ac_prog", so it can be a program name with args. 5641set dummy $ac_prog; ac_word=$2 5642{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5645 echo $ECHO_N "(cached) $ECHO_C" >&6 5646else 5647 if test -n "$ac_ct_CC"; then 5648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5657 ac_cv_prog_ac_ct_CC="$ac_prog" 5658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667ac_ct_CC=$ac_cv_prog_ac_ct_CC 5668if test -n "$ac_ct_CC"; then 5669 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5670echo "${ECHO_T}$ac_ct_CC" >&6; } 5671else 5672 { echo "$as_me:$LINENO: result: no" >&5 5673echo "${ECHO_T}no" >&6; } 5674fi 5675 5676 5677 test -n "$ac_ct_CC" && break 5678done 5679 5680 if test "x$ac_ct_CC" = x; then 5681 CC="" 5682 else 5683 case $cross_compiling:$ac_tool_warned in 5684yes:) 5685{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5686whose name does not start with the host triplet. If you think this 5687configuration is useful to you, please write to autoconf@gnu.org." >&5 5688echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5689whose name does not start with the host triplet. If you think this 5690configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5691ac_tool_warned=yes ;; 5692esac 5693 CC=$ac_ct_CC 5694 fi 5695fi 5696 5697 5698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5699See \`config.log' for more details." >&5 5700echo "$as_me: error: no acceptable C compiler found in \$PATH 5701See \`config.log' for more details." >&2;} 5702 { (exit 1); exit 1; }; } 5703 5704# Provide some information about the compiler. 5705echo "$as_me:$LINENO: checking for C compiler version" >&5 5706ac_compiler=`set X $ac_compile; echo $2` 5707{ (ac_try="$ac_compiler --version >&5" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_compiler --version >&5") 2>&5 5714 ac_status=$? 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); } 5717{ (ac_try="$ac_compiler -v >&5" 5718case "(($ac_try" in 5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5720 *) ac_try_echo=$ac_try;; 5721esac 5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5723 (eval "$ac_compiler -v >&5") 2>&5 5724 ac_status=$? 5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 (exit $ac_status); } 5727{ (ac_try="$ac_compiler -V >&5" 5728case "(($ac_try" in 5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5730 *) ac_try_echo=$ac_try;; 5731esac 5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5733 (eval "$ac_compiler -V >&5") 2>&5 5734 ac_status=$? 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } 5737 5738{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5739echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5740if test "${ac_cv_c_compiler_gnu+set}" = set; then 5741 echo $ECHO_N "(cached) $ECHO_C" >&6 5742else 5743 cat >conftest.$ac_ext <<_ACEOF 5744/* confdefs.h. */ 5745_ACEOF 5746cat confdefs.h >>conftest.$ac_ext 5747cat >>conftest.$ac_ext <<_ACEOF 5748/* end confdefs.h. */ 5749 5750int 5751main () 5752{ 5753#ifndef __GNUC__ 5754 choke me 5755#endif 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761rm -f conftest.$ac_objext 5762if { (ac_try="$ac_compile" 5763case "(($ac_try" in 5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5765 *) ac_try_echo=$ac_try;; 5766esac 5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5768 (eval "$ac_compile") 2>conftest.er1 5769 ac_status=$? 5770 grep -v '^ *+' conftest.er1 >conftest.err 5771 rm -f conftest.er1 5772 cat conftest.err >&5 5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5774 (exit $ac_status); } && 5775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5776 { (case "(($ac_try" in 5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5778 *) ac_try_echo=$ac_try;; 5779esac 5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5781 (eval "$ac_try") 2>&5 5782 ac_status=$? 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); }; } && 5785 { ac_try='test -s conftest.$ac_objext' 5786 { (case "(($ac_try" in 5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5788 *) ac_try_echo=$ac_try;; 5789esac 5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5791 (eval "$ac_try") 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); }; }; then 5795 ac_compiler_gnu=yes 5796else 5797 echo "$as_me: failed program was:" >&5 5798sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 ac_compiler_gnu=no 5801fi 5802 5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5804ac_cv_c_compiler_gnu=$ac_compiler_gnu 5805 5806fi 5807{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5808echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 5809GCC=`test $ac_compiler_gnu = yes && echo yes` 5810ac_test_CFLAGS=${CFLAGS+set} 5811ac_save_CFLAGS=$CFLAGS 5812{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5813echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 5814if test "${ac_cv_prog_cc_g+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 ac_save_c_werror_flag=$ac_c_werror_flag 5818 ac_c_werror_flag=yes 5819 ac_cv_prog_cc_g=no 5820 CFLAGS="-g" 5821 cat >conftest.$ac_ext <<_ACEOF 5822/* confdefs.h. */ 5823_ACEOF 5824cat confdefs.h >>conftest.$ac_ext 5825cat >>conftest.$ac_ext <<_ACEOF 5826/* end confdefs.h. */ 5827 5828int 5829main () 5830{ 5831 5832 ; 5833 return 0; 5834} 5835_ACEOF 5836rm -f conftest.$ac_objext 5837if { (ac_try="$ac_compile" 5838case "(($ac_try" in 5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5840 *) ac_try_echo=$ac_try;; 5841esac 5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5843 (eval "$ac_compile") 2>conftest.er1 5844 ac_status=$? 5845 grep -v '^ *+' conftest.er1 >conftest.err 5846 rm -f conftest.er1 5847 cat conftest.err >&5 5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5849 (exit $ac_status); } && 5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5851 { (case "(($ac_try" in 5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5853 *) ac_try_echo=$ac_try;; 5854esac 5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5856 (eval "$ac_try") 2>&5 5857 ac_status=$? 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); }; } && 5860 { ac_try='test -s conftest.$ac_objext' 5861 { (case "(($ac_try" in 5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5863 *) ac_try_echo=$ac_try;; 5864esac 5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5866 (eval "$ac_try") 2>&5 5867 ac_status=$? 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); }; }; then 5870 ac_cv_prog_cc_g=yes 5871else 5872 echo "$as_me: failed program was:" >&5 5873sed 's/^/| /' conftest.$ac_ext >&5 5874 5875 CFLAGS="" 5876 cat >conftest.$ac_ext <<_ACEOF 5877/* confdefs.h. */ 5878_ACEOF 5879cat confdefs.h >>conftest.$ac_ext 5880cat >>conftest.$ac_ext <<_ACEOF 5881/* end confdefs.h. */ 5882 5883int 5884main () 5885{ 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891rm -f conftest.$ac_objext 5892if { (ac_try="$ac_compile" 5893case "(($ac_try" in 5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5895 *) ac_try_echo=$ac_try;; 5896esac 5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5898 (eval "$ac_compile") 2>conftest.er1 5899 ac_status=$? 5900 grep -v '^ *+' conftest.er1 >conftest.err 5901 rm -f conftest.er1 5902 cat conftest.err >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); } && 5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5906 { (case "(($ac_try" in 5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5908 *) ac_try_echo=$ac_try;; 5909esac 5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5911 (eval "$ac_try") 2>&5 5912 ac_status=$? 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); }; } && 5915 { ac_try='test -s conftest.$ac_objext' 5916 { (case "(($ac_try" in 5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5918 *) ac_try_echo=$ac_try;; 5919esac 5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5921 (eval "$ac_try") 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 : 5926else 5927 echo "$as_me: failed program was:" >&5 5928sed 's/^/| /' conftest.$ac_ext >&5 5929 5930 ac_c_werror_flag=$ac_save_c_werror_flag 5931 CFLAGS="-g" 5932 cat >conftest.$ac_ext <<_ACEOF 5933/* confdefs.h. */ 5934_ACEOF 5935cat confdefs.h >>conftest.$ac_ext 5936cat >>conftest.$ac_ext <<_ACEOF 5937/* end confdefs.h. */ 5938 5939int 5940main () 5941{ 5942 5943 ; 5944 return 0; 5945} 5946_ACEOF 5947rm -f conftest.$ac_objext 5948if { (ac_try="$ac_compile" 5949case "(($ac_try" in 5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5951 *) ac_try_echo=$ac_try;; 5952esac 5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5954 (eval "$ac_compile") 2>conftest.er1 5955 ac_status=$? 5956 grep -v '^ *+' conftest.er1 >conftest.err 5957 rm -f conftest.er1 5958 cat conftest.err >&5 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } && 5961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5962 { (case "(($ac_try" in 5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5964 *) ac_try_echo=$ac_try;; 5965esac 5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5967 (eval "$ac_try") 2>&5 5968 ac_status=$? 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5970 (exit $ac_status); }; } && 5971 { ac_try='test -s conftest.$ac_objext' 5972 { (case "(($ac_try" in 5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5974 *) ac_try_echo=$ac_try;; 5975esac 5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5977 (eval "$ac_try") 2>&5 5978 ac_status=$? 5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5980 (exit $ac_status); }; }; then 5981 ac_cv_prog_cc_g=yes 5982else 5983 echo "$as_me: failed program was:" >&5 5984sed 's/^/| /' conftest.$ac_ext >&5 5985 5986 5987fi 5988 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990fi 5991 5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5993fi 5994 5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5996 ac_c_werror_flag=$ac_save_c_werror_flag 5997fi 5998{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5999echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 6000if test "$ac_test_CFLAGS" = set; then 6001 CFLAGS=$ac_save_CFLAGS 6002elif test $ac_cv_prog_cc_g = yes; then 6003 if test "$GCC" = yes; then 6004 CFLAGS="-g -O2" 6005 else 6006 CFLAGS="-g" 6007 fi 6008else 6009 if test "$GCC" = yes; then 6010 CFLAGS="-O2" 6011 else 6012 CFLAGS= 6013 fi 6014fi 6015{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 6016echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 6017if test "${ac_cv_prog_cc_c89+set}" = set; then 6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6019else 6020 ac_cv_prog_cc_c89=no 6021ac_save_CC=$CC 6022cat >conftest.$ac_ext <<_ACEOF 6023/* confdefs.h. */ 6024_ACEOF 6025cat confdefs.h >>conftest.$ac_ext 6026cat >>conftest.$ac_ext <<_ACEOF 6027/* end confdefs.h. */ 6028#include <stdarg.h> 6029#include <stdio.h> 6030#include <sys/types.h> 6031#include <sys/stat.h> 6032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6033struct buf { int x; }; 6034FILE * (*rcsopen) (struct buf *, struct stat *, int); 6035static char *e (p, i) 6036 char **p; 6037 int i; 6038{ 6039 return p[i]; 6040} 6041static char *f (char * (*g) (char **, int), char **p, ...) 6042{ 6043 char *s; 6044 va_list v; 6045 va_start (v,p); 6046 s = g (p, va_arg (v,int)); 6047 va_end (v); 6048 return s; 6049} 6050 6051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6052 function prototypes and stuff, but not '\xHH' hex character constants. 6053 These don't provoke an error unfortunately, instead are silently treated 6054 as 'x'. The following induces an error, until -std is added to get 6055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6056 array size at least. It's necessary to write '\x00'==0 to get something 6057 that's true only with -std. */ 6058int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6059 6060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6061 inside strings and character constants. */ 6062#define FOO(x) 'x' 6063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6064 6065int test (int i, double x); 6066struct s1 {int (*f) (int a);}; 6067struct s2 {int (*f) (double a);}; 6068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6069int argc; 6070char **argv; 6071int 6072main () 6073{ 6074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6075 ; 6076 return 0; 6077} 6078_ACEOF 6079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6081do 6082 CC="$ac_save_CC $ac_arg" 6083 rm -f conftest.$ac_objext 6084if { (ac_try="$ac_compile" 6085case "(($ac_try" in 6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6087 *) ac_try_echo=$ac_try;; 6088esac 6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6090 (eval "$ac_compile") 2>conftest.er1 6091 ac_status=$? 6092 grep -v '^ *+' conftest.er1 >conftest.err 6093 rm -f conftest.er1 6094 cat conftest.err >&5 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); } && 6097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6098 { (case "(($ac_try" in 6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6100 *) ac_try_echo=$ac_try;; 6101esac 6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6103 (eval "$ac_try") 2>&5 6104 ac_status=$? 6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6106 (exit $ac_status); }; } && 6107 { ac_try='test -s conftest.$ac_objext' 6108 { (case "(($ac_try" in 6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6110 *) ac_try_echo=$ac_try;; 6111esac 6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6113 (eval "$ac_try") 2>&5 6114 ac_status=$? 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); }; }; then 6117 ac_cv_prog_cc_c89=$ac_arg 6118else 6119 echo "$as_me: failed program was:" >&5 6120sed 's/^/| /' conftest.$ac_ext >&5 6121 6122 6123fi 6124 6125rm -f core conftest.err conftest.$ac_objext 6126 test "x$ac_cv_prog_cc_c89" != "xno" && break 6127done 6128rm -f conftest.$ac_ext 6129CC=$ac_save_CC 6130 6131fi 6132# AC_CACHE_VAL 6133case "x$ac_cv_prog_cc_c89" in 6134 x) 6135 { echo "$as_me:$LINENO: result: none needed" >&5 6136echo "${ECHO_T}none needed" >&6; } ;; 6137 xno) 6138 { echo "$as_me:$LINENO: result: unsupported" >&5 6139echo "${ECHO_T}unsupported" >&6; } ;; 6140 *) 6141 CC="$CC $ac_cv_prog_cc_c89" 6142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6143echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6144esac 6145 6146 6147ac_ext=c 6148ac_cpp='$CPP $CPPFLAGS' 6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6151ac_compiler_gnu=$ac_cv_c_compiler_gnu 6152 6153ac_ext=cpp 6154ac_cpp='$CXXCPP $CPPFLAGS' 6155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6158if test -z "$CXX"; then 6159 if test -n "$CCC"; then 6160 CXX=$CCC 6161 else 6162 if test -n "$ac_tool_prefix"; then 6163 for ac_prog in g++ 6164 do 6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6166set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6169if test "${ac_cv_prog_CXX+set}" = set; then 6170 echo $ECHO_N "(cached) $ECHO_C" >&6 6171else 6172 if test -n "$CXX"; then 6173 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6174else 6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6176for as_dir in $PATH 6177do 6178 IFS=$as_save_IFS 6179 test -z "$as_dir" && as_dir=. 6180 for ac_exec_ext in '' $ac_executable_extensions; do 6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6182 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6184 break 2 6185 fi 6186done 6187done 6188IFS=$as_save_IFS 6189 6190fi 6191fi 6192CXX=$ac_cv_prog_CXX 6193if test -n "$CXX"; then 6194 { echo "$as_me:$LINENO: result: $CXX" >&5 6195echo "${ECHO_T}$CXX" >&6; } 6196else 6197 { echo "$as_me:$LINENO: result: no" >&5 6198echo "${ECHO_T}no" >&6; } 6199fi 6200 6201 6202 test -n "$CXX" && break 6203 done 6204fi 6205if test -z "$CXX"; then 6206 ac_ct_CXX=$CXX 6207 for ac_prog in g++ 6208do 6209 # Extract the first word of "$ac_prog", so it can be a program name with args. 6210set dummy $ac_prog; ac_word=$2 6211{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6213if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 if test -n "$ac_ct_CXX"; then 6217 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6218else 6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6226 ac_cv_prog_ac_ct_CXX="$ac_prog" 6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230done 6231done 6232IFS=$as_save_IFS 6233 6234fi 6235fi 6236ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6237if test -n "$ac_ct_CXX"; then 6238 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6239echo "${ECHO_T}$ac_ct_CXX" >&6; } 6240else 6241 { echo "$as_me:$LINENO: result: no" >&5 6242echo "${ECHO_T}no" >&6; } 6243fi 6244 6245 6246 test -n "$ac_ct_CXX" && break 6247done 6248 6249 if test "x$ac_ct_CXX" = x; then 6250 CXX="g++" 6251 else 6252 case $cross_compiling:$ac_tool_warned in 6253yes:) 6254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6255whose name does not start with the host triplet. If you think this 6256configuration is useful to you, please write to autoconf@gnu.org." >&5 6257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6258whose name does not start with the host triplet. If you think this 6259configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6260ac_tool_warned=yes ;; 6261esac 6262 CXX=$ac_ct_CXX 6263 fi 6264fi 6265 6266 fi 6267fi 6268# Provide some information about the compiler. 6269echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6270ac_compiler=`set X $ac_compile; echo $2` 6271{ (ac_try="$ac_compiler --version >&5" 6272case "(($ac_try" in 6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6274 *) ac_try_echo=$ac_try;; 6275esac 6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6277 (eval "$ac_compiler --version >&5") 2>&5 6278 ac_status=$? 6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 (exit $ac_status); } 6281{ (ac_try="$ac_compiler -v >&5" 6282case "(($ac_try" in 6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6284 *) ac_try_echo=$ac_try;; 6285esac 6286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6287 (eval "$ac_compiler -v >&5") 2>&5 6288 ac_status=$? 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 (exit $ac_status); } 6291{ (ac_try="$ac_compiler -V >&5" 6292case "(($ac_try" in 6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6294 *) ac_try_echo=$ac_try;; 6295esac 6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6297 (eval "$ac_compiler -V >&5") 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } 6301 6302{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6303echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6304if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 cat >conftest.$ac_ext <<_ACEOF 6308/* confdefs.h. */ 6309_ACEOF 6310cat confdefs.h >>conftest.$ac_ext 6311cat >>conftest.$ac_ext <<_ACEOF 6312/* end confdefs.h. */ 6313 6314int 6315main () 6316{ 6317#ifndef __GNUC__ 6318 choke me 6319#endif 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325rm -f conftest.$ac_objext 6326if { (ac_try="$ac_compile" 6327case "(($ac_try" in 6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6329 *) ac_try_echo=$ac_try;; 6330esac 6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6332 (eval "$ac_compile") 2>conftest.er1 6333 ac_status=$? 6334 grep -v '^ *+' conftest.er1 >conftest.err 6335 rm -f conftest.er1 6336 cat conftest.err >&5 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 (exit $ac_status); } && 6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6340 { (case "(($ac_try" in 6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6342 *) ac_try_echo=$ac_try;; 6343esac 6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6345 (eval "$ac_try") 2>&5 6346 ac_status=$? 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6348 (exit $ac_status); }; } && 6349 { ac_try='test -s conftest.$ac_objext' 6350 { (case "(($ac_try" in 6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6352 *) ac_try_echo=$ac_try;; 6353esac 6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6355 (eval "$ac_try") 2>&5 6356 ac_status=$? 6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6358 (exit $ac_status); }; }; then 6359 ac_compiler_gnu=yes 6360else 6361 echo "$as_me: failed program was:" >&5 6362sed 's/^/| /' conftest.$ac_ext >&5 6363 6364 ac_compiler_gnu=no 6365fi 6366 6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6369 6370fi 6371{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6372echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6373GXX=`test $ac_compiler_gnu = yes && echo yes` 6374ac_test_CXXFLAGS=${CXXFLAGS+set} 6375ac_save_CXXFLAGS=$CXXFLAGS 6376{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6377echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6378if test "${ac_cv_prog_cxx_g+set}" = set; then 6379 echo $ECHO_N "(cached) $ECHO_C" >&6 6380else 6381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6382 ac_cxx_werror_flag=yes 6383 ac_cv_prog_cxx_g=no 6384 CXXFLAGS="-g" 6385 cat >conftest.$ac_ext <<_ACEOF 6386/* confdefs.h. */ 6387_ACEOF 6388cat confdefs.h >>conftest.$ac_ext 6389cat >>conftest.$ac_ext <<_ACEOF 6390/* end confdefs.h. */ 6391 6392int 6393main () 6394{ 6395 6396 ; 6397 return 0; 6398} 6399_ACEOF 6400rm -f conftest.$ac_objext 6401if { (ac_try="$ac_compile" 6402case "(($ac_try" in 6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6404 *) ac_try_echo=$ac_try;; 6405esac 6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6407 (eval "$ac_compile") 2>conftest.er1 6408 ac_status=$? 6409 grep -v '^ *+' conftest.er1 >conftest.err 6410 rm -f conftest.er1 6411 cat conftest.err >&5 6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6413 (exit $ac_status); } && 6414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6415 { (case "(($ac_try" in 6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6417 *) ac_try_echo=$ac_try;; 6418esac 6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6420 (eval "$ac_try") 2>&5 6421 ac_status=$? 6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6423 (exit $ac_status); }; } && 6424 { ac_try='test -s conftest.$ac_objext' 6425 { (case "(($ac_try" in 6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6427 *) ac_try_echo=$ac_try;; 6428esac 6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6430 (eval "$ac_try") 2>&5 6431 ac_status=$? 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); }; }; then 6434 ac_cv_prog_cxx_g=yes 6435else 6436 echo "$as_me: failed program was:" >&5 6437sed 's/^/| /' conftest.$ac_ext >&5 6438 6439 CXXFLAGS="" 6440 cat >conftest.$ac_ext <<_ACEOF 6441/* confdefs.h. */ 6442_ACEOF 6443cat confdefs.h >>conftest.$ac_ext 6444cat >>conftest.$ac_ext <<_ACEOF 6445/* end confdefs.h. */ 6446 6447int 6448main () 6449{ 6450 6451 ; 6452 return 0; 6453} 6454_ACEOF 6455rm -f conftest.$ac_objext 6456if { (ac_try="$ac_compile" 6457case "(($ac_try" in 6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6459 *) ac_try_echo=$ac_try;; 6460esac 6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6462 (eval "$ac_compile") 2>conftest.er1 6463 ac_status=$? 6464 grep -v '^ *+' conftest.er1 >conftest.err 6465 rm -f conftest.er1 6466 cat conftest.err >&5 6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6468 (exit $ac_status); } && 6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6470 { (case "(($ac_try" in 6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6472 *) ac_try_echo=$ac_try;; 6473esac 6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6475 (eval "$ac_try") 2>&5 6476 ac_status=$? 6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6478 (exit $ac_status); }; } && 6479 { ac_try='test -s conftest.$ac_objext' 6480 { (case "(($ac_try" in 6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6482 *) ac_try_echo=$ac_try;; 6483esac 6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6485 (eval "$ac_try") 2>&5 6486 ac_status=$? 6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6488 (exit $ac_status); }; }; then 6489 : 6490else 6491 echo "$as_me: failed program was:" >&5 6492sed 's/^/| /' conftest.$ac_ext >&5 6493 6494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6495 CXXFLAGS="-g" 6496 cat >conftest.$ac_ext <<_ACEOF 6497/* confdefs.h. */ 6498_ACEOF 6499cat confdefs.h >>conftest.$ac_ext 6500cat >>conftest.$ac_ext <<_ACEOF 6501/* end confdefs.h. */ 6502 6503int 6504main () 6505{ 6506 6507 ; 6508 return 0; 6509} 6510_ACEOF 6511rm -f conftest.$ac_objext 6512if { (ac_try="$ac_compile" 6513case "(($ac_try" in 6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6515 *) ac_try_echo=$ac_try;; 6516esac 6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6518 (eval "$ac_compile") 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } && 6525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6526 { (case "(($ac_try" in 6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6528 *) ac_try_echo=$ac_try;; 6529esac 6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6531 (eval "$ac_try") 2>&5 6532 ac_status=$? 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); }; } && 6535 { ac_try='test -s conftest.$ac_objext' 6536 { (case "(($ac_try" in 6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6538 *) ac_try_echo=$ac_try;; 6539esac 6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6541 (eval "$ac_try") 2>&5 6542 ac_status=$? 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6544 (exit $ac_status); }; }; then 6545 ac_cv_prog_cxx_g=yes 6546else 6547 echo "$as_me: failed program was:" >&5 6548sed 's/^/| /' conftest.$ac_ext >&5 6549 6550 6551fi 6552 6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6554fi 6555 6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6557fi 6558 6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6561fi 6562{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6563echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6564if test "$ac_test_CXXFLAGS" = set; then 6565 CXXFLAGS=$ac_save_CXXFLAGS 6566elif test $ac_cv_prog_cxx_g = yes; then 6567 if test "$GXX" = yes; then 6568 CXXFLAGS="-g -O2" 6569 else 6570 CXXFLAGS="-g" 6571 fi 6572else 6573 if test "$GXX" = yes; then 6574 CXXFLAGS="-O2" 6575 else 6576 CXXFLAGS= 6577 fi 6578fi 6579ac_ext=c 6580ac_cpp='$CPP $CPPFLAGS' 6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6583ac_compiler_gnu=$ac_cv_c_compiler_gnu 6584 6585 6586{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6587echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6588if test "${lt_cv_path_NM+set}" = set; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590else 6591 if test -n "$NM"; then 6592 # Let the user override the test. 6593 lt_cv_path_NM="$NM" 6594else 6595 lt_nm_to_check="${ac_tool_prefix}nm" 6596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6597 lt_nm_to_check="$lt_nm_to_check nm" 6598 fi 6599 for lt_tmp_nm in $lt_nm_to_check; do 6600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6602 IFS="$lt_save_ifs" 6603 test -z "$ac_dir" && ac_dir=. 6604 tmp_nm="$ac_dir/$lt_tmp_nm" 6605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6606 # Check to see if the nm accepts a BSD-compat flag. 6607 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6608 # nm: unknown option "B" ignored 6609 # Tru64's nm complains that /dev/null is an invalid object file 6610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6611 */dev/null* | *'Invalid file or object type'*) 6612 lt_cv_path_NM="$tmp_nm -B" 6613 break 6614 ;; 6615 *) 6616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6617 */dev/null*) 6618 lt_cv_path_NM="$tmp_nm -p" 6619 break 6620 ;; 6621 *) 6622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6623 continue # so that we can try to find one that supports BSD flags 6624 ;; 6625 esac 6626 ;; 6627 esac 6628 fi 6629 done 6630 IFS="$lt_save_ifs" 6631 done 6632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6633fi 6634fi 6635{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6636echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6637NM="$lt_cv_path_NM" 6638 6639 6640 6641{ echo "$as_me:$LINENO: checking for GNU make" >&5 6642echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6643if test "${llvm_cv_gnu_make_command+set}" = set; then 6644 echo $ECHO_N "(cached) $ECHO_C" >&6 6645else 6646 llvm_cv_gnu_make_command='' 6647 for a in "$MAKE" make gmake gnumake ; do 6648 if test -z "$a" ; then continue ; fi ; 6649 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6650 then 6651 llvm_cv_gnu_make_command=$a ; 6652 break; 6653 fi 6654 done 6655fi 6656{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6657echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6658 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6659 ifGNUmake='' ; 6660 else 6661 ifGNUmake='#' ; 6662 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6663echo "${ECHO_T}\"Not found\"" >&6; }; 6664 fi 6665 6666 6667{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6668echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6669LN_S=$as_ln_s 6670if test "$LN_S" = "ln -s"; then 6671 { echo "$as_me:$LINENO: result: yes" >&5 6672echo "${ECHO_T}yes" >&6; } 6673else 6674 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6675echo "${ECHO_T}no, using $LN_S" >&6; } 6676fi 6677 6678# Extract the first word of "cmp", so it can be a program name with args. 6679set dummy cmp; ac_word=$2 6680{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6682if test "${ac_cv_path_CMP+set}" = set; then 6683 echo $ECHO_N "(cached) $ECHO_C" >&6 6684else 6685 case $CMP in 6686 [\\/]* | ?:[\\/]*) 6687 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6688 ;; 6689 *) 6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6691for as_dir in $PATH 6692do 6693 IFS=$as_save_IFS 6694 test -z "$as_dir" && as_dir=. 6695 for ac_exec_ext in '' $ac_executable_extensions; do 6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6697 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6699 break 2 6700 fi 6701done 6702done 6703IFS=$as_save_IFS 6704 6705 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6706 ;; 6707esac 6708fi 6709CMP=$ac_cv_path_CMP 6710if test -n "$CMP"; then 6711 { echo "$as_me:$LINENO: result: $CMP" >&5 6712echo "${ECHO_T}$CMP" >&6; } 6713else 6714 { echo "$as_me:$LINENO: result: no" >&5 6715echo "${ECHO_T}no" >&6; } 6716fi 6717 6718 6719# Extract the first word of "cp", so it can be a program name with args. 6720set dummy cp; ac_word=$2 6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6723if test "${ac_cv_path_CP+set}" = set; then 6724 echo $ECHO_N "(cached) $ECHO_C" >&6 6725else 6726 case $CP in 6727 [\\/]* | ?:[\\/]*) 6728 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6729 ;; 6730 *) 6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6732for as_dir in $PATH 6733do 6734 IFS=$as_save_IFS 6735 test -z "$as_dir" && as_dir=. 6736 for ac_exec_ext in '' $ac_executable_extensions; do 6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6738 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6740 break 2 6741 fi 6742done 6743done 6744IFS=$as_save_IFS 6745 6746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6747 ;; 6748esac 6749fi 6750CP=$ac_cv_path_CP 6751if test -n "$CP"; then 6752 { echo "$as_me:$LINENO: result: $CP" >&5 6753echo "${ECHO_T}$CP" >&6; } 6754else 6755 { echo "$as_me:$LINENO: result: no" >&5 6756echo "${ECHO_T}no" >&6; } 6757fi 6758 6759 6760# Extract the first word of "date", so it can be a program name with args. 6761set dummy date; ac_word=$2 6762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6764if test "${ac_cv_path_DATE+set}" = set; then 6765 echo $ECHO_N "(cached) $ECHO_C" >&6 6766else 6767 case $DATE in 6768 [\\/]* | ?:[\\/]*) 6769 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6770 ;; 6771 *) 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784done 6785IFS=$as_save_IFS 6786 6787 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6788 ;; 6789esac 6790fi 6791DATE=$ac_cv_path_DATE 6792if test -n "$DATE"; then 6793 { echo "$as_me:$LINENO: result: $DATE" >&5 6794echo "${ECHO_T}$DATE" >&6; } 6795else 6796 { echo "$as_me:$LINENO: result: no" >&5 6797echo "${ECHO_T}no" >&6; } 6798fi 6799 6800 6801# Extract the first word of "find", so it can be a program name with args. 6802set dummy find; ac_word=$2 6803{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6805if test "${ac_cv_path_FIND+set}" = set; then 6806 echo $ECHO_N "(cached) $ECHO_C" >&6 6807else 6808 case $FIND in 6809 [\\/]* | ?:[\\/]*) 6810 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6811 ;; 6812 *) 6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6820 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825done 6826IFS=$as_save_IFS 6827 6828 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6829 ;; 6830esac 6831fi 6832FIND=$ac_cv_path_FIND 6833if test -n "$FIND"; then 6834 { echo "$as_me:$LINENO: result: $FIND" >&5 6835echo "${ECHO_T}$FIND" >&6; } 6836else 6837 { echo "$as_me:$LINENO: result: no" >&5 6838echo "${ECHO_T}no" >&6; } 6839fi 6840 6841 6842# Extract the first word of "grep", so it can be a program name with args. 6843set dummy grep; ac_word=$2 6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6846if test "${ac_cv_path_GREP+set}" = set; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 case $GREP in 6850 [\\/]* | ?:[\\/]*) 6851 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6852 ;; 6853 *) 6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6861 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866done 6867IFS=$as_save_IFS 6868 6869 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6870 ;; 6871esac 6872fi 6873GREP=$ac_cv_path_GREP 6874if test -n "$GREP"; then 6875 { echo "$as_me:$LINENO: result: $GREP" >&5 6876echo "${ECHO_T}$GREP" >&6; } 6877else 6878 { echo "$as_me:$LINENO: result: no" >&5 6879echo "${ECHO_T}no" >&6; } 6880fi 6881 6882 6883# Extract the first word of "mkdir", so it can be a program name with args. 6884set dummy mkdir; ac_word=$2 6885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6887if test "${ac_cv_path_MKDIR+set}" = set; then 6888 echo $ECHO_N "(cached) $ECHO_C" >&6 6889else 6890 case $MKDIR in 6891 [\\/]* | ?:[\\/]*) 6892 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6893 ;; 6894 *) 6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6896for as_dir in $PATH 6897do 6898 IFS=$as_save_IFS 6899 test -z "$as_dir" && as_dir=. 6900 for ac_exec_ext in '' $ac_executable_extensions; do 6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6902 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6904 break 2 6905 fi 6906done 6907done 6908IFS=$as_save_IFS 6909 6910 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6911 ;; 6912esac 6913fi 6914MKDIR=$ac_cv_path_MKDIR 6915if test -n "$MKDIR"; then 6916 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6917echo "${ECHO_T}$MKDIR" >&6; } 6918else 6919 { echo "$as_me:$LINENO: result: no" >&5 6920echo "${ECHO_T}no" >&6; } 6921fi 6922 6923 6924# Extract the first word of "mv", so it can be a program name with args. 6925set dummy mv; ac_word=$2 6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6928if test "${ac_cv_path_MV+set}" = set; then 6929 echo $ECHO_N "(cached) $ECHO_C" >&6 6930else 6931 case $MV in 6932 [\\/]* | ?:[\\/]*) 6933 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6934 ;; 6935 *) 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6943 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948done 6949IFS=$as_save_IFS 6950 6951 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6952 ;; 6953esac 6954fi 6955MV=$ac_cv_path_MV 6956if test -n "$MV"; then 6957 { echo "$as_me:$LINENO: result: $MV" >&5 6958echo "${ECHO_T}$MV" >&6; } 6959else 6960 { echo "$as_me:$LINENO: result: no" >&5 6961echo "${ECHO_T}no" >&6; } 6962fi 6963 6964 6965if test -n "$ac_tool_prefix"; then 6966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6967set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6968{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6970if test "${ac_cv_prog_RANLIB+set}" = set; then 6971 echo $ECHO_N "(cached) $ECHO_C" >&6 6972else 6973 if test -n "$RANLIB"; then 6974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993RANLIB=$ac_cv_prog_RANLIB 6994if test -n "$RANLIB"; then 6995 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6996echo "${ECHO_T}$RANLIB" >&6; } 6997else 6998 { echo "$as_me:$LINENO: result: no" >&5 6999echo "${ECHO_T}no" >&6; } 7000fi 7001 7002 7003fi 7004if test -z "$ac_cv_prog_RANLIB"; then 7005 ac_ct_RANLIB=$RANLIB 7006 # Extract the first word of "ranlib", so it can be a program name with args. 7007set dummy ranlib; ac_word=$2 7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7010if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7011 echo $ECHO_N "(cached) $ECHO_C" >&6 7012else 7013 if test -n "$ac_ct_RANLIB"; then 7014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7015else 7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017for as_dir in $PATH 7018do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7023 ac_cv_prog_ac_ct_RANLIB="ranlib" 7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7034if test -n "$ac_ct_RANLIB"; then 7035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7036echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7037else 7038 { echo "$as_me:$LINENO: result: no" >&5 7039echo "${ECHO_T}no" >&6; } 7040fi 7041 7042 if test "x$ac_ct_RANLIB" = x; then 7043 RANLIB=":" 7044 else 7045 case $cross_compiling:$ac_tool_warned in 7046yes:) 7047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7048whose name does not start with the host triplet. If you think this 7049configuration is useful to you, please write to autoconf@gnu.org." >&5 7050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7051whose name does not start with the host triplet. If you think this 7052configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7053ac_tool_warned=yes ;; 7054esac 7055 RANLIB=$ac_ct_RANLIB 7056 fi 7057else 7058 RANLIB="$ac_cv_prog_RANLIB" 7059fi 7060 7061if test -n "$ac_tool_prefix"; then 7062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7063set dummy ${ac_tool_prefix}ar; ac_word=$2 7064{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7066if test "${ac_cv_prog_AR+set}" = set; then 7067 echo $ECHO_N "(cached) $ECHO_C" >&6 7068else 7069 if test -n "$AR"; then 7070 ac_cv_prog_AR="$AR" # Let the user override the test. 7071else 7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073for as_dir in $PATH 7074do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7079 ac_cv_prog_AR="${ac_tool_prefix}ar" 7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083done 7084done 7085IFS=$as_save_IFS 7086 7087fi 7088fi 7089AR=$ac_cv_prog_AR 7090if test -n "$AR"; then 7091 { echo "$as_me:$LINENO: result: $AR" >&5 7092echo "${ECHO_T}$AR" >&6; } 7093else 7094 { echo "$as_me:$LINENO: result: no" >&5 7095echo "${ECHO_T}no" >&6; } 7096fi 7097 7098 7099fi 7100if test -z "$ac_cv_prog_AR"; then 7101 ac_ct_AR=$AR 7102 # Extract the first word of "ar", so it can be a program name with args. 7103set dummy ar; ac_word=$2 7104{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7107 echo $ECHO_N "(cached) $ECHO_C" >&6 7108else 7109 if test -n "$ac_ct_AR"; then 7110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7111else 7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7113for as_dir in $PATH 7114do 7115 IFS=$as_save_IFS 7116 test -z "$as_dir" && as_dir=. 7117 for ac_exec_ext in '' $ac_executable_extensions; do 7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7119 ac_cv_prog_ac_ct_AR="ar" 7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7121 break 2 7122 fi 7123done 7124done 7125IFS=$as_save_IFS 7126 7127fi 7128fi 7129ac_ct_AR=$ac_cv_prog_ac_ct_AR 7130if test -n "$ac_ct_AR"; then 7131 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7132echo "${ECHO_T}$ac_ct_AR" >&6; } 7133else 7134 { echo "$as_me:$LINENO: result: no" >&5 7135echo "${ECHO_T}no" >&6; } 7136fi 7137 7138 if test "x$ac_ct_AR" = x; then 7139 AR="false" 7140 else 7141 case $cross_compiling:$ac_tool_warned in 7142yes:) 7143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7144whose name does not start with the host triplet. If you think this 7145configuration is useful to you, please write to autoconf@gnu.org." >&5 7146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7147whose name does not start with the host triplet. If you think this 7148configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7149ac_tool_warned=yes ;; 7150esac 7151 AR=$ac_ct_AR 7152 fi 7153else 7154 AR="$ac_cv_prog_AR" 7155fi 7156 7157# Extract the first word of "rm", so it can be a program name with args. 7158set dummy rm; ac_word=$2 7159{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7161if test "${ac_cv_path_RM+set}" = set; then 7162 echo $ECHO_N "(cached) $ECHO_C" >&6 7163else 7164 case $RM in 7165 [\\/]* | ?:[\\/]*) 7166 ac_cv_path_RM="$RM" # Let the user override the test with a path. 7167 ;; 7168 *) 7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170for as_dir in $PATH 7171do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7176 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180done 7181done 7182IFS=$as_save_IFS 7183 7184 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 7185 ;; 7186esac 7187fi 7188RM=$ac_cv_path_RM 7189if test -n "$RM"; then 7190 { echo "$as_me:$LINENO: result: $RM" >&5 7191echo "${ECHO_T}$RM" >&6; } 7192else 7193 { echo "$as_me:$LINENO: result: no" >&5 7194echo "${ECHO_T}no" >&6; } 7195fi 7196 7197 7198# Extract the first word of "sed", so it can be a program name with args. 7199set dummy sed; ac_word=$2 7200{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7202if test "${ac_cv_path_SED+set}" = set; then 7203 echo $ECHO_N "(cached) $ECHO_C" >&6 7204else 7205 case $SED in 7206 [\\/]* | ?:[\\/]*) 7207 ac_cv_path_SED="$SED" # Let the user override the test with a path. 7208 ;; 7209 *) 7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211for as_dir in $PATH 7212do 7213 IFS=$as_save_IFS 7214 test -z "$as_dir" && as_dir=. 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7217 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221done 7222done 7223IFS=$as_save_IFS 7224 7225 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 7226 ;; 7227esac 7228fi 7229SED=$ac_cv_path_SED 7230if test -n "$SED"; then 7231 { echo "$as_me:$LINENO: result: $SED" >&5 7232echo "${ECHO_T}$SED" >&6; } 7233else 7234 { echo "$as_me:$LINENO: result: no" >&5 7235echo "${ECHO_T}no" >&6; } 7236fi 7237 7238 7239# Extract the first word of "tar", so it can be a program name with args. 7240set dummy tar; ac_word=$2 7241{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7243if test "${ac_cv_path_TAR+set}" = set; then 7244 echo $ECHO_N "(cached) $ECHO_C" >&6 7245else 7246 case $TAR in 7247 [\\/]* | ?:[\\/]*) 7248 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 7249 ;; 7250 *) 7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7258 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263done 7264IFS=$as_save_IFS 7265 7266 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 7267 ;; 7268esac 7269fi 7270TAR=$ac_cv_path_TAR 7271if test -n "$TAR"; then 7272 { echo "$as_me:$LINENO: result: $TAR" >&5 7273echo "${ECHO_T}$TAR" >&6; } 7274else 7275 { echo "$as_me:$LINENO: result: no" >&5 7276echo "${ECHO_T}no" >&6; } 7277fi 7278 7279 7280# Extract the first word of "pwd", so it can be a program name with args. 7281set dummy pwd; ac_word=$2 7282{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7284if test "${ac_cv_path_BINPWD+set}" = set; then 7285 echo $ECHO_N "(cached) $ECHO_C" >&6 7286else 7287 case $BINPWD in 7288 [\\/]* | ?:[\\/]*) 7289 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 7290 ;; 7291 *) 7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7293for as_dir in $PATH 7294do 7295 IFS=$as_save_IFS 7296 test -z "$as_dir" && as_dir=. 7297 for ac_exec_ext in '' $ac_executable_extensions; do 7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7299 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7301 break 2 7302 fi 7303done 7304done 7305IFS=$as_save_IFS 7306 7307 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 7308 ;; 7309esac 7310fi 7311BINPWD=$ac_cv_path_BINPWD 7312if test -n "$BINPWD"; then 7313 { echo "$as_me:$LINENO: result: $BINPWD" >&5 7314echo "${ECHO_T}$BINPWD" >&6; } 7315else 7316 { echo "$as_me:$LINENO: result: no" >&5 7317echo "${ECHO_T}no" >&6; } 7318fi 7319 7320 7321 7322# Extract the first word of "Graphviz", so it can be a program name with args. 7323set dummy Graphviz; ac_word=$2 7324{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7326if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 7327 echo $ECHO_N "(cached) $ECHO_C" >&6 7328else 7329 case $GRAPHVIZ in 7330 [\\/]* | ?:[\\/]*) 7331 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 7332 ;; 7333 *) 7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335for as_dir in $PATH 7336do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7341 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345done 7346done 7347IFS=$as_save_IFS 7348 7349 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 7350 ;; 7351esac 7352fi 7353GRAPHVIZ=$ac_cv_path_GRAPHVIZ 7354if test -n "$GRAPHVIZ"; then 7355 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 7356echo "${ECHO_T}$GRAPHVIZ" >&6; } 7357else 7358 { echo "$as_me:$LINENO: result: no" >&5 7359echo "${ECHO_T}no" >&6; } 7360fi 7361 7362 7363if test "$GRAPHVIZ" != "echo Graphviz" ; then 7364 7365cat >>confdefs.h <<\_ACEOF 7366#define HAVE_GRAPHVIZ 1 7367_ACEOF 7368 7369 if test "$llvm_cv_os_type" = "MingW" ; then 7370 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7371 fi 7372 7373cat >>confdefs.h <<_ACEOF 7374#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 7375_ACEOF 7376 7377fi 7378# Extract the first word of "dot", so it can be a program name with args. 7379set dummy dot; ac_word=$2 7380{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7382if test "${ac_cv_path_DOT+set}" = set; then 7383 echo $ECHO_N "(cached) $ECHO_C" >&6 7384else 7385 case $DOT in 7386 [\\/]* | ?:[\\/]*) 7387 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 7388 ;; 7389 *) 7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7391for as_dir in $PATH 7392do 7393 IFS=$as_save_IFS 7394 test -z "$as_dir" && as_dir=. 7395 for ac_exec_ext in '' $ac_executable_extensions; do 7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7397 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7399 break 2 7400 fi 7401done 7402done 7403IFS=$as_save_IFS 7404 7405 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 7406 ;; 7407esac 7408fi 7409DOT=$ac_cv_path_DOT 7410if test -n "$DOT"; then 7411 { echo "$as_me:$LINENO: result: $DOT" >&5 7412echo "${ECHO_T}$DOT" >&6; } 7413else 7414 { echo "$as_me:$LINENO: result: no" >&5 7415echo "${ECHO_T}no" >&6; } 7416fi 7417 7418 7419if test "$DOT" != "echo dot" ; then 7420 7421cat >>confdefs.h <<\_ACEOF 7422#define HAVE_DOT 1 7423_ACEOF 7424 7425 if test "$llvm_cv_os_type" = "MingW" ; then 7426 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7427 fi 7428 7429cat >>confdefs.h <<_ACEOF 7430#define LLVM_PATH_DOT "$DOT${EXEEXT}" 7431_ACEOF 7432 7433fi 7434# Extract the first word of "fdp", so it can be a program name with args. 7435set dummy fdp; ac_word=$2 7436{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7438if test "${ac_cv_path_FDP+set}" = set; then 7439 echo $ECHO_N "(cached) $ECHO_C" >&6 7440else 7441 case $FDP in 7442 [\\/]* | ?:[\\/]*) 7443 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 7444 ;; 7445 *) 7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7447for as_dir in $PATH 7448do 7449 IFS=$as_save_IFS 7450 test -z "$as_dir" && as_dir=. 7451 for ac_exec_ext in '' $ac_executable_extensions; do 7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7453 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7455 break 2 7456 fi 7457done 7458done 7459IFS=$as_save_IFS 7460 7461 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 7462 ;; 7463esac 7464fi 7465FDP=$ac_cv_path_FDP 7466if test -n "$FDP"; then 7467 { echo "$as_me:$LINENO: result: $FDP" >&5 7468echo "${ECHO_T}$FDP" >&6; } 7469else 7470 { echo "$as_me:$LINENO: result: no" >&5 7471echo "${ECHO_T}no" >&6; } 7472fi 7473 7474 7475if test "$FDP" != "echo fdp" ; then 7476 7477cat >>confdefs.h <<\_ACEOF 7478#define HAVE_FDP 1 7479_ACEOF 7480 7481 if test "$llvm_cv_os_type" = "MingW" ; then 7482 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7483 fi 7484 7485cat >>confdefs.h <<_ACEOF 7486#define LLVM_PATH_FDP "$FDP${EXEEXT}" 7487_ACEOF 7488 7489fi 7490# Extract the first word of "neato", so it can be a program name with args. 7491set dummy neato; ac_word=$2 7492{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7494if test "${ac_cv_path_NEATO+set}" = set; then 7495 echo $ECHO_N "(cached) $ECHO_C" >&6 7496else 7497 case $NEATO in 7498 [\\/]* | ?:[\\/]*) 7499 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 7500 ;; 7501 *) 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503for as_dir in $PATH 7504do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7509 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513done 7514done 7515IFS=$as_save_IFS 7516 7517 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 7518 ;; 7519esac 7520fi 7521NEATO=$ac_cv_path_NEATO 7522if test -n "$NEATO"; then 7523 { echo "$as_me:$LINENO: result: $NEATO" >&5 7524echo "${ECHO_T}$NEATO" >&6; } 7525else 7526 { echo "$as_me:$LINENO: result: no" >&5 7527echo "${ECHO_T}no" >&6; } 7528fi 7529 7530 7531if test "$NEATO" != "echo neato" ; then 7532 7533cat >>confdefs.h <<\_ACEOF 7534#define HAVE_NEATO 1 7535_ACEOF 7536 7537 if test "$llvm_cv_os_type" = "MingW" ; then 7538 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7539 fi 7540 7541cat >>confdefs.h <<_ACEOF 7542#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7543_ACEOF 7544 7545fi 7546# Extract the first word of "twopi", so it can be a program name with args. 7547set dummy twopi; ac_word=$2 7548{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7550if test "${ac_cv_path_TWOPI+set}" = set; then 7551 echo $ECHO_N "(cached) $ECHO_C" >&6 7552else 7553 case $TWOPI in 7554 [\\/]* | ?:[\\/]*) 7555 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7556 ;; 7557 *) 7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7565 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570done 7571IFS=$as_save_IFS 7572 7573 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7574 ;; 7575esac 7576fi 7577TWOPI=$ac_cv_path_TWOPI 7578if test -n "$TWOPI"; then 7579 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7580echo "${ECHO_T}$TWOPI" >&6; } 7581else 7582 { echo "$as_me:$LINENO: result: no" >&5 7583echo "${ECHO_T}no" >&6; } 7584fi 7585 7586 7587if test "$TWOPI" != "echo twopi" ; then 7588 7589cat >>confdefs.h <<\_ACEOF 7590#define HAVE_TWOPI 1 7591_ACEOF 7592 7593 if test "$llvm_cv_os_type" = "MingW" ; then 7594 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7595 fi 7596 7597cat >>confdefs.h <<_ACEOF 7598#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7599_ACEOF 7600 7601fi 7602# Extract the first word of "circo", so it can be a program name with args. 7603set dummy circo; ac_word=$2 7604{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7606if test "${ac_cv_path_CIRCO+set}" = set; then 7607 echo $ECHO_N "(cached) $ECHO_C" >&6 7608else 7609 case $CIRCO in 7610 [\\/]* | ?:[\\/]*) 7611 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7612 ;; 7613 *) 7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7615for as_dir in $PATH 7616do 7617 IFS=$as_save_IFS 7618 test -z "$as_dir" && as_dir=. 7619 for ac_exec_ext in '' $ac_executable_extensions; do 7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7621 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7623 break 2 7624 fi 7625done 7626done 7627IFS=$as_save_IFS 7628 7629 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7630 ;; 7631esac 7632fi 7633CIRCO=$ac_cv_path_CIRCO 7634if test -n "$CIRCO"; then 7635 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7636echo "${ECHO_T}$CIRCO" >&6; } 7637else 7638 { echo "$as_me:$LINENO: result: no" >&5 7639echo "${ECHO_T}no" >&6; } 7640fi 7641 7642 7643if test "$CIRCO" != "echo circo" ; then 7644 7645cat >>confdefs.h <<\_ACEOF 7646#define HAVE_CIRCO 1 7647_ACEOF 7648 7649 if test "$llvm_cv_os_type" = "MingW" ; then 7650 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7651 fi 7652 7653cat >>confdefs.h <<_ACEOF 7654#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7655_ACEOF 7656 7657fi 7658for ac_prog in gv gsview32 7659do 7660 # Extract the first word of "$ac_prog", so it can be a program name with args. 7661set dummy $ac_prog; ac_word=$2 7662{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7664if test "${ac_cv_path_GV+set}" = set; then 7665 echo $ECHO_N "(cached) $ECHO_C" >&6 7666else 7667 case $GV in 7668 [\\/]* | ?:[\\/]*) 7669 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7670 ;; 7671 *) 7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7673for as_dir in $PATH 7674do 7675 IFS=$as_save_IFS 7676 test -z "$as_dir" && as_dir=. 7677 for ac_exec_ext in '' $ac_executable_extensions; do 7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7679 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7681 break 2 7682 fi 7683done 7684done 7685IFS=$as_save_IFS 7686 7687 ;; 7688esac 7689fi 7690GV=$ac_cv_path_GV 7691if test -n "$GV"; then 7692 { echo "$as_me:$LINENO: result: $GV" >&5 7693echo "${ECHO_T}$GV" >&6; } 7694else 7695 { echo "$as_me:$LINENO: result: no" >&5 7696echo "${ECHO_T}no" >&6; } 7697fi 7698 7699 7700 test -n "$GV" && break 7701done 7702test -n "$GV" || GV="echo gv" 7703 7704if test "$GV" != "echo gv" ; then 7705 7706cat >>confdefs.h <<\_ACEOF 7707#define HAVE_GV 1 7708_ACEOF 7709 7710 if test "$llvm_cv_os_type" = "MingW" ; then 7711 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7712 fi 7713 7714cat >>confdefs.h <<_ACEOF 7715#define LLVM_PATH_GV "$GV${EXEEXT}" 7716_ACEOF 7717 7718fi 7719# Extract the first word of "dotty", so it can be a program name with args. 7720set dummy dotty; ac_word=$2 7721{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7723if test "${ac_cv_path_DOTTY+set}" = set; then 7724 echo $ECHO_N "(cached) $ECHO_C" >&6 7725else 7726 case $DOTTY in 7727 [\\/]* | ?:[\\/]*) 7728 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7729 ;; 7730 *) 7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7732for as_dir in $PATH 7733do 7734 IFS=$as_save_IFS 7735 test -z "$as_dir" && as_dir=. 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7738 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7740 break 2 7741 fi 7742done 7743done 7744IFS=$as_save_IFS 7745 7746 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7747 ;; 7748esac 7749fi 7750DOTTY=$ac_cv_path_DOTTY 7751if test -n "$DOTTY"; then 7752 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7753echo "${ECHO_T}$DOTTY" >&6; } 7754else 7755 { echo "$as_me:$LINENO: result: no" >&5 7756echo "${ECHO_T}no" >&6; } 7757fi 7758 7759 7760if test "$DOTTY" != "echo dotty" ; then 7761 7762cat >>confdefs.h <<\_ACEOF 7763#define HAVE_DOTTY 1 7764_ACEOF 7765 7766 if test "$llvm_cv_os_type" = "MingW" ; then 7767 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7768 fi 7769 7770cat >>confdefs.h <<_ACEOF 7771#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7772_ACEOF 7773 7774fi 7775 7776 7777# Extract the first word of "perl", so it can be a program name with args. 7778set dummy perl; ac_word=$2 7779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7781if test "${ac_cv_path_PERL+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 case $PERL in 7785 [\\/]* | ?:[\\/]*) 7786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7787 ;; 7788 *) 7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790for as_dir in $PATH 7791do 7792 IFS=$as_save_IFS 7793 test -z "$as_dir" && as_dir=. 7794 for ac_exec_ext in '' $ac_executable_extensions; do 7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7798 break 2 7799 fi 7800done 7801done 7802IFS=$as_save_IFS 7803 7804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 7805 ;; 7806esac 7807fi 7808PERL=$ac_cv_path_PERL 7809if test -n "$PERL"; then 7810 { echo "$as_me:$LINENO: result: $PERL" >&5 7811echo "${ECHO_T}$PERL" >&6; } 7812else 7813 { echo "$as_me:$LINENO: result: no" >&5 7814echo "${ECHO_T}no" >&6; } 7815fi 7816 7817 7818if test "$PERL" != "none"; then 7819 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 7820echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 7821 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 7822 { echo "$as_me:$LINENO: result: yes" >&5 7823echo "${ECHO_T}yes" >&6; } 7824 else 7825 PERL=none 7826 { echo "$as_me:$LINENO: result: not found" >&5 7827echo "${ECHO_T}not found" >&6; } 7828 fi 7829fi 7830 7831 7832if test x"$PERL" = xnone; then 7833 HAVE_PERL=0 7834 7835 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 7836echo "$as_me: error: perl is required but was not found, please install it" >&2;} 7837 { (exit 1); exit 1; }; } 7838else 7839 HAVE_PERL=1 7840 7841fi 7842 7843# Find a good install program. We prefer a C program (faster), 7844# so one script is as good as another. But avoid the broken or 7845# incompatible versions: 7846# SysV /etc/install, /usr/sbin/install 7847# SunOS /usr/etc/install 7848# IRIX /sbin/install 7849# AIX /bin/install 7850# AmigaOS /C/install, which installs bootblocks on floppy discs 7851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7852# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7854# OS/2's system install, which has a completely different semantic 7855# ./install, which can be erroneously created by make from ./install.sh. 7856{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7857echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7858if test -z "$INSTALL"; then 7859if test "${ac_cv_path_install+set}" = set; then 7860 echo $ECHO_N "(cached) $ECHO_C" >&6 7861else 7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7863for as_dir in $PATH 7864do 7865 IFS=$as_save_IFS 7866 test -z "$as_dir" && as_dir=. 7867 # Account for people who put trailing slashes in PATH elements. 7868case $as_dir/ in 7869 ./ | .// | /cC/* | \ 7870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7871 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7872 /usr/ucb/* ) ;; 7873 *) 7874 # OSF1 and SCO ODT 3.0 have their own names for install. 7875 # Don't use installbsd from OSF since it installs stuff as root 7876 # by default. 7877 for ac_prog in ginstall scoinst install; do 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7880 if test $ac_prog = install && 7881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7882 # AIX install. It has an incompatible calling convention. 7883 : 7884 elif test $ac_prog = install && 7885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7886 # program-specific install script used by HP pwplus--don't use. 7887 : 7888 else 7889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7890 break 3 7891 fi 7892 fi 7893 done 7894 done 7895 ;; 7896esac 7897done 7898IFS=$as_save_IFS 7899 7900 7901fi 7902 if test "${ac_cv_path_install+set}" = set; then 7903 INSTALL=$ac_cv_path_install 7904 else 7905 # As a last resort, use the slow shell script. Don't cache a 7906 # value for INSTALL within a source directory, because that will 7907 # break other packages using the cache if that directory is 7908 # removed, or if the value is a relative name. 7909 INSTALL=$ac_install_sh 7910 fi 7911fi 7912{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7913echo "${ECHO_T}$INSTALL" >&6; } 7914 7915# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7916# It thinks the first close brace ends the variable substitution. 7917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7918 7919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7920 7921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7922 7923 7924# Extract the first word of "bzip2", so it can be a program name with args. 7925set dummy bzip2; ac_word=$2 7926{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7928if test "${ac_cv_path_BZIP2+set}" = set; then 7929 echo $ECHO_N "(cached) $ECHO_C" >&6 7930else 7931 case $BZIP2 in 7932 [\\/]* | ?:[\\/]*) 7933 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7934 ;; 7935 *) 7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937for as_dir in $PATH 7938do 7939 IFS=$as_save_IFS 7940 test -z "$as_dir" && as_dir=. 7941 for ac_exec_ext in '' $ac_executable_extensions; do 7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7943 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7945 break 2 7946 fi 7947done 7948done 7949IFS=$as_save_IFS 7950 7951 ;; 7952esac 7953fi 7954BZIP2=$ac_cv_path_BZIP2 7955if test -n "$BZIP2"; then 7956 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7957echo "${ECHO_T}$BZIP2" >&6; } 7958else 7959 { echo "$as_me:$LINENO: result: no" >&5 7960echo "${ECHO_T}no" >&6; } 7961fi 7962 7963 7964# Extract the first word of "doxygen", so it can be a program name with args. 7965set dummy doxygen; ac_word=$2 7966{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7968if test "${ac_cv_path_DOXYGEN+set}" = set; then 7969 echo $ECHO_N "(cached) $ECHO_C" >&6 7970else 7971 case $DOXYGEN in 7972 [\\/]* | ?:[\\/]*) 7973 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7974 ;; 7975 *) 7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7977for as_dir in $PATH 7978do 7979 IFS=$as_save_IFS 7980 test -z "$as_dir" && as_dir=. 7981 for ac_exec_ext in '' $ac_executable_extensions; do 7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7983 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7985 break 2 7986 fi 7987done 7988done 7989IFS=$as_save_IFS 7990 7991 ;; 7992esac 7993fi 7994DOXYGEN=$ac_cv_path_DOXYGEN 7995if test -n "$DOXYGEN"; then 7996 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7997echo "${ECHO_T}$DOXYGEN" >&6; } 7998else 7999 { echo "$as_me:$LINENO: result: no" >&5 8000echo "${ECHO_T}no" >&6; } 8001fi 8002 8003 8004# Extract the first word of "groff", so it can be a program name with args. 8005set dummy groff; ac_word=$2 8006{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8008if test "${ac_cv_path_GROFF+set}" = set; then 8009 echo $ECHO_N "(cached) $ECHO_C" >&6 8010else 8011 case $GROFF in 8012 [\\/]* | ?:[\\/]*) 8013 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 8014 ;; 8015 *) 8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8017for as_dir in $PATH 8018do 8019 IFS=$as_save_IFS 8020 test -z "$as_dir" && as_dir=. 8021 for ac_exec_ext in '' $ac_executable_extensions; do 8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8023 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8025 break 2 8026 fi 8027done 8028done 8029IFS=$as_save_IFS 8030 8031 ;; 8032esac 8033fi 8034GROFF=$ac_cv_path_GROFF 8035if test -n "$GROFF"; then 8036 { echo "$as_me:$LINENO: result: $GROFF" >&5 8037echo "${ECHO_T}$GROFF" >&6; } 8038else 8039 { echo "$as_me:$LINENO: result: no" >&5 8040echo "${ECHO_T}no" >&6; } 8041fi 8042 8043 8044# Extract the first word of "gzip", so it can be a program name with args. 8045set dummy gzip; ac_word=$2 8046{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8048if test "${ac_cv_path_GZIP+set}" = set; then 8049 echo $ECHO_N "(cached) $ECHO_C" >&6 8050else 8051 case $GZIP in 8052 [\\/]* | ?:[\\/]*) 8053 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8054 ;; 8055 *) 8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8057for as_dir in $PATH 8058do 8059 IFS=$as_save_IFS 8060 test -z "$as_dir" && as_dir=. 8061 for ac_exec_ext in '' $ac_executable_extensions; do 8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8063 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8065 break 2 8066 fi 8067done 8068done 8069IFS=$as_save_IFS 8070 8071 ;; 8072esac 8073fi 8074GZIP=$ac_cv_path_GZIP 8075if test -n "$GZIP"; then 8076 { echo "$as_me:$LINENO: result: $GZIP" >&5 8077echo "${ECHO_T}$GZIP" >&6; } 8078else 8079 { echo "$as_me:$LINENO: result: no" >&5 8080echo "${ECHO_T}no" >&6; } 8081fi 8082 8083 8084# Extract the first word of "pod2html", so it can be a program name with args. 8085set dummy pod2html; ac_word=$2 8086{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8088if test "${ac_cv_path_POD2HTML+set}" = set; then 8089 echo $ECHO_N "(cached) $ECHO_C" >&6 8090else 8091 case $POD2HTML in 8092 [\\/]* | ?:[\\/]*) 8093 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 8094 ;; 8095 *) 8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8097for as_dir in $PATH 8098do 8099 IFS=$as_save_IFS 8100 test -z "$as_dir" && as_dir=. 8101 for ac_exec_ext in '' $ac_executable_extensions; do 8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8103 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8105 break 2 8106 fi 8107done 8108done 8109IFS=$as_save_IFS 8110 8111 ;; 8112esac 8113fi 8114POD2HTML=$ac_cv_path_POD2HTML 8115if test -n "$POD2HTML"; then 8116 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 8117echo "${ECHO_T}$POD2HTML" >&6; } 8118else 8119 { echo "$as_me:$LINENO: result: no" >&5 8120echo "${ECHO_T}no" >&6; } 8121fi 8122 8123 8124# Extract the first word of "pod2man", so it can be a program name with args. 8125set dummy pod2man; ac_word=$2 8126{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8128if test "${ac_cv_path_POD2MAN+set}" = set; then 8129 echo $ECHO_N "(cached) $ECHO_C" >&6 8130else 8131 case $POD2MAN in 8132 [\\/]* | ?:[\\/]*) 8133 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 8134 ;; 8135 *) 8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8137for as_dir in $PATH 8138do 8139 IFS=$as_save_IFS 8140 test -z "$as_dir" && as_dir=. 8141 for ac_exec_ext in '' $ac_executable_extensions; do 8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8143 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8145 break 2 8146 fi 8147done 8148done 8149IFS=$as_save_IFS 8150 8151 ;; 8152esac 8153fi 8154POD2MAN=$ac_cv_path_POD2MAN 8155if test -n "$POD2MAN"; then 8156 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 8157echo "${ECHO_T}$POD2MAN" >&6; } 8158else 8159 { echo "$as_me:$LINENO: result: no" >&5 8160echo "${ECHO_T}no" >&6; } 8161fi 8162 8163 8164# Extract the first word of "runtest", so it can be a program name with args. 8165set dummy runtest; ac_word=$2 8166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8168if test "${ac_cv_path_RUNTEST+set}" = set; then 8169 echo $ECHO_N "(cached) $ECHO_C" >&6 8170else 8171 case $RUNTEST in 8172 [\\/]* | ?:[\\/]*) 8173 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 8174 ;; 8175 *) 8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177for as_dir in $PATH 8178do 8179 IFS=$as_save_IFS 8180 test -z "$as_dir" && as_dir=. 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8183 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187done 8188done 8189IFS=$as_save_IFS 8190 8191 ;; 8192esac 8193fi 8194RUNTEST=$ac_cv_path_RUNTEST 8195if test -n "$RUNTEST"; then 8196 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 8197echo "${ECHO_T}$RUNTEST" >&6; } 8198else 8199 { echo "$as_me:$LINENO: result: no" >&5 8200echo "${ECHO_T}no" >&6; } 8201fi 8202 8203 8204 8205no_itcl=true 8206{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 8207echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 8208 8209# Check whether --with-tclinclude was given. 8210if test "${with_tclinclude+set}" = set; then 8211 withval=$with_tclinclude; with_tclinclude=${withval} 8212else 8213 with_tclinclude='' 8214fi 8215 8216if test "${ac_cv_path_tclsh+set}" = set; then 8217 echo $ECHO_N "(cached) $ECHO_C" >&6 8218else 8219 8220if test x"${with_tclinclude}" != x ; then 8221 if test -f ${with_tclinclude}/tclsh ; then 8222 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 8223 elif test -f ${with_tclinclude}/src/tclsh ; then 8224 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 8225 else 8226 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 8227echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 8228 { (exit 1); exit 1; }; } 8229 fi 8230fi 8231fi 8232 8233 8234if test x"${ac_cv_path_tclsh}" = x ; then 8235 { echo "$as_me:$LINENO: result: none" >&5 8236echo "${ECHO_T}none" >&6; } 8237 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 8238do 8239 # Extract the first word of "$ac_prog", so it can be a program name with args. 8240set dummy $ac_prog; ac_word=$2 8241{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8243if test "${ac_cv_path_TCLSH+set}" = set; then 8244 echo $ECHO_N "(cached) $ECHO_C" >&6 8245else 8246 case $TCLSH in 8247 [\\/]* | ?:[\\/]*) 8248 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 8249 ;; 8250 *) 8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8252for as_dir in $PATH 8253do 8254 IFS=$as_save_IFS 8255 test -z "$as_dir" && as_dir=. 8256 for ac_exec_ext in '' $ac_executable_extensions; do 8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8258 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8260 break 2 8261 fi 8262done 8263done 8264IFS=$as_save_IFS 8265 8266 ;; 8267esac 8268fi 8269TCLSH=$ac_cv_path_TCLSH 8270if test -n "$TCLSH"; then 8271 { echo "$as_me:$LINENO: result: $TCLSH" >&5 8272echo "${ECHO_T}$TCLSH" >&6; } 8273else 8274 { echo "$as_me:$LINENO: result: no" >&5 8275echo "${ECHO_T}no" >&6; } 8276fi 8277 8278 8279 test -n "$TCLSH" && break 8280done 8281 8282 if test x"${TCLSH}" = x ; then 8283 ac_cv_path_tclsh=''; 8284 else 8285 ac_cv_path_tclsh="${TCLSH}"; 8286 fi 8287else 8288 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 8289echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 8290 TCLSH="${ac_cv_path_tclsh}" 8291 8292fi 8293 8294# Extract the first word of "zip", so it can be a program name with args. 8295set dummy zip; ac_word=$2 8296{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8298if test "${ac_cv_path_ZIP+set}" = set; then 8299 echo $ECHO_N "(cached) $ECHO_C" >&6 8300else 8301 case $ZIP in 8302 [\\/]* | ?:[\\/]*) 8303 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 8304 ;; 8305 *) 8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307for as_dir in $PATH 8308do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8313 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317done 8318done 8319IFS=$as_save_IFS 8320 8321 ;; 8322esac 8323fi 8324ZIP=$ac_cv_path_ZIP 8325if test -n "$ZIP"; then 8326 { echo "$as_me:$LINENO: result: $ZIP" >&5 8327echo "${ECHO_T}$ZIP" >&6; } 8328else 8329 { echo "$as_me:$LINENO: result: no" >&5 8330echo "${ECHO_T}no" >&6; } 8331fi 8332 8333 8334for ac_prog in ocamlc 8335do 8336 # Extract the first word of "$ac_prog", so it can be a program name with args. 8337set dummy $ac_prog; ac_word=$2 8338{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8340if test "${ac_cv_path_OCAMLC+set}" = set; then 8341 echo $ECHO_N "(cached) $ECHO_C" >&6 8342else 8343 case $OCAMLC in 8344 [\\/]* | ?:[\\/]*) 8345 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 8346 ;; 8347 *) 8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8349for as_dir in $PATH 8350do 8351 IFS=$as_save_IFS 8352 test -z "$as_dir" && as_dir=. 8353 for ac_exec_ext in '' $ac_executable_extensions; do 8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8355 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8357 break 2 8358 fi 8359done 8360done 8361IFS=$as_save_IFS 8362 8363 ;; 8364esac 8365fi 8366OCAMLC=$ac_cv_path_OCAMLC 8367if test -n "$OCAMLC"; then 8368 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 8369echo "${ECHO_T}$OCAMLC" >&6; } 8370else 8371 { echo "$as_me:$LINENO: result: no" >&5 8372echo "${ECHO_T}no" >&6; } 8373fi 8374 8375 8376 test -n "$OCAMLC" && break 8377done 8378 8379for ac_prog in ocamlopt 8380do 8381 # Extract the first word of "$ac_prog", so it can be a program name with args. 8382set dummy $ac_prog; ac_word=$2 8383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8385if test "${ac_cv_path_OCAMLOPT+set}" = set; then 8386 echo $ECHO_N "(cached) $ECHO_C" >&6 8387else 8388 case $OCAMLOPT in 8389 [\\/]* | ?:[\\/]*) 8390 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 8391 ;; 8392 *) 8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8394for as_dir in $PATH 8395do 8396 IFS=$as_save_IFS 8397 test -z "$as_dir" && as_dir=. 8398 for ac_exec_ext in '' $ac_executable_extensions; do 8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8400 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 8401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8402 break 2 8403 fi 8404done 8405done 8406IFS=$as_save_IFS 8407 8408 ;; 8409esac 8410fi 8411OCAMLOPT=$ac_cv_path_OCAMLOPT 8412if test -n "$OCAMLOPT"; then 8413 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 8414echo "${ECHO_T}$OCAMLOPT" >&6; } 8415else 8416 { echo "$as_me:$LINENO: result: no" >&5 8417echo "${ECHO_T}no" >&6; } 8418fi 8419 8420 8421 test -n "$OCAMLOPT" && break 8422done 8423 8424for ac_prog in ocamldep 8425do 8426 # Extract the first word of "$ac_prog", so it can be a program name with args. 8427set dummy $ac_prog; ac_word=$2 8428{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8430if test "${ac_cv_path_OCAMLDEP+set}" = set; then 8431 echo $ECHO_N "(cached) $ECHO_C" >&6 8432else 8433 case $OCAMLDEP in 8434 [\\/]* | ?:[\\/]*) 8435 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 8436 ;; 8437 *) 8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8439for as_dir in $PATH 8440do 8441 IFS=$as_save_IFS 8442 test -z "$as_dir" && as_dir=. 8443 for ac_exec_ext in '' $ac_executable_extensions; do 8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8445 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8447 break 2 8448 fi 8449done 8450done 8451IFS=$as_save_IFS 8452 8453 ;; 8454esac 8455fi 8456OCAMLDEP=$ac_cv_path_OCAMLDEP 8457if test -n "$OCAMLDEP"; then 8458 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 8459echo "${ECHO_T}$OCAMLDEP" >&6; } 8460else 8461 { echo "$as_me:$LINENO: result: no" >&5 8462echo "${ECHO_T}no" >&6; } 8463fi 8464 8465 8466 test -n "$OCAMLDEP" && break 8467done 8468 8469for ac_prog in ocamldoc 8470do 8471 # Extract the first word of "$ac_prog", so it can be a program name with args. 8472set dummy $ac_prog; ac_word=$2 8473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8475if test "${ac_cv_path_OCAMLDOC+set}" = set; then 8476 echo $ECHO_N "(cached) $ECHO_C" >&6 8477else 8478 case $OCAMLDOC in 8479 [\\/]* | ?:[\\/]*) 8480 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 8481 ;; 8482 *) 8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8484for as_dir in $PATH 8485do 8486 IFS=$as_save_IFS 8487 test -z "$as_dir" && as_dir=. 8488 for ac_exec_ext in '' $ac_executable_extensions; do 8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8490 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 8491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8492 break 2 8493 fi 8494done 8495done 8496IFS=$as_save_IFS 8497 8498 ;; 8499esac 8500fi 8501OCAMLDOC=$ac_cv_path_OCAMLDOC 8502if test -n "$OCAMLDOC"; then 8503 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 8504echo "${ECHO_T}$OCAMLDOC" >&6; } 8505else 8506 { echo "$as_me:$LINENO: result: no" >&5 8507echo "${ECHO_T}no" >&6; } 8508fi 8509 8510 8511 test -n "$OCAMLDOC" && break 8512done 8513 8514for ac_prog in gas as 8515do 8516 # Extract the first word of "$ac_prog", so it can be a program name with args. 8517set dummy $ac_prog; ac_word=$2 8518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8520if test "${ac_cv_path_GAS+set}" = set; then 8521 echo $ECHO_N "(cached) $ECHO_C" >&6 8522else 8523 case $GAS in 8524 [\\/]* | ?:[\\/]*) 8525 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 8526 ;; 8527 *) 8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8529for as_dir in $PATH 8530do 8531 IFS=$as_save_IFS 8532 test -z "$as_dir" && as_dir=. 8533 for ac_exec_ext in '' $ac_executable_extensions; do 8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8535 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 8536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8537 break 2 8538 fi 8539done 8540done 8541IFS=$as_save_IFS 8542 8543 ;; 8544esac 8545fi 8546GAS=$ac_cv_path_GAS 8547if test -n "$GAS"; then 8548 { echo "$as_me:$LINENO: result: $GAS" >&5 8549echo "${ECHO_T}$GAS" >&6; } 8550else 8551 { echo "$as_me:$LINENO: result: no" >&5 8552echo "${ECHO_T}no" >&6; } 8553fi 8554 8555 8556 test -n "$GAS" && break 8557done 8558 8559 8560{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 8561echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 8562if test "${llvm_cv_link_use_r+set}" = set; then 8563 echo $ECHO_N "(cached) $ECHO_C" >&6 8564else 8565 ac_ext=c 8566ac_cpp='$CPP $CPPFLAGS' 8567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8569ac_compiler_gnu=$ac_cv_c_compiler_gnu 8570 8571 oldcflags="$CFLAGS" 8572 CFLAGS="$CFLAGS -Wl,-R." 8573 cat >conftest.$ac_ext <<_ACEOF 8574/* confdefs.h. */ 8575_ACEOF 8576cat confdefs.h >>conftest.$ac_ext 8577cat >>conftest.$ac_ext <<_ACEOF 8578/* end confdefs.h. */ 8579 8580int 8581main () 8582{ 8583int main() { return 0; } 8584 ; 8585 return 0; 8586} 8587_ACEOF 8588rm -f conftest.$ac_objext conftest$ac_exeext 8589if { (ac_try="$ac_link" 8590case "(($ac_try" in 8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8592 *) ac_try_echo=$ac_try;; 8593esac 8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8595 (eval "$ac_link") 2>conftest.er1 8596 ac_status=$? 8597 grep -v '^ *+' conftest.er1 >conftest.err 8598 rm -f conftest.er1 8599 cat conftest.err >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 (exit $ac_status); } && 8602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8603 { (case "(($ac_try" in 8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8605 *) ac_try_echo=$ac_try;; 8606esac 8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8608 (eval "$ac_try") 2>&5 8609 ac_status=$? 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 (exit $ac_status); }; } && 8612 { ac_try='test -s conftest$ac_exeext' 8613 { (case "(($ac_try" in 8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8615 *) ac_try_echo=$ac_try;; 8616esac 8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8618 (eval "$ac_try") 2>&5 8619 ac_status=$? 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 (exit $ac_status); }; }; then 8622 llvm_cv_link_use_r=yes 8623else 8624 echo "$as_me: failed program was:" >&5 8625sed 's/^/| /' conftest.$ac_ext >&5 8626 8627 llvm_cv_link_use_r=no 8628fi 8629 8630rm -f core conftest.err conftest.$ac_objext \ 8631 conftest$ac_exeext conftest.$ac_ext 8632 CFLAGS="$oldcflags" 8633 ac_ext=c 8634ac_cpp='$CPP $CPPFLAGS' 8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8637ac_compiler_gnu=$ac_cv_c_compiler_gnu 8638 8639 8640fi 8641{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 8642echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 8643if test "$llvm_cv_link_use_r" = yes ; then 8644 8645cat >>confdefs.h <<\_ACEOF 8646#define HAVE_LINK_R 1 8647_ACEOF 8648 8649 fi 8650 8651 8652{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 8653echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 8654if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656else 8657 ac_ext=c 8658ac_cpp='$CPP $CPPFLAGS' 8659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8661ac_compiler_gnu=$ac_cv_c_compiler_gnu 8662 8663 oldcflags="$CFLAGS" 8664 CFLAGS="$CFLAGS -Wl,-export-dynamic" 8665 cat >conftest.$ac_ext <<_ACEOF 8666/* confdefs.h. */ 8667_ACEOF 8668cat confdefs.h >>conftest.$ac_ext 8669cat >>conftest.$ac_ext <<_ACEOF 8670/* end confdefs.h. */ 8671 8672int 8673main () 8674{ 8675int main() { return 0; } 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680rm -f conftest.$ac_objext conftest$ac_exeext 8681if { (ac_try="$ac_link" 8682case "(($ac_try" in 8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8684 *) ac_try_echo=$ac_try;; 8685esac 8686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8687 (eval "$ac_link") 2>conftest.er1 8688 ac_status=$? 8689 grep -v '^ *+' conftest.er1 >conftest.err 8690 rm -f conftest.er1 8691 cat conftest.err >&5 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); } && 8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8695 { (case "(($ac_try" in 8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8697 *) ac_try_echo=$ac_try;; 8698esac 8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8700 (eval "$ac_try") 2>&5 8701 ac_status=$? 8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8703 (exit $ac_status); }; } && 8704 { ac_try='test -s conftest$ac_exeext' 8705 { (case "(($ac_try" in 8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8707 *) ac_try_echo=$ac_try;; 8708esac 8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8710 (eval "$ac_try") 2>&5 8711 ac_status=$? 8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 (exit $ac_status); }; }; then 8714 llvm_cv_link_use_export_dynamic=yes 8715else 8716 echo "$as_me: failed program was:" >&5 8717sed 's/^/| /' conftest.$ac_ext >&5 8718 8719 llvm_cv_link_use_export_dynamic=no 8720fi 8721 8722rm -f core conftest.err conftest.$ac_objext \ 8723 conftest$ac_exeext conftest.$ac_ext 8724 CFLAGS="$oldcflags" 8725 ac_ext=c 8726ac_cpp='$CPP $CPPFLAGS' 8727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8729ac_compiler_gnu=$ac_cv_c_compiler_gnu 8730 8731 8732fi 8733{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8734echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8735if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8736 8737cat >>confdefs.h <<\_ACEOF 8738#define HAVE_LINK_EXPORT_DYNAMIC 1 8739_ACEOF 8740 8741 fi 8742 8743 8744 8745 8746{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8747echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8748if test "${ac_cv_c_const+set}" = set; then 8749 echo $ECHO_N "(cached) $ECHO_C" >&6 8750else 8751 cat >conftest.$ac_ext <<_ACEOF 8752/* confdefs.h. */ 8753_ACEOF 8754cat confdefs.h >>conftest.$ac_ext 8755cat >>conftest.$ac_ext <<_ACEOF 8756/* end confdefs.h. */ 8757 8758int 8759main () 8760{ 8761/* FIXME: Include the comments suggested by Paul. */ 8762#ifndef __cplusplus 8763 /* Ultrix mips cc rejects this. */ 8764 typedef int charset[2]; 8765 const charset x; 8766 /* SunOS 4.1.1 cc rejects this. */ 8767 char const *const *ccp; 8768 char **p; 8769 /* NEC SVR4.0.2 mips cc rejects this. */ 8770 struct point {int x, y;}; 8771 static struct point const zero = {0,0}; 8772 /* AIX XL C 1.02.0.0 rejects this. 8773 It does not let you subtract one const X* pointer from another in 8774 an arm of an if-expression whose if-part is not a constant 8775 expression */ 8776 const char *g = "string"; 8777 ccp = &g + (g ? g-g : 0); 8778 /* HPUX 7.0 cc rejects these. */ 8779 ++ccp; 8780 p = (char**) ccp; 8781 ccp = (char const *const *) p; 8782 { /* SCO 3.2v4 cc rejects this. */ 8783 char *t; 8784 char const *s = 0 ? (char *) 0 : (char const *) 0; 8785 8786 *t++ = 0; 8787 if (s) return 0; 8788 } 8789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8790 int x[] = {25, 17}; 8791 const int *foo = &x[0]; 8792 ++foo; 8793 } 8794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8795 typedef const int *iptr; 8796 iptr p = 0; 8797 ++p; 8798 } 8799 { /* AIX XL C 1.02.0.0 rejects this saying 8800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8801 struct s { int j; const int *ap[3]; }; 8802 struct s *b; b->j = 5; 8803 } 8804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8805 const int foo = 10; 8806 if (!foo) return 0; 8807 } 8808 return !x[0] && !zero.x; 8809#endif 8810 8811 ; 8812 return 0; 8813} 8814_ACEOF 8815rm -f conftest.$ac_objext 8816if { (ac_try="$ac_compile" 8817case "(($ac_try" in 8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8819 *) ac_try_echo=$ac_try;; 8820esac 8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8822 (eval "$ac_compile") 2>conftest.er1 8823 ac_status=$? 8824 grep -v '^ *+' conftest.er1 >conftest.err 8825 rm -f conftest.er1 8826 cat conftest.err >&5 8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8828 (exit $ac_status); } && 8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8830 { (case "(($ac_try" in 8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8832 *) ac_try_echo=$ac_try;; 8833esac 8834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8835 (eval "$ac_try") 2>&5 8836 ac_status=$? 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 (exit $ac_status); }; } && 8839 { ac_try='test -s conftest.$ac_objext' 8840 { (case "(($ac_try" in 8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8842 *) ac_try_echo=$ac_try;; 8843esac 8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8845 (eval "$ac_try") 2>&5 8846 ac_status=$? 8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848 (exit $ac_status); }; }; then 8849 ac_cv_c_const=yes 8850else 8851 echo "$as_me: failed program was:" >&5 8852sed 's/^/| /' conftest.$ac_ext >&5 8853 8854 ac_cv_c_const=no 8855fi 8856 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8860echo "${ECHO_T}$ac_cv_c_const" >&6; } 8861if test $ac_cv_c_const = no; then 8862 8863cat >>confdefs.h <<\_ACEOF 8864#define const 8865_ACEOF 8866 8867fi 8868 8869 8870 8871 8872 8873 8874ac_header_dirent=no 8875for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8876 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8877{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8878echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8880 echo $ECHO_N "(cached) $ECHO_C" >&6 8881else 8882 cat >conftest.$ac_ext <<_ACEOF 8883/* confdefs.h. */ 8884_ACEOF 8885cat confdefs.h >>conftest.$ac_ext 8886cat >>conftest.$ac_ext <<_ACEOF 8887/* end confdefs.h. */ 8888#include <sys/types.h> 8889#include <$ac_hdr> 8890 8891int 8892main () 8893{ 8894if ((DIR *) 0) 8895return 0; 8896 ; 8897 return 0; 8898} 8899_ACEOF 8900rm -f conftest.$ac_objext 8901if { (ac_try="$ac_compile" 8902case "(($ac_try" in 8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *) ac_try_echo=$ac_try;; 8905esac 8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8907 (eval "$ac_compile") 2>conftest.er1 8908 ac_status=$? 8909 grep -v '^ *+' conftest.er1 >conftest.err 8910 rm -f conftest.er1 8911 cat conftest.err >&5 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); } && 8914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8915 { (case "(($ac_try" in 8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8917 *) ac_try_echo=$ac_try;; 8918esac 8919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8920 (eval "$ac_try") 2>&5 8921 ac_status=$? 8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8923 (exit $ac_status); }; } && 8924 { ac_try='test -s conftest.$ac_objext' 8925 { (case "(($ac_try" in 8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8927 *) ac_try_echo=$ac_try;; 8928esac 8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8930 (eval "$ac_try") 2>&5 8931 ac_status=$? 8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 (exit $ac_status); }; }; then 8934 eval "$as_ac_Header=yes" 8935else 8936 echo "$as_me: failed program was:" >&5 8937sed 's/^/| /' conftest.$ac_ext >&5 8938 8939 eval "$as_ac_Header=no" 8940fi 8941 8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8943fi 8944ac_res=`eval echo '${'$as_ac_Header'}'` 8945 { echo "$as_me:$LINENO: result: $ac_res" >&5 8946echo "${ECHO_T}$ac_res" >&6; } 8947if test `eval echo '${'$as_ac_Header'}'` = yes; then 8948 cat >>confdefs.h <<_ACEOF 8949#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8950_ACEOF 8951 8952ac_header_dirent=$ac_hdr; break 8953fi 8954 8955done 8956# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8957if test $ac_header_dirent = dirent.h; then 8958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8959echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8960if test "${ac_cv_search_opendir+set}" = set; then 8961 echo $ECHO_N "(cached) $ECHO_C" >&6 8962else 8963 ac_func_search_save_LIBS=$LIBS 8964cat >conftest.$ac_ext <<_ACEOF 8965/* confdefs.h. */ 8966_ACEOF 8967cat confdefs.h >>conftest.$ac_ext 8968cat >>conftest.$ac_ext <<_ACEOF 8969/* end confdefs.h. */ 8970 8971/* Override any GCC internal prototype to avoid an error. 8972 Use char because int might match the return type of a GCC 8973 builtin and then its argument prototype would still apply. */ 8974#ifdef __cplusplus 8975extern "C" 8976#endif 8977char opendir (); 8978int 8979main () 8980{ 8981return opendir (); 8982 ; 8983 return 0; 8984} 8985_ACEOF 8986for ac_lib in '' dir; do 8987 if test -z "$ac_lib"; then 8988 ac_res="none required" 8989 else 8990 ac_res=-l$ac_lib 8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8992 fi 8993 rm -f conftest.$ac_objext conftest$ac_exeext 8994if { (ac_try="$ac_link" 8995case "(($ac_try" in 8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8997 *) ac_try_echo=$ac_try;; 8998esac 8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9000 (eval "$ac_link") 2>conftest.er1 9001 ac_status=$? 9002 grep -v '^ *+' conftest.er1 >conftest.err 9003 rm -f conftest.er1 9004 cat conftest.err >&5 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); } && 9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9008 { (case "(($ac_try" in 9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9010 *) ac_try_echo=$ac_try;; 9011esac 9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9013 (eval "$ac_try") 2>&5 9014 ac_status=$? 9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 (exit $ac_status); }; } && 9017 { ac_try='test -s conftest$ac_exeext' 9018 { (case "(($ac_try" in 9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9020 *) ac_try_echo=$ac_try;; 9021esac 9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9023 (eval "$ac_try") 2>&5 9024 ac_status=$? 9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9026 (exit $ac_status); }; }; then 9027 ac_cv_search_opendir=$ac_res 9028else 9029 echo "$as_me: failed program was:" >&5 9030sed 's/^/| /' conftest.$ac_ext >&5 9031 9032 9033fi 9034 9035rm -f core conftest.err conftest.$ac_objext \ 9036 conftest$ac_exeext 9037 if test "${ac_cv_search_opendir+set}" = set; then 9038 break 9039fi 9040done 9041if test "${ac_cv_search_opendir+set}" = set; then 9042 : 9043else 9044 ac_cv_search_opendir=no 9045fi 9046rm conftest.$ac_ext 9047LIBS=$ac_func_search_save_LIBS 9048fi 9049{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9050echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9051ac_res=$ac_cv_search_opendir 9052if test "$ac_res" != no; then 9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9054 9055fi 9056 9057else 9058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9059echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9060if test "${ac_cv_search_opendir+set}" = set; then 9061 echo $ECHO_N "(cached) $ECHO_C" >&6 9062else 9063 ac_func_search_save_LIBS=$LIBS 9064cat >conftest.$ac_ext <<_ACEOF 9065/* confdefs.h. */ 9066_ACEOF 9067cat confdefs.h >>conftest.$ac_ext 9068cat >>conftest.$ac_ext <<_ACEOF 9069/* end confdefs.h. */ 9070 9071/* Override any GCC internal prototype to avoid an error. 9072 Use char because int might match the return type of a GCC 9073 builtin and then its argument prototype would still apply. */ 9074#ifdef __cplusplus 9075extern "C" 9076#endif 9077char opendir (); 9078int 9079main () 9080{ 9081return opendir (); 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086for ac_lib in '' x; do 9087 if test -z "$ac_lib"; then 9088 ac_res="none required" 9089 else 9090 ac_res=-l$ac_lib 9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9092 fi 9093 rm -f conftest.$ac_objext conftest$ac_exeext 9094if { (ac_try="$ac_link" 9095case "(($ac_try" in 9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9097 *) ac_try_echo=$ac_try;; 9098esac 9099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9100 (eval "$ac_link") 2>conftest.er1 9101 ac_status=$? 9102 grep -v '^ *+' conftest.er1 >conftest.err 9103 rm -f conftest.er1 9104 cat conftest.err >&5 9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9106 (exit $ac_status); } && 9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9108 { (case "(($ac_try" in 9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9110 *) ac_try_echo=$ac_try;; 9111esac 9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9113 (eval "$ac_try") 2>&5 9114 ac_status=$? 9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 (exit $ac_status); }; } && 9117 { ac_try='test -s conftest$ac_exeext' 9118 { (case "(($ac_try" in 9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9120 *) ac_try_echo=$ac_try;; 9121esac 9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9123 (eval "$ac_try") 2>&5 9124 ac_status=$? 9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9126 (exit $ac_status); }; }; then 9127 ac_cv_search_opendir=$ac_res 9128else 9129 echo "$as_me: failed program was:" >&5 9130sed 's/^/| /' conftest.$ac_ext >&5 9131 9132 9133fi 9134 9135rm -f core conftest.err conftest.$ac_objext \ 9136 conftest$ac_exeext 9137 if test "${ac_cv_search_opendir+set}" = set; then 9138 break 9139fi 9140done 9141if test "${ac_cv_search_opendir+set}" = set; then 9142 : 9143else 9144 ac_cv_search_opendir=no 9145fi 9146rm conftest.$ac_ext 9147LIBS=$ac_func_search_save_LIBS 9148fi 9149{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9150echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9151ac_res=$ac_cv_search_opendir 9152if test "$ac_res" != no; then 9153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9154 9155fi 9156 9157fi 9158 9159 9160for ac_header in dlfcn.h 9161do 9162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9164 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9167 echo $ECHO_N "(cached) $ECHO_C" >&6 9168fi 9169ac_res=`eval echo '${'$as_ac_Header'}'` 9170 { echo "$as_me:$LINENO: result: $ac_res" >&5 9171echo "${ECHO_T}$ac_res" >&6; } 9172else 9173 # Is the header compilable? 9174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9176cat >conftest.$ac_ext <<_ACEOF 9177/* confdefs.h. */ 9178_ACEOF 9179cat confdefs.h >>conftest.$ac_ext 9180cat >>conftest.$ac_ext <<_ACEOF 9181/* end confdefs.h. */ 9182$ac_includes_default 9183#include <$ac_header> 9184_ACEOF 9185rm -f conftest.$ac_objext 9186if { (ac_try="$ac_compile" 9187case "(($ac_try" in 9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9189 *) ac_try_echo=$ac_try;; 9190esac 9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9192 (eval "$ac_compile") 2>conftest.er1 9193 ac_status=$? 9194 grep -v '^ *+' conftest.er1 >conftest.err 9195 rm -f conftest.er1 9196 cat conftest.err >&5 9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 (exit $ac_status); } && 9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9200 { (case "(($ac_try" in 9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9202 *) ac_try_echo=$ac_try;; 9203esac 9204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9205 (eval "$ac_try") 2>&5 9206 ac_status=$? 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 (exit $ac_status); }; } && 9209 { ac_try='test -s conftest.$ac_objext' 9210 { (case "(($ac_try" in 9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9212 *) ac_try_echo=$ac_try;; 9213esac 9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9215 (eval "$ac_try") 2>&5 9216 ac_status=$? 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); }; }; then 9219 ac_header_compiler=yes 9220else 9221 echo "$as_me: failed program was:" >&5 9222sed 's/^/| /' conftest.$ac_ext >&5 9223 9224 ac_header_compiler=no 9225fi 9226 9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9229echo "${ECHO_T}$ac_header_compiler" >&6; } 9230 9231# Is the header present? 9232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9234cat >conftest.$ac_ext <<_ACEOF 9235/* confdefs.h. */ 9236_ACEOF 9237cat confdefs.h >>conftest.$ac_ext 9238cat >>conftest.$ac_ext <<_ACEOF 9239/* end confdefs.h. */ 9240#include <$ac_header> 9241_ACEOF 9242if { (ac_try="$ac_cpp conftest.$ac_ext" 9243case "(($ac_try" in 9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9245 *) ac_try_echo=$ac_try;; 9246esac 9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9249 ac_status=$? 9250 grep -v '^ *+' conftest.er1 >conftest.err 9251 rm -f conftest.er1 9252 cat conftest.err >&5 9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9254 (exit $ac_status); } >/dev/null; then 9255 if test -s conftest.err; then 9256 ac_cpp_err=$ac_c_preproc_warn_flag 9257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9258 else 9259 ac_cpp_err= 9260 fi 9261else 9262 ac_cpp_err=yes 9263fi 9264if test -z "$ac_cpp_err"; then 9265 ac_header_preproc=yes 9266else 9267 echo "$as_me: failed program was:" >&5 9268sed 's/^/| /' conftest.$ac_ext >&5 9269 9270 ac_header_preproc=no 9271fi 9272 9273rm -f conftest.err conftest.$ac_ext 9274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9275echo "${ECHO_T}$ac_header_preproc" >&6; } 9276 9277# So? What about this header? 9278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9279 yes:no: ) 9280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9284 ac_header_preproc=yes 9285 ;; 9286 no:yes:* ) 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9299 ( cat <<\_ASBOX 9300## ----------------------------------- ## 9301## Report this to llvmbugs@cs.uiuc.edu ## 9302## ----------------------------------- ## 9303_ASBOX 9304 ) | sed "s/^/$as_me: WARNING: /" >&2 9305 ;; 9306esac 9307{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9310 echo $ECHO_N "(cached) $ECHO_C" >&6 9311else 9312 eval "$as_ac_Header=\$ac_header_preproc" 9313fi 9314ac_res=`eval echo '${'$as_ac_Header'}'` 9315 { echo "$as_me:$LINENO: result: $ac_res" >&5 9316echo "${ECHO_T}$ac_res" >&6; } 9317 9318fi 9319if test `eval echo '${'$as_ac_Header'}'` = yes; then 9320 cat >>confdefs.h <<_ACEOF 9321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9322_ACEOF 9323 9324fi 9325 9326done 9327 9328# Check whether --enable-ltdl-install was given. 9329if test "${enable_ltdl_install+set}" = set; then 9330 enableval=$enable_ltdl_install; 9331fi 9332 9333 9334 9335 9336if test x"${enable_ltdl_install-no}" != xno; then 9337 INSTALL_LTDL_TRUE= 9338 INSTALL_LTDL_FALSE='#' 9339else 9340 INSTALL_LTDL_TRUE='#' 9341 INSTALL_LTDL_FALSE= 9342fi 9343 9344 9345 9346if test x"${enable_ltdl_convenience-no}" != xno; then 9347 CONVENIENCE_LTDL_TRUE= 9348 CONVENIENCE_LTDL_FALSE='#' 9349else 9350 CONVENIENCE_LTDL_TRUE='#' 9351 CONVENIENCE_LTDL_FALSE= 9352fi 9353 9354 9355{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9356echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9357library_names_spec= 9358libname_spec='lib$name' 9359soname_spec= 9360shrext_cmds=".so" 9361postinstall_cmds= 9362postuninstall_cmds= 9363finish_cmds= 9364finish_eval= 9365shlibpath_var= 9366shlibpath_overrides_runpath=unknown 9367version_type=none 9368dynamic_linker="$host_os ld.so" 9369sys_lib_dlsearch_path_spec="/lib /usr/lib" 9370if test "$GCC" = yes; then 9371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9373 # if the path contains ";" then we assume it to be the separator 9374 # otherwise default to the standard path separator (i.e. ":") - it is 9375 # assumed that no part of a normal pathname contains ";" but that should 9376 # okay in the real world where ";" in dirpaths is itself problematic. 9377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9378 else 9379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9380 fi 9381else 9382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9383fi 9384need_lib_prefix=unknown 9385hardcode_into_libs=no 9386 9387# when you set need_version to no, make sure it does not cause -set_version 9388# flags to be left without arguments 9389need_version=unknown 9390 9391case $host_os in 9392aix3*) 9393 version_type=linux 9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9395 shlibpath_var=LIBPATH 9396 9397 # AIX 3 has no versioning support, so we append a major version to the name. 9398 soname_spec='${libname}${release}${shared_ext}$major' 9399 ;; 9400 9401aix4* | aix5*) 9402 version_type=linux 9403 need_lib_prefix=no 9404 need_version=no 9405 hardcode_into_libs=yes 9406 if test "$host_cpu" = ia64; then 9407 # AIX 5 supports IA64 9408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9409 shlibpath_var=LD_LIBRARY_PATH 9410 else 9411 # With GCC up to 2.95.x, collect2 would create an import file 9412 # for dependence libraries. The import file would start with 9413 # the line `#! .'. This would cause the generated library to 9414 # depend on `.', always an invalid library. This was fixed in 9415 # development snapshots of GCC prior to 3.0. 9416 case $host_os in 9417 aix4 | aix4.[01] | aix4.[01].*) 9418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9419 echo ' yes ' 9420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9421 : 9422 else 9423 can_build_shared=no 9424 fi 9425 ;; 9426 esac 9427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9428 # soname into executable. Probably we can add versioning support to 9429 # collect2, so additional links can be useful in future. 9430 if test "$aix_use_runtimelinking" = yes; then 9431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9432 # instead of lib<name>.a to let people know that these are not 9433 # typical AIX shared libraries. 9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9435 else 9436 # We preserve .a as extension for shared libraries through AIX4.2 9437 # and later when we are not doing run time linking. 9438 library_names_spec='${libname}${release}.a $libname.a' 9439 soname_spec='${libname}${release}${shared_ext}$major' 9440 fi 9441 shlibpath_var=LIBPATH 9442 fi 9443 ;; 9444 9445amigaos*) 9446 library_names_spec='$libname.ixlibrary $libname.a' 9447 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9448 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' 9449 ;; 9450 9451beos*) 9452 library_names_spec='${libname}${shared_ext}' 9453 dynamic_linker="$host_os ld.so" 9454 shlibpath_var=LIBRARY_PATH 9455 ;; 9456 9457bsdi[45]*) 9458 version_type=linux 9459 need_version=no 9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9461 soname_spec='${libname}${release}${shared_ext}$major' 9462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9463 shlibpath_var=LD_LIBRARY_PATH 9464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9466 # the default ld.so.conf also contains /usr/contrib/lib and 9467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9468 # libtool to hard-code these into programs 9469 ;; 9470 9471cygwin* | mingw* | pw32*) 9472 version_type=windows 9473 shrext_cmds=".dll" 9474 need_version=no 9475 need_lib_prefix=no 9476 9477 case $GCC,$host_os in 9478 yes,cygwin* | yes,mingw* | yes,pw32*) 9479 library_names_spec='$libname.dll.a' 9480 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9481 postinstall_cmds='base_file=`basename \${file}`~ 9482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9483 dldir=$destdir/`dirname \$dlpath`~ 9484 test -d \$dldir || mkdir -p \$dldir~ 9485 $install_prog $dir/$dlname \$dldir/$dlname~ 9486 chmod a+x \$dldir/$dlname' 9487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9488 dlpath=$dir/\$dldll~ 9489 $rm \$dlpath' 9490 shlibpath_overrides_runpath=yes 9491 9492 case $host_os in 9493 cygwin*) 9494 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9496 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9497 ;; 9498 mingw*) 9499 # MinGW DLLs use traditional 'lib' prefix 9500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9502 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9503 # It is most probably a Windows format PATH printed by 9504 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9505 # path with ; separators, and with drive letters. We can handle the 9506 # drive letters (cygwin fileutils understands them), so leave them, 9507 # especially as we might pass files found there to a mingw objdump, 9508 # which wouldn't understand a cygwinified path. Ahh. 9509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9510 else 9511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9512 fi 9513 ;; 9514 pw32*) 9515 # pw32 DLLs use 'pw' prefix rather than 'lib' 9516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9517 ;; 9518 esac 9519 ;; 9520 9521 *) 9522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9523 ;; 9524 esac 9525 dynamic_linker='Win32 ld.exe' 9526 # FIXME: first we should search . and the directory the executable is in 9527 shlibpath_var=PATH 9528 ;; 9529 9530darwin* | rhapsody*) 9531 dynamic_linker="$host_os dyld" 9532 version_type=darwin 9533 need_lib_prefix=no 9534 need_version=no 9535 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9536 soname_spec='${libname}${release}${major}$shared_ext' 9537 shlibpath_overrides_runpath=yes 9538 shlibpath_var=DYLD_LIBRARY_PATH 9539 shrext_cmds='.dylib' 9540 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9541 if test "$GCC" = yes; then 9542 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"` 9543 else 9544 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9545 fi 9546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9547 ;; 9548 9549dgux*) 9550 version_type=linux 9551 need_lib_prefix=no 9552 need_version=no 9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9554 soname_spec='${libname}${release}${shared_ext}$major' 9555 shlibpath_var=LD_LIBRARY_PATH 9556 ;; 9557 9558freebsd1*) 9559 dynamic_linker=no 9560 ;; 9561 9562kfreebsd*-gnu) 9563 version_type=linux 9564 need_lib_prefix=no 9565 need_version=no 9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9567 soname_spec='${libname}${release}${shared_ext}$major' 9568 shlibpath_var=LD_LIBRARY_PATH 9569 shlibpath_overrides_runpath=no 9570 hardcode_into_libs=yes 9571 dynamic_linker='GNU ld.so' 9572 ;; 9573 9574freebsd* | dragonfly*) 9575 # DragonFly does not have aout. When/if they implement a new 9576 # versioning mechanism, adjust this. 9577 if test -x /usr/bin/objformat; then 9578 objformat=`/usr/bin/objformat` 9579 else 9580 case $host_os in 9581 freebsd[123]*) objformat=aout ;; 9582 *) objformat=elf ;; 9583 esac 9584 fi 9585 version_type=freebsd-$objformat 9586 case $version_type in 9587 freebsd-elf*) 9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9589 need_version=no 9590 need_lib_prefix=no 9591 ;; 9592 freebsd-*) 9593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9594 need_version=yes 9595 ;; 9596 esac 9597 shlibpath_var=LD_LIBRARY_PATH 9598 case $host_os in 9599 freebsd2*) 9600 shlibpath_overrides_runpath=yes 9601 ;; 9602 freebsd3.[01]* | freebsdelf3.[01]*) 9603 shlibpath_overrides_runpath=yes 9604 hardcode_into_libs=yes 9605 ;; 9606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9608 shlibpath_overrides_runpath=no 9609 hardcode_into_libs=yes 9610 ;; 9611 freebsd*) # from 4.6 on 9612 shlibpath_overrides_runpath=yes 9613 hardcode_into_libs=yes 9614 ;; 9615 esac 9616 ;; 9617 9618gnu*) 9619 version_type=linux 9620 need_lib_prefix=no 9621 need_version=no 9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9623 soname_spec='${libname}${release}${shared_ext}$major' 9624 shlibpath_var=LD_LIBRARY_PATH 9625 hardcode_into_libs=yes 9626 ;; 9627 9628hpux9* | hpux10* | hpux11*) 9629 # Give a soname corresponding to the major version so that dld.sl refuses to 9630 # link against other versions. 9631 version_type=sunos 9632 need_lib_prefix=no 9633 need_version=no 9634 case $host_cpu in 9635 ia64*) 9636 shrext_cmds='.so' 9637 hardcode_into_libs=yes 9638 dynamic_linker="$host_os dld.so" 9639 shlibpath_var=LD_LIBRARY_PATH 9640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9642 soname_spec='${libname}${release}${shared_ext}$major' 9643 if test "X$HPUX_IA64_MODE" = X32; then 9644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9645 else 9646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9647 fi 9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9649 ;; 9650 hppa*64*) 9651 shrext_cmds='.sl' 9652 hardcode_into_libs=yes 9653 dynamic_linker="$host_os dld.sl" 9654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9657 soname_spec='${libname}${release}${shared_ext}$major' 9658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9660 ;; 9661 *) 9662 shrext_cmds='.sl' 9663 dynamic_linker="$host_os dld.sl" 9664 shlibpath_var=SHLIB_PATH 9665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9667 soname_spec='${libname}${release}${shared_ext}$major' 9668 ;; 9669 esac 9670 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9671 postinstall_cmds='chmod 555 $lib' 9672 ;; 9673 9674interix3*) 9675 version_type=linux 9676 need_lib_prefix=no 9677 need_version=no 9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9679 soname_spec='${libname}${release}${shared_ext}$major' 9680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9681 shlibpath_var=LD_LIBRARY_PATH 9682 shlibpath_overrides_runpath=no 9683 hardcode_into_libs=yes 9684 ;; 9685 9686irix5* | irix6* | nonstopux*) 9687 case $host_os in 9688 nonstopux*) version_type=nonstopux ;; 9689 *) 9690 if test "$lt_cv_prog_gnu_ld" = yes; then 9691 version_type=linux 9692 else 9693 version_type=irix 9694 fi ;; 9695 esac 9696 need_lib_prefix=no 9697 need_version=no 9698 soname_spec='${libname}${release}${shared_ext}$major' 9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9700 case $host_os in 9701 irix5* | nonstopux*) 9702 libsuff= shlibsuff= 9703 ;; 9704 *) 9705 case $LD in # libtool.m4 will add one of these switches to LD 9706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9707 libsuff= shlibsuff= libmagic=32-bit;; 9708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9709 libsuff=32 shlibsuff=N32 libmagic=N32;; 9710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9711 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9712 *) libsuff= shlibsuff= libmagic=never-match;; 9713 esac 9714 ;; 9715 esac 9716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9717 shlibpath_overrides_runpath=no 9718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9720 hardcode_into_libs=yes 9721 ;; 9722 9723# No shared lib support for Linux oldld, aout, or coff. 9724linux*oldld* | linux*aout* | linux*coff*) 9725 dynamic_linker=no 9726 ;; 9727 9728# This must be Linux ELF. 9729linux*) 9730 version_type=linux 9731 need_lib_prefix=no 9732 need_version=no 9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9734 soname_spec='${libname}${release}${shared_ext}$major' 9735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9736 shlibpath_var=LD_LIBRARY_PATH 9737 shlibpath_overrides_runpath=no 9738 # This implies no fast_install, which is unacceptable. 9739 # Some rework will be needed to allow for fast_install 9740 # before this can be enabled. 9741 hardcode_into_libs=yes 9742 9743 # Append ld.so.conf contents to the search path 9744 if test -f /etc/ld.so.conf; then 9745 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' ' '` 9746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9747 fi 9748 9749 # We used to test for /lib/ld.so.1 and disable shared libraries on 9750 # powerpc, because MkLinux only supported shared libraries with the 9751 # GNU dynamic linker. Since this was broken with cross compilers, 9752 # most powerpc-linux boxes support dynamic linking these days and 9753 # people can always --disable-shared, the test was removed, and we 9754 # assume the GNU/Linux dynamic linker is in use. 9755 dynamic_linker='GNU/Linux ld.so' 9756 ;; 9757 9758knetbsd*-gnu) 9759 version_type=linux 9760 need_lib_prefix=no 9761 need_version=no 9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9763 soname_spec='${libname}${release}${shared_ext}$major' 9764 shlibpath_var=LD_LIBRARY_PATH 9765 shlibpath_overrides_runpath=no 9766 hardcode_into_libs=yes 9767 dynamic_linker='GNU ld.so' 9768 ;; 9769 9770netbsd*) 9771 version_type=sunos 9772 need_lib_prefix=no 9773 need_version=no 9774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9777 dynamic_linker='NetBSD (a.out) ld.so' 9778 else 9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9780 soname_spec='${libname}${release}${shared_ext}$major' 9781 dynamic_linker='NetBSD ld.elf_so' 9782 fi 9783 shlibpath_var=LD_LIBRARY_PATH 9784 shlibpath_overrides_runpath=yes 9785 hardcode_into_libs=yes 9786 ;; 9787 9788newsos6) 9789 version_type=linux 9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9791 shlibpath_var=LD_LIBRARY_PATH 9792 shlibpath_overrides_runpath=yes 9793 ;; 9794 9795nto-qnx*) 9796 version_type=linux 9797 need_lib_prefix=no 9798 need_version=no 9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9800 soname_spec='${libname}${release}${shared_ext}$major' 9801 shlibpath_var=LD_LIBRARY_PATH 9802 shlibpath_overrides_runpath=yes 9803 ;; 9804 9805openbsd*) 9806 version_type=sunos 9807 sys_lib_dlsearch_path_spec="/usr/lib" 9808 need_lib_prefix=no 9809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9810 case $host_os in 9811 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9812 *) need_version=no ;; 9813 esac 9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9816 shlibpath_var=LD_LIBRARY_PATH 9817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9818 case $host_os in 9819 openbsd2.[89] | openbsd2.[89].*) 9820 shlibpath_overrides_runpath=no 9821 ;; 9822 *) 9823 shlibpath_overrides_runpath=yes 9824 ;; 9825 esac 9826 else 9827 shlibpath_overrides_runpath=yes 9828 fi 9829 ;; 9830 9831os2*) 9832 libname_spec='$name' 9833 shrext_cmds=".dll" 9834 need_lib_prefix=no 9835 library_names_spec='$libname${shared_ext} $libname.a' 9836 dynamic_linker='OS/2 ld.exe' 9837 shlibpath_var=LIBPATH 9838 ;; 9839 9840osf3* | osf4* | osf5*) 9841 version_type=osf 9842 need_lib_prefix=no 9843 need_version=no 9844 soname_spec='${libname}${release}${shared_ext}$major' 9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9846 shlibpath_var=LD_LIBRARY_PATH 9847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9849 ;; 9850 9851solaris*) 9852 version_type=linux 9853 need_lib_prefix=no 9854 need_version=no 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 soname_spec='${libname}${release}${shared_ext}$major' 9857 shlibpath_var=LD_LIBRARY_PATH 9858 shlibpath_overrides_runpath=yes 9859 hardcode_into_libs=yes 9860 # ldd complains unless libraries are executable 9861 postinstall_cmds='chmod +x $lib' 9862 ;; 9863 9864sunos4*) 9865 version_type=sunos 9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9868 shlibpath_var=LD_LIBRARY_PATH 9869 shlibpath_overrides_runpath=yes 9870 if test "$with_gnu_ld" = yes; then 9871 need_lib_prefix=no 9872 fi 9873 need_version=yes 9874 ;; 9875 9876sysv4 | sysv4.3*) 9877 version_type=linux 9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9879 soname_spec='${libname}${release}${shared_ext}$major' 9880 shlibpath_var=LD_LIBRARY_PATH 9881 case $host_vendor in 9882 sni) 9883 shlibpath_overrides_runpath=no 9884 need_lib_prefix=no 9885 export_dynamic_flag_spec='${wl}-Blargedynsym' 9886 runpath_var=LD_RUN_PATH 9887 ;; 9888 siemens) 9889 need_lib_prefix=no 9890 ;; 9891 motorola) 9892 need_lib_prefix=no 9893 need_version=no 9894 shlibpath_overrides_runpath=no 9895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9896 ;; 9897 esac 9898 ;; 9899 9900sysv4*MP*) 9901 if test -d /usr/nec ;then 9902 version_type=linux 9903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9904 soname_spec='$libname${shared_ext}.$major' 9905 shlibpath_var=LD_LIBRARY_PATH 9906 fi 9907 ;; 9908 9909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9910 version_type=freebsd-elf 9911 need_lib_prefix=no 9912 need_version=no 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9914 soname_spec='${libname}${release}${shared_ext}$major' 9915 shlibpath_var=LD_LIBRARY_PATH 9916 hardcode_into_libs=yes 9917 if test "$with_gnu_ld" = yes; then 9918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9919 shlibpath_overrides_runpath=no 9920 else 9921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9922 shlibpath_overrides_runpath=yes 9923 case $host_os in 9924 sco3.2v5*) 9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9926 ;; 9927 esac 9928 fi 9929 sys_lib_dlsearch_path_spec='/usr/lib' 9930 ;; 9931 9932uts4*) 9933 version_type=linux 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9935 soname_spec='${libname}${release}${shared_ext}$major' 9936 shlibpath_var=LD_LIBRARY_PATH 9937 ;; 9938 9939*) 9940 dynamic_linker=no 9941 ;; 9942esac 9943{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9944echo "${ECHO_T}$dynamic_linker" >&6; } 9945test "$dynamic_linker" = no && can_build_shared=no 9946 9947variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9948if test "$GCC" = yes; then 9949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9950fi 9951 9952 9953{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9954echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9955if test "${libltdl_cv_shlibext+set}" = set; then 9956 echo $ECHO_N "(cached) $ECHO_C" >&6 9957else 9958 9959module=yes 9960eval libltdl_cv_shlibext=$shrext_cmds 9961 9962fi 9963{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9964echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9965if test -n "$libltdl_cv_shlibext"; then 9966 9967cat >>confdefs.h <<_ACEOF 9968#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9969_ACEOF 9970 9971fi 9972 9973 9974{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9975echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9976if test "${libltdl_cv_shlibpath_var+set}" = set; then 9977 echo $ECHO_N "(cached) $ECHO_C" >&6 9978else 9979 libltdl_cv_shlibpath_var="$shlibpath_var" 9980fi 9981{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9982echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9983if test -n "$libltdl_cv_shlibpath_var"; then 9984 9985cat >>confdefs.h <<_ACEOF 9986#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9987_ACEOF 9988 9989fi 9990 9991 9992{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9993echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9994if test "${libltdl_cv_sys_search_path+set}" = set; then 9995 echo $ECHO_N "(cached) $ECHO_C" >&6 9996else 9997 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9998fi 9999{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 10000echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 10001if test -n "$libltdl_cv_sys_search_path"; then 10002 sys_search_path= 10003 for dir in $libltdl_cv_sys_search_path; do 10004 if test -z "$sys_search_path"; then 10005 sys_search_path="$dir" 10006 else 10007 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 10008 fi 10009 done 10010 10011cat >>confdefs.h <<_ACEOF 10012#define LTDL_SYSSEARCHPATH "$sys_search_path" 10013_ACEOF 10014 10015fi 10016 10017{ echo "$as_me:$LINENO: checking for objdir" >&5 10018echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 10019if test "${libltdl_cv_objdir+set}" = set; then 10020 echo $ECHO_N "(cached) $ECHO_C" >&6 10021else 10022 libltdl_cv_objdir="$objdir" 10023 if test -n "$objdir"; then 10024 : 10025 else 10026 rm -f .libs 2>/dev/null 10027 mkdir .libs 2>/dev/null 10028 if test -d .libs; then 10029 libltdl_cv_objdir=.libs 10030 else 10031 # MS-DOS does not allow filenames that begin with a dot. 10032 libltdl_cv_objdir=_libs 10033 fi 10034 rmdir .libs 2>/dev/null 10035 fi 10036 10037fi 10038{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 10039echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 10040 10041cat >>confdefs.h <<_ACEOF 10042#define LTDL_OBJDIR "$libltdl_cv_objdir/" 10043_ACEOF 10044 10045 10046 10047 10048 10049 10050# Check for command to grab the raw symbol name followed by C symbol from nm. 10051{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 10052echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 10053if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 10054 echo $ECHO_N "(cached) $ECHO_C" >&6 10055else 10056 10057# These are sane defaults that work on at least a few old systems. 10058# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10059 10060# Character class describing NM global symbol codes. 10061symcode='[BCDEGRST]' 10062 10063# Regexp to match symbols that can be accessed directly from C. 10064sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10065 10066# Transform an extracted symbol line into a proper C declaration 10067lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10068 10069# Transform an extracted symbol line into symbol name and symbol address 10070lt_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'" 10071 10072# Define system-specific variables. 10073case $host_os in 10074aix*) 10075 symcode='[BCDT]' 10076 ;; 10077cygwin* | mingw* | pw32*) 10078 symcode='[ABCDGISTW]' 10079 ;; 10080hpux*) # Its linker distinguishes data from code symbols 10081 if test "$host_cpu" = ia64; then 10082 symcode='[ABCDEGRST]' 10083 fi 10084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10085 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'" 10086 ;; 10087linux*) 10088 if test "$host_cpu" = ia64; then 10089 symcode='[ABCDGIRSTW]' 10090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10091 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'" 10092 fi 10093 ;; 10094irix* | nonstopux*) 10095 symcode='[BCDEGRST]' 10096 ;; 10097osf*) 10098 symcode='[BCDEGQRST]' 10099 ;; 10100solaris*) 10101 symcode='[BDRT]' 10102 ;; 10103sco3.2v5*) 10104 symcode='[DT]' 10105 ;; 10106sysv4.2uw2*) 10107 symcode='[DT]' 10108 ;; 10109sysv5* | sco5v6* | unixware* | OpenUNIX*) 10110 symcode='[ABDT]' 10111 ;; 10112sysv4) 10113 symcode='[DFNSTU]' 10114 ;; 10115esac 10116 10117# Handle CRLF in mingw tool chain 10118opt_cr= 10119case $build_os in 10120mingw*) 10121 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10122 ;; 10123esac 10124 10125# If we're using GNU nm, then use its standard symbol codes. 10126case `$NM -V 2>&1` in 10127*GNU* | *'with BFD'*) 10128 symcode='[ABCDGIRSTW]' ;; 10129esac 10130 10131# Try without a prefix undercore, then with it. 10132for ac_symprfx in "" "_"; do 10133 10134 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10135 symxfrm="\\1 $ac_symprfx\\2 \\2" 10136 10137 # Write the raw and C identifiers. 10138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10139 10140 # Check to see that the pipe works correctly. 10141 pipe_works=no 10142 10143 rm -f conftest* 10144 cat > conftest.$ac_ext <<EOF 10145#ifdef __cplusplus 10146extern "C" { 10147#endif 10148char nm_test_var; 10149void nm_test_func(){} 10150#ifdef __cplusplus 10151} 10152#endif 10153int main(){nm_test_var='a';nm_test_func();return(0);} 10154EOF 10155 10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10157 (eval $ac_compile) 2>&5 10158 ac_status=$? 10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10160 (exit $ac_status); }; then 10161 # Now try to grab the symbols. 10162 nlist=conftest.nm 10163 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10164 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10165 ac_status=$? 10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10167 (exit $ac_status); } && test -s "$nlist"; then 10168 # Try sorting and uniquifying the output. 10169 if sort "$nlist" | uniq > "$nlist"T; then 10170 mv -f "$nlist"T "$nlist" 10171 else 10172 rm -f "$nlist"T 10173 fi 10174 10175 # Make sure that we snagged all the symbols we need. 10176 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10177 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10178 cat <<EOF > conftest.$ac_ext 10179#ifdef __cplusplus 10180extern "C" { 10181#endif 10182 10183EOF 10184 # Now generate the symbol file. 10185 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10186 10187 cat <<EOF >> conftest.$ac_ext 10188#if defined (__STDC__) && __STDC__ 10189# define lt_ptr_t void * 10190#else 10191# define lt_ptr_t char * 10192# define const 10193#endif 10194 10195/* The mapping between symbol names and symbols. */ 10196const struct { 10197 const char *name; 10198 lt_ptr_t address; 10199} 10200lt_preloaded_symbols[] = 10201{ 10202EOF 10203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10204 cat <<\EOF >> conftest.$ac_ext 10205 {0, (lt_ptr_t) 0} 10206}; 10207 10208#ifdef __cplusplus 10209} 10210#endif 10211EOF 10212 # Now try linking the two files. 10213 mv conftest.$ac_objext conftstm.$ac_objext 10214 lt_save_LIBS="$LIBS" 10215 lt_save_CFLAGS="$CFLAGS" 10216 LIBS="conftstm.$ac_objext" 10217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10219 (eval $ac_link) 2>&5 10220 ac_status=$? 10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10222 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10223 pipe_works=yes 10224 fi 10225 LIBS="$lt_save_LIBS" 10226 CFLAGS="$lt_save_CFLAGS" 10227 else 10228 echo "cannot find nm_test_func in $nlist" >&5 10229 fi 10230 else 10231 echo "cannot find nm_test_var in $nlist" >&5 10232 fi 10233 else 10234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10235 fi 10236 else 10237 echo "$progname: failed program was:" >&5 10238 cat conftest.$ac_ext >&5 10239 fi 10240 rm -f conftest* conftst* 10241 10242 # Do not use the global_symbol_pipe unless it works. 10243 if test "$pipe_works" = yes; then 10244 break 10245 else 10246 lt_cv_sys_global_symbol_pipe= 10247 fi 10248done 10249 10250fi 10251 10252if test -z "$lt_cv_sys_global_symbol_pipe"; then 10253 lt_cv_sys_global_symbol_to_cdecl= 10254fi 10255if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10256 { echo "$as_me:$LINENO: result: failed" >&5 10257echo "${ECHO_T}failed" >&6; } 10258else 10259 { echo "$as_me:$LINENO: result: ok" >&5 10260echo "${ECHO_T}ok" >&6; } 10261fi 10262 10263 10264{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 10265echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 10266if test "${libltdl_cv_preloaded_symbols+set}" = set; then 10267 echo $ECHO_N "(cached) $ECHO_C" >&6 10268else 10269 if test -n "$lt_cv_sys_global_symbol_pipe"; then 10270 libltdl_cv_preloaded_symbols=yes 10271 else 10272 libltdl_cv_preloaded_symbols=no 10273 fi 10274 10275fi 10276{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 10277echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 10278if test x"$libltdl_cv_preloaded_symbols" = xyes; then 10279 10280cat >>confdefs.h <<\_ACEOF 10281#define HAVE_PRELOADED_SYMBOLS 1 10282_ACEOF 10283 10284fi 10285 10286LIBADD_DL= 10287 10288ac_ext=c 10289ac_cpp='$CPP $CPPFLAGS' 10290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10292ac_compiler_gnu=$ac_cv_c_compiler_gnu 10293 10294 10295{ echo "$as_me:$LINENO: checking for shl_load" >&5 10296echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10297if test "${ac_cv_func_shl_load+set}" = set; then 10298 echo $ECHO_N "(cached) $ECHO_C" >&6 10299else 10300 cat >conftest.$ac_ext <<_ACEOF 10301/* confdefs.h. */ 10302_ACEOF 10303cat confdefs.h >>conftest.$ac_ext 10304cat >>conftest.$ac_ext <<_ACEOF 10305/* end confdefs.h. */ 10306/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10308#define shl_load innocuous_shl_load 10309 10310/* System header to define __stub macros and hopefully few prototypes, 10311 which can conflict with char shl_load (); below. 10312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10313 <limits.h> exists even on freestanding compilers. */ 10314 10315#ifdef __STDC__ 10316# include <limits.h> 10317#else 10318# include <assert.h> 10319#endif 10320 10321#undef shl_load 10322 10323/* Override any GCC internal prototype to avoid an error. 10324 Use char because int might match the return type of a GCC 10325 builtin and then its argument prototype would still apply. */ 10326#ifdef __cplusplus 10327extern "C" 10328#endif 10329char shl_load (); 10330/* The GNU C library defines this for functions which it implements 10331 to always fail with ENOSYS. Some functions are actually named 10332 something starting with __ and the normal name is an alias. */ 10333#if defined __stub_shl_load || defined __stub___shl_load 10334choke me 10335#endif 10336 10337int 10338main () 10339{ 10340return shl_load (); 10341 ; 10342 return 0; 10343} 10344_ACEOF 10345rm -f conftest.$ac_objext conftest$ac_exeext 10346if { (ac_try="$ac_link" 10347case "(($ac_try" in 10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10349 *) ac_try_echo=$ac_try;; 10350esac 10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10352 (eval "$ac_link") 2>conftest.er1 10353 ac_status=$? 10354 grep -v '^ *+' conftest.er1 >conftest.err 10355 rm -f conftest.er1 10356 cat conftest.err >&5 10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10358 (exit $ac_status); } && 10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10360 { (case "(($ac_try" in 10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10362 *) ac_try_echo=$ac_try;; 10363esac 10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10365 (eval "$ac_try") 2>&5 10366 ac_status=$? 10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10368 (exit $ac_status); }; } && 10369 { ac_try='test -s conftest$ac_exeext' 10370 { (case "(($ac_try" in 10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10372 *) ac_try_echo=$ac_try;; 10373esac 10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10375 (eval "$ac_try") 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); }; }; then 10379 ac_cv_func_shl_load=yes 10380else 10381 echo "$as_me: failed program was:" >&5 10382sed 's/^/| /' conftest.$ac_ext >&5 10383 10384 ac_cv_func_shl_load=no 10385fi 10386 10387rm -f core conftest.err conftest.$ac_objext \ 10388 conftest$ac_exeext conftest.$ac_ext 10389fi 10390{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10391echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10392if test $ac_cv_func_shl_load = yes; then 10393 10394cat >>confdefs.h <<\_ACEOF 10395#define HAVE_SHL_LOAD 1 10396_ACEOF 10397 10398else 10399 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10400echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10401if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10402 echo $ECHO_N "(cached) $ECHO_C" >&6 10403else 10404 ac_check_lib_save_LIBS=$LIBS 10405LIBS="-ldld $LIBS" 10406cat >conftest.$ac_ext <<_ACEOF 10407/* confdefs.h. */ 10408_ACEOF 10409cat confdefs.h >>conftest.$ac_ext 10410cat >>conftest.$ac_ext <<_ACEOF 10411/* end confdefs.h. */ 10412 10413/* Override any GCC internal prototype to avoid an error. 10414 Use char because int might match the return type of a GCC 10415 builtin and then its argument prototype would still apply. */ 10416#ifdef __cplusplus 10417extern "C" 10418#endif 10419char shl_load (); 10420int 10421main () 10422{ 10423return shl_load (); 10424 ; 10425 return 0; 10426} 10427_ACEOF 10428rm -f conftest.$ac_objext conftest$ac_exeext 10429if { (ac_try="$ac_link" 10430case "(($ac_try" in 10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10432 *) ac_try_echo=$ac_try;; 10433esac 10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10435 (eval "$ac_link") 2>conftest.er1 10436 ac_status=$? 10437 grep -v '^ *+' conftest.er1 >conftest.err 10438 rm -f conftest.er1 10439 cat conftest.err >&5 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 (exit $ac_status); } && 10442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10443 { (case "(($ac_try" in 10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10445 *) ac_try_echo=$ac_try;; 10446esac 10447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10448 (eval "$ac_try") 2>&5 10449 ac_status=$? 10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10451 (exit $ac_status); }; } && 10452 { ac_try='test -s conftest$ac_exeext' 10453 { (case "(($ac_try" in 10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10455 *) ac_try_echo=$ac_try;; 10456esac 10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10458 (eval "$ac_try") 2>&5 10459 ac_status=$? 10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10461 (exit $ac_status); }; }; then 10462 ac_cv_lib_dld_shl_load=yes 10463else 10464 echo "$as_me: failed program was:" >&5 10465sed 's/^/| /' conftest.$ac_ext >&5 10466 10467 ac_cv_lib_dld_shl_load=no 10468fi 10469 10470rm -f core conftest.err conftest.$ac_objext \ 10471 conftest$ac_exeext conftest.$ac_ext 10472LIBS=$ac_check_lib_save_LIBS 10473fi 10474{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10475echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10476if test $ac_cv_lib_dld_shl_load = yes; then 10477 10478cat >>confdefs.h <<\_ACEOF 10479#define HAVE_SHL_LOAD 1 10480_ACEOF 10481 10482 LIBADD_DL="$LIBADD_DL -ldld" 10483else 10484 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10485echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10486if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10487 echo $ECHO_N "(cached) $ECHO_C" >&6 10488else 10489 ac_check_lib_save_LIBS=$LIBS 10490LIBS="-ldl $LIBS" 10491cat >conftest.$ac_ext <<_ACEOF 10492/* confdefs.h. */ 10493_ACEOF 10494cat confdefs.h >>conftest.$ac_ext 10495cat >>conftest.$ac_ext <<_ACEOF 10496/* end confdefs.h. */ 10497 10498/* Override any GCC internal prototype to avoid an error. 10499 Use char because int might match the return type of a GCC 10500 builtin and then its argument prototype would still apply. */ 10501#ifdef __cplusplus 10502extern "C" 10503#endif 10504char dlopen (); 10505int 10506main () 10507{ 10508return dlopen (); 10509 ; 10510 return 0; 10511} 10512_ACEOF 10513rm -f conftest.$ac_objext conftest$ac_exeext 10514if { (ac_try="$ac_link" 10515case "(($ac_try" in 10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10517 *) ac_try_echo=$ac_try;; 10518esac 10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10520 (eval "$ac_link") 2>conftest.er1 10521 ac_status=$? 10522 grep -v '^ *+' conftest.er1 >conftest.err 10523 rm -f conftest.er1 10524 cat conftest.err >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10526 (exit $ac_status); } && 10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10528 { (case "(($ac_try" in 10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10530 *) ac_try_echo=$ac_try;; 10531esac 10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10533 (eval "$ac_try") 2>&5 10534 ac_status=$? 10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10536 (exit $ac_status); }; } && 10537 { ac_try='test -s conftest$ac_exeext' 10538 { (case "(($ac_try" in 10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10540 *) ac_try_echo=$ac_try;; 10541esac 10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10543 (eval "$ac_try") 2>&5 10544 ac_status=$? 10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10546 (exit $ac_status); }; }; then 10547 ac_cv_lib_dl_dlopen=yes 10548else 10549 echo "$as_me: failed program was:" >&5 10550sed 's/^/| /' conftest.$ac_ext >&5 10551 10552 ac_cv_lib_dl_dlopen=no 10553fi 10554 10555rm -f core conftest.err conftest.$ac_objext \ 10556 conftest$ac_exeext conftest.$ac_ext 10557LIBS=$ac_check_lib_save_LIBS 10558fi 10559{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10561if test $ac_cv_lib_dl_dlopen = yes; then 10562 10563cat >>confdefs.h <<\_ACEOF 10564#define HAVE_LIBDL 1 10565_ACEOF 10566 10567 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 10568else 10569 cat >conftest.$ac_ext <<_ACEOF 10570/* confdefs.h. */ 10571_ACEOF 10572cat confdefs.h >>conftest.$ac_ext 10573cat >>conftest.$ac_ext <<_ACEOF 10574/* end confdefs.h. */ 10575#if HAVE_DLFCN_H 10576# include <dlfcn.h> 10577#endif 10578 10579int 10580main () 10581{ 10582dlopen(0, 0); 10583 ; 10584 return 0; 10585} 10586_ACEOF 10587rm -f conftest.$ac_objext conftest$ac_exeext 10588if { (ac_try="$ac_link" 10589case "(($ac_try" in 10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10591 *) ac_try_echo=$ac_try;; 10592esac 10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10594 (eval "$ac_link") 2>conftest.er1 10595 ac_status=$? 10596 grep -v '^ *+' conftest.er1 >conftest.err 10597 rm -f conftest.er1 10598 cat conftest.err >&5 10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10600 (exit $ac_status); } && 10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10602 { (case "(($ac_try" in 10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10604 *) ac_try_echo=$ac_try;; 10605esac 10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10607 (eval "$ac_try") 2>&5 10608 ac_status=$? 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); }; } && 10611 { ac_try='test -s conftest$ac_exeext' 10612 { (case "(($ac_try" in 10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10614 *) ac_try_echo=$ac_try;; 10615esac 10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10617 (eval "$ac_try") 2>&5 10618 ac_status=$? 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); }; }; then 10621 10622cat >>confdefs.h <<\_ACEOF 10623#define HAVE_LIBDL 1 10624_ACEOF 10625 libltdl_cv_func_dlopen="yes" 10626else 10627 echo "$as_me: failed program was:" >&5 10628sed 's/^/| /' conftest.$ac_ext >&5 10629 10630 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10631echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10632if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10633 echo $ECHO_N "(cached) $ECHO_C" >&6 10634else 10635 ac_check_lib_save_LIBS=$LIBS 10636LIBS="-lsvld $LIBS" 10637cat >conftest.$ac_ext <<_ACEOF 10638/* confdefs.h. */ 10639_ACEOF 10640cat confdefs.h >>conftest.$ac_ext 10641cat >>conftest.$ac_ext <<_ACEOF 10642/* end confdefs.h. */ 10643 10644/* Override any GCC internal prototype to avoid an error. 10645 Use char because int might match the return type of a GCC 10646 builtin and then its argument prototype would still apply. */ 10647#ifdef __cplusplus 10648extern "C" 10649#endif 10650char dlopen (); 10651int 10652main () 10653{ 10654return dlopen (); 10655 ; 10656 return 0; 10657} 10658_ACEOF 10659rm -f conftest.$ac_objext conftest$ac_exeext 10660if { (ac_try="$ac_link" 10661case "(($ac_try" in 10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10663 *) ac_try_echo=$ac_try;; 10664esac 10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10666 (eval "$ac_link") 2>conftest.er1 10667 ac_status=$? 10668 grep -v '^ *+' conftest.er1 >conftest.err 10669 rm -f conftest.er1 10670 cat conftest.err >&5 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 (exit $ac_status); } && 10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10674 { (case "(($ac_try" in 10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10676 *) ac_try_echo=$ac_try;; 10677esac 10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10679 (eval "$ac_try") 2>&5 10680 ac_status=$? 10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 (exit $ac_status); }; } && 10683 { ac_try='test -s conftest$ac_exeext' 10684 { (case "(($ac_try" in 10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10686 *) ac_try_echo=$ac_try;; 10687esac 10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10689 (eval "$ac_try") 2>&5 10690 ac_status=$? 10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10692 (exit $ac_status); }; }; then 10693 ac_cv_lib_svld_dlopen=yes 10694else 10695 echo "$as_me: failed program was:" >&5 10696sed 's/^/| /' conftest.$ac_ext >&5 10697 10698 ac_cv_lib_svld_dlopen=no 10699fi 10700 10701rm -f core conftest.err conftest.$ac_objext \ 10702 conftest$ac_exeext conftest.$ac_ext 10703LIBS=$ac_check_lib_save_LIBS 10704fi 10705{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10706echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10707if test $ac_cv_lib_svld_dlopen = yes; then 10708 10709cat >>confdefs.h <<\_ACEOF 10710#define HAVE_LIBDL 1 10711_ACEOF 10712 10713 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10714else 10715 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10716echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10717if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10718 echo $ECHO_N "(cached) $ECHO_C" >&6 10719else 10720 ac_check_lib_save_LIBS=$LIBS 10721LIBS="-ldld $LIBS" 10722cat >conftest.$ac_ext <<_ACEOF 10723/* confdefs.h. */ 10724_ACEOF 10725cat confdefs.h >>conftest.$ac_ext 10726cat >>conftest.$ac_ext <<_ACEOF 10727/* end confdefs.h. */ 10728 10729/* Override any GCC internal prototype to avoid an error. 10730 Use char because int might match the return type of a GCC 10731 builtin and then its argument prototype would still apply. */ 10732#ifdef __cplusplus 10733extern "C" 10734#endif 10735char dld_link (); 10736int 10737main () 10738{ 10739return dld_link (); 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744rm -f conftest.$ac_objext conftest$ac_exeext 10745if { (ac_try="$ac_link" 10746case "(($ac_try" in 10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10748 *) ac_try_echo=$ac_try;; 10749esac 10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10751 (eval "$ac_link") 2>conftest.er1 10752 ac_status=$? 10753 grep -v '^ *+' conftest.er1 >conftest.err 10754 rm -f conftest.er1 10755 cat conftest.err >&5 10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 (exit $ac_status); } && 10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10759 { (case "(($ac_try" in 10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10761 *) ac_try_echo=$ac_try;; 10762esac 10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10764 (eval "$ac_try") 2>&5 10765 ac_status=$? 10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10767 (exit $ac_status); }; } && 10768 { ac_try='test -s conftest$ac_exeext' 10769 { (case "(($ac_try" in 10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10771 *) ac_try_echo=$ac_try;; 10772esac 10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10774 (eval "$ac_try") 2>&5 10775 ac_status=$? 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); }; }; then 10778 ac_cv_lib_dld_dld_link=yes 10779else 10780 echo "$as_me: failed program was:" >&5 10781sed 's/^/| /' conftest.$ac_ext >&5 10782 10783 ac_cv_lib_dld_dld_link=no 10784fi 10785 10786rm -f core conftest.err conftest.$ac_objext \ 10787 conftest$ac_exeext conftest.$ac_ext 10788LIBS=$ac_check_lib_save_LIBS 10789fi 10790{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10791echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10792if test $ac_cv_lib_dld_dld_link = yes; then 10793 10794cat >>confdefs.h <<\_ACEOF 10795#define HAVE_DLD 1 10796_ACEOF 10797 10798 LIBADD_DL="$LIBADD_DL -ldld" 10799else 10800 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10801echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10802if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10803 echo $ECHO_N "(cached) $ECHO_C" >&6 10804else 10805 cat >conftest.$ac_ext <<_ACEOF 10806/* confdefs.h. */ 10807_ACEOF 10808cat confdefs.h >>conftest.$ac_ext 10809cat >>conftest.$ac_ext <<_ACEOF 10810/* end confdefs.h. */ 10811/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10813#define _dyld_func_lookup innocuous__dyld_func_lookup 10814 10815/* System header to define __stub macros and hopefully few prototypes, 10816 which can conflict with char _dyld_func_lookup (); below. 10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10818 <limits.h> exists even on freestanding compilers. */ 10819 10820#ifdef __STDC__ 10821# include <limits.h> 10822#else 10823# include <assert.h> 10824#endif 10825 10826#undef _dyld_func_lookup 10827 10828/* Override any GCC internal prototype to avoid an error. 10829 Use char because int might match the return type of a GCC 10830 builtin and then its argument prototype would still apply. */ 10831#ifdef __cplusplus 10832extern "C" 10833#endif 10834char _dyld_func_lookup (); 10835/* The GNU C library defines this for functions which it implements 10836 to always fail with ENOSYS. Some functions are actually named 10837 something starting with __ and the normal name is an alias. */ 10838#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10839choke me 10840#endif 10841 10842int 10843main () 10844{ 10845return _dyld_func_lookup (); 10846 ; 10847 return 0; 10848} 10849_ACEOF 10850rm -f conftest.$ac_objext conftest$ac_exeext 10851if { (ac_try="$ac_link" 10852case "(($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_link") 2>conftest.er1 10858 ac_status=$? 10859 grep -v '^ *+' conftest.er1 >conftest.err 10860 rm -f conftest.er1 10861 cat conftest.err >&5 10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 (exit $ac_status); } && 10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10865 { (case "(($ac_try" in 10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10867 *) ac_try_echo=$ac_try;; 10868esac 10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10870 (eval "$ac_try") 2>&5 10871 ac_status=$? 10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10873 (exit $ac_status); }; } && 10874 { ac_try='test -s conftest$ac_exeext' 10875 { (case "(($ac_try" in 10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10877 *) ac_try_echo=$ac_try;; 10878esac 10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10880 (eval "$ac_try") 2>&5 10881 ac_status=$? 10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10883 (exit $ac_status); }; }; then 10884 ac_cv_func__dyld_func_lookup=yes 10885else 10886 echo "$as_me: failed program was:" >&5 10887sed 's/^/| /' conftest.$ac_ext >&5 10888 10889 ac_cv_func__dyld_func_lookup=no 10890fi 10891 10892rm -f core conftest.err conftest.$ac_objext \ 10893 conftest$ac_exeext conftest.$ac_ext 10894fi 10895{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10896echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10897if test $ac_cv_func__dyld_func_lookup = yes; then 10898 10899cat >>confdefs.h <<\_ACEOF 10900#define HAVE_DYLD 1 10901_ACEOF 10902 10903fi 10904 10905 10906fi 10907 10908 10909fi 10910 10911 10912fi 10913 10914rm -f core conftest.err conftest.$ac_objext \ 10915 conftest$ac_exeext conftest.$ac_ext 10916 10917fi 10918 10919 10920fi 10921 10922 10923fi 10924 10925 10926if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10927then 10928 lt_save_LIBS="$LIBS" 10929 LIBS="$LIBS $LIBADD_DL" 10930 10931for ac_func in dlerror 10932do 10933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10934{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10937 echo $ECHO_N "(cached) $ECHO_C" >&6 10938else 10939 cat >conftest.$ac_ext <<_ACEOF 10940/* confdefs.h. */ 10941_ACEOF 10942cat confdefs.h >>conftest.$ac_ext 10943cat >>conftest.$ac_ext <<_ACEOF 10944/* end confdefs.h. */ 10945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10947#define $ac_func innocuous_$ac_func 10948 10949/* System header to define __stub macros and hopefully few prototypes, 10950 which can conflict with char $ac_func (); below. 10951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10952 <limits.h> exists even on freestanding compilers. */ 10953 10954#ifdef __STDC__ 10955# include <limits.h> 10956#else 10957# include <assert.h> 10958#endif 10959 10960#undef $ac_func 10961 10962/* Override any GCC internal prototype to avoid an error. 10963 Use char because int might match the return type of a GCC 10964 builtin and then its argument prototype would still apply. */ 10965#ifdef __cplusplus 10966extern "C" 10967#endif 10968char $ac_func (); 10969/* The GNU C library defines this for functions which it implements 10970 to always fail with ENOSYS. Some functions are actually named 10971 something starting with __ and the normal name is an alias. */ 10972#if defined __stub_$ac_func || defined __stub___$ac_func 10973choke me 10974#endif 10975 10976int 10977main () 10978{ 10979return $ac_func (); 10980 ; 10981 return 0; 10982} 10983_ACEOF 10984rm -f conftest.$ac_objext conftest$ac_exeext 10985if { (ac_try="$ac_link" 10986case "(($ac_try" in 10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10988 *) ac_try_echo=$ac_try;; 10989esac 10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10991 (eval "$ac_link") 2>conftest.er1 10992 ac_status=$? 10993 grep -v '^ *+' conftest.er1 >conftest.err 10994 rm -f conftest.er1 10995 cat conftest.err >&5 10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10997 (exit $ac_status); } && 10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10999 { (case "(($ac_try" in 11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11001 *) ac_try_echo=$ac_try;; 11002esac 11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11004 (eval "$ac_try") 2>&5 11005 ac_status=$? 11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11007 (exit $ac_status); }; } && 11008 { ac_try='test -s conftest$ac_exeext' 11009 { (case "(($ac_try" in 11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11011 *) ac_try_echo=$ac_try;; 11012esac 11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11014 (eval "$ac_try") 2>&5 11015 ac_status=$? 11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 (exit $ac_status); }; }; then 11018 eval "$as_ac_var=yes" 11019else 11020 echo "$as_me: failed program was:" >&5 11021sed 's/^/| /' conftest.$ac_ext >&5 11022 11023 eval "$as_ac_var=no" 11024fi 11025 11026rm -f core conftest.err conftest.$ac_objext \ 11027 conftest$ac_exeext conftest.$ac_ext 11028fi 11029ac_res=`eval echo '${'$as_ac_var'}'` 11030 { echo "$as_me:$LINENO: result: $ac_res" >&5 11031echo "${ECHO_T}$ac_res" >&6; } 11032if test `eval echo '${'$as_ac_var'}'` = yes; then 11033 cat >>confdefs.h <<_ACEOF 11034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11035_ACEOF 11036 11037fi 11038done 11039 11040 LIBS="$lt_save_LIBS" 11041fi 11042ac_ext=c 11043ac_cpp='$CPP $CPPFLAGS' 11044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11046ac_compiler_gnu=$ac_cv_c_compiler_gnu 11047 11048 11049 11050{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 11051echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 11052if test "${ac_cv_sys_symbol_underscore+set}" = set; then 11053 echo $ECHO_N "(cached) $ECHO_C" >&6 11054else 11055 ac_cv_sys_symbol_underscore=no 11056 cat > conftest.$ac_ext <<EOF 11057void nm_test_func(){} 11058int main(){nm_test_func;return 0;} 11059EOF 11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11061 (eval $ac_compile) 2>&5 11062 ac_status=$? 11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11064 (exit $ac_status); }; then 11065 # Now try to grab the symbols. 11066 ac_nlist=conftest.nm 11067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 11068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 11069 ac_status=$? 11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11071 (exit $ac_status); } && test -s "$ac_nlist"; then 11072 # See whether the symbols have a leading underscore. 11073 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 11074 ac_cv_sys_symbol_underscore=yes 11075 else 11076 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 11077 : 11078 else 11079 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 11080 fi 11081 fi 11082 else 11083 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 11084 fi 11085 else 11086 echo "configure: failed program was:" >&5 11087 cat conftest.c >&5 11088 fi 11089 rm -rf conftest* 11090 11091fi 11092{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 11093echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 11094 11095 11096if test x"$ac_cv_sys_symbol_underscore" = xyes; then 11097 if test x"$libltdl_cv_func_dlopen" = xyes || 11098 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 11099 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 11100echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 11101if test "${libltdl_cv_need_uscore+set}" = set; then 11102 echo $ECHO_N "(cached) $ECHO_C" >&6 11103else 11104 libltdl_cv_need_uscore=unknown 11105 save_LIBS="$LIBS" 11106 LIBS="$LIBS $LIBADD_DL" 11107 if test "$cross_compiling" = yes; then : 11108 libltdl_cv_need_uscore=cross 11109else 11110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11111 lt_status=$lt_dlunknown 11112 cat > conftest.$ac_ext <<EOF 11113#line 11108 "configure" 11114#include "confdefs.h" 11115 11116#if HAVE_DLFCN_H 11117#include <dlfcn.h> 11118#endif 11119 11120#include <stdio.h> 11121 11122#ifdef RTLD_GLOBAL 11123# define LT_DLGLOBAL RTLD_GLOBAL 11124#else 11125# ifdef DL_GLOBAL 11126# define LT_DLGLOBAL DL_GLOBAL 11127# else 11128# define LT_DLGLOBAL 0 11129# endif 11130#endif 11131 11132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11133 find out it does not work in some platform. */ 11134#ifndef LT_DLLAZY_OR_NOW 11135# ifdef RTLD_LAZY 11136# define LT_DLLAZY_OR_NOW RTLD_LAZY 11137# else 11138# ifdef DL_LAZY 11139# define LT_DLLAZY_OR_NOW DL_LAZY 11140# else 11141# ifdef RTLD_NOW 11142# define LT_DLLAZY_OR_NOW RTLD_NOW 11143# else 11144# ifdef DL_NOW 11145# define LT_DLLAZY_OR_NOW DL_NOW 11146# else 11147# define LT_DLLAZY_OR_NOW 0 11148# endif 11149# endif 11150# endif 11151# endif 11152#endif 11153 11154#ifdef __cplusplus 11155extern "C" void exit (int); 11156#endif 11157 11158void fnord() { int i=42;} 11159int main () 11160{ 11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11162 int status = $lt_dlunknown; 11163 11164 if (self) 11165 { 11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11168 /* dlclose (self); */ 11169 } 11170 else 11171 puts (dlerror ()); 11172 11173 exit (status); 11174} 11175EOF 11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11177 (eval $ac_link) 2>&5 11178 ac_status=$? 11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11181 (./conftest; exit; ) >&5 2>/dev/null 11182 lt_status=$? 11183 case x$lt_status in 11184 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 11185 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 11186 x$lt_dlunknown|x*) ;; 11187 esac 11188 else : 11189 # compilation failed 11190 11191 fi 11192fi 11193rm -fr conftest* 11194 11195 LIBS="$save_LIBS" 11196 11197fi 11198{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 11199echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 11200 fi 11201fi 11202 11203if test x"$libltdl_cv_need_uscore" = xyes; then 11204 11205cat >>confdefs.h <<\_ACEOF 11206#define NEED_USCORE 1 11207_ACEOF 11208 11209fi 11210 11211 11212{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 11213echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 11214if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 11215 echo $ECHO_N "(cached) $ECHO_C" >&6 11216else 11217 # PORTME does your system automatically load deplibs for dlopen? 11218 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 11219 # For now, we just catch OSes we know something about -- in the 11220 # future, we'll try test this programmatically. 11221 libltdl_cv_sys_dlopen_deplibs=unknown 11222 case "$host_os" in 11223 aix3*|aix4.1.*|aix4.2.*) 11224 # Unknown whether this is true for these versions of AIX, but 11225 # we want this `case' here to explicitly catch those versions. 11226 libltdl_cv_sys_dlopen_deplibs=unknown 11227 ;; 11228 aix[45]*) 11229 libltdl_cv_sys_dlopen_deplibs=yes 11230 ;; 11231 darwin*) 11232 # Assuming the user has installed a libdl from somewhere, this is true 11233 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 11234 libltdl_cv_sys_dlopen_deplibs=yes 11235 ;; 11236 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 11237 # GNU and its variants, using gnu ld.so (Glibc) 11238 libltdl_cv_sys_dlopen_deplibs=yes 11239 ;; 11240 hpux10*|hpux11*) 11241 libltdl_cv_sys_dlopen_deplibs=yes 11242 ;; 11243 interix*) 11244 libltdl_cv_sys_dlopen_deplibs=yes 11245 ;; 11246 irix[12345]*|irix6.[01]*) 11247 # Catch all versions of IRIX before 6.2, and indicate that we don't 11248 # know how it worked for any of those versions. 11249 libltdl_cv_sys_dlopen_deplibs=unknown 11250 ;; 11251 irix*) 11252 # The case above catches anything before 6.2, and it's known that 11253 # at 6.2 and later dlopen does load deplibs. 11254 libltdl_cv_sys_dlopen_deplibs=yes 11255 ;; 11256 netbsd*) 11257 libltdl_cv_sys_dlopen_deplibs=yes 11258 ;; 11259 openbsd*) 11260 libltdl_cv_sys_dlopen_deplibs=yes 11261 ;; 11262 osf[1234]*) 11263 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 11264 # it did *not* use an RPATH in a shared library to find objects the 11265 # library depends on, so we explictly say `no'. 11266 libltdl_cv_sys_dlopen_deplibs=no 11267 ;; 11268 osf5.0|osf5.0a|osf5.1) 11269 # dlopen *does* load deplibs and with the right loader patch applied 11270 # it even uses RPATH in a shared library to search for shared objects 11271 # that the library depends on, but there's no easy way to know if that 11272 # patch is installed. Since this is the case, all we can really 11273 # say is unknown -- it depends on the patch being installed. If 11274 # it is, this changes to `yes'. Without it, it would be `no'. 11275 libltdl_cv_sys_dlopen_deplibs=unknown 11276 ;; 11277 osf*) 11278 # the two cases above should catch all versions of osf <= 5.1. Read 11279 # the comments above for what we know about them. 11280 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 11281 # is used to find them so we can finally say `yes'. 11282 libltdl_cv_sys_dlopen_deplibs=yes 11283 ;; 11284 solaris*) 11285 libltdl_cv_sys_dlopen_deplibs=yes 11286 ;; 11287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11288 libltdl_cv_sys_dlopen_deplibs=yes 11289 ;; 11290 esac 11291 11292fi 11293{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 11294echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 11295if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 11296 11297cat >>confdefs.h <<\_ACEOF 11298#define LTDL_DLOPEN_DEPLIBS 1 11299_ACEOF 11300 11301fi 11302 11303 11304for ac_header in argz.h 11305do 11306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11311 echo $ECHO_N "(cached) $ECHO_C" >&6 11312fi 11313ac_res=`eval echo '${'$as_ac_Header'}'` 11314 { echo "$as_me:$LINENO: result: $ac_res" >&5 11315echo "${ECHO_T}$ac_res" >&6; } 11316else 11317 # Is the header compilable? 11318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11320cat >conftest.$ac_ext <<_ACEOF 11321/* confdefs.h. */ 11322_ACEOF 11323cat confdefs.h >>conftest.$ac_ext 11324cat >>conftest.$ac_ext <<_ACEOF 11325/* end confdefs.h. */ 11326$ac_includes_default 11327#include <$ac_header> 11328_ACEOF 11329rm -f conftest.$ac_objext 11330if { (ac_try="$ac_compile" 11331case "(($ac_try" in 11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11333 *) ac_try_echo=$ac_try;; 11334esac 11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11336 (eval "$ac_compile") 2>conftest.er1 11337 ac_status=$? 11338 grep -v '^ *+' conftest.er1 >conftest.err 11339 rm -f conftest.er1 11340 cat conftest.err >&5 11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11342 (exit $ac_status); } && 11343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11344 { (case "(($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_try") 2>&5 11350 ac_status=$? 11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); }; } && 11353 { ac_try='test -s conftest.$ac_objext' 11354 { (case "(($ac_try" in 11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11356 *) ac_try_echo=$ac_try;; 11357esac 11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11359 (eval "$ac_try") 2>&5 11360 ac_status=$? 11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11362 (exit $ac_status); }; }; then 11363 ac_header_compiler=yes 11364else 11365 echo "$as_me: failed program was:" >&5 11366sed 's/^/| /' conftest.$ac_ext >&5 11367 11368 ac_header_compiler=no 11369fi 11370 11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11373echo "${ECHO_T}$ac_header_compiler" >&6; } 11374 11375# Is the header present? 11376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11378cat >conftest.$ac_ext <<_ACEOF 11379/* confdefs.h. */ 11380_ACEOF 11381cat confdefs.h >>conftest.$ac_ext 11382cat >>conftest.$ac_ext <<_ACEOF 11383/* end confdefs.h. */ 11384#include <$ac_header> 11385_ACEOF 11386if { (ac_try="$ac_cpp conftest.$ac_ext" 11387case "(($ac_try" in 11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11389 *) ac_try_echo=$ac_try;; 11390esac 11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11393 ac_status=$? 11394 grep -v '^ *+' conftest.er1 >conftest.err 11395 rm -f conftest.er1 11396 cat conftest.err >&5 11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11398 (exit $ac_status); } >/dev/null; then 11399 if test -s conftest.err; then 11400 ac_cpp_err=$ac_c_preproc_warn_flag 11401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11402 else 11403 ac_cpp_err= 11404 fi 11405else 11406 ac_cpp_err=yes 11407fi 11408if test -z "$ac_cpp_err"; then 11409 ac_header_preproc=yes 11410else 11411 echo "$as_me: failed program was:" >&5 11412sed 's/^/| /' conftest.$ac_ext >&5 11413 11414 ac_header_preproc=no 11415fi 11416 11417rm -f conftest.err conftest.$ac_ext 11418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11419echo "${ECHO_T}$ac_header_preproc" >&6; } 11420 11421# So? What about this header? 11422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11423 yes:no: ) 11424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11428 ac_header_preproc=yes 11429 ;; 11430 no:yes:* ) 11431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11443 ( cat <<\_ASBOX 11444## ----------------------------------- ## 11445## Report this to llvmbugs@cs.uiuc.edu ## 11446## ----------------------------------- ## 11447_ASBOX 11448 ) | sed "s/^/$as_me: WARNING: /" >&2 11449 ;; 11450esac 11451{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11454 echo $ECHO_N "(cached) $ECHO_C" >&6 11455else 11456 eval "$as_ac_Header=\$ac_header_preproc" 11457fi 11458ac_res=`eval echo '${'$as_ac_Header'}'` 11459 { echo "$as_me:$LINENO: result: $ac_res" >&5 11460echo "${ECHO_T}$ac_res" >&6; } 11461 11462fi 11463if test `eval echo '${'$as_ac_Header'}'` = yes; then 11464 cat >>confdefs.h <<_ACEOF 11465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11466_ACEOF 11467 11468fi 11469 11470done 11471 11472 11473{ echo "$as_me:$LINENO: checking for error_t" >&5 11474echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 11475if test "${ac_cv_type_error_t+set}" = set; then 11476 echo $ECHO_N "(cached) $ECHO_C" >&6 11477else 11478 cat >conftest.$ac_ext <<_ACEOF 11479/* confdefs.h. */ 11480_ACEOF 11481cat confdefs.h >>conftest.$ac_ext 11482cat >>conftest.$ac_ext <<_ACEOF 11483/* end confdefs.h. */ 11484#if HAVE_ARGZ_H 11485# include <argz.h> 11486#endif 11487 11488typedef error_t ac__type_new_; 11489int 11490main () 11491{ 11492if ((ac__type_new_ *) 0) 11493 return 0; 11494if (sizeof (ac__type_new_)) 11495 return 0; 11496 ; 11497 return 0; 11498} 11499_ACEOF 11500rm -f conftest.$ac_objext 11501if { (ac_try="$ac_compile" 11502case "(($ac_try" in 11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11504 *) ac_try_echo=$ac_try;; 11505esac 11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11507 (eval "$ac_compile") 2>conftest.er1 11508 ac_status=$? 11509 grep -v '^ *+' conftest.er1 >conftest.err 11510 rm -f conftest.er1 11511 cat conftest.err >&5 11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11513 (exit $ac_status); } && 11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11515 { (case "(($ac_try" in 11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11517 *) ac_try_echo=$ac_try;; 11518esac 11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11520 (eval "$ac_try") 2>&5 11521 ac_status=$? 11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11523 (exit $ac_status); }; } && 11524 { ac_try='test -s conftest.$ac_objext' 11525 { (case "(($ac_try" in 11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11527 *) ac_try_echo=$ac_try;; 11528esac 11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11530 (eval "$ac_try") 2>&5 11531 ac_status=$? 11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11533 (exit $ac_status); }; }; then 11534 ac_cv_type_error_t=yes 11535else 11536 echo "$as_me: failed program was:" >&5 11537sed 's/^/| /' conftest.$ac_ext >&5 11538 11539 ac_cv_type_error_t=no 11540fi 11541 11542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11543fi 11544{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 11545echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 11546if test $ac_cv_type_error_t = yes; then 11547 11548cat >>confdefs.h <<_ACEOF 11549#define HAVE_ERROR_T 1 11550_ACEOF 11551 11552 11553else 11554 11555cat >>confdefs.h <<\_ACEOF 11556#define error_t int 11557_ACEOF 11558 11559fi 11560 11561 11562 11563 11564 11565 11566 11567for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 11568do 11569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11570{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11573 echo $ECHO_N "(cached) $ECHO_C" >&6 11574else 11575 cat >conftest.$ac_ext <<_ACEOF 11576/* confdefs.h. */ 11577_ACEOF 11578cat confdefs.h >>conftest.$ac_ext 11579cat >>conftest.$ac_ext <<_ACEOF 11580/* end confdefs.h. */ 11581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11583#define $ac_func innocuous_$ac_func 11584 11585/* System header to define __stub macros and hopefully few prototypes, 11586 which can conflict with char $ac_func (); below. 11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11588 <limits.h> exists even on freestanding compilers. */ 11589 11590#ifdef __STDC__ 11591# include <limits.h> 11592#else 11593# include <assert.h> 11594#endif 11595 11596#undef $ac_func 11597 11598/* Override any GCC internal prototype to avoid an error. 11599 Use char because int might match the return type of a GCC 11600 builtin and then its argument prototype would still apply. */ 11601#ifdef __cplusplus 11602extern "C" 11603#endif 11604char $ac_func (); 11605/* The GNU C library defines this for functions which it implements 11606 to always fail with ENOSYS. Some functions are actually named 11607 something starting with __ and the normal name is an alias. */ 11608#if defined __stub_$ac_func || defined __stub___$ac_func 11609choke me 11610#endif 11611 11612int 11613main () 11614{ 11615return $ac_func (); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620rm -f conftest.$ac_objext conftest$ac_exeext 11621if { (ac_try="$ac_link" 11622case "(($ac_try" in 11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11624 *) ac_try_echo=$ac_try;; 11625esac 11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11627 (eval "$ac_link") 2>conftest.er1 11628 ac_status=$? 11629 grep -v '^ *+' conftest.er1 >conftest.err 11630 rm -f conftest.er1 11631 cat conftest.err >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11633 (exit $ac_status); } && 11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11635 { (case "(($ac_try" in 11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11637 *) ac_try_echo=$ac_try;; 11638esac 11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11640 (eval "$ac_try") 2>&5 11641 ac_status=$? 11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11643 (exit $ac_status); }; } && 11644 { ac_try='test -s conftest$ac_exeext' 11645 { (case "(($ac_try" in 11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11647 *) ac_try_echo=$ac_try;; 11648esac 11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11650 (eval "$ac_try") 2>&5 11651 ac_status=$? 11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11653 (exit $ac_status); }; }; then 11654 eval "$as_ac_var=yes" 11655else 11656 echo "$as_me: failed program was:" >&5 11657sed 's/^/| /' conftest.$ac_ext >&5 11658 11659 eval "$as_ac_var=no" 11660fi 11661 11662rm -f core conftest.err conftest.$ac_objext \ 11663 conftest$ac_exeext conftest.$ac_ext 11664fi 11665ac_res=`eval echo '${'$as_ac_var'}'` 11666 { echo "$as_me:$LINENO: result: $ac_res" >&5 11667echo "${ECHO_T}$ac_res" >&6; } 11668if test `eval echo '${'$as_ac_var'}'` = yes; then 11669 cat >>confdefs.h <<_ACEOF 11670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11671_ACEOF 11672 11673fi 11674done 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11704 stdio.h unistd.h 11705do 11706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11711 echo $ECHO_N "(cached) $ECHO_C" >&6 11712fi 11713ac_res=`eval echo '${'$as_ac_Header'}'` 11714 { echo "$as_me:$LINENO: result: $ac_res" >&5 11715echo "${ECHO_T}$ac_res" >&6; } 11716else 11717 # Is the header compilable? 11718{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11720cat >conftest.$ac_ext <<_ACEOF 11721/* confdefs.h. */ 11722_ACEOF 11723cat confdefs.h >>conftest.$ac_ext 11724cat >>conftest.$ac_ext <<_ACEOF 11725/* end confdefs.h. */ 11726$ac_includes_default 11727#include <$ac_header> 11728_ACEOF 11729rm -f conftest.$ac_objext 11730if { (ac_try="$ac_compile" 11731case "(($ac_try" in 11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11733 *) ac_try_echo=$ac_try;; 11734esac 11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11736 (eval "$ac_compile") 2>conftest.er1 11737 ac_status=$? 11738 grep -v '^ *+' conftest.er1 >conftest.err 11739 rm -f conftest.er1 11740 cat conftest.err >&5 11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); } && 11743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11744 { (case "(($ac_try" in 11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11746 *) ac_try_echo=$ac_try;; 11747esac 11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11749 (eval "$ac_try") 2>&5 11750 ac_status=$? 11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11752 (exit $ac_status); }; } && 11753 { ac_try='test -s conftest.$ac_objext' 11754 { (case "(($ac_try" in 11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11756 *) ac_try_echo=$ac_try;; 11757esac 11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11759 (eval "$ac_try") 2>&5 11760 ac_status=$? 11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11762 (exit $ac_status); }; }; then 11763 ac_header_compiler=yes 11764else 11765 echo "$as_me: failed program was:" >&5 11766sed 's/^/| /' conftest.$ac_ext >&5 11767 11768 ac_header_compiler=no 11769fi 11770 11771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11773echo "${ECHO_T}$ac_header_compiler" >&6; } 11774 11775# Is the header present? 11776{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11778cat >conftest.$ac_ext <<_ACEOF 11779/* confdefs.h. */ 11780_ACEOF 11781cat confdefs.h >>conftest.$ac_ext 11782cat >>conftest.$ac_ext <<_ACEOF 11783/* end confdefs.h. */ 11784#include <$ac_header> 11785_ACEOF 11786if { (ac_try="$ac_cpp conftest.$ac_ext" 11787case "(($ac_try" in 11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11789 *) ac_try_echo=$ac_try;; 11790esac 11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11793 ac_status=$? 11794 grep -v '^ *+' conftest.er1 >conftest.err 11795 rm -f conftest.er1 11796 cat conftest.err >&5 11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11798 (exit $ac_status); } >/dev/null; then 11799 if test -s conftest.err; then 11800 ac_cpp_err=$ac_c_preproc_warn_flag 11801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11802 else 11803 ac_cpp_err= 11804 fi 11805else 11806 ac_cpp_err=yes 11807fi 11808if test -z "$ac_cpp_err"; then 11809 ac_header_preproc=yes 11810else 11811 echo "$as_me: failed program was:" >&5 11812sed 's/^/| /' conftest.$ac_ext >&5 11813 11814 ac_header_preproc=no 11815fi 11816 11817rm -f conftest.err conftest.$ac_ext 11818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11819echo "${ECHO_T}$ac_header_preproc" >&6; } 11820 11821# So? What about this header? 11822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11823 yes:no: ) 11824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11828 ac_header_preproc=yes 11829 ;; 11830 no:yes:* ) 11831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11843 ( cat <<\_ASBOX 11844## ----------------------------------- ## 11845## Report this to llvmbugs@cs.uiuc.edu ## 11846## ----------------------------------- ## 11847_ASBOX 11848 ) | sed "s/^/$as_me: WARNING: /" >&2 11849 ;; 11850esac 11851{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11854 echo $ECHO_N "(cached) $ECHO_C" >&6 11855else 11856 eval "$as_ac_Header=\$ac_header_preproc" 11857fi 11858ac_res=`eval echo '${'$as_ac_Header'}'` 11859 { echo "$as_me:$LINENO: result: $ac_res" >&5 11860echo "${ECHO_T}$ac_res" >&6; } 11861 11862fi 11863if test `eval echo '${'$as_ac_Header'}'` = yes; then 11864 cat >>confdefs.h <<_ACEOF 11865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11866_ACEOF 11867 11868fi 11869 11870done 11871 11872 11873 11874 11875 11876for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11877do 11878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11883 echo $ECHO_N "(cached) $ECHO_C" >&6 11884fi 11885ac_res=`eval echo '${'$as_ac_Header'}'` 11886 { echo "$as_me:$LINENO: result: $ac_res" >&5 11887echo "${ECHO_T}$ac_res" >&6; } 11888else 11889 # Is the header compilable? 11890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11892cat >conftest.$ac_ext <<_ACEOF 11893/* confdefs.h. */ 11894_ACEOF 11895cat confdefs.h >>conftest.$ac_ext 11896cat >>conftest.$ac_ext <<_ACEOF 11897/* end confdefs.h. */ 11898$ac_includes_default 11899#include <$ac_header> 11900_ACEOF 11901rm -f conftest.$ac_objext 11902if { (ac_try="$ac_compile" 11903case "(($ac_try" in 11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11905 *) ac_try_echo=$ac_try;; 11906esac 11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11908 (eval "$ac_compile") 2>conftest.er1 11909 ac_status=$? 11910 grep -v '^ *+' conftest.er1 >conftest.err 11911 rm -f conftest.er1 11912 cat conftest.err >&5 11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11914 (exit $ac_status); } && 11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11916 { (case "(($ac_try" in 11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11918 *) ac_try_echo=$ac_try;; 11919esac 11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11921 (eval "$ac_try") 2>&5 11922 ac_status=$? 11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11924 (exit $ac_status); }; } && 11925 { ac_try='test -s conftest.$ac_objext' 11926 { (case "(($ac_try" in 11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11928 *) ac_try_echo=$ac_try;; 11929esac 11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11931 (eval "$ac_try") 2>&5 11932 ac_status=$? 11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11934 (exit $ac_status); }; }; then 11935 ac_header_compiler=yes 11936else 11937 echo "$as_me: failed program was:" >&5 11938sed 's/^/| /' conftest.$ac_ext >&5 11939 11940 ac_header_compiler=no 11941fi 11942 11943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11945echo "${ECHO_T}$ac_header_compiler" >&6; } 11946 11947# Is the header present? 11948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11950cat >conftest.$ac_ext <<_ACEOF 11951/* confdefs.h. */ 11952_ACEOF 11953cat confdefs.h >>conftest.$ac_ext 11954cat >>conftest.$ac_ext <<_ACEOF 11955/* end confdefs.h. */ 11956#include <$ac_header> 11957_ACEOF 11958if { (ac_try="$ac_cpp conftest.$ac_ext" 11959case "(($ac_try" in 11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11961 *) ac_try_echo=$ac_try;; 11962esac 11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11965 ac_status=$? 11966 grep -v '^ *+' conftest.er1 >conftest.err 11967 rm -f conftest.er1 11968 cat conftest.err >&5 11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11970 (exit $ac_status); } >/dev/null; then 11971 if test -s conftest.err; then 11972 ac_cpp_err=$ac_c_preproc_warn_flag 11973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11974 else 11975 ac_cpp_err= 11976 fi 11977else 11978 ac_cpp_err=yes 11979fi 11980if test -z "$ac_cpp_err"; then 11981 ac_header_preproc=yes 11982else 11983 echo "$as_me: failed program was:" >&5 11984sed 's/^/| /' conftest.$ac_ext >&5 11985 11986 ac_header_preproc=no 11987fi 11988 11989rm -f conftest.err conftest.$ac_ext 11990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11991echo "${ECHO_T}$ac_header_preproc" >&6; } 11992 11993# So? What about this header? 11994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11995 yes:no: ) 11996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12000 ac_header_preproc=yes 12001 ;; 12002 no:yes:* ) 12003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12015 ( cat <<\_ASBOX 12016## ----------------------------------- ## 12017## Report this to llvmbugs@cs.uiuc.edu ## 12018## ----------------------------------- ## 12019_ASBOX 12020 ) | sed "s/^/$as_me: WARNING: /" >&2 12021 ;; 12022esac 12023{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12026 echo $ECHO_N "(cached) $ECHO_C" >&6 12027else 12028 eval "$as_ac_Header=\$ac_header_preproc" 12029fi 12030ac_res=`eval echo '${'$as_ac_Header'}'` 12031 { echo "$as_me:$LINENO: result: $ac_res" >&5 12032echo "${ECHO_T}$ac_res" >&6; } 12033 12034fi 12035if test `eval echo '${'$as_ac_Header'}'` = yes; then 12036 cat >>confdefs.h <<_ACEOF 12037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12038_ACEOF 12039 12040fi 12041 12042done 12043 12044 12045 12046for ac_header in string.h strings.h 12047do 12048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12050 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12053 echo $ECHO_N "(cached) $ECHO_C" >&6 12054fi 12055ac_res=`eval echo '${'$as_ac_Header'}'` 12056 { echo "$as_me:$LINENO: result: $ac_res" >&5 12057echo "${ECHO_T}$ac_res" >&6; } 12058else 12059 # Is the header compilable? 12060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12062cat >conftest.$ac_ext <<_ACEOF 12063/* confdefs.h. */ 12064_ACEOF 12065cat confdefs.h >>conftest.$ac_ext 12066cat >>conftest.$ac_ext <<_ACEOF 12067/* end confdefs.h. */ 12068$ac_includes_default 12069#include <$ac_header> 12070_ACEOF 12071rm -f conftest.$ac_objext 12072if { (ac_try="$ac_compile" 12073case "(($ac_try" in 12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12075 *) ac_try_echo=$ac_try;; 12076esac 12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12078 (eval "$ac_compile") 2>conftest.er1 12079 ac_status=$? 12080 grep -v '^ *+' conftest.er1 >conftest.err 12081 rm -f conftest.er1 12082 cat conftest.err >&5 12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12084 (exit $ac_status); } && 12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12086 { (case "(($ac_try" in 12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12088 *) ac_try_echo=$ac_try;; 12089esac 12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12091 (eval "$ac_try") 2>&5 12092 ac_status=$? 12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12094 (exit $ac_status); }; } && 12095 { ac_try='test -s conftest.$ac_objext' 12096 { (case "(($ac_try" in 12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12098 *) ac_try_echo=$ac_try;; 12099esac 12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12101 (eval "$ac_try") 2>&5 12102 ac_status=$? 12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12104 (exit $ac_status); }; }; then 12105 ac_header_compiler=yes 12106else 12107 echo "$as_me: failed program was:" >&5 12108sed 's/^/| /' conftest.$ac_ext >&5 12109 12110 ac_header_compiler=no 12111fi 12112 12113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12115echo "${ECHO_T}$ac_header_compiler" >&6; } 12116 12117# Is the header present? 12118{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12120cat >conftest.$ac_ext <<_ACEOF 12121/* confdefs.h. */ 12122_ACEOF 12123cat confdefs.h >>conftest.$ac_ext 12124cat >>conftest.$ac_ext <<_ACEOF 12125/* end confdefs.h. */ 12126#include <$ac_header> 12127_ACEOF 12128if { (ac_try="$ac_cpp conftest.$ac_ext" 12129case "(($ac_try" in 12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12131 *) ac_try_echo=$ac_try;; 12132esac 12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12135 ac_status=$? 12136 grep -v '^ *+' conftest.er1 >conftest.err 12137 rm -f conftest.er1 12138 cat conftest.err >&5 12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12140 (exit $ac_status); } >/dev/null; then 12141 if test -s conftest.err; then 12142 ac_cpp_err=$ac_c_preproc_warn_flag 12143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12144 else 12145 ac_cpp_err= 12146 fi 12147else 12148 ac_cpp_err=yes 12149fi 12150if test -z "$ac_cpp_err"; then 12151 ac_header_preproc=yes 12152else 12153 echo "$as_me: failed program was:" >&5 12154sed 's/^/| /' conftest.$ac_ext >&5 12155 12156 ac_header_preproc=no 12157fi 12158 12159rm -f conftest.err conftest.$ac_ext 12160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12161echo "${ECHO_T}$ac_header_preproc" >&6; } 12162 12163# So? What about this header? 12164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12165 yes:no: ) 12166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12170 ac_header_preproc=yes 12171 ;; 12172 no:yes:* ) 12173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12185 ( cat <<\_ASBOX 12186## ----------------------------------- ## 12187## Report this to llvmbugs@cs.uiuc.edu ## 12188## ----------------------------------- ## 12189_ASBOX 12190 ) | sed "s/^/$as_me: WARNING: /" >&2 12191 ;; 12192esac 12193{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12196 echo $ECHO_N "(cached) $ECHO_C" >&6 12197else 12198 eval "$as_ac_Header=\$ac_header_preproc" 12199fi 12200ac_res=`eval echo '${'$as_ac_Header'}'` 12201 { echo "$as_me:$LINENO: result: $ac_res" >&5 12202echo "${ECHO_T}$ac_res" >&6; } 12203 12204fi 12205if test `eval echo '${'$as_ac_Header'}'` = yes; then 12206 cat >>confdefs.h <<_ACEOF 12207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12208_ACEOF 12209 break 12210fi 12211 12212done 12213 12214 12215 12216 12217for ac_func in strchr index 12218do 12219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12220{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12223 echo $ECHO_N "(cached) $ECHO_C" >&6 12224else 12225 cat >conftest.$ac_ext <<_ACEOF 12226/* confdefs.h. */ 12227_ACEOF 12228cat confdefs.h >>conftest.$ac_ext 12229cat >>conftest.$ac_ext <<_ACEOF 12230/* end confdefs.h. */ 12231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12233#define $ac_func innocuous_$ac_func 12234 12235/* System header to define __stub macros and hopefully few prototypes, 12236 which can conflict with char $ac_func (); below. 12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12238 <limits.h> exists even on freestanding compilers. */ 12239 12240#ifdef __STDC__ 12241# include <limits.h> 12242#else 12243# include <assert.h> 12244#endif 12245 12246#undef $ac_func 12247 12248/* Override any GCC internal prototype to avoid an error. 12249 Use char because int might match the return type of a GCC 12250 builtin and then its argument prototype would still apply. */ 12251#ifdef __cplusplus 12252extern "C" 12253#endif 12254char $ac_func (); 12255/* The GNU C library defines this for functions which it implements 12256 to always fail with ENOSYS. Some functions are actually named 12257 something starting with __ and the normal name is an alias. */ 12258#if defined __stub_$ac_func || defined __stub___$ac_func 12259choke me 12260#endif 12261 12262int 12263main () 12264{ 12265return $ac_func (); 12266 ; 12267 return 0; 12268} 12269_ACEOF 12270rm -f conftest.$ac_objext conftest$ac_exeext 12271if { (ac_try="$ac_link" 12272case "(($ac_try" in 12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12274 *) ac_try_echo=$ac_try;; 12275esac 12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12277 (eval "$ac_link") 2>conftest.er1 12278 ac_status=$? 12279 grep -v '^ *+' conftest.er1 >conftest.err 12280 rm -f conftest.er1 12281 cat conftest.err >&5 12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12283 (exit $ac_status); } && 12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12285 { (case "(($ac_try" in 12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12287 *) ac_try_echo=$ac_try;; 12288esac 12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12290 (eval "$ac_try") 2>&5 12291 ac_status=$? 12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12293 (exit $ac_status); }; } && 12294 { ac_try='test -s conftest$ac_exeext' 12295 { (case "(($ac_try" in 12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12297 *) ac_try_echo=$ac_try;; 12298esac 12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12300 (eval "$ac_try") 2>&5 12301 ac_status=$? 12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12303 (exit $ac_status); }; }; then 12304 eval "$as_ac_var=yes" 12305else 12306 echo "$as_me: failed program was:" >&5 12307sed 's/^/| /' conftest.$ac_ext >&5 12308 12309 eval "$as_ac_var=no" 12310fi 12311 12312rm -f core conftest.err conftest.$ac_objext \ 12313 conftest$ac_exeext conftest.$ac_ext 12314fi 12315ac_res=`eval echo '${'$as_ac_var'}'` 12316 { echo "$as_me:$LINENO: result: $ac_res" >&5 12317echo "${ECHO_T}$ac_res" >&6; } 12318if test `eval echo '${'$as_ac_var'}'` = yes; then 12319 cat >>confdefs.h <<_ACEOF 12320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12321_ACEOF 12322 break 12323fi 12324done 12325 12326 12327 12328for ac_func in strrchr rindex 12329do 12330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12331{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12334 echo $ECHO_N "(cached) $ECHO_C" >&6 12335else 12336 cat >conftest.$ac_ext <<_ACEOF 12337/* confdefs.h. */ 12338_ACEOF 12339cat confdefs.h >>conftest.$ac_ext 12340cat >>conftest.$ac_ext <<_ACEOF 12341/* end confdefs.h. */ 12342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12343 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12344#define $ac_func innocuous_$ac_func 12345 12346/* System header to define __stub macros and hopefully few prototypes, 12347 which can conflict with char $ac_func (); below. 12348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12349 <limits.h> exists even on freestanding compilers. */ 12350 12351#ifdef __STDC__ 12352# include <limits.h> 12353#else 12354# include <assert.h> 12355#endif 12356 12357#undef $ac_func 12358 12359/* Override any GCC internal prototype to avoid an error. 12360 Use char because int might match the return type of a GCC 12361 builtin and then its argument prototype would still apply. */ 12362#ifdef __cplusplus 12363extern "C" 12364#endif 12365char $ac_func (); 12366/* The GNU C library defines this for functions which it implements 12367 to always fail with ENOSYS. Some functions are actually named 12368 something starting with __ and the normal name is an alias. */ 12369#if defined __stub_$ac_func || defined __stub___$ac_func 12370choke me 12371#endif 12372 12373int 12374main () 12375{ 12376return $ac_func (); 12377 ; 12378 return 0; 12379} 12380_ACEOF 12381rm -f conftest.$ac_objext conftest$ac_exeext 12382if { (ac_try="$ac_link" 12383case "(($ac_try" in 12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12385 *) ac_try_echo=$ac_try;; 12386esac 12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12388 (eval "$ac_link") 2>conftest.er1 12389 ac_status=$? 12390 grep -v '^ *+' conftest.er1 >conftest.err 12391 rm -f conftest.er1 12392 cat conftest.err >&5 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); } && 12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12396 { (case "(($ac_try" in 12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12398 *) ac_try_echo=$ac_try;; 12399esac 12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12401 (eval "$ac_try") 2>&5 12402 ac_status=$? 12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12404 (exit $ac_status); }; } && 12405 { ac_try='test -s conftest$ac_exeext' 12406 { (case "(($ac_try" in 12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12408 *) ac_try_echo=$ac_try;; 12409esac 12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12411 (eval "$ac_try") 2>&5 12412 ac_status=$? 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); }; }; then 12415 eval "$as_ac_var=yes" 12416else 12417 echo "$as_me: failed program was:" >&5 12418sed 's/^/| /' conftest.$ac_ext >&5 12419 12420 eval "$as_ac_var=no" 12421fi 12422 12423rm -f core conftest.err conftest.$ac_objext \ 12424 conftest$ac_exeext conftest.$ac_ext 12425fi 12426ac_res=`eval echo '${'$as_ac_var'}'` 12427 { echo "$as_me:$LINENO: result: $ac_res" >&5 12428echo "${ECHO_T}$ac_res" >&6; } 12429if test `eval echo '${'$as_ac_var'}'` = yes; then 12430 cat >>confdefs.h <<_ACEOF 12431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12432_ACEOF 12433 break 12434fi 12435done 12436 12437 12438 12439for ac_func in memcpy bcopy 12440do 12441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12442{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12445 echo $ECHO_N "(cached) $ECHO_C" >&6 12446else 12447 cat >conftest.$ac_ext <<_ACEOF 12448/* confdefs.h. */ 12449_ACEOF 12450cat confdefs.h >>conftest.$ac_ext 12451cat >>conftest.$ac_ext <<_ACEOF 12452/* end confdefs.h. */ 12453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12454 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12455#define $ac_func innocuous_$ac_func 12456 12457/* System header to define __stub macros and hopefully few prototypes, 12458 which can conflict with char $ac_func (); below. 12459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12460 <limits.h> exists even on freestanding compilers. */ 12461 12462#ifdef __STDC__ 12463# include <limits.h> 12464#else 12465# include <assert.h> 12466#endif 12467 12468#undef $ac_func 12469 12470/* Override any GCC internal prototype to avoid an error. 12471 Use char because int might match the return type of a GCC 12472 builtin and then its argument prototype would still apply. */ 12473#ifdef __cplusplus 12474extern "C" 12475#endif 12476char $ac_func (); 12477/* The GNU C library defines this for functions which it implements 12478 to always fail with ENOSYS. Some functions are actually named 12479 something starting with __ and the normal name is an alias. */ 12480#if defined __stub_$ac_func || defined __stub___$ac_func 12481choke me 12482#endif 12483 12484int 12485main () 12486{ 12487return $ac_func (); 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492rm -f conftest.$ac_objext conftest$ac_exeext 12493if { (ac_try="$ac_link" 12494case "(($ac_try" in 12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12496 *) ac_try_echo=$ac_try;; 12497esac 12498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12499 (eval "$ac_link") 2>conftest.er1 12500 ac_status=$? 12501 grep -v '^ *+' conftest.er1 >conftest.err 12502 rm -f conftest.er1 12503 cat conftest.err >&5 12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12505 (exit $ac_status); } && 12506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12507 { (case "(($ac_try" in 12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12509 *) ac_try_echo=$ac_try;; 12510esac 12511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12512 (eval "$ac_try") 2>&5 12513 ac_status=$? 12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12515 (exit $ac_status); }; } && 12516 { ac_try='test -s conftest$ac_exeext' 12517 { (case "(($ac_try" in 12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12519 *) ac_try_echo=$ac_try;; 12520esac 12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12522 (eval "$ac_try") 2>&5 12523 ac_status=$? 12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12525 (exit $ac_status); }; }; then 12526 eval "$as_ac_var=yes" 12527else 12528 echo "$as_me: failed program was:" >&5 12529sed 's/^/| /' conftest.$ac_ext >&5 12530 12531 eval "$as_ac_var=no" 12532fi 12533 12534rm -f core conftest.err conftest.$ac_objext \ 12535 conftest$ac_exeext conftest.$ac_ext 12536fi 12537ac_res=`eval echo '${'$as_ac_var'}'` 12538 { echo "$as_me:$LINENO: result: $ac_res" >&5 12539echo "${ECHO_T}$ac_res" >&6; } 12540if test `eval echo '${'$as_ac_var'}'` = yes; then 12541 cat >>confdefs.h <<_ACEOF 12542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12543_ACEOF 12544 break 12545fi 12546done 12547 12548 12549 12550for ac_func in memmove strcmp 12551do 12552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12553{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12555if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12556 echo $ECHO_N "(cached) $ECHO_C" >&6 12557else 12558 cat >conftest.$ac_ext <<_ACEOF 12559/* confdefs.h. */ 12560_ACEOF 12561cat confdefs.h >>conftest.$ac_ext 12562cat >>conftest.$ac_ext <<_ACEOF 12563/* end confdefs.h. */ 12564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12565 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12566#define $ac_func innocuous_$ac_func 12567 12568/* System header to define __stub macros and hopefully few prototypes, 12569 which can conflict with char $ac_func (); below. 12570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12571 <limits.h> exists even on freestanding compilers. */ 12572 12573#ifdef __STDC__ 12574# include <limits.h> 12575#else 12576# include <assert.h> 12577#endif 12578 12579#undef $ac_func 12580 12581/* Override any GCC internal prototype to avoid an error. 12582 Use char because int might match the return type of a GCC 12583 builtin and then its argument prototype would still apply. */ 12584#ifdef __cplusplus 12585extern "C" 12586#endif 12587char $ac_func (); 12588/* The GNU C library defines this for functions which it implements 12589 to always fail with ENOSYS. Some functions are actually named 12590 something starting with __ and the normal name is an alias. */ 12591#if defined __stub_$ac_func || defined __stub___$ac_func 12592choke me 12593#endif 12594 12595int 12596main () 12597{ 12598return $ac_func (); 12599 ; 12600 return 0; 12601} 12602_ACEOF 12603rm -f conftest.$ac_objext conftest$ac_exeext 12604if { (ac_try="$ac_link" 12605case "(($ac_try" in 12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12607 *) ac_try_echo=$ac_try;; 12608esac 12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12610 (eval "$ac_link") 2>conftest.er1 12611 ac_status=$? 12612 grep -v '^ *+' conftest.er1 >conftest.err 12613 rm -f conftest.er1 12614 cat conftest.err >&5 12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12616 (exit $ac_status); } && 12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12618 { (case "(($ac_try" in 12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12620 *) ac_try_echo=$ac_try;; 12621esac 12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12623 (eval "$ac_try") 2>&5 12624 ac_status=$? 12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12626 (exit $ac_status); }; } && 12627 { ac_try='test -s conftest$ac_exeext' 12628 { (case "(($ac_try" in 12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12630 *) ac_try_echo=$ac_try;; 12631esac 12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12633 (eval "$ac_try") 2>&5 12634 ac_status=$? 12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12636 (exit $ac_status); }; }; then 12637 eval "$as_ac_var=yes" 12638else 12639 echo "$as_me: failed program was:" >&5 12640sed 's/^/| /' conftest.$ac_ext >&5 12641 12642 eval "$as_ac_var=no" 12643fi 12644 12645rm -f core conftest.err conftest.$ac_objext \ 12646 conftest$ac_exeext conftest.$ac_ext 12647fi 12648ac_res=`eval echo '${'$as_ac_var'}'` 12649 { echo "$as_me:$LINENO: result: $ac_res" >&5 12650echo "${ECHO_T}$ac_res" >&6; } 12651if test `eval echo '${'$as_ac_var'}'` = yes; then 12652 cat >>confdefs.h <<_ACEOF 12653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12654_ACEOF 12655 12656fi 12657done 12658 12659 12660 12661 12662for ac_func in closedir opendir readdir 12663do 12664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12665{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12667if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12668 echo $ECHO_N "(cached) $ECHO_C" >&6 12669else 12670 cat >conftest.$ac_ext <<_ACEOF 12671/* confdefs.h. */ 12672_ACEOF 12673cat confdefs.h >>conftest.$ac_ext 12674cat >>conftest.$ac_ext <<_ACEOF 12675/* end confdefs.h. */ 12676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12677 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12678#define $ac_func innocuous_$ac_func 12679 12680/* System header to define __stub macros and hopefully few prototypes, 12681 which can conflict with char $ac_func (); below. 12682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12683 <limits.h> exists even on freestanding compilers. */ 12684 12685#ifdef __STDC__ 12686# include <limits.h> 12687#else 12688# include <assert.h> 12689#endif 12690 12691#undef $ac_func 12692 12693/* Override any GCC internal prototype to avoid an error. 12694 Use char because int might match the return type of a GCC 12695 builtin and then its argument prototype would still apply. */ 12696#ifdef __cplusplus 12697extern "C" 12698#endif 12699char $ac_func (); 12700/* The GNU C library defines this for functions which it implements 12701 to always fail with ENOSYS. Some functions are actually named 12702 something starting with __ and the normal name is an alias. */ 12703#if defined __stub_$ac_func || defined __stub___$ac_func 12704choke me 12705#endif 12706 12707int 12708main () 12709{ 12710return $ac_func (); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715rm -f conftest.$ac_objext conftest$ac_exeext 12716if { (ac_try="$ac_link" 12717case "(($ac_try" in 12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12719 *) ac_try_echo=$ac_try;; 12720esac 12721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12722 (eval "$ac_link") 2>conftest.er1 12723 ac_status=$? 12724 grep -v '^ *+' conftest.er1 >conftest.err 12725 rm -f conftest.er1 12726 cat conftest.err >&5 12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12728 (exit $ac_status); } && 12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12730 { (case "(($ac_try" in 12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12732 *) ac_try_echo=$ac_try;; 12733esac 12734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12735 (eval "$ac_try") 2>&5 12736 ac_status=$? 12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12738 (exit $ac_status); }; } && 12739 { ac_try='test -s conftest$ac_exeext' 12740 { (case "(($ac_try" in 12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12742 *) ac_try_echo=$ac_try;; 12743esac 12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12745 (eval "$ac_try") 2>&5 12746 ac_status=$? 12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12748 (exit $ac_status); }; }; then 12749 eval "$as_ac_var=yes" 12750else 12751 echo "$as_me: failed program was:" >&5 12752sed 's/^/| /' conftest.$ac_ext >&5 12753 12754 eval "$as_ac_var=no" 12755fi 12756 12757rm -f core conftest.err conftest.$ac_objext \ 12758 conftest$ac_exeext conftest.$ac_ext 12759fi 12760ac_res=`eval echo '${'$as_ac_var'}'` 12761 { echo "$as_me:$LINENO: result: $ac_res" >&5 12762echo "${ECHO_T}$ac_res" >&6; } 12763if test `eval echo '${'$as_ac_var'}'` = yes; then 12764 cat >>confdefs.h <<_ACEOF 12765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12766_ACEOF 12767 12768fi 12769done 12770 12771 12772 12773if test "$WITH_LLVMGCCDIR" = "default" ; then 12774 LLVMGCC="llvm-gcc${EXEEXT}" 12775 LLVMGXX="llvm-g++${EXEEXT}" 12776 LLVMGCCCOMMAND="$LLVMGCC" 12777 LLVMGXXCOMMAND="$LLVMGXX" 12778 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 12779 12780 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 12781 12782 # Extract the first word of "$LLVMGCC", so it can be a program name with args. 12783set dummy $LLVMGCC; ac_word=$2 12784{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12786if test "${ac_cv_path_LLVMGCC+set}" = set; then 12787 echo $ECHO_N "(cached) $ECHO_C" >&6 12788else 12789 case $LLVMGCC in 12790 [\\/]* | ?:[\\/]*) 12791 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. 12792 ;; 12793 *) 12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12795for as_dir in $PATH 12796do 12797 IFS=$as_save_IFS 12798 test -z "$as_dir" && as_dir=. 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12801 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" 12802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805done 12806done 12807IFS=$as_save_IFS 12808 12809 ;; 12810esac 12811fi 12812LLVMGCC=$ac_cv_path_LLVMGCC 12813if test -n "$LLVMGCC"; then 12814 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 12815echo "${ECHO_T}$LLVMGCC" >&6; } 12816else 12817 { echo "$as_me:$LINENO: result: no" >&5 12818echo "${ECHO_T}no" >&6; } 12819fi 12820 12821 12822 # Extract the first word of "$LLVMGXX", so it can be a program name with args. 12823set dummy $LLVMGXX; ac_word=$2 12824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12826if test "${ac_cv_path_LLVMGXX+set}" = set; then 12827 echo $ECHO_N "(cached) $ECHO_C" >&6 12828else 12829 case $LLVMGXX in 12830 [\\/]* | ?:[\\/]*) 12831 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. 12832 ;; 12833 *) 12834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12835for as_dir in $PATH 12836do 12837 IFS=$as_save_IFS 12838 test -z "$as_dir" && as_dir=. 12839 for ac_exec_ext in '' $ac_executable_extensions; do 12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12841 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" 12842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12843 break 2 12844 fi 12845done 12846done 12847IFS=$as_save_IFS 12848 12849 ;; 12850esac 12851fi 12852LLVMGXX=$ac_cv_path_LLVMGXX 12853if test -n "$LLVMGXX"; then 12854 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 12855echo "${ECHO_T}$LLVMGXX" >&6; } 12856else 12857 { echo "$as_me:$LINENO: result: no" >&5 12858echo "${ECHO_T}no" >&6; } 12859fi 12860 12861 12862else 12863 if test -z "$LLVMGCC"; then 12864 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" 12865 LLVMGCCCOMMAND="$LLVMGCC" 12866 fi 12867 if test -z "$LLVMGXX"; then 12868 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" 12869 LLVMGXXCOMMAND="$LLVMGXX" 12870 fi 12871 12872 LLVMGCC=$LLVMGCC 12873 12874 LLVMGXX=$LLVMGXX 12875 12876 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 12877 12878 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 12879 12880fi 12881 12882 12883# Check whether --with-llvmcc was given. 12884if test "${with_llvmcc+set}" = set; then 12885 withval=$with_llvmcc; 12886else 12887 with_llvmcc=check 12888fi 12889 12890{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 12891echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } 12892if test "$with_llvmcc" != "check"; then 12893 if (test "$with_llvmcc" != "llvm-gcc" && 12894 test "$with_llvmcc" != "clang" && 12895 test "$with_llvmcc" != "none"); then 12896 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 12897echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} 12898 { (exit 1); exit 1; }; } 12899 fi 12900 WITH_LLVMCC="$with_llvmcc" 12901elif test -n "$LLVMGCC"; then 12902 WITH_LLVMCC=llvm-gcc 12903elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then 12904 WITH_LLVMCC=clang 12905else 12906 WITH_LLVMCC=none 12907fi 12908{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 12909echo "${ECHO_T}$WITH_LLVMCC" >&6; } 12910LLVMCC_OPTION=$WITH_LLVMCC 12911 12912 12913{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12914echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12915 12916ICC=no 12917IXX=no 12918case $CC in 12919 icc*|icpc*) 12920 ICC=yes 12921 IXX=yes 12922 ;; 12923 *) 12924 ;; 12925esac 12926 12927if test "$GCC" != "yes" && test "$ICC" != "yes" 12928then 12929 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12930echo "$as_me: error: gcc|icc required but not found" >&2;} 12931 { (exit 1); exit 1; }; } 12932fi 12933 12934if test "$GXX" != "yes" && test "$IXX" != "yes" 12935then 12936 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 12937echo "$as_me: error: g++|icc required but not found" >&2;} 12938 { (exit 1); exit 1; }; } 12939fi 12940 12941if test "$GCC" = "yes" 12942then 12943 cat >conftest.$ac_ext <<_ACEOF 12944#if !defined(__GNUC__) || __GNUC__ < 3 12945#error Unsupported GCC version 12946#endif 12947 12948_ACEOF 12949rm -f conftest.$ac_objext 12950if { (ac_try="$ac_compile" 12951case "(($ac_try" in 12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12953 *) ac_try_echo=$ac_try;; 12954esac 12955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12956 (eval "$ac_compile") 2>conftest.er1 12957 ac_status=$? 12958 grep -v '^ *+' conftest.er1 >conftest.err 12959 rm -f conftest.er1 12960 cat conftest.err >&5 12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12962 (exit $ac_status); } && 12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12964 { (case "(($ac_try" in 12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12966 *) ac_try_echo=$ac_try;; 12967esac 12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12969 (eval "$ac_try") 2>&5 12970 ac_status=$? 12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12972 (exit $ac_status); }; } && 12973 { ac_try='test -s conftest.$ac_objext' 12974 { (case "(($ac_try" in 12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12976 *) ac_try_echo=$ac_try;; 12977esac 12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12979 (eval "$ac_try") 2>&5 12980 ac_status=$? 12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12982 (exit $ac_status); }; }; then 12983 : 12984else 12985 echo "$as_me: failed program was:" >&5 12986sed 's/^/| /' conftest.$ac_ext >&5 12987 12988 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12989echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12990 { (exit 1); exit 1; }; } 12991fi 12992 12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12994fi 12995 12996if test -z "$llvm_cv_gnu_make_command" 12997then 12998 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12999echo "$as_me: error: GNU Make required but not found" >&2;} 13000 { (exit 1); exit 1; }; } 13001fi 13002 13003{ echo "$as_me:$LINENO: result: ok" >&5 13004echo "${ECHO_T}ok" >&6; } 13005 13006{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 13007echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 13008NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 13009 13010NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 13011 13012{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 13013echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 13014 13015 13016 13017{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 13018echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 13019if test "${ac_cv_lib_m_sin+set}" = set; then 13020 echo $ECHO_N "(cached) $ECHO_C" >&6 13021else 13022 ac_check_lib_save_LIBS=$LIBS 13023LIBS="-lm $LIBS" 13024cat >conftest.$ac_ext <<_ACEOF 13025/* confdefs.h. */ 13026_ACEOF 13027cat confdefs.h >>conftest.$ac_ext 13028cat >>conftest.$ac_ext <<_ACEOF 13029/* end confdefs.h. */ 13030 13031/* Override any GCC internal prototype to avoid an error. 13032 Use char because int might match the return type of a GCC 13033 builtin and then its argument prototype would still apply. */ 13034#ifdef __cplusplus 13035extern "C" 13036#endif 13037char sin (); 13038int 13039main () 13040{ 13041return sin (); 13042 ; 13043 return 0; 13044} 13045_ACEOF 13046rm -f conftest.$ac_objext conftest$ac_exeext 13047if { (ac_try="$ac_link" 13048case "(($ac_try" in 13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13050 *) ac_try_echo=$ac_try;; 13051esac 13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13053 (eval "$ac_link") 2>conftest.er1 13054 ac_status=$? 13055 grep -v '^ *+' conftest.er1 >conftest.err 13056 rm -f conftest.er1 13057 cat conftest.err >&5 13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13059 (exit $ac_status); } && 13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13061 { (case "(($ac_try" in 13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13063 *) ac_try_echo=$ac_try;; 13064esac 13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13066 (eval "$ac_try") 2>&5 13067 ac_status=$? 13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13069 (exit $ac_status); }; } && 13070 { ac_try='test -s conftest$ac_exeext' 13071 { (case "(($ac_try" in 13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13073 *) ac_try_echo=$ac_try;; 13074esac 13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13076 (eval "$ac_try") 2>&5 13077 ac_status=$? 13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13079 (exit $ac_status); }; }; then 13080 ac_cv_lib_m_sin=yes 13081else 13082 echo "$as_me: failed program was:" >&5 13083sed 's/^/| /' conftest.$ac_ext >&5 13084 13085 ac_cv_lib_m_sin=no 13086fi 13087 13088rm -f core conftest.err conftest.$ac_objext \ 13089 conftest$ac_exeext conftest.$ac_ext 13090LIBS=$ac_check_lib_save_LIBS 13091fi 13092{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 13093echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 13094if test $ac_cv_lib_m_sin = yes; then 13095 cat >>confdefs.h <<_ACEOF 13096#define HAVE_LIBM 1 13097_ACEOF 13098 13099 LIBS="-lm $LIBS" 13100 13101fi 13102 13103if test "$llvm_cv_os_type" = "MingW" ; then 13104 13105{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 13106echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 13107if test "${ac_cv_lib_imagehlp_main+set}" = set; then 13108 echo $ECHO_N "(cached) $ECHO_C" >&6 13109else 13110 ac_check_lib_save_LIBS=$LIBS 13111LIBS="-limagehlp $LIBS" 13112cat >conftest.$ac_ext <<_ACEOF 13113/* confdefs.h. */ 13114_ACEOF 13115cat confdefs.h >>conftest.$ac_ext 13116cat >>conftest.$ac_ext <<_ACEOF 13117/* end confdefs.h. */ 13118 13119 13120int 13121main () 13122{ 13123return main (); 13124 ; 13125 return 0; 13126} 13127_ACEOF 13128rm -f conftest.$ac_objext conftest$ac_exeext 13129if { (ac_try="$ac_link" 13130case "(($ac_try" in 13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13132 *) ac_try_echo=$ac_try;; 13133esac 13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13135 (eval "$ac_link") 2>conftest.er1 13136 ac_status=$? 13137 grep -v '^ *+' conftest.er1 >conftest.err 13138 rm -f conftest.er1 13139 cat conftest.err >&5 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); } && 13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13143 { (case "(($ac_try" in 13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13145 *) ac_try_echo=$ac_try;; 13146esac 13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13148 (eval "$ac_try") 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); }; } && 13152 { ac_try='test -s conftest$ac_exeext' 13153 { (case "(($ac_try" in 13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13155 *) ac_try_echo=$ac_try;; 13156esac 13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13158 (eval "$ac_try") 2>&5 13159 ac_status=$? 13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13161 (exit $ac_status); }; }; then 13162 ac_cv_lib_imagehlp_main=yes 13163else 13164 echo "$as_me: failed program was:" >&5 13165sed 's/^/| /' conftest.$ac_ext >&5 13166 13167 ac_cv_lib_imagehlp_main=no 13168fi 13169 13170rm -f core conftest.err conftest.$ac_objext \ 13171 conftest$ac_exeext conftest.$ac_ext 13172LIBS=$ac_check_lib_save_LIBS 13173fi 13174{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 13175echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 13176if test $ac_cv_lib_imagehlp_main = yes; then 13177 cat >>confdefs.h <<_ACEOF 13178#define HAVE_LIBIMAGEHLP 1 13179_ACEOF 13180 13181 LIBS="-limagehlp $LIBS" 13182 13183fi 13184 13185 13186{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 13187echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 13188if test "${ac_cv_lib_psapi_main+set}" = set; then 13189 echo $ECHO_N "(cached) $ECHO_C" >&6 13190else 13191 ac_check_lib_save_LIBS=$LIBS 13192LIBS="-lpsapi $LIBS" 13193cat >conftest.$ac_ext <<_ACEOF 13194/* confdefs.h. */ 13195_ACEOF 13196cat confdefs.h >>conftest.$ac_ext 13197cat >>conftest.$ac_ext <<_ACEOF 13198/* end confdefs.h. */ 13199 13200 13201int 13202main () 13203{ 13204return main (); 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209rm -f conftest.$ac_objext conftest$ac_exeext 13210if { (ac_try="$ac_link" 13211case "(($ac_try" in 13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13213 *) ac_try_echo=$ac_try;; 13214esac 13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13216 (eval "$ac_link") 2>conftest.er1 13217 ac_status=$? 13218 grep -v '^ *+' conftest.er1 >conftest.err 13219 rm -f conftest.er1 13220 cat conftest.err >&5 13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13222 (exit $ac_status); } && 13223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13224 { (case "(($ac_try" in 13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13226 *) ac_try_echo=$ac_try;; 13227esac 13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13229 (eval "$ac_try") 2>&5 13230 ac_status=$? 13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13232 (exit $ac_status); }; } && 13233 { ac_try='test -s conftest$ac_exeext' 13234 { (case "(($ac_try" in 13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13236 *) ac_try_echo=$ac_try;; 13237esac 13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13239 (eval "$ac_try") 2>&5 13240 ac_status=$? 13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13242 (exit $ac_status); }; }; then 13243 ac_cv_lib_psapi_main=yes 13244else 13245 echo "$as_me: failed program was:" >&5 13246sed 's/^/| /' conftest.$ac_ext >&5 13247 13248 ac_cv_lib_psapi_main=no 13249fi 13250 13251rm -f core conftest.err conftest.$ac_objext \ 13252 conftest$ac_exeext conftest.$ac_ext 13253LIBS=$ac_check_lib_save_LIBS 13254fi 13255{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 13256echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 13257if test $ac_cv_lib_psapi_main = yes; then 13258 cat >>confdefs.h <<_ACEOF 13259#define HAVE_LIBPSAPI 1 13260_ACEOF 13261 13262 LIBS="-lpsapi $LIBS" 13263 13264fi 13265 13266fi 13267 13268{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13269echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 13270if test "${ac_cv_search_dlopen+set}" = set; then 13271 echo $ECHO_N "(cached) $ECHO_C" >&6 13272else 13273 ac_func_search_save_LIBS=$LIBS 13274cat >conftest.$ac_ext <<_ACEOF 13275/* confdefs.h. */ 13276_ACEOF 13277cat confdefs.h >>conftest.$ac_ext 13278cat >>conftest.$ac_ext <<_ACEOF 13279/* end confdefs.h. */ 13280 13281/* Override any GCC internal prototype to avoid an error. 13282 Use char because int might match the return type of a GCC 13283 builtin and then its argument prototype would still apply. */ 13284#ifdef __cplusplus 13285extern "C" 13286#endif 13287char dlopen (); 13288int 13289main () 13290{ 13291return dlopen (); 13292 ; 13293 return 0; 13294} 13295_ACEOF 13296for ac_lib in '' dl; do 13297 if test -z "$ac_lib"; then 13298 ac_res="none required" 13299 else 13300 ac_res=-l$ac_lib 13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13302 fi 13303 rm -f conftest.$ac_objext conftest$ac_exeext 13304if { (ac_try="$ac_link" 13305case "(($ac_try" in 13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13307 *) ac_try_echo=$ac_try;; 13308esac 13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13310 (eval "$ac_link") 2>conftest.er1 13311 ac_status=$? 13312 grep -v '^ *+' conftest.er1 >conftest.err 13313 rm -f conftest.er1 13314 cat conftest.err >&5 13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13316 (exit $ac_status); } && 13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13318 { (case "(($ac_try" in 13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13320 *) ac_try_echo=$ac_try;; 13321esac 13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13323 (eval "$ac_try") 2>&5 13324 ac_status=$? 13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13326 (exit $ac_status); }; } && 13327 { ac_try='test -s conftest$ac_exeext' 13328 { (case "(($ac_try" in 13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13330 *) ac_try_echo=$ac_try;; 13331esac 13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13333 (eval "$ac_try") 2>&5 13334 ac_status=$? 13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13336 (exit $ac_status); }; }; then 13337 ac_cv_search_dlopen=$ac_res 13338else 13339 echo "$as_me: failed program was:" >&5 13340sed 's/^/| /' conftest.$ac_ext >&5 13341 13342 13343fi 13344 13345rm -f core conftest.err conftest.$ac_objext \ 13346 conftest$ac_exeext 13347 if test "${ac_cv_search_dlopen+set}" = set; then 13348 break 13349fi 13350done 13351if test "${ac_cv_search_dlopen+set}" = set; then 13352 : 13353else 13354 ac_cv_search_dlopen=no 13355fi 13356rm conftest.$ac_ext 13357LIBS=$ac_func_search_save_LIBS 13358fi 13359{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13360echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 13361ac_res=$ac_cv_search_dlopen 13362if test "$ac_res" != no; then 13363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13364 13365cat >>confdefs.h <<\_ACEOF 13366#define HAVE_DLOPEN 1 13367_ACEOF 13368 13369else 13370 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 13371echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 13372fi 13373 13374 13375if test "$llvm_cv_enable_libffi" = "yes" ; then 13376 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 13377echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 13378if test "${ac_cv_search_ffi_call+set}" = set; then 13379 echo $ECHO_N "(cached) $ECHO_C" >&6 13380else 13381 ac_func_search_save_LIBS=$LIBS 13382cat >conftest.$ac_ext <<_ACEOF 13383/* confdefs.h. */ 13384_ACEOF 13385cat confdefs.h >>conftest.$ac_ext 13386cat >>conftest.$ac_ext <<_ACEOF 13387/* end confdefs.h. */ 13388 13389/* Override any GCC internal prototype to avoid an error. 13390 Use char because int might match the return type of a GCC 13391 builtin and then its argument prototype would still apply. */ 13392#ifdef __cplusplus 13393extern "C" 13394#endif 13395char ffi_call (); 13396int 13397main () 13398{ 13399return ffi_call (); 13400 ; 13401 return 0; 13402} 13403_ACEOF 13404for ac_lib in '' ffi; do 13405 if test -z "$ac_lib"; then 13406 ac_res="none required" 13407 else 13408 ac_res=-l$ac_lib 13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13410 fi 13411 rm -f conftest.$ac_objext conftest$ac_exeext 13412if { (ac_try="$ac_link" 13413case "(($ac_try" in 13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13415 *) ac_try_echo=$ac_try;; 13416esac 13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13418 (eval "$ac_link") 2>conftest.er1 13419 ac_status=$? 13420 grep -v '^ *+' conftest.er1 >conftest.err 13421 rm -f conftest.er1 13422 cat conftest.err >&5 13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13424 (exit $ac_status); } && 13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13426 { (case "(($ac_try" in 13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13428 *) ac_try_echo=$ac_try;; 13429esac 13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13431 (eval "$ac_try") 2>&5 13432 ac_status=$? 13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13434 (exit $ac_status); }; } && 13435 { ac_try='test -s conftest$ac_exeext' 13436 { (case "(($ac_try" in 13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13438 *) ac_try_echo=$ac_try;; 13439esac 13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13441 (eval "$ac_try") 2>&5 13442 ac_status=$? 13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 (exit $ac_status); }; }; then 13445 ac_cv_search_ffi_call=$ac_res 13446else 13447 echo "$as_me: failed program was:" >&5 13448sed 's/^/| /' conftest.$ac_ext >&5 13449 13450 13451fi 13452 13453rm -f core conftest.err conftest.$ac_objext \ 13454 conftest$ac_exeext 13455 if test "${ac_cv_search_ffi_call+set}" = set; then 13456 break 13457fi 13458done 13459if test "${ac_cv_search_ffi_call+set}" = set; then 13460 : 13461else 13462 ac_cv_search_ffi_call=no 13463fi 13464rm conftest.$ac_ext 13465LIBS=$ac_func_search_save_LIBS 13466fi 13467{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 13468echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 13469ac_res=$ac_cv_search_ffi_call 13470if test "$ac_res" != no; then 13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13472 13473cat >>confdefs.h <<\_ACEOF 13474#define HAVE_FFI_CALL 1 13475_ACEOF 13476 13477else 13478 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 13479echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 13480 { (exit 1); exit 1; }; } 13481fi 13482 13483fi 13484 13485{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 13486echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 13487if test "${ac_cv_search_mallinfo+set}" = set; then 13488 echo $ECHO_N "(cached) $ECHO_C" >&6 13489else 13490 ac_func_search_save_LIBS=$LIBS 13491cat >conftest.$ac_ext <<_ACEOF 13492/* confdefs.h. */ 13493_ACEOF 13494cat confdefs.h >>conftest.$ac_ext 13495cat >>conftest.$ac_ext <<_ACEOF 13496/* end confdefs.h. */ 13497 13498/* Override any GCC internal prototype to avoid an error. 13499 Use char because int might match the return type of a GCC 13500 builtin and then its argument prototype would still apply. */ 13501#ifdef __cplusplus 13502extern "C" 13503#endif 13504char mallinfo (); 13505int 13506main () 13507{ 13508return mallinfo (); 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513for ac_lib in '' malloc; do 13514 if test -z "$ac_lib"; then 13515 ac_res="none required" 13516 else 13517 ac_res=-l$ac_lib 13518 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13519 fi 13520 rm -f conftest.$ac_objext conftest$ac_exeext 13521if { (ac_try="$ac_link" 13522case "(($ac_try" in 13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13524 *) ac_try_echo=$ac_try;; 13525esac 13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13527 (eval "$ac_link") 2>conftest.er1 13528 ac_status=$? 13529 grep -v '^ *+' conftest.er1 >conftest.err 13530 rm -f conftest.er1 13531 cat conftest.err >&5 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); } && 13534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13535 { (case "(($ac_try" in 13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13537 *) ac_try_echo=$ac_try;; 13538esac 13539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13540 (eval "$ac_try") 2>&5 13541 ac_status=$? 13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13543 (exit $ac_status); }; } && 13544 { ac_try='test -s conftest$ac_exeext' 13545 { (case "(($ac_try" in 13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13547 *) ac_try_echo=$ac_try;; 13548esac 13549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13550 (eval "$ac_try") 2>&5 13551 ac_status=$? 13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13553 (exit $ac_status); }; }; then 13554 ac_cv_search_mallinfo=$ac_res 13555else 13556 echo "$as_me: failed program was:" >&5 13557sed 's/^/| /' conftest.$ac_ext >&5 13558 13559 13560fi 13561 13562rm -f core conftest.err conftest.$ac_objext \ 13563 conftest$ac_exeext 13564 if test "${ac_cv_search_mallinfo+set}" = set; then 13565 break 13566fi 13567done 13568if test "${ac_cv_search_mallinfo+set}" = set; then 13569 : 13570else 13571 ac_cv_search_mallinfo=no 13572fi 13573rm conftest.$ac_ext 13574LIBS=$ac_func_search_save_LIBS 13575fi 13576{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13577echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13578ac_res=$ac_cv_search_mallinfo 13579if test "$ac_res" != no; then 13580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13581 13582cat >>confdefs.h <<\_ACEOF 13583#define HAVE_MALLINFO 1 13584_ACEOF 13585 13586fi 13587 13588 13589if test "$ENABLE_THREADS" -eq 1 ; then 13590 13591{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13592echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13593if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13594 echo $ECHO_N "(cached) $ECHO_C" >&6 13595else 13596 ac_check_lib_save_LIBS=$LIBS 13597LIBS="-lpthread $LIBS" 13598cat >conftest.$ac_ext <<_ACEOF 13599/* confdefs.h. */ 13600_ACEOF 13601cat confdefs.h >>conftest.$ac_ext 13602cat >>conftest.$ac_ext <<_ACEOF 13603/* end confdefs.h. */ 13604 13605/* Override any GCC internal prototype to avoid an error. 13606 Use char because int might match the return type of a GCC 13607 builtin and then its argument prototype would still apply. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611char pthread_mutex_init (); 13612int 13613main () 13614{ 13615return pthread_mutex_init (); 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_pthread_pthread_mutex_init=yes 13655else 13656 echo "$as_me: failed program was:" >&5 13657sed 's/^/| /' conftest.$ac_ext >&5 13658 13659 ac_cv_lib_pthread_pthread_mutex_init=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_pthread_pthread_mutex_init" >&5 13667echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13668if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13669 cat >>confdefs.h <<_ACEOF 13670#define HAVE_LIBPTHREAD 1 13671_ACEOF 13672 13673 LIBS="-lpthread $LIBS" 13674 13675fi 13676 13677 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13678echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13679if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13680 echo $ECHO_N "(cached) $ECHO_C" >&6 13681else 13682 ac_func_search_save_LIBS=$LIBS 13683cat >conftest.$ac_ext <<_ACEOF 13684/* confdefs.h. */ 13685_ACEOF 13686cat confdefs.h >>conftest.$ac_ext 13687cat >>conftest.$ac_ext <<_ACEOF 13688/* end confdefs.h. */ 13689 13690/* Override any GCC internal prototype to avoid an error. 13691 Use char because int might match the return type of a GCC 13692 builtin and then its argument prototype would still apply. */ 13693#ifdef __cplusplus 13694extern "C" 13695#endif 13696char pthread_mutex_lock (); 13697int 13698main () 13699{ 13700return pthread_mutex_lock (); 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705for ac_lib in '' pthread; do 13706 if test -z "$ac_lib"; then 13707 ac_res="none required" 13708 else 13709 ac_res=-l$ac_lib 13710 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13711 fi 13712 rm -f conftest.$ac_objext conftest$ac_exeext 13713if { (ac_try="$ac_link" 13714case "(($ac_try" in 13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13716 *) ac_try_echo=$ac_try;; 13717esac 13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13719 (eval "$ac_link") 2>conftest.er1 13720 ac_status=$? 13721 grep -v '^ *+' conftest.er1 >conftest.err 13722 rm -f conftest.er1 13723 cat conftest.err >&5 13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13725 (exit $ac_status); } && 13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13727 { (case "(($ac_try" in 13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13729 *) ac_try_echo=$ac_try;; 13730esac 13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13732 (eval "$ac_try") 2>&5 13733 ac_status=$? 13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13735 (exit $ac_status); }; } && 13736 { ac_try='test -s conftest$ac_exeext' 13737 { (case "(($ac_try" in 13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13739 *) ac_try_echo=$ac_try;; 13740esac 13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13742 (eval "$ac_try") 2>&5 13743 ac_status=$? 13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13745 (exit $ac_status); }; }; then 13746 ac_cv_search_pthread_mutex_lock=$ac_res 13747else 13748 echo "$as_me: failed program was:" >&5 13749sed 's/^/| /' conftest.$ac_ext >&5 13750 13751 13752fi 13753 13754rm -f core conftest.err conftest.$ac_objext \ 13755 conftest$ac_exeext 13756 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13757 break 13758fi 13759done 13760if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13761 : 13762else 13763 ac_cv_search_pthread_mutex_lock=no 13764fi 13765rm conftest.$ac_ext 13766LIBS=$ac_func_search_save_LIBS 13767fi 13768{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13769echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13770ac_res=$ac_cv_search_pthread_mutex_lock 13771if test "$ac_res" != no; then 13772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13773 13774cat >>confdefs.h <<\_ACEOF 13775#define HAVE_PTHREAD_MUTEX_LOCK 1 13776_ACEOF 13777 13778fi 13779 13780 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13781echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13782if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13783 echo $ECHO_N "(cached) $ECHO_C" >&6 13784else 13785 ac_func_search_save_LIBS=$LIBS 13786cat >conftest.$ac_ext <<_ACEOF 13787/* confdefs.h. */ 13788_ACEOF 13789cat confdefs.h >>conftest.$ac_ext 13790cat >>conftest.$ac_ext <<_ACEOF 13791/* end confdefs.h. */ 13792 13793/* Override any GCC internal prototype to avoid an error. 13794 Use char because int might match the return type of a GCC 13795 builtin and then its argument prototype would still apply. */ 13796#ifdef __cplusplus 13797extern "C" 13798#endif 13799char pthread_rwlock_init (); 13800int 13801main () 13802{ 13803return pthread_rwlock_init (); 13804 ; 13805 return 0; 13806} 13807_ACEOF 13808for ac_lib in '' pthread; do 13809 if test -z "$ac_lib"; then 13810 ac_res="none required" 13811 else 13812 ac_res=-l$ac_lib 13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13814 fi 13815 rm -f conftest.$ac_objext conftest$ac_exeext 13816if { (ac_try="$ac_link" 13817case "(($ac_try" in 13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13819 *) ac_try_echo=$ac_try;; 13820esac 13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13822 (eval "$ac_link") 2>conftest.er1 13823 ac_status=$? 13824 grep -v '^ *+' conftest.er1 >conftest.err 13825 rm -f conftest.er1 13826 cat conftest.err >&5 13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13828 (exit $ac_status); } && 13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13830 { (case "(($ac_try" in 13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13832 *) ac_try_echo=$ac_try;; 13833esac 13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13835 (eval "$ac_try") 2>&5 13836 ac_status=$? 13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 (exit $ac_status); }; } && 13839 { ac_try='test -s conftest$ac_exeext' 13840 { (case "(($ac_try" in 13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13842 *) ac_try_echo=$ac_try;; 13843esac 13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13845 (eval "$ac_try") 2>&5 13846 ac_status=$? 13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13848 (exit $ac_status); }; }; then 13849 ac_cv_search_pthread_rwlock_init=$ac_res 13850else 13851 echo "$as_me: failed program was:" >&5 13852sed 's/^/| /' conftest.$ac_ext >&5 13853 13854 13855fi 13856 13857rm -f core conftest.err conftest.$ac_objext \ 13858 conftest$ac_exeext 13859 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13860 break 13861fi 13862done 13863if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13864 : 13865else 13866 ac_cv_search_pthread_rwlock_init=no 13867fi 13868rm conftest.$ac_ext 13869LIBS=$ac_func_search_save_LIBS 13870fi 13871{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13872echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13873ac_res=$ac_cv_search_pthread_rwlock_init 13874if test "$ac_res" != no; then 13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13876 13877cat >>confdefs.h <<\_ACEOF 13878#define HAVE_PTHREAD_RWLOCK_INIT 1 13879_ACEOF 13880 13881fi 13882 13883 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13884echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13885if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13886 echo $ECHO_N "(cached) $ECHO_C" >&6 13887else 13888 ac_func_search_save_LIBS=$LIBS 13889cat >conftest.$ac_ext <<_ACEOF 13890/* confdefs.h. */ 13891_ACEOF 13892cat confdefs.h >>conftest.$ac_ext 13893cat >>conftest.$ac_ext <<_ACEOF 13894/* end confdefs.h. */ 13895 13896/* Override any GCC internal prototype to avoid an error. 13897 Use char because int might match the return type of a GCC 13898 builtin and then its argument prototype would still apply. */ 13899#ifdef __cplusplus 13900extern "C" 13901#endif 13902char pthread_getspecific (); 13903int 13904main () 13905{ 13906return pthread_getspecific (); 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911for ac_lib in '' pthread; do 13912 if test -z "$ac_lib"; then 13913 ac_res="none required" 13914 else 13915 ac_res=-l$ac_lib 13916 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13917 fi 13918 rm -f conftest.$ac_objext conftest$ac_exeext 13919if { (ac_try="$ac_link" 13920case "(($ac_try" in 13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13922 *) ac_try_echo=$ac_try;; 13923esac 13924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13925 (eval "$ac_link") 2>conftest.er1 13926 ac_status=$? 13927 grep -v '^ *+' conftest.er1 >conftest.err 13928 rm -f conftest.er1 13929 cat conftest.err >&5 13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13931 (exit $ac_status); } && 13932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13933 { (case "(($ac_try" in 13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13935 *) ac_try_echo=$ac_try;; 13936esac 13937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13938 (eval "$ac_try") 2>&5 13939 ac_status=$? 13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13941 (exit $ac_status); }; } && 13942 { ac_try='test -s conftest$ac_exeext' 13943 { (case "(($ac_try" in 13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13945 *) ac_try_echo=$ac_try;; 13946esac 13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13948 (eval "$ac_try") 2>&5 13949 ac_status=$? 13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13951 (exit $ac_status); }; }; then 13952 ac_cv_search_pthread_getspecific=$ac_res 13953else 13954 echo "$as_me: failed program was:" >&5 13955sed 's/^/| /' conftest.$ac_ext >&5 13956 13957 13958fi 13959 13960rm -f core conftest.err conftest.$ac_objext \ 13961 conftest$ac_exeext 13962 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13963 break 13964fi 13965done 13966if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13967 : 13968else 13969 ac_cv_search_pthread_getspecific=no 13970fi 13971rm conftest.$ac_ext 13972LIBS=$ac_func_search_save_LIBS 13973fi 13974{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13975echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13976ac_res=$ac_cv_search_pthread_getspecific 13977if test "$ac_res" != no; then 13978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13979 13980cat >>confdefs.h <<\_ACEOF 13981#define HAVE_PTHREAD_GETSPECIFIC 1 13982_ACEOF 13983 13984fi 13985 13986fi 13987 13988 13989# Check whether --with-udis86 was given. 13990if test "${with_udis86+set}" = set; then 13991 withval=$with_udis86; 13992 USE_UDIS86=1 13993 13994 case "$withval" in 13995 /usr/lib|yes) ;; 13996 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13997 esac 13998 13999{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 14000echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 14001if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 14002 echo $ECHO_N "(cached) $ECHO_C" >&6 14003else 14004 ac_check_lib_save_LIBS=$LIBS 14005LIBS="-ludis86 $LIBS" 14006cat >conftest.$ac_ext <<_ACEOF 14007/* confdefs.h. */ 14008_ACEOF 14009cat confdefs.h >>conftest.$ac_ext 14010cat >>conftest.$ac_ext <<_ACEOF 14011/* end confdefs.h. */ 14012 14013/* Override any GCC internal prototype to avoid an error. 14014 Use char because int might match the return type of a GCC 14015 builtin and then its argument prototype would still apply. */ 14016#ifdef __cplusplus 14017extern "C" 14018#endif 14019char ud_init (); 14020int 14021main () 14022{ 14023return ud_init (); 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028rm -f conftest.$ac_objext conftest$ac_exeext 14029if { (ac_try="$ac_link" 14030case "(($ac_try" in 14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14032 *) ac_try_echo=$ac_try;; 14033esac 14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14035 (eval "$ac_link") 2>conftest.er1 14036 ac_status=$? 14037 grep -v '^ *+' conftest.er1 >conftest.err 14038 rm -f conftest.er1 14039 cat conftest.err >&5 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } && 14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14043 { (case "(($ac_try" in 14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14045 *) ac_try_echo=$ac_try;; 14046esac 14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14048 (eval "$ac_try") 2>&5 14049 ac_status=$? 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14051 (exit $ac_status); }; } && 14052 { ac_try='test -s conftest$ac_exeext' 14053 { (case "(($ac_try" in 14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14055 *) ac_try_echo=$ac_try;; 14056esac 14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14058 (eval "$ac_try") 2>&5 14059 ac_status=$? 14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14061 (exit $ac_status); }; }; then 14062 ac_cv_lib_udis86_ud_init=yes 14063else 14064 echo "$as_me: failed program was:" >&5 14065sed 's/^/| /' conftest.$ac_ext >&5 14066 14067 ac_cv_lib_udis86_ud_init=no 14068fi 14069 14070rm -f core conftest.err conftest.$ac_objext \ 14071 conftest$ac_exeext conftest.$ac_ext 14072LIBS=$ac_check_lib_save_LIBS 14073fi 14074{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 14075echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 14076if test $ac_cv_lib_udis86_ud_init = yes; then 14077 cat >>confdefs.h <<_ACEOF 14078#define HAVE_LIBUDIS86 1 14079_ACEOF 14080 14081 LIBS="-ludis86 $LIBS" 14082 14083else 14084 14085 echo "Error! You need to have libudis86 around." 14086 exit -1 14087 14088fi 14089 14090 14091else 14092 USE_UDIS86=0 14093 14094fi 14095 14096 14097cat >>confdefs.h <<_ACEOF 14098#define USE_UDIS86 $USE_UDIS86 14099_ACEOF 14100 14101 14102 14103# Check whether --with-oprofile was given. 14104if test "${with_oprofile+set}" = set; then 14105 withval=$with_oprofile; 14106 USE_OPROFILE=1 14107 14108 case "$withval" in 14109 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 14110 no) llvm_cv_oppath= 14111 USE_OPROFILE=0 14112 ;; 14113 *) llvm_cv_oppath="${withval}/lib/oprofile" 14114 CPPFLAGS="-I${withval}/include";; 14115 esac 14116 if test -n "$llvm_cv_oppath" ; then 14117 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 14118 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 14119echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 14120if test "${ac_cv_search_bfd_init+set}" = set; then 14121 echo $ECHO_N "(cached) $ECHO_C" >&6 14122else 14123 ac_func_search_save_LIBS=$LIBS 14124cat >conftest.$ac_ext <<_ACEOF 14125/* confdefs.h. */ 14126_ACEOF 14127cat confdefs.h >>conftest.$ac_ext 14128cat >>conftest.$ac_ext <<_ACEOF 14129/* end confdefs.h. */ 14130 14131/* Override any GCC internal prototype to avoid an error. 14132 Use char because int might match the return type of a GCC 14133 builtin and then its argument prototype would still apply. */ 14134#ifdef __cplusplus 14135extern "C" 14136#endif 14137char bfd_init (); 14138int 14139main () 14140{ 14141return bfd_init (); 14142 ; 14143 return 0; 14144} 14145_ACEOF 14146for ac_lib in '' bfd; do 14147 if test -z "$ac_lib"; then 14148 ac_res="none required" 14149 else 14150 ac_res=-l$ac_lib 14151 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14152 fi 14153 rm -f conftest.$ac_objext conftest$ac_exeext 14154if { (ac_try="$ac_link" 14155case "(($ac_try" in 14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14157 *) ac_try_echo=$ac_try;; 14158esac 14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14160 (eval "$ac_link") 2>conftest.er1 14161 ac_status=$? 14162 grep -v '^ *+' conftest.er1 >conftest.err 14163 rm -f conftest.er1 14164 cat conftest.err >&5 14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14166 (exit $ac_status); } && 14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14168 { (case "(($ac_try" in 14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14170 *) ac_try_echo=$ac_try;; 14171esac 14172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14173 (eval "$ac_try") 2>&5 14174 ac_status=$? 14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14176 (exit $ac_status); }; } && 14177 { ac_try='test -s conftest$ac_exeext' 14178 { (case "(($ac_try" in 14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14180 *) ac_try_echo=$ac_try;; 14181esac 14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14183 (eval "$ac_try") 2>&5 14184 ac_status=$? 14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14186 (exit $ac_status); }; }; then 14187 ac_cv_search_bfd_init=$ac_res 14188else 14189 echo "$as_me: failed program was:" >&5 14190sed 's/^/| /' conftest.$ac_ext >&5 14191 14192 14193fi 14194 14195rm -f core conftest.err conftest.$ac_objext \ 14196 conftest$ac_exeext 14197 if test "${ac_cv_search_bfd_init+set}" = set; then 14198 break 14199fi 14200done 14201if test "${ac_cv_search_bfd_init+set}" = set; then 14202 : 14203else 14204 ac_cv_search_bfd_init=no 14205fi 14206rm conftest.$ac_ext 14207LIBS=$ac_func_search_save_LIBS 14208fi 14209{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 14210echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 14211ac_res=$ac_cv_search_bfd_init 14212if test "$ac_res" != no; then 14213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14214 14215fi 14216 14217 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 14218echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 14219if test "${ac_cv_search_op_open_agent+set}" = set; then 14220 echo $ECHO_N "(cached) $ECHO_C" >&6 14221else 14222 ac_func_search_save_LIBS=$LIBS 14223cat >conftest.$ac_ext <<_ACEOF 14224/* confdefs.h. */ 14225_ACEOF 14226cat confdefs.h >>conftest.$ac_ext 14227cat >>conftest.$ac_ext <<_ACEOF 14228/* end confdefs.h. */ 14229 14230/* Override any GCC internal prototype to avoid an error. 14231 Use char because int might match the return type of a GCC 14232 builtin and then its argument prototype would still apply. */ 14233#ifdef __cplusplus 14234extern "C" 14235#endif 14236char op_open_agent (); 14237int 14238main () 14239{ 14240return op_open_agent (); 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245for ac_lib in '' opagent; do 14246 if test -z "$ac_lib"; then 14247 ac_res="none required" 14248 else 14249 ac_res=-l$ac_lib 14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14251 fi 14252 rm -f conftest.$ac_objext conftest$ac_exeext 14253if { (ac_try="$ac_link" 14254case "(($ac_try" in 14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14256 *) ac_try_echo=$ac_try;; 14257esac 14258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14259 (eval "$ac_link") 2>conftest.er1 14260 ac_status=$? 14261 grep -v '^ *+' conftest.er1 >conftest.err 14262 rm -f conftest.er1 14263 cat conftest.err >&5 14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14265 (exit $ac_status); } && 14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14267 { (case "(($ac_try" in 14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14269 *) ac_try_echo=$ac_try;; 14270esac 14271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14272 (eval "$ac_try") 2>&5 14273 ac_status=$? 14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14275 (exit $ac_status); }; } && 14276 { ac_try='test -s conftest$ac_exeext' 14277 { (case "(($ac_try" in 14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14279 *) ac_try_echo=$ac_try;; 14280esac 14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14282 (eval "$ac_try") 2>&5 14283 ac_status=$? 14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14285 (exit $ac_status); }; }; then 14286 ac_cv_search_op_open_agent=$ac_res 14287else 14288 echo "$as_me: failed program was:" >&5 14289sed 's/^/| /' conftest.$ac_ext >&5 14290 14291 14292fi 14293 14294rm -f core conftest.err conftest.$ac_objext \ 14295 conftest$ac_exeext 14296 if test "${ac_cv_search_op_open_agent+set}" = set; then 14297 break 14298fi 14299done 14300if test "${ac_cv_search_op_open_agent+set}" = set; then 14301 : 14302else 14303 ac_cv_search_op_open_agent=no 14304fi 14305rm conftest.$ac_ext 14306LIBS=$ac_func_search_save_LIBS 14307fi 14308{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 14309echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 14310ac_res=$ac_cv_search_op_open_agent 14311if test "$ac_res" != no; then 14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14313 14314else 14315 14316 echo "Error! You need to have libopagent around." 14317 exit -1 14318 14319fi 14320 14321 if test "${ac_cv_header_opagent_h+set}" = set; then 14322 { echo "$as_me:$LINENO: checking for opagent.h" >&5 14323echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14324if test "${ac_cv_header_opagent_h+set}" = set; then 14325 echo $ECHO_N "(cached) $ECHO_C" >&6 14326fi 14327{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14328echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14329else 14330 # Is the header compilable? 14331{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 14332echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 14333cat >conftest.$ac_ext <<_ACEOF 14334/* confdefs.h. */ 14335_ACEOF 14336cat confdefs.h >>conftest.$ac_ext 14337cat >>conftest.$ac_ext <<_ACEOF 14338/* end confdefs.h. */ 14339$ac_includes_default 14340#include <opagent.h> 14341_ACEOF 14342rm -f conftest.$ac_objext 14343if { (ac_try="$ac_compile" 14344case "(($ac_try" in 14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14346 *) ac_try_echo=$ac_try;; 14347esac 14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14349 (eval "$ac_compile") 2>conftest.er1 14350 ac_status=$? 14351 grep -v '^ *+' conftest.er1 >conftest.err 14352 rm -f conftest.er1 14353 cat conftest.err >&5 14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14355 (exit $ac_status); } && 14356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14357 { (case "(($ac_try" in 14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14359 *) ac_try_echo=$ac_try;; 14360esac 14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14362 (eval "$ac_try") 2>&5 14363 ac_status=$? 14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14365 (exit $ac_status); }; } && 14366 { ac_try='test -s conftest.$ac_objext' 14367 { (case "(($ac_try" in 14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14369 *) ac_try_echo=$ac_try;; 14370esac 14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14372 (eval "$ac_try") 2>&5 14373 ac_status=$? 14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14375 (exit $ac_status); }; }; then 14376 ac_header_compiler=yes 14377else 14378 echo "$as_me: failed program was:" >&5 14379sed 's/^/| /' conftest.$ac_ext >&5 14380 14381 ac_header_compiler=no 14382fi 14383 14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14386echo "${ECHO_T}$ac_header_compiler" >&6; } 14387 14388# Is the header present? 14389{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 14390echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 14391cat >conftest.$ac_ext <<_ACEOF 14392/* confdefs.h. */ 14393_ACEOF 14394cat confdefs.h >>conftest.$ac_ext 14395cat >>conftest.$ac_ext <<_ACEOF 14396/* end confdefs.h. */ 14397#include <opagent.h> 14398_ACEOF 14399if { (ac_try="$ac_cpp conftest.$ac_ext" 14400case "(($ac_try" in 14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14402 *) ac_try_echo=$ac_try;; 14403esac 14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14406 ac_status=$? 14407 grep -v '^ *+' conftest.er1 >conftest.err 14408 rm -f conftest.er1 14409 cat conftest.err >&5 14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); } >/dev/null; then 14412 if test -s conftest.err; then 14413 ac_cpp_err=$ac_c_preproc_warn_flag 14414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14415 else 14416 ac_cpp_err= 14417 fi 14418else 14419 ac_cpp_err=yes 14420fi 14421if test -z "$ac_cpp_err"; then 14422 ac_header_preproc=yes 14423else 14424 echo "$as_me: failed program was:" >&5 14425sed 's/^/| /' conftest.$ac_ext >&5 14426 14427 ac_header_preproc=no 14428fi 14429 14430rm -f conftest.err conftest.$ac_ext 14431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14432echo "${ECHO_T}$ac_header_preproc" >&6; } 14433 14434# So? What about this header? 14435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14436 yes:no: ) 14437 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14438echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14439 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14440echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14441 ac_header_preproc=yes 14442 ;; 14443 no:yes:* ) 14444 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14445echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14446 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14447echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14448 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14449echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14450 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14451echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14452 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14453echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14454 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14455echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14456 ( cat <<\_ASBOX 14457## ----------------------------------- ## 14458## Report this to llvmbugs@cs.uiuc.edu ## 14459## ----------------------------------- ## 14460_ASBOX 14461 ) | sed "s/^/$as_me: WARNING: /" >&2 14462 ;; 14463esac 14464{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14465echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14466if test "${ac_cv_header_opagent_h+set}" = set; then 14467 echo $ECHO_N "(cached) $ECHO_C" >&6 14468else 14469 ac_cv_header_opagent_h=$ac_header_preproc 14470fi 14471{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14472echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14473 14474fi 14475if test $ac_cv_header_opagent_h = yes; then 14476 : 14477else 14478 14479 echo "Error! You need to have opagent.h around." 14480 exit -1 14481 14482fi 14483 14484 14485 fi 14486 14487else 14488 14489 USE_OPROFILE=0 14490 14491 14492fi 14493 14494 14495cat >>confdefs.h <<_ACEOF 14496#define USE_OPROFILE $USE_OPROFILE 14497_ACEOF 14498 14499 14500 14501 14502 14503 14504 14505 14506ac_header_dirent=no 14507for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14508 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14509{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14510echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14512 echo $ECHO_N "(cached) $ECHO_C" >&6 14513else 14514 cat >conftest.$ac_ext <<_ACEOF 14515/* confdefs.h. */ 14516_ACEOF 14517cat confdefs.h >>conftest.$ac_ext 14518cat >>conftest.$ac_ext <<_ACEOF 14519/* end confdefs.h. */ 14520#include <sys/types.h> 14521#include <$ac_hdr> 14522 14523int 14524main () 14525{ 14526if ((DIR *) 0) 14527return 0; 14528 ; 14529 return 0; 14530} 14531_ACEOF 14532rm -f conftest.$ac_objext 14533if { (ac_try="$ac_compile" 14534case "(($ac_try" in 14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14536 *) ac_try_echo=$ac_try;; 14537esac 14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14539 (eval "$ac_compile") 2>conftest.er1 14540 ac_status=$? 14541 grep -v '^ *+' conftest.er1 >conftest.err 14542 rm -f conftest.er1 14543 cat conftest.err >&5 14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14545 (exit $ac_status); } && 14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14547 { (case "(($ac_try" in 14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14549 *) ac_try_echo=$ac_try;; 14550esac 14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14552 (eval "$ac_try") 2>&5 14553 ac_status=$? 14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14555 (exit $ac_status); }; } && 14556 { ac_try='test -s conftest.$ac_objext' 14557 { (case "(($ac_try" in 14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14559 *) ac_try_echo=$ac_try;; 14560esac 14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14562 (eval "$ac_try") 2>&5 14563 ac_status=$? 14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14565 (exit $ac_status); }; }; then 14566 eval "$as_ac_Header=yes" 14567else 14568 echo "$as_me: failed program was:" >&5 14569sed 's/^/| /' conftest.$ac_ext >&5 14570 14571 eval "$as_ac_Header=no" 14572fi 14573 14574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14575fi 14576ac_res=`eval echo '${'$as_ac_Header'}'` 14577 { echo "$as_me:$LINENO: result: $ac_res" >&5 14578echo "${ECHO_T}$ac_res" >&6; } 14579if test `eval echo '${'$as_ac_Header'}'` = yes; then 14580 cat >>confdefs.h <<_ACEOF 14581#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14582_ACEOF 14583 14584ac_header_dirent=$ac_hdr; break 14585fi 14586 14587done 14588# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14589if test $ac_header_dirent = dirent.h; then 14590 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14591echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14592if test "${ac_cv_search_opendir+set}" = set; then 14593 echo $ECHO_N "(cached) $ECHO_C" >&6 14594else 14595 ac_func_search_save_LIBS=$LIBS 14596cat >conftest.$ac_ext <<_ACEOF 14597/* confdefs.h. */ 14598_ACEOF 14599cat confdefs.h >>conftest.$ac_ext 14600cat >>conftest.$ac_ext <<_ACEOF 14601/* end confdefs.h. */ 14602 14603/* Override any GCC internal prototype to avoid an error. 14604 Use char because int might match the return type of a GCC 14605 builtin and then its argument prototype would still apply. */ 14606#ifdef __cplusplus 14607extern "C" 14608#endif 14609char opendir (); 14610int 14611main () 14612{ 14613return opendir (); 14614 ; 14615 return 0; 14616} 14617_ACEOF 14618for ac_lib in '' dir; do 14619 if test -z "$ac_lib"; then 14620 ac_res="none required" 14621 else 14622 ac_res=-l$ac_lib 14623 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14624 fi 14625 rm -f conftest.$ac_objext conftest$ac_exeext 14626if { (ac_try="$ac_link" 14627case "(($ac_try" in 14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14629 *) ac_try_echo=$ac_try;; 14630esac 14631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14632 (eval "$ac_link") 2>conftest.er1 14633 ac_status=$? 14634 grep -v '^ *+' conftest.er1 >conftest.err 14635 rm -f conftest.er1 14636 cat conftest.err >&5 14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14638 (exit $ac_status); } && 14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14640 { (case "(($ac_try" in 14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14642 *) ac_try_echo=$ac_try;; 14643esac 14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14645 (eval "$ac_try") 2>&5 14646 ac_status=$? 14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14648 (exit $ac_status); }; } && 14649 { ac_try='test -s conftest$ac_exeext' 14650 { (case "(($ac_try" in 14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14652 *) ac_try_echo=$ac_try;; 14653esac 14654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14655 (eval "$ac_try") 2>&5 14656 ac_status=$? 14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14658 (exit $ac_status); }; }; then 14659 ac_cv_search_opendir=$ac_res 14660else 14661 echo "$as_me: failed program was:" >&5 14662sed 's/^/| /' conftest.$ac_ext >&5 14663 14664 14665fi 14666 14667rm -f core conftest.err conftest.$ac_objext \ 14668 conftest$ac_exeext 14669 if test "${ac_cv_search_opendir+set}" = set; then 14670 break 14671fi 14672done 14673if test "${ac_cv_search_opendir+set}" = set; then 14674 : 14675else 14676 ac_cv_search_opendir=no 14677fi 14678rm conftest.$ac_ext 14679LIBS=$ac_func_search_save_LIBS 14680fi 14681{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14682echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14683ac_res=$ac_cv_search_opendir 14684if test "$ac_res" != no; then 14685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14686 14687fi 14688 14689else 14690 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14692if test "${ac_cv_search_opendir+set}" = set; then 14693 echo $ECHO_N "(cached) $ECHO_C" >&6 14694else 14695 ac_func_search_save_LIBS=$LIBS 14696cat >conftest.$ac_ext <<_ACEOF 14697/* confdefs.h. */ 14698_ACEOF 14699cat confdefs.h >>conftest.$ac_ext 14700cat >>conftest.$ac_ext <<_ACEOF 14701/* end confdefs.h. */ 14702 14703/* Override any GCC internal prototype to avoid an error. 14704 Use char because int might match the return type of a GCC 14705 builtin and then its argument prototype would still apply. */ 14706#ifdef __cplusplus 14707extern "C" 14708#endif 14709char opendir (); 14710int 14711main () 14712{ 14713return opendir (); 14714 ; 14715 return 0; 14716} 14717_ACEOF 14718for ac_lib in '' x; do 14719 if test -z "$ac_lib"; then 14720 ac_res="none required" 14721 else 14722 ac_res=-l$ac_lib 14723 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14724 fi 14725 rm -f conftest.$ac_objext conftest$ac_exeext 14726if { (ac_try="$ac_link" 14727case "(($ac_try" in 14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14729 *) ac_try_echo=$ac_try;; 14730esac 14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14732 (eval "$ac_link") 2>conftest.er1 14733 ac_status=$? 14734 grep -v '^ *+' conftest.er1 >conftest.err 14735 rm -f conftest.er1 14736 cat conftest.err >&5 14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14738 (exit $ac_status); } && 14739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14740 { (case "(($ac_try" in 14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14742 *) ac_try_echo=$ac_try;; 14743esac 14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14745 (eval "$ac_try") 2>&5 14746 ac_status=$? 14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14748 (exit $ac_status); }; } && 14749 { ac_try='test -s conftest$ac_exeext' 14750 { (case "(($ac_try" in 14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14752 *) ac_try_echo=$ac_try;; 14753esac 14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14755 (eval "$ac_try") 2>&5 14756 ac_status=$? 14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14758 (exit $ac_status); }; }; then 14759 ac_cv_search_opendir=$ac_res 14760else 14761 echo "$as_me: failed program was:" >&5 14762sed 's/^/| /' conftest.$ac_ext >&5 14763 14764 14765fi 14766 14767rm -f core conftest.err conftest.$ac_objext \ 14768 conftest$ac_exeext 14769 if test "${ac_cv_search_opendir+set}" = set; then 14770 break 14771fi 14772done 14773if test "${ac_cv_search_opendir+set}" = set; then 14774 : 14775else 14776 ac_cv_search_opendir=no 14777fi 14778rm conftest.$ac_ext 14779LIBS=$ac_func_search_save_LIBS 14780fi 14781{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14782echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14783ac_res=$ac_cv_search_opendir 14784if test "$ac_res" != no; then 14785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14786 14787fi 14788 14789fi 14790 14791{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14792echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14793if test "${ac_cv_header_mmap_anon+set}" = set; then 14794 echo $ECHO_N "(cached) $ECHO_C" >&6 14795else 14796 ac_ext=c 14797ac_cpp='$CPP $CPPFLAGS' 14798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14800ac_compiler_gnu=$ac_cv_c_compiler_gnu 14801 14802 cat >conftest.$ac_ext <<_ACEOF 14803/* confdefs.h. */ 14804_ACEOF 14805cat confdefs.h >>conftest.$ac_ext 14806cat >>conftest.$ac_ext <<_ACEOF 14807/* end confdefs.h. */ 14808#include <sys/mman.h> 14809#include <unistd.h> 14810#include <fcntl.h> 14811int 14812main () 14813{ 14814mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14815 ; 14816 return 0; 14817} 14818_ACEOF 14819rm -f conftest.$ac_objext 14820if { (ac_try="$ac_compile" 14821case "(($ac_try" in 14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14823 *) ac_try_echo=$ac_try;; 14824esac 14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14826 (eval "$ac_compile") 2>conftest.er1 14827 ac_status=$? 14828 grep -v '^ *+' conftest.er1 >conftest.err 14829 rm -f conftest.er1 14830 cat conftest.err >&5 14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14832 (exit $ac_status); } && 14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14834 { (case "(($ac_try" in 14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14836 *) ac_try_echo=$ac_try;; 14837esac 14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14839 (eval "$ac_try") 2>&5 14840 ac_status=$? 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 (exit $ac_status); }; } && 14843 { ac_try='test -s conftest.$ac_objext' 14844 { (case "(($ac_try" in 14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14846 *) ac_try_echo=$ac_try;; 14847esac 14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14849 (eval "$ac_try") 2>&5 14850 ac_status=$? 14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14852 (exit $ac_status); }; }; then 14853 ac_cv_header_mmap_anon=yes 14854else 14855 echo "$as_me: failed program was:" >&5 14856sed 's/^/| /' conftest.$ac_ext >&5 14857 14858 ac_cv_header_mmap_anon=no 14859fi 14860 14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14862 ac_ext=c 14863ac_cpp='$CPP $CPPFLAGS' 14864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14866ac_compiler_gnu=$ac_cv_c_compiler_gnu 14867 14868 14869fi 14870{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14871echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14872if test "$ac_cv_header_mmap_anon" = yes; then 14873 14874cat >>confdefs.h <<\_ACEOF 14875#define HAVE_MMAP_ANONYMOUS 1 14876_ACEOF 14877 14878fi 14879 14880{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14881echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14882if test "${ac_cv_header_stat_broken+set}" = set; then 14883 echo $ECHO_N "(cached) $ECHO_C" >&6 14884else 14885 cat >conftest.$ac_ext <<_ACEOF 14886/* confdefs.h. */ 14887_ACEOF 14888cat confdefs.h >>conftest.$ac_ext 14889cat >>conftest.$ac_ext <<_ACEOF 14890/* end confdefs.h. */ 14891#include <sys/types.h> 14892#include <sys/stat.h> 14893 14894#if defined S_ISBLK && defined S_IFDIR 14895# if S_ISBLK (S_IFDIR) 14896You lose. 14897# endif 14898#endif 14899 14900#if defined S_ISBLK && defined S_IFCHR 14901# if S_ISBLK (S_IFCHR) 14902You lose. 14903# endif 14904#endif 14905 14906#if defined S_ISLNK && defined S_IFREG 14907# if S_ISLNK (S_IFREG) 14908You lose. 14909# endif 14910#endif 14911 14912#if defined S_ISSOCK && defined S_IFREG 14913# if S_ISSOCK (S_IFREG) 14914You lose. 14915# endif 14916#endif 14917 14918_ACEOF 14919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14920 $EGREP "You lose" >/dev/null 2>&1; then 14921 ac_cv_header_stat_broken=yes 14922else 14923 ac_cv_header_stat_broken=no 14924fi 14925rm -f conftest* 14926 14927fi 14928{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14929echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14930if test $ac_cv_header_stat_broken = yes; then 14931 14932cat >>confdefs.h <<\_ACEOF 14933#define STAT_MACROS_BROKEN 1 14934_ACEOF 14935 14936fi 14937 14938{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 14939echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 14940if test "${ac_cv_header_stdc+set}" = set; then 14941 echo $ECHO_N "(cached) $ECHO_C" >&6 14942else 14943 cat >conftest.$ac_ext <<_ACEOF 14944/* confdefs.h. */ 14945_ACEOF 14946cat confdefs.h >>conftest.$ac_ext 14947cat >>conftest.$ac_ext <<_ACEOF 14948/* end confdefs.h. */ 14949#include <stdlib.h> 14950#include <stdarg.h> 14951#include <string.h> 14952#include <float.h> 14953 14954int 14955main () 14956{ 14957 14958 ; 14959 return 0; 14960} 14961_ACEOF 14962rm -f conftest.$ac_objext 14963if { (ac_try="$ac_compile" 14964case "(($ac_try" in 14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14966 *) ac_try_echo=$ac_try;; 14967esac 14968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14969 (eval "$ac_compile") 2>conftest.er1 14970 ac_status=$? 14971 grep -v '^ *+' conftest.er1 >conftest.err 14972 rm -f conftest.er1 14973 cat conftest.err >&5 14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14975 (exit $ac_status); } && 14976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14977 { (case "(($ac_try" in 14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14979 *) ac_try_echo=$ac_try;; 14980esac 14981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14982 (eval "$ac_try") 2>&5 14983 ac_status=$? 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); }; } && 14986 { ac_try='test -s conftest.$ac_objext' 14987 { (case "(($ac_try" in 14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14989 *) ac_try_echo=$ac_try;; 14990esac 14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14992 (eval "$ac_try") 2>&5 14993 ac_status=$? 14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14995 (exit $ac_status); }; }; then 14996 ac_cv_header_stdc=yes 14997else 14998 echo "$as_me: failed program was:" >&5 14999sed 's/^/| /' conftest.$ac_ext >&5 15000 15001 ac_cv_header_stdc=no 15002fi 15003 15004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15005 15006if test $ac_cv_header_stdc = yes; then 15007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15008 cat >conftest.$ac_ext <<_ACEOF 15009/* confdefs.h. */ 15010_ACEOF 15011cat confdefs.h >>conftest.$ac_ext 15012cat >>conftest.$ac_ext <<_ACEOF 15013/* end confdefs.h. */ 15014#include <string.h> 15015 15016_ACEOF 15017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15018 $EGREP "memchr" >/dev/null 2>&1; then 15019 : 15020else 15021 ac_cv_header_stdc=no 15022fi 15023rm -f conftest* 15024 15025fi 15026 15027if test $ac_cv_header_stdc = yes; then 15028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15029 cat >conftest.$ac_ext <<_ACEOF 15030/* confdefs.h. */ 15031_ACEOF 15032cat confdefs.h >>conftest.$ac_ext 15033cat >>conftest.$ac_ext <<_ACEOF 15034/* end confdefs.h. */ 15035#include <stdlib.h> 15036 15037_ACEOF 15038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15039 $EGREP "free" >/dev/null 2>&1; then 15040 : 15041else 15042 ac_cv_header_stdc=no 15043fi 15044rm -f conftest* 15045 15046fi 15047 15048if test $ac_cv_header_stdc = yes; then 15049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15050 if test "$cross_compiling" = yes; then 15051 : 15052else 15053 cat >conftest.$ac_ext <<_ACEOF 15054/* confdefs.h. */ 15055_ACEOF 15056cat confdefs.h >>conftest.$ac_ext 15057cat >>conftest.$ac_ext <<_ACEOF 15058/* end confdefs.h. */ 15059#include <ctype.h> 15060#include <stdlib.h> 15061#if ((' ' & 0x0FF) == 0x020) 15062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15064#else 15065# define ISLOWER(c) \ 15066 (('a' <= (c) && (c) <= 'i') \ 15067 || ('j' <= (c) && (c) <= 'r') \ 15068 || ('s' <= (c) && (c) <= 'z')) 15069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15070#endif 15071 15072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15073int 15074main () 15075{ 15076 int i; 15077 for (i = 0; i < 256; i++) 15078 if (XOR (islower (i), ISLOWER (i)) 15079 || toupper (i) != TOUPPER (i)) 15080 return 2; 15081 return 0; 15082} 15083_ACEOF 15084rm -f conftest$ac_exeext 15085if { (ac_try="$ac_link" 15086case "(($ac_try" in 15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15088 *) ac_try_echo=$ac_try;; 15089esac 15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15091 (eval "$ac_link") 2>&5 15092 ac_status=$? 15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15095 { (case "(($ac_try" in 15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15097 *) ac_try_echo=$ac_try;; 15098esac 15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15100 (eval "$ac_try") 2>&5 15101 ac_status=$? 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 (exit $ac_status); }; }; then 15104 : 15105else 15106 echo "$as_me: program exited with status $ac_status" >&5 15107echo "$as_me: failed program was:" >&5 15108sed 's/^/| /' conftest.$ac_ext >&5 15109 15110( exit $ac_status ) 15111ac_cv_header_stdc=no 15112fi 15113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15114fi 15115 15116 15117fi 15118fi 15119{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15120echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15121if test $ac_cv_header_stdc = yes; then 15122 15123cat >>confdefs.h <<\_ACEOF 15124#define STDC_HEADERS 1 15125_ACEOF 15126 15127fi 15128 15129{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 15130echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 15131if test "${ac_cv_header_sys_wait_h+set}" = set; then 15132 echo $ECHO_N "(cached) $ECHO_C" >&6 15133else 15134 cat >conftest.$ac_ext <<_ACEOF 15135/* confdefs.h. */ 15136_ACEOF 15137cat confdefs.h >>conftest.$ac_ext 15138cat >>conftest.$ac_ext <<_ACEOF 15139/* end confdefs.h. */ 15140#include <sys/types.h> 15141#include <sys/wait.h> 15142#ifndef WEXITSTATUS 15143# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15144#endif 15145#ifndef WIFEXITED 15146# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15147#endif 15148 15149int 15150main () 15151{ 15152 int s; 15153 wait (&s); 15154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15155 ; 15156 return 0; 15157} 15158_ACEOF 15159rm -f conftest.$ac_objext 15160if { (ac_try="$ac_compile" 15161case "(($ac_try" in 15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15163 *) ac_try_echo=$ac_try;; 15164esac 15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15166 (eval "$ac_compile") 2>conftest.er1 15167 ac_status=$? 15168 grep -v '^ *+' conftest.er1 >conftest.err 15169 rm -f conftest.er1 15170 cat conftest.err >&5 15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15172 (exit $ac_status); } && 15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15174 { (case "(($ac_try" in 15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15176 *) ac_try_echo=$ac_try;; 15177esac 15178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15179 (eval "$ac_try") 2>&5 15180 ac_status=$? 15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15182 (exit $ac_status); }; } && 15183 { ac_try='test -s conftest.$ac_objext' 15184 { (case "(($ac_try" in 15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15186 *) ac_try_echo=$ac_try;; 15187esac 15188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15189 (eval "$ac_try") 2>&5 15190 ac_status=$? 15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15192 (exit $ac_status); }; }; then 15193 ac_cv_header_sys_wait_h=yes 15194else 15195 echo "$as_me: failed program was:" >&5 15196sed 's/^/| /' conftest.$ac_ext >&5 15197 15198 ac_cv_header_sys_wait_h=no 15199fi 15200 15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15202fi 15203{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 15204echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 15205if test $ac_cv_header_sys_wait_h = yes; then 15206 15207cat >>confdefs.h <<\_ACEOF 15208#define HAVE_SYS_WAIT_H 1 15209_ACEOF 15210 15211fi 15212 15213{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15214echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 15215if test "${ac_cv_header_time+set}" = set; then 15216 echo $ECHO_N "(cached) $ECHO_C" >&6 15217else 15218 cat >conftest.$ac_ext <<_ACEOF 15219/* confdefs.h. */ 15220_ACEOF 15221cat confdefs.h >>conftest.$ac_ext 15222cat >>conftest.$ac_ext <<_ACEOF 15223/* end confdefs.h. */ 15224#include <sys/types.h> 15225#include <sys/time.h> 15226#include <time.h> 15227 15228int 15229main () 15230{ 15231if ((struct tm *) 0) 15232return 0; 15233 ; 15234 return 0; 15235} 15236_ACEOF 15237rm -f conftest.$ac_objext 15238if { (ac_try="$ac_compile" 15239case "(($ac_try" in 15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15241 *) ac_try_echo=$ac_try;; 15242esac 15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15244 (eval "$ac_compile") 2>conftest.er1 15245 ac_status=$? 15246 grep -v '^ *+' conftest.er1 >conftest.err 15247 rm -f conftest.er1 15248 cat conftest.err >&5 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); } && 15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15252 { (case "(($ac_try" in 15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15254 *) ac_try_echo=$ac_try;; 15255esac 15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15257 (eval "$ac_try") 2>&5 15258 ac_status=$? 15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15260 (exit $ac_status); }; } && 15261 { ac_try='test -s conftest.$ac_objext' 15262 { (case "(($ac_try" in 15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15264 *) ac_try_echo=$ac_try;; 15265esac 15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15267 (eval "$ac_try") 2>&5 15268 ac_status=$? 15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15270 (exit $ac_status); }; }; then 15271 ac_cv_header_time=yes 15272else 15273 echo "$as_me: failed program was:" >&5 15274sed 's/^/| /' conftest.$ac_ext >&5 15275 15276 ac_cv_header_time=no 15277fi 15278 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15282echo "${ECHO_T}$ac_cv_header_time" >&6; } 15283if test $ac_cv_header_time = yes; then 15284 15285cat >>confdefs.h <<\_ACEOF 15286#define TIME_WITH_SYS_TIME 1 15287_ACEOF 15288 15289fi 15290 15291 15292 15293 15294 15295 15296 15297 15298for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15299do 15300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15305 echo $ECHO_N "(cached) $ECHO_C" >&6 15306fi 15307ac_res=`eval echo '${'$as_ac_Header'}'` 15308 { echo "$as_me:$LINENO: result: $ac_res" >&5 15309echo "${ECHO_T}$ac_res" >&6; } 15310else 15311 # Is the header compilable? 15312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15314cat >conftest.$ac_ext <<_ACEOF 15315/* confdefs.h. */ 15316_ACEOF 15317cat confdefs.h >>conftest.$ac_ext 15318cat >>conftest.$ac_ext <<_ACEOF 15319/* end confdefs.h. */ 15320$ac_includes_default 15321#include <$ac_header> 15322_ACEOF 15323rm -f conftest.$ac_objext 15324if { (ac_try="$ac_compile" 15325case "(($ac_try" in 15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15327 *) ac_try_echo=$ac_try;; 15328esac 15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15330 (eval "$ac_compile") 2>conftest.er1 15331 ac_status=$? 15332 grep -v '^ *+' conftest.er1 >conftest.err 15333 rm -f conftest.er1 15334 cat conftest.err >&5 15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15336 (exit $ac_status); } && 15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15338 { (case "(($ac_try" in 15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15340 *) ac_try_echo=$ac_try;; 15341esac 15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15343 (eval "$ac_try") 2>&5 15344 ac_status=$? 15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15346 (exit $ac_status); }; } && 15347 { ac_try='test -s conftest.$ac_objext' 15348 { (case "(($ac_try" in 15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15350 *) ac_try_echo=$ac_try;; 15351esac 15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15353 (eval "$ac_try") 2>&5 15354 ac_status=$? 15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15356 (exit $ac_status); }; }; then 15357 ac_header_compiler=yes 15358else 15359 echo "$as_me: failed program was:" >&5 15360sed 's/^/| /' conftest.$ac_ext >&5 15361 15362 ac_header_compiler=no 15363fi 15364 15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15367echo "${ECHO_T}$ac_header_compiler" >&6; } 15368 15369# Is the header present? 15370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15372cat >conftest.$ac_ext <<_ACEOF 15373/* confdefs.h. */ 15374_ACEOF 15375cat confdefs.h >>conftest.$ac_ext 15376cat >>conftest.$ac_ext <<_ACEOF 15377/* end confdefs.h. */ 15378#include <$ac_header> 15379_ACEOF 15380if { (ac_try="$ac_cpp conftest.$ac_ext" 15381case "(($ac_try" in 15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15383 *) ac_try_echo=$ac_try;; 15384esac 15385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15387 ac_status=$? 15388 grep -v '^ *+' conftest.er1 >conftest.err 15389 rm -f conftest.er1 15390 cat conftest.err >&5 15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15392 (exit $ac_status); } >/dev/null; then 15393 if test -s conftest.err; then 15394 ac_cpp_err=$ac_c_preproc_warn_flag 15395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15396 else 15397 ac_cpp_err= 15398 fi 15399else 15400 ac_cpp_err=yes 15401fi 15402if test -z "$ac_cpp_err"; then 15403 ac_header_preproc=yes 15404else 15405 echo "$as_me: failed program was:" >&5 15406sed 's/^/| /' conftest.$ac_ext >&5 15407 15408 ac_header_preproc=no 15409fi 15410 15411rm -f conftest.err conftest.$ac_ext 15412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15413echo "${ECHO_T}$ac_header_preproc" >&6; } 15414 15415# So? What about this header? 15416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15417 yes:no: ) 15418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15422 ac_header_preproc=yes 15423 ;; 15424 no:yes:* ) 15425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15437 ( cat <<\_ASBOX 15438## ----------------------------------- ## 15439## Report this to llvmbugs@cs.uiuc.edu ## 15440## ----------------------------------- ## 15441_ASBOX 15442 ) | sed "s/^/$as_me: WARNING: /" >&2 15443 ;; 15444esac 15445{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15448 echo $ECHO_N "(cached) $ECHO_C" >&6 15449else 15450 eval "$as_ac_Header=\$ac_header_preproc" 15451fi 15452ac_res=`eval echo '${'$as_ac_Header'}'` 15453 { echo "$as_me:$LINENO: result: $ac_res" >&5 15454echo "${ECHO_T}$ac_res" >&6; } 15455 15456fi 15457if test `eval echo '${'$as_ac_Header'}'` = yes; then 15458 cat >>confdefs.h <<_ACEOF 15459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15460_ACEOF 15461 15462fi 15463 15464done 15465 15466 15467 15468 15469 15470 15471 15472for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15473do 15474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15479 echo $ECHO_N "(cached) $ECHO_C" >&6 15480fi 15481ac_res=`eval echo '${'$as_ac_Header'}'` 15482 { echo "$as_me:$LINENO: result: $ac_res" >&5 15483echo "${ECHO_T}$ac_res" >&6; } 15484else 15485 # Is the header compilable? 15486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15488cat >conftest.$ac_ext <<_ACEOF 15489/* confdefs.h. */ 15490_ACEOF 15491cat confdefs.h >>conftest.$ac_ext 15492cat >>conftest.$ac_ext <<_ACEOF 15493/* end confdefs.h. */ 15494$ac_includes_default 15495#include <$ac_header> 15496_ACEOF 15497rm -f conftest.$ac_objext 15498if { (ac_try="$ac_compile" 15499case "(($ac_try" in 15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15501 *) ac_try_echo=$ac_try;; 15502esac 15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15504 (eval "$ac_compile") 2>conftest.er1 15505 ac_status=$? 15506 grep -v '^ *+' conftest.er1 >conftest.err 15507 rm -f conftest.er1 15508 cat conftest.err >&5 15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15510 (exit $ac_status); } && 15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15512 { (case "(($ac_try" in 15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15514 *) ac_try_echo=$ac_try;; 15515esac 15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15517 (eval "$ac_try") 2>&5 15518 ac_status=$? 15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15520 (exit $ac_status); }; } && 15521 { ac_try='test -s conftest.$ac_objext' 15522 { (case "(($ac_try" in 15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15524 *) ac_try_echo=$ac_try;; 15525esac 15526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15527 (eval "$ac_try") 2>&5 15528 ac_status=$? 15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15530 (exit $ac_status); }; }; then 15531 ac_header_compiler=yes 15532else 15533 echo "$as_me: failed program was:" >&5 15534sed 's/^/| /' conftest.$ac_ext >&5 15535 15536 ac_header_compiler=no 15537fi 15538 15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15541echo "${ECHO_T}$ac_header_compiler" >&6; } 15542 15543# Is the header present? 15544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15546cat >conftest.$ac_ext <<_ACEOF 15547/* confdefs.h. */ 15548_ACEOF 15549cat confdefs.h >>conftest.$ac_ext 15550cat >>conftest.$ac_ext <<_ACEOF 15551/* end confdefs.h. */ 15552#include <$ac_header> 15553_ACEOF 15554if { (ac_try="$ac_cpp conftest.$ac_ext" 15555case "(($ac_try" in 15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15557 *) ac_try_echo=$ac_try;; 15558esac 15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15561 ac_status=$? 15562 grep -v '^ *+' conftest.er1 >conftest.err 15563 rm -f conftest.er1 15564 cat conftest.err >&5 15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15566 (exit $ac_status); } >/dev/null; then 15567 if test -s conftest.err; then 15568 ac_cpp_err=$ac_c_preproc_warn_flag 15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15570 else 15571 ac_cpp_err= 15572 fi 15573else 15574 ac_cpp_err=yes 15575fi 15576if test -z "$ac_cpp_err"; then 15577 ac_header_preproc=yes 15578else 15579 echo "$as_me: failed program was:" >&5 15580sed 's/^/| /' conftest.$ac_ext >&5 15581 15582 ac_header_preproc=no 15583fi 15584 15585rm -f conftest.err conftest.$ac_ext 15586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15587echo "${ECHO_T}$ac_header_preproc" >&6; } 15588 15589# So? What about this header? 15590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15591 yes:no: ) 15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15596 ac_header_preproc=yes 15597 ;; 15598 no:yes:* ) 15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15611 ( cat <<\_ASBOX 15612## ----------------------------------- ## 15613## Report this to llvmbugs@cs.uiuc.edu ## 15614## ----------------------------------- ## 15615_ASBOX 15616 ) | sed "s/^/$as_me: WARNING: /" >&2 15617 ;; 15618esac 15619{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15622 echo $ECHO_N "(cached) $ECHO_C" >&6 15623else 15624 eval "$as_ac_Header=\$ac_header_preproc" 15625fi 15626ac_res=`eval echo '${'$as_ac_Header'}'` 15627 { echo "$as_me:$LINENO: result: $ac_res" >&5 15628echo "${ECHO_T}$ac_res" >&6; } 15629 15630fi 15631if test `eval echo '${'$as_ac_Header'}'` = yes; then 15632 cat >>confdefs.h <<_ACEOF 15633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15634_ACEOF 15635 15636fi 15637 15638done 15639 15640 15641 15642for ac_header in utime.h windows.h 15643do 15644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15649 echo $ECHO_N "(cached) $ECHO_C" >&6 15650fi 15651ac_res=`eval echo '${'$as_ac_Header'}'` 15652 { echo "$as_me:$LINENO: result: $ac_res" >&5 15653echo "${ECHO_T}$ac_res" >&6; } 15654else 15655 # Is the header compilable? 15656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15658cat >conftest.$ac_ext <<_ACEOF 15659/* confdefs.h. */ 15660_ACEOF 15661cat confdefs.h >>conftest.$ac_ext 15662cat >>conftest.$ac_ext <<_ACEOF 15663/* end confdefs.h. */ 15664$ac_includes_default 15665#include <$ac_header> 15666_ACEOF 15667rm -f conftest.$ac_objext 15668if { (ac_try="$ac_compile" 15669case "(($ac_try" in 15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15671 *) ac_try_echo=$ac_try;; 15672esac 15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15674 (eval "$ac_compile") 2>conftest.er1 15675 ac_status=$? 15676 grep -v '^ *+' conftest.er1 >conftest.err 15677 rm -f conftest.er1 15678 cat conftest.err >&5 15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15680 (exit $ac_status); } && 15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15682 { (case "(($ac_try" in 15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15684 *) ac_try_echo=$ac_try;; 15685esac 15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15687 (eval "$ac_try") 2>&5 15688 ac_status=$? 15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15690 (exit $ac_status); }; } && 15691 { ac_try='test -s conftest.$ac_objext' 15692 { (case "(($ac_try" in 15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15694 *) ac_try_echo=$ac_try;; 15695esac 15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15697 (eval "$ac_try") 2>&5 15698 ac_status=$? 15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15700 (exit $ac_status); }; }; then 15701 ac_header_compiler=yes 15702else 15703 echo "$as_me: failed program was:" >&5 15704sed 's/^/| /' conftest.$ac_ext >&5 15705 15706 ac_header_compiler=no 15707fi 15708 15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15711echo "${ECHO_T}$ac_header_compiler" >&6; } 15712 15713# Is the header present? 15714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15716cat >conftest.$ac_ext <<_ACEOF 15717/* confdefs.h. */ 15718_ACEOF 15719cat confdefs.h >>conftest.$ac_ext 15720cat >>conftest.$ac_ext <<_ACEOF 15721/* end confdefs.h. */ 15722#include <$ac_header> 15723_ACEOF 15724if { (ac_try="$ac_cpp conftest.$ac_ext" 15725case "(($ac_try" in 15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15727 *) ac_try_echo=$ac_try;; 15728esac 15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15731 ac_status=$? 15732 grep -v '^ *+' conftest.er1 >conftest.err 15733 rm -f conftest.er1 15734 cat conftest.err >&5 15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15736 (exit $ac_status); } >/dev/null; then 15737 if test -s conftest.err; then 15738 ac_cpp_err=$ac_c_preproc_warn_flag 15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15740 else 15741 ac_cpp_err= 15742 fi 15743else 15744 ac_cpp_err=yes 15745fi 15746if test -z "$ac_cpp_err"; then 15747 ac_header_preproc=yes 15748else 15749 echo "$as_me: failed program was:" >&5 15750sed 's/^/| /' conftest.$ac_ext >&5 15751 15752 ac_header_preproc=no 15753fi 15754 15755rm -f conftest.err conftest.$ac_ext 15756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15757echo "${ECHO_T}$ac_header_preproc" >&6; } 15758 15759# So? What about this header? 15760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15761 yes:no: ) 15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15766 ac_header_preproc=yes 15767 ;; 15768 no:yes:* ) 15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15781 ( cat <<\_ASBOX 15782## ----------------------------------- ## 15783## Report this to llvmbugs@cs.uiuc.edu ## 15784## ----------------------------------- ## 15785_ASBOX 15786 ) | sed "s/^/$as_me: WARNING: /" >&2 15787 ;; 15788esac 15789{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15792 echo $ECHO_N "(cached) $ECHO_C" >&6 15793else 15794 eval "$as_ac_Header=\$ac_header_preproc" 15795fi 15796ac_res=`eval echo '${'$as_ac_Header'}'` 15797 { echo "$as_me:$LINENO: result: $ac_res" >&5 15798echo "${ECHO_T}$ac_res" >&6; } 15799 15800fi 15801if test `eval echo '${'$as_ac_Header'}'` = yes; then 15802 cat >>confdefs.h <<_ACEOF 15803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15804_ACEOF 15805 15806fi 15807 15808done 15809 15810 15811 15812 15813 15814for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h 15815do 15816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15821 echo $ECHO_N "(cached) $ECHO_C" >&6 15822fi 15823ac_res=`eval echo '${'$as_ac_Header'}'` 15824 { echo "$as_me:$LINENO: result: $ac_res" >&5 15825echo "${ECHO_T}$ac_res" >&6; } 15826else 15827 # Is the header compilable? 15828{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15830cat >conftest.$ac_ext <<_ACEOF 15831/* confdefs.h. */ 15832_ACEOF 15833cat confdefs.h >>conftest.$ac_ext 15834cat >>conftest.$ac_ext <<_ACEOF 15835/* end confdefs.h. */ 15836$ac_includes_default 15837#include <$ac_header> 15838_ACEOF 15839rm -f conftest.$ac_objext 15840if { (ac_try="$ac_compile" 15841case "(($ac_try" in 15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15843 *) ac_try_echo=$ac_try;; 15844esac 15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15846 (eval "$ac_compile") 2>conftest.er1 15847 ac_status=$? 15848 grep -v '^ *+' conftest.er1 >conftest.err 15849 rm -f conftest.er1 15850 cat conftest.err >&5 15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15852 (exit $ac_status); } && 15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15854 { (case "(($ac_try" in 15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15856 *) ac_try_echo=$ac_try;; 15857esac 15858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15859 (eval "$ac_try") 2>&5 15860 ac_status=$? 15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15862 (exit $ac_status); }; } && 15863 { ac_try='test -s conftest.$ac_objext' 15864 { (case "(($ac_try" in 15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15866 *) ac_try_echo=$ac_try;; 15867esac 15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15869 (eval "$ac_try") 2>&5 15870 ac_status=$? 15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15872 (exit $ac_status); }; }; then 15873 ac_header_compiler=yes 15874else 15875 echo "$as_me: failed program was:" >&5 15876sed 's/^/| /' conftest.$ac_ext >&5 15877 15878 ac_header_compiler=no 15879fi 15880 15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15882{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15883echo "${ECHO_T}$ac_header_compiler" >&6; } 15884 15885# Is the header present? 15886{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15888cat >conftest.$ac_ext <<_ACEOF 15889/* confdefs.h. */ 15890_ACEOF 15891cat confdefs.h >>conftest.$ac_ext 15892cat >>conftest.$ac_ext <<_ACEOF 15893/* end confdefs.h. */ 15894#include <$ac_header> 15895_ACEOF 15896if { (ac_try="$ac_cpp conftest.$ac_ext" 15897case "(($ac_try" in 15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15899 *) ac_try_echo=$ac_try;; 15900esac 15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15903 ac_status=$? 15904 grep -v '^ *+' conftest.er1 >conftest.err 15905 rm -f conftest.er1 15906 cat conftest.err >&5 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15908 (exit $ac_status); } >/dev/null; then 15909 if test -s conftest.err; then 15910 ac_cpp_err=$ac_c_preproc_warn_flag 15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15912 else 15913 ac_cpp_err= 15914 fi 15915else 15916 ac_cpp_err=yes 15917fi 15918if test -z "$ac_cpp_err"; then 15919 ac_header_preproc=yes 15920else 15921 echo "$as_me: failed program was:" >&5 15922sed 's/^/| /' conftest.$ac_ext >&5 15923 15924 ac_header_preproc=no 15925fi 15926 15927rm -f conftest.err conftest.$ac_ext 15928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15929echo "${ECHO_T}$ac_header_preproc" >&6; } 15930 15931# So? What about this header? 15932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15933 yes:no: ) 15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15938 ac_header_preproc=yes 15939 ;; 15940 no:yes:* ) 15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15953 ( cat <<\_ASBOX 15954## ----------------------------------- ## 15955## Report this to llvmbugs@cs.uiuc.edu ## 15956## ----------------------------------- ## 15957_ASBOX 15958 ) | sed "s/^/$as_me: WARNING: /" >&2 15959 ;; 15960esac 15961{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15964 echo $ECHO_N "(cached) $ECHO_C" >&6 15965else 15966 eval "$as_ac_Header=\$ac_header_preproc" 15967fi 15968ac_res=`eval echo '${'$as_ac_Header'}'` 15969 { echo "$as_me:$LINENO: result: $ac_res" >&5 15970echo "${ECHO_T}$ac_res" >&6; } 15971 15972fi 15973if test `eval echo '${'$as_ac_Header'}'` = yes; then 15974 cat >>confdefs.h <<_ACEOF 15975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15976_ACEOF 15977 15978fi 15979 15980done 15981 15982 15983 15984 15985 15986for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15987do 15988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15990 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15993 echo $ECHO_N "(cached) $ECHO_C" >&6 15994fi 15995ac_res=`eval echo '${'$as_ac_Header'}'` 15996 { echo "$as_me:$LINENO: result: $ac_res" >&5 15997echo "${ECHO_T}$ac_res" >&6; } 15998else 15999 # Is the header compilable? 16000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16002cat >conftest.$ac_ext <<_ACEOF 16003/* confdefs.h. */ 16004_ACEOF 16005cat confdefs.h >>conftest.$ac_ext 16006cat >>conftest.$ac_ext <<_ACEOF 16007/* end confdefs.h. */ 16008$ac_includes_default 16009#include <$ac_header> 16010_ACEOF 16011rm -f conftest.$ac_objext 16012if { (ac_try="$ac_compile" 16013case "(($ac_try" in 16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16015 *) ac_try_echo=$ac_try;; 16016esac 16017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16018 (eval "$ac_compile") 2>conftest.er1 16019 ac_status=$? 16020 grep -v '^ *+' conftest.er1 >conftest.err 16021 rm -f conftest.er1 16022 cat conftest.err >&5 16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16024 (exit $ac_status); } && 16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16026 { (case "(($ac_try" in 16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16028 *) ac_try_echo=$ac_try;; 16029esac 16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16031 (eval "$ac_try") 2>&5 16032 ac_status=$? 16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16034 (exit $ac_status); }; } && 16035 { ac_try='test -s conftest.$ac_objext' 16036 { (case "(($ac_try" in 16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16038 *) ac_try_echo=$ac_try;; 16039esac 16040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16041 (eval "$ac_try") 2>&5 16042 ac_status=$? 16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16044 (exit $ac_status); }; }; then 16045 ac_header_compiler=yes 16046else 16047 echo "$as_me: failed program was:" >&5 16048sed 's/^/| /' conftest.$ac_ext >&5 16049 16050 ac_header_compiler=no 16051fi 16052 16053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16055echo "${ECHO_T}$ac_header_compiler" >&6; } 16056 16057# Is the header present? 16058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16060cat >conftest.$ac_ext <<_ACEOF 16061/* confdefs.h. */ 16062_ACEOF 16063cat confdefs.h >>conftest.$ac_ext 16064cat >>conftest.$ac_ext <<_ACEOF 16065/* end confdefs.h. */ 16066#include <$ac_header> 16067_ACEOF 16068if { (ac_try="$ac_cpp conftest.$ac_ext" 16069case "(($ac_try" in 16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16071 *) ac_try_echo=$ac_try;; 16072esac 16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16075 ac_status=$? 16076 grep -v '^ *+' conftest.er1 >conftest.err 16077 rm -f conftest.er1 16078 cat conftest.err >&5 16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16080 (exit $ac_status); } >/dev/null; then 16081 if test -s conftest.err; then 16082 ac_cpp_err=$ac_c_preproc_warn_flag 16083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16084 else 16085 ac_cpp_err= 16086 fi 16087else 16088 ac_cpp_err=yes 16089fi 16090if test -z "$ac_cpp_err"; then 16091 ac_header_preproc=yes 16092else 16093 echo "$as_me: failed program was:" >&5 16094sed 's/^/| /' conftest.$ac_ext >&5 16095 16096 ac_header_preproc=no 16097fi 16098 16099rm -f conftest.err conftest.$ac_ext 16100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16101echo "${ECHO_T}$ac_header_preproc" >&6; } 16102 16103# So? What about this header? 16104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16105 yes:no: ) 16106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16110 ac_header_preproc=yes 16111 ;; 16112 no:yes:* ) 16113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16125 ( cat <<\_ASBOX 16126## ----------------------------------- ## 16127## Report this to llvmbugs@cs.uiuc.edu ## 16128## ----------------------------------- ## 16129_ASBOX 16130 ) | sed "s/^/$as_me: WARNING: /" >&2 16131 ;; 16132esac 16133{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16136 echo $ECHO_N "(cached) $ECHO_C" >&6 16137else 16138 eval "$as_ac_Header=\$ac_header_preproc" 16139fi 16140ac_res=`eval echo '${'$as_ac_Header'}'` 16141 { echo "$as_me:$LINENO: result: $ac_res" >&5 16142echo "${ECHO_T}$ac_res" >&6; } 16143 16144fi 16145if test `eval echo '${'$as_ac_Header'}'` = yes; then 16146 cat >>confdefs.h <<_ACEOF 16147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16148_ACEOF 16149 16150fi 16151 16152done 16153 16154if test "$ENABLE_THREADS" -eq 1 ; then 16155 16156for ac_header in pthread.h 16157do 16158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16160 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16163 echo $ECHO_N "(cached) $ECHO_C" >&6 16164fi 16165ac_res=`eval echo '${'$as_ac_Header'}'` 16166 { echo "$as_me:$LINENO: result: $ac_res" >&5 16167echo "${ECHO_T}$ac_res" >&6; } 16168else 16169 # Is the header compilable? 16170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16172cat >conftest.$ac_ext <<_ACEOF 16173/* confdefs.h. */ 16174_ACEOF 16175cat confdefs.h >>conftest.$ac_ext 16176cat >>conftest.$ac_ext <<_ACEOF 16177/* end confdefs.h. */ 16178$ac_includes_default 16179#include <$ac_header> 16180_ACEOF 16181rm -f conftest.$ac_objext 16182if { (ac_try="$ac_compile" 16183case "(($ac_try" in 16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16185 *) ac_try_echo=$ac_try;; 16186esac 16187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16188 (eval "$ac_compile") 2>conftest.er1 16189 ac_status=$? 16190 grep -v '^ *+' conftest.er1 >conftest.err 16191 rm -f conftest.er1 16192 cat conftest.err >&5 16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16194 (exit $ac_status); } && 16195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16196 { (case "(($ac_try" in 16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16198 *) ac_try_echo=$ac_try;; 16199esac 16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16201 (eval "$ac_try") 2>&5 16202 ac_status=$? 16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16204 (exit $ac_status); }; } && 16205 { ac_try='test -s conftest.$ac_objext' 16206 { (case "(($ac_try" in 16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16208 *) ac_try_echo=$ac_try;; 16209esac 16210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16211 (eval "$ac_try") 2>&5 16212 ac_status=$? 16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16214 (exit $ac_status); }; }; then 16215 ac_header_compiler=yes 16216else 16217 echo "$as_me: failed program was:" >&5 16218sed 's/^/| /' conftest.$ac_ext >&5 16219 16220 ac_header_compiler=no 16221fi 16222 16223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16225echo "${ECHO_T}$ac_header_compiler" >&6; } 16226 16227# Is the header present? 16228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16230cat >conftest.$ac_ext <<_ACEOF 16231/* confdefs.h. */ 16232_ACEOF 16233cat confdefs.h >>conftest.$ac_ext 16234cat >>conftest.$ac_ext <<_ACEOF 16235/* end confdefs.h. */ 16236#include <$ac_header> 16237_ACEOF 16238if { (ac_try="$ac_cpp conftest.$ac_ext" 16239case "(($ac_try" in 16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16241 *) ac_try_echo=$ac_try;; 16242esac 16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16245 ac_status=$? 16246 grep -v '^ *+' conftest.er1 >conftest.err 16247 rm -f conftest.er1 16248 cat conftest.err >&5 16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16250 (exit $ac_status); } >/dev/null; then 16251 if test -s conftest.err; then 16252 ac_cpp_err=$ac_c_preproc_warn_flag 16253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16254 else 16255 ac_cpp_err= 16256 fi 16257else 16258 ac_cpp_err=yes 16259fi 16260if test -z "$ac_cpp_err"; then 16261 ac_header_preproc=yes 16262else 16263 echo "$as_me: failed program was:" >&5 16264sed 's/^/| /' conftest.$ac_ext >&5 16265 16266 ac_header_preproc=no 16267fi 16268 16269rm -f conftest.err conftest.$ac_ext 16270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16271echo "${ECHO_T}$ac_header_preproc" >&6; } 16272 16273# So? What about this header? 16274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16275 yes:no: ) 16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16280 ac_header_preproc=yes 16281 ;; 16282 no:yes:* ) 16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16295 ( cat <<\_ASBOX 16296## ----------------------------------- ## 16297## Report this to llvmbugs@cs.uiuc.edu ## 16298## ----------------------------------- ## 16299_ASBOX 16300 ) | sed "s/^/$as_me: WARNING: /" >&2 16301 ;; 16302esac 16303{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16306 echo $ECHO_N "(cached) $ECHO_C" >&6 16307else 16308 eval "$as_ac_Header=\$ac_header_preproc" 16309fi 16310ac_res=`eval echo '${'$as_ac_Header'}'` 16311 { echo "$as_me:$LINENO: result: $ac_res" >&5 16312echo "${ECHO_T}$ac_res" >&6; } 16313 16314fi 16315if test `eval echo '${'$as_ac_Header'}'` = yes; then 16316 cat >>confdefs.h <<_ACEOF 16317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16318_ACEOF 16319 HAVE_PTHREAD=1 16320 16321else 16322 HAVE_PTHREAD=0 16323 16324fi 16325 16326done 16327 16328else 16329 HAVE_PTHREAD=0 16330 16331fi 16332 16333if test "$llvm_cv_enable_libffi" = "yes" ; then 16334 16335 16336for ac_header in ffi.h ffi/ffi.h 16337do 16338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16343 echo $ECHO_N "(cached) $ECHO_C" >&6 16344fi 16345ac_res=`eval echo '${'$as_ac_Header'}'` 16346 { echo "$as_me:$LINENO: result: $ac_res" >&5 16347echo "${ECHO_T}$ac_res" >&6; } 16348else 16349 # Is the header compilable? 16350{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16352cat >conftest.$ac_ext <<_ACEOF 16353/* confdefs.h. */ 16354_ACEOF 16355cat confdefs.h >>conftest.$ac_ext 16356cat >>conftest.$ac_ext <<_ACEOF 16357/* end confdefs.h. */ 16358$ac_includes_default 16359#include <$ac_header> 16360_ACEOF 16361rm -f conftest.$ac_objext 16362if { (ac_try="$ac_compile" 16363case "(($ac_try" in 16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16365 *) ac_try_echo=$ac_try;; 16366esac 16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16368 (eval "$ac_compile") 2>conftest.er1 16369 ac_status=$? 16370 grep -v '^ *+' conftest.er1 >conftest.err 16371 rm -f conftest.er1 16372 cat conftest.err >&5 16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16374 (exit $ac_status); } && 16375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16376 { (case "(($ac_try" in 16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16378 *) ac_try_echo=$ac_try;; 16379esac 16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16381 (eval "$ac_try") 2>&5 16382 ac_status=$? 16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 (exit $ac_status); }; } && 16385 { ac_try='test -s conftest.$ac_objext' 16386 { (case "(($ac_try" in 16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16388 *) ac_try_echo=$ac_try;; 16389esac 16390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16391 (eval "$ac_try") 2>&5 16392 ac_status=$? 16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16394 (exit $ac_status); }; }; then 16395 ac_header_compiler=yes 16396else 16397 echo "$as_me: failed program was:" >&5 16398sed 's/^/| /' conftest.$ac_ext >&5 16399 16400 ac_header_compiler=no 16401fi 16402 16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16405echo "${ECHO_T}$ac_header_compiler" >&6; } 16406 16407# Is the header present? 16408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16410cat >conftest.$ac_ext <<_ACEOF 16411/* confdefs.h. */ 16412_ACEOF 16413cat confdefs.h >>conftest.$ac_ext 16414cat >>conftest.$ac_ext <<_ACEOF 16415/* end confdefs.h. */ 16416#include <$ac_header> 16417_ACEOF 16418if { (ac_try="$ac_cpp conftest.$ac_ext" 16419case "(($ac_try" in 16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16421 *) ac_try_echo=$ac_try;; 16422esac 16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16425 ac_status=$? 16426 grep -v '^ *+' conftest.er1 >conftest.err 16427 rm -f conftest.er1 16428 cat conftest.err >&5 16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16430 (exit $ac_status); } >/dev/null; then 16431 if test -s conftest.err; then 16432 ac_cpp_err=$ac_c_preproc_warn_flag 16433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16434 else 16435 ac_cpp_err= 16436 fi 16437else 16438 ac_cpp_err=yes 16439fi 16440if test -z "$ac_cpp_err"; then 16441 ac_header_preproc=yes 16442else 16443 echo "$as_me: failed program was:" >&5 16444sed 's/^/| /' conftest.$ac_ext >&5 16445 16446 ac_header_preproc=no 16447fi 16448 16449rm -f conftest.err conftest.$ac_ext 16450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16451echo "${ECHO_T}$ac_header_preproc" >&6; } 16452 16453# So? What about this header? 16454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16455 yes:no: ) 16456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16460 ac_header_preproc=yes 16461 ;; 16462 no:yes:* ) 16463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16475 ( cat <<\_ASBOX 16476## ----------------------------------- ## 16477## Report this to llvmbugs@cs.uiuc.edu ## 16478## ----------------------------------- ## 16479_ASBOX 16480 ) | sed "s/^/$as_me: WARNING: /" >&2 16481 ;; 16482esac 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 16487else 16488 eval "$as_ac_Header=\$ac_header_preproc" 16489fi 16490ac_res=`eval echo '${'$as_ac_Header'}'` 16491 { echo "$as_me:$LINENO: result: $ac_res" >&5 16492echo "${ECHO_T}$ac_res" >&6; } 16493 16494fi 16495if test `eval echo '${'$as_ac_Header'}'` = yes; then 16496 cat >>confdefs.h <<_ACEOF 16497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16498_ACEOF 16499 16500fi 16501 16502done 16503 16504fi 16505 16506 16507 16508 16509 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16510echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16511if test "${ac_cv_huge_val_sanity+set}" = set; then 16512 echo $ECHO_N "(cached) $ECHO_C" >&6 16513else 16514 16515 ac_ext=cpp 16516ac_cpp='$CXXCPP $CPPFLAGS' 16517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16520 16521 CXXFLAGS=-pedantic 16522 if test "$cross_compiling" = yes; then 16523 ac_cv_huge_val_sanity=yes 16524else 16525 cat >conftest.$ac_ext <<_ACEOF 16526/* confdefs.h. */ 16527_ACEOF 16528cat confdefs.h >>conftest.$ac_ext 16529cat >>conftest.$ac_ext <<_ACEOF 16530/* end confdefs.h. */ 16531#include <math.h> 16532int 16533main () 16534{ 16535double x = HUGE_VAL; return x != x; 16536 ; 16537 return 0; 16538} 16539_ACEOF 16540rm -f conftest$ac_exeext 16541if { (ac_try="$ac_link" 16542case "(($ac_try" in 16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16544 *) ac_try_echo=$ac_try;; 16545esac 16546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16547 (eval "$ac_link") 2>&5 16548 ac_status=$? 16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16551 { (case "(($ac_try" in 16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16553 *) ac_try_echo=$ac_try;; 16554esac 16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16556 (eval "$ac_try") 2>&5 16557 ac_status=$? 16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16559 (exit $ac_status); }; }; then 16560 ac_cv_huge_val_sanity=yes 16561else 16562 echo "$as_me: program exited with status $ac_status" >&5 16563echo "$as_me: failed program was:" >&5 16564sed 's/^/| /' conftest.$ac_ext >&5 16565 16566( exit $ac_status ) 16567ac_cv_huge_val_sanity=no 16568fi 16569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16570fi 16571 16572 16573 ac_ext=c 16574ac_cpp='$CPP $CPPFLAGS' 16575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16577ac_compiler_gnu=$ac_cv_c_compiler_gnu 16578 16579 16580fi 16581{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16582echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16583 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16584 16585 16586{ echo "$as_me:$LINENO: checking for pid_t" >&5 16587echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16588if test "${ac_cv_type_pid_t+set}" = set; then 16589 echo $ECHO_N "(cached) $ECHO_C" >&6 16590else 16591 cat >conftest.$ac_ext <<_ACEOF 16592/* confdefs.h. */ 16593_ACEOF 16594cat confdefs.h >>conftest.$ac_ext 16595cat >>conftest.$ac_ext <<_ACEOF 16596/* end confdefs.h. */ 16597$ac_includes_default 16598typedef pid_t ac__type_new_; 16599int 16600main () 16601{ 16602if ((ac__type_new_ *) 0) 16603 return 0; 16604if (sizeof (ac__type_new_)) 16605 return 0; 16606 ; 16607 return 0; 16608} 16609_ACEOF 16610rm -f conftest.$ac_objext 16611if { (ac_try="$ac_compile" 16612case "(($ac_try" in 16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16614 *) ac_try_echo=$ac_try;; 16615esac 16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16617 (eval "$ac_compile") 2>conftest.er1 16618 ac_status=$? 16619 grep -v '^ *+' conftest.er1 >conftest.err 16620 rm -f conftest.er1 16621 cat conftest.err >&5 16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16623 (exit $ac_status); } && 16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16625 { (case "(($ac_try" in 16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16627 *) ac_try_echo=$ac_try;; 16628esac 16629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16630 (eval "$ac_try") 2>&5 16631 ac_status=$? 16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16633 (exit $ac_status); }; } && 16634 { ac_try='test -s conftest.$ac_objext' 16635 { (case "(($ac_try" in 16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16637 *) ac_try_echo=$ac_try;; 16638esac 16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16640 (eval "$ac_try") 2>&5 16641 ac_status=$? 16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16643 (exit $ac_status); }; }; then 16644 ac_cv_type_pid_t=yes 16645else 16646 echo "$as_me: failed program was:" >&5 16647sed 's/^/| /' conftest.$ac_ext >&5 16648 16649 ac_cv_type_pid_t=no 16650fi 16651 16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16653fi 16654{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16655echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16656if test $ac_cv_type_pid_t = yes; then 16657 : 16658else 16659 16660cat >>confdefs.h <<_ACEOF 16661#define pid_t int 16662_ACEOF 16663 16664fi 16665 16666{ echo "$as_me:$LINENO: checking for size_t" >&5 16667echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16668if test "${ac_cv_type_size_t+set}" = set; then 16669 echo $ECHO_N "(cached) $ECHO_C" >&6 16670else 16671 cat >conftest.$ac_ext <<_ACEOF 16672/* confdefs.h. */ 16673_ACEOF 16674cat confdefs.h >>conftest.$ac_ext 16675cat >>conftest.$ac_ext <<_ACEOF 16676/* end confdefs.h. */ 16677$ac_includes_default 16678typedef size_t ac__type_new_; 16679int 16680main () 16681{ 16682if ((ac__type_new_ *) 0) 16683 return 0; 16684if (sizeof (ac__type_new_)) 16685 return 0; 16686 ; 16687 return 0; 16688} 16689_ACEOF 16690rm -f conftest.$ac_objext 16691if { (ac_try="$ac_compile" 16692case "(($ac_try" in 16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16694 *) ac_try_echo=$ac_try;; 16695esac 16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16697 (eval "$ac_compile") 2>conftest.er1 16698 ac_status=$? 16699 grep -v '^ *+' conftest.er1 >conftest.err 16700 rm -f conftest.er1 16701 cat conftest.err >&5 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); } && 16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16705 { (case "(($ac_try" in 16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16707 *) ac_try_echo=$ac_try;; 16708esac 16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16710 (eval "$ac_try") 2>&5 16711 ac_status=$? 16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16713 (exit $ac_status); }; } && 16714 { ac_try='test -s conftest.$ac_objext' 16715 { (case "(($ac_try" in 16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16717 *) ac_try_echo=$ac_try;; 16718esac 16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16720 (eval "$ac_try") 2>&5 16721 ac_status=$? 16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16723 (exit $ac_status); }; }; then 16724 ac_cv_type_size_t=yes 16725else 16726 echo "$as_me: failed program was:" >&5 16727sed 's/^/| /' conftest.$ac_ext >&5 16728 16729 ac_cv_type_size_t=no 16730fi 16731 16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16733fi 16734{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16735echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16736if test $ac_cv_type_size_t = yes; then 16737 : 16738else 16739 16740cat >>confdefs.h <<_ACEOF 16741#define size_t unsigned int 16742_ACEOF 16743 16744fi 16745 16746 16747cat >>confdefs.h <<_ACEOF 16748#define RETSIGTYPE void 16749_ACEOF 16750 16751{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16752echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16753if test "${ac_cv_struct_tm+set}" = set; then 16754 echo $ECHO_N "(cached) $ECHO_C" >&6 16755else 16756 cat >conftest.$ac_ext <<_ACEOF 16757/* confdefs.h. */ 16758_ACEOF 16759cat confdefs.h >>conftest.$ac_ext 16760cat >>conftest.$ac_ext <<_ACEOF 16761/* end confdefs.h. */ 16762#include <sys/types.h> 16763#include <time.h> 16764 16765int 16766main () 16767{ 16768struct tm *tp; tp->tm_sec; 16769 ; 16770 return 0; 16771} 16772_ACEOF 16773rm -f conftest.$ac_objext 16774if { (ac_try="$ac_compile" 16775case "(($ac_try" in 16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16777 *) ac_try_echo=$ac_try;; 16778esac 16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16780 (eval "$ac_compile") 2>conftest.er1 16781 ac_status=$? 16782 grep -v '^ *+' conftest.er1 >conftest.err 16783 rm -f conftest.er1 16784 cat conftest.err >&5 16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16786 (exit $ac_status); } && 16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16788 { (case "(($ac_try" in 16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16790 *) ac_try_echo=$ac_try;; 16791esac 16792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16793 (eval "$ac_try") 2>&5 16794 ac_status=$? 16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16796 (exit $ac_status); }; } && 16797 { ac_try='test -s conftest.$ac_objext' 16798 { (case "(($ac_try" in 16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16800 *) ac_try_echo=$ac_try;; 16801esac 16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16803 (eval "$ac_try") 2>&5 16804 ac_status=$? 16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16806 (exit $ac_status); }; }; then 16807 ac_cv_struct_tm=time.h 16808else 16809 echo "$as_me: failed program was:" >&5 16810sed 's/^/| /' conftest.$ac_ext >&5 16811 16812 ac_cv_struct_tm=sys/time.h 16813fi 16814 16815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16816fi 16817{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16818echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16819if test $ac_cv_struct_tm = sys/time.h; then 16820 16821cat >>confdefs.h <<\_ACEOF 16822#define TM_IN_SYS_TIME 1 16823_ACEOF 16824 16825fi 16826 16827{ echo "$as_me:$LINENO: checking for int64_t" >&5 16828echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16829if test "${ac_cv_type_int64_t+set}" = set; then 16830 echo $ECHO_N "(cached) $ECHO_C" >&6 16831else 16832 cat >conftest.$ac_ext <<_ACEOF 16833/* confdefs.h. */ 16834_ACEOF 16835cat confdefs.h >>conftest.$ac_ext 16836cat >>conftest.$ac_ext <<_ACEOF 16837/* end confdefs.h. */ 16838$ac_includes_default 16839typedef int64_t ac__type_new_; 16840int 16841main () 16842{ 16843if ((ac__type_new_ *) 0) 16844 return 0; 16845if (sizeof (ac__type_new_)) 16846 return 0; 16847 ; 16848 return 0; 16849} 16850_ACEOF 16851rm -f conftest.$ac_objext 16852if { (ac_try="$ac_compile" 16853case "(($ac_try" in 16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16855 *) ac_try_echo=$ac_try;; 16856esac 16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16858 (eval "$ac_compile") 2>conftest.er1 16859 ac_status=$? 16860 grep -v '^ *+' conftest.er1 >conftest.err 16861 rm -f conftest.er1 16862 cat conftest.err >&5 16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16864 (exit $ac_status); } && 16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16866 { (case "(($ac_try" in 16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16868 *) ac_try_echo=$ac_try;; 16869esac 16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16871 (eval "$ac_try") 2>&5 16872 ac_status=$? 16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16874 (exit $ac_status); }; } && 16875 { ac_try='test -s conftest.$ac_objext' 16876 { (case "(($ac_try" in 16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16878 *) ac_try_echo=$ac_try;; 16879esac 16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16881 (eval "$ac_try") 2>&5 16882 ac_status=$? 16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16884 (exit $ac_status); }; }; then 16885 ac_cv_type_int64_t=yes 16886else 16887 echo "$as_me: failed program was:" >&5 16888sed 's/^/| /' conftest.$ac_ext >&5 16889 16890 ac_cv_type_int64_t=no 16891fi 16892 16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16894fi 16895{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16896echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16897if test $ac_cv_type_int64_t = yes; then 16898 16899cat >>confdefs.h <<_ACEOF 16900#define HAVE_INT64_T 1 16901_ACEOF 16902 16903 16904else 16905 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16906echo "$as_me: error: Type int64_t required but not found" >&2;} 16907 { (exit 1); exit 1; }; } 16908fi 16909 16910{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16911echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16912if test "${ac_cv_type_uint64_t+set}" = set; then 16913 echo $ECHO_N "(cached) $ECHO_C" >&6 16914else 16915 cat >conftest.$ac_ext <<_ACEOF 16916/* confdefs.h. */ 16917_ACEOF 16918cat confdefs.h >>conftest.$ac_ext 16919cat >>conftest.$ac_ext <<_ACEOF 16920/* end confdefs.h. */ 16921$ac_includes_default 16922typedef uint64_t ac__type_new_; 16923int 16924main () 16925{ 16926if ((ac__type_new_ *) 0) 16927 return 0; 16928if (sizeof (ac__type_new_)) 16929 return 0; 16930 ; 16931 return 0; 16932} 16933_ACEOF 16934rm -f conftest.$ac_objext 16935if { (ac_try="$ac_compile" 16936case "(($ac_try" in 16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16938 *) ac_try_echo=$ac_try;; 16939esac 16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16941 (eval "$ac_compile") 2>conftest.er1 16942 ac_status=$? 16943 grep -v '^ *+' conftest.er1 >conftest.err 16944 rm -f conftest.er1 16945 cat conftest.err >&5 16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16947 (exit $ac_status); } && 16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16949 { (case "(($ac_try" in 16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16951 *) ac_try_echo=$ac_try;; 16952esac 16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16954 (eval "$ac_try") 2>&5 16955 ac_status=$? 16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16957 (exit $ac_status); }; } && 16958 { ac_try='test -s conftest.$ac_objext' 16959 { (case "(($ac_try" in 16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16961 *) ac_try_echo=$ac_try;; 16962esac 16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16964 (eval "$ac_try") 2>&5 16965 ac_status=$? 16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16967 (exit $ac_status); }; }; then 16968 ac_cv_type_uint64_t=yes 16969else 16970 echo "$as_me: failed program was:" >&5 16971sed 's/^/| /' conftest.$ac_ext >&5 16972 16973 ac_cv_type_uint64_t=no 16974fi 16975 16976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16977fi 16978{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16979echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16980if test $ac_cv_type_uint64_t = yes; then 16981 16982cat >>confdefs.h <<_ACEOF 16983#define HAVE_UINT64_T 1 16984_ACEOF 16985 16986 16987else 16988 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16989echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16990if test "${ac_cv_type_u_int64_t+set}" = set; then 16991 echo $ECHO_N "(cached) $ECHO_C" >&6 16992else 16993 cat >conftest.$ac_ext <<_ACEOF 16994/* confdefs.h. */ 16995_ACEOF 16996cat confdefs.h >>conftest.$ac_ext 16997cat >>conftest.$ac_ext <<_ACEOF 16998/* end confdefs.h. */ 16999$ac_includes_default 17000typedef u_int64_t ac__type_new_; 17001int 17002main () 17003{ 17004if ((ac__type_new_ *) 0) 17005 return 0; 17006if (sizeof (ac__type_new_)) 17007 return 0; 17008 ; 17009 return 0; 17010} 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_cv_type_u_int64_t=yes 17047else 17048 echo "$as_me: failed program was:" >&5 17049sed 's/^/| /' conftest.$ac_ext >&5 17050 17051 ac_cv_type_u_int64_t=no 17052fi 17053 17054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17055fi 17056{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17057echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17058if test $ac_cv_type_u_int64_t = yes; then 17059 17060cat >>confdefs.h <<_ACEOF 17061#define HAVE_U_INT64_T 1 17062_ACEOF 17063 17064 17065else 17066 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17067echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17068 { (exit 1); exit 1; }; } 17069fi 17070 17071fi 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17083do 17084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17085{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17088 echo $ECHO_N "(cached) $ECHO_C" >&6 17089else 17090 cat >conftest.$ac_ext <<_ACEOF 17091/* confdefs.h. */ 17092_ACEOF 17093cat confdefs.h >>conftest.$ac_ext 17094cat >>conftest.$ac_ext <<_ACEOF 17095/* end confdefs.h. */ 17096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17097 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17098#define $ac_func innocuous_$ac_func 17099 17100/* System header to define __stub macros and hopefully few prototypes, 17101 which can conflict with char $ac_func (); below. 17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17103 <limits.h> exists even on freestanding compilers. */ 17104 17105#ifdef __STDC__ 17106# include <limits.h> 17107#else 17108# include <assert.h> 17109#endif 17110 17111#undef $ac_func 17112 17113/* Override any GCC internal prototype to avoid an error. 17114 Use char because int might match the return type of a GCC 17115 builtin and then its argument prototype would still apply. */ 17116#ifdef __cplusplus 17117extern "C" 17118#endif 17119char $ac_func (); 17120/* The GNU C library defines this for functions which it implements 17121 to always fail with ENOSYS. Some functions are actually named 17122 something starting with __ and the normal name is an alias. */ 17123#if defined __stub_$ac_func || defined __stub___$ac_func 17124choke me 17125#endif 17126 17127int 17128main () 17129{ 17130return $ac_func (); 17131 ; 17132 return 0; 17133} 17134_ACEOF 17135rm -f conftest.$ac_objext conftest$ac_exeext 17136if { (ac_try="$ac_link" 17137case "(($ac_try" in 17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17139 *) ac_try_echo=$ac_try;; 17140esac 17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17142 (eval "$ac_link") 2>conftest.er1 17143 ac_status=$? 17144 grep -v '^ *+' conftest.er1 >conftest.err 17145 rm -f conftest.er1 17146 cat conftest.err >&5 17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17148 (exit $ac_status); } && 17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17150 { (case "(($ac_try" in 17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17152 *) ac_try_echo=$ac_try;; 17153esac 17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17155 (eval "$ac_try") 2>&5 17156 ac_status=$? 17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17158 (exit $ac_status); }; } && 17159 { ac_try='test -s conftest$ac_exeext' 17160 { (case "(($ac_try" in 17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17162 *) ac_try_echo=$ac_try;; 17163esac 17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17165 (eval "$ac_try") 2>&5 17166 ac_status=$? 17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17168 (exit $ac_status); }; }; then 17169 eval "$as_ac_var=yes" 17170else 17171 echo "$as_me: failed program was:" >&5 17172sed 's/^/| /' conftest.$ac_ext >&5 17173 17174 eval "$as_ac_var=no" 17175fi 17176 17177rm -f core conftest.err conftest.$ac_objext \ 17178 conftest$ac_exeext conftest.$ac_ext 17179fi 17180ac_res=`eval echo '${'$as_ac_var'}'` 17181 { echo "$as_me:$LINENO: result: $ac_res" >&5 17182echo "${ECHO_T}$ac_res" >&6; } 17183if test `eval echo '${'$as_ac_var'}'` = yes; then 17184 cat >>confdefs.h <<_ACEOF 17185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17186_ACEOF 17187 17188fi 17189done 17190 17191 17192 17193 17194 17195for ac_func in powf fmodf strtof round 17196do 17197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17198{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17201 echo $ECHO_N "(cached) $ECHO_C" >&6 17202else 17203 cat >conftest.$ac_ext <<_ACEOF 17204/* confdefs.h. */ 17205_ACEOF 17206cat confdefs.h >>conftest.$ac_ext 17207cat >>conftest.$ac_ext <<_ACEOF 17208/* end confdefs.h. */ 17209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17211#define $ac_func innocuous_$ac_func 17212 17213/* System header to define __stub macros and hopefully few prototypes, 17214 which can conflict with char $ac_func (); below. 17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17216 <limits.h> exists even on freestanding compilers. */ 17217 17218#ifdef __STDC__ 17219# include <limits.h> 17220#else 17221# include <assert.h> 17222#endif 17223 17224#undef $ac_func 17225 17226/* Override any GCC internal prototype to avoid an error. 17227 Use char because int might match the return type of a GCC 17228 builtin and then its argument prototype would still apply. */ 17229#ifdef __cplusplus 17230extern "C" 17231#endif 17232char $ac_func (); 17233/* The GNU C library defines this for functions which it implements 17234 to always fail with ENOSYS. Some functions are actually named 17235 something starting with __ and the normal name is an alias. */ 17236#if defined __stub_$ac_func || defined __stub___$ac_func 17237choke me 17238#endif 17239 17240int 17241main () 17242{ 17243return $ac_func (); 17244 ; 17245 return 0; 17246} 17247_ACEOF 17248rm -f conftest.$ac_objext conftest$ac_exeext 17249if { (ac_try="$ac_link" 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_link") 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); } && 17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17263 { (case "(($ac_try" in 17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17265 *) ac_try_echo=$ac_try;; 17266esac 17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17268 (eval "$ac_try") 2>&5 17269 ac_status=$? 17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17271 (exit $ac_status); }; } && 17272 { ac_try='test -s conftest$ac_exeext' 17273 { (case "(($ac_try" in 17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17275 *) ac_try_echo=$ac_try;; 17276esac 17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17278 (eval "$ac_try") 2>&5 17279 ac_status=$? 17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17281 (exit $ac_status); }; }; then 17282 eval "$as_ac_var=yes" 17283else 17284 echo "$as_me: failed program was:" >&5 17285sed 's/^/| /' conftest.$ac_ext >&5 17286 17287 eval "$as_ac_var=no" 17288fi 17289 17290rm -f core conftest.err conftest.$ac_objext \ 17291 conftest$ac_exeext conftest.$ac_ext 17292fi 17293ac_res=`eval echo '${'$as_ac_var'}'` 17294 { echo "$as_me:$LINENO: result: $ac_res" >&5 17295echo "${ECHO_T}$ac_res" >&6; } 17296if test `eval echo '${'$as_ac_var'}'` = yes; then 17297 cat >>confdefs.h <<_ACEOF 17298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17299_ACEOF 17300 17301fi 17302done 17303 17304 17305 17306 17307 17308 17309for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17310do 17311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17312{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17314if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17315 echo $ECHO_N "(cached) $ECHO_C" >&6 17316else 17317 cat >conftest.$ac_ext <<_ACEOF 17318/* confdefs.h. */ 17319_ACEOF 17320cat confdefs.h >>conftest.$ac_ext 17321cat >>conftest.$ac_ext <<_ACEOF 17322/* end confdefs.h. */ 17323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17325#define $ac_func innocuous_$ac_func 17326 17327/* System header to define __stub macros and hopefully few prototypes, 17328 which can conflict with char $ac_func (); below. 17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17330 <limits.h> exists even on freestanding compilers. */ 17331 17332#ifdef __STDC__ 17333# include <limits.h> 17334#else 17335# include <assert.h> 17336#endif 17337 17338#undef $ac_func 17339 17340/* Override any GCC internal prototype to avoid an error. 17341 Use char because int might match the return type of a GCC 17342 builtin and then its argument prototype would still apply. */ 17343#ifdef __cplusplus 17344extern "C" 17345#endif 17346char $ac_func (); 17347/* The GNU C library defines this for functions which it implements 17348 to always fail with ENOSYS. Some functions are actually named 17349 something starting with __ and the normal name is an alias. */ 17350#if defined __stub_$ac_func || defined __stub___$ac_func 17351choke me 17352#endif 17353 17354int 17355main () 17356{ 17357return $ac_func (); 17358 ; 17359 return 0; 17360} 17361_ACEOF 17362rm -f conftest.$ac_objext conftest$ac_exeext 17363if { (ac_try="$ac_link" 17364case "(($ac_try" in 17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17366 *) ac_try_echo=$ac_try;; 17367esac 17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17369 (eval "$ac_link") 2>conftest.er1 17370 ac_status=$? 17371 grep -v '^ *+' conftest.er1 >conftest.err 17372 rm -f conftest.er1 17373 cat conftest.err >&5 17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17375 (exit $ac_status); } && 17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17377 { (case "(($ac_try" in 17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17379 *) ac_try_echo=$ac_try;; 17380esac 17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17382 (eval "$ac_try") 2>&5 17383 ac_status=$? 17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17385 (exit $ac_status); }; } && 17386 { ac_try='test -s conftest$ac_exeext' 17387 { (case "(($ac_try" in 17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17389 *) ac_try_echo=$ac_try;; 17390esac 17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17392 (eval "$ac_try") 2>&5 17393 ac_status=$? 17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17395 (exit $ac_status); }; }; then 17396 eval "$as_ac_var=yes" 17397else 17398 echo "$as_me: failed program was:" >&5 17399sed 's/^/| /' conftest.$ac_ext >&5 17400 17401 eval "$as_ac_var=no" 17402fi 17403 17404rm -f core conftest.err conftest.$ac_objext \ 17405 conftest$ac_exeext conftest.$ac_ext 17406fi 17407ac_res=`eval echo '${'$as_ac_var'}'` 17408 { echo "$as_me:$LINENO: result: $ac_res" >&5 17409echo "${ECHO_T}$ac_res" >&6; } 17410if test `eval echo '${'$as_ac_var'}'` = yes; then 17411 cat >>confdefs.h <<_ACEOF 17412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17413_ACEOF 17414 17415fi 17416done 17417 17418 17419 17420 17421for ac_func in isatty mkdtemp mkstemp 17422do 17423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17424{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17427 echo $ECHO_N "(cached) $ECHO_C" >&6 17428else 17429 cat >conftest.$ac_ext <<_ACEOF 17430/* confdefs.h. */ 17431_ACEOF 17432cat confdefs.h >>conftest.$ac_ext 17433cat >>conftest.$ac_ext <<_ACEOF 17434/* end confdefs.h. */ 17435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17437#define $ac_func innocuous_$ac_func 17438 17439/* System header to define __stub macros and hopefully few prototypes, 17440 which can conflict with char $ac_func (); below. 17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17442 <limits.h> exists even on freestanding compilers. */ 17443 17444#ifdef __STDC__ 17445# include <limits.h> 17446#else 17447# include <assert.h> 17448#endif 17449 17450#undef $ac_func 17451 17452/* Override any GCC internal prototype to avoid an error. 17453 Use char because int might match the return type of a GCC 17454 builtin and then its argument prototype would still apply. */ 17455#ifdef __cplusplus 17456extern "C" 17457#endif 17458char $ac_func (); 17459/* The GNU C library defines this for functions which it implements 17460 to always fail with ENOSYS. Some functions are actually named 17461 something starting with __ and the normal name is an alias. */ 17462#if defined __stub_$ac_func || defined __stub___$ac_func 17463choke me 17464#endif 17465 17466int 17467main () 17468{ 17469return $ac_func (); 17470 ; 17471 return 0; 17472} 17473_ACEOF 17474rm -f conftest.$ac_objext conftest$ac_exeext 17475if { (ac_try="$ac_link" 17476case "(($ac_try" in 17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17478 *) ac_try_echo=$ac_try;; 17479esac 17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17481 (eval "$ac_link") 2>conftest.er1 17482 ac_status=$? 17483 grep -v '^ *+' conftest.er1 >conftest.err 17484 rm -f conftest.er1 17485 cat conftest.err >&5 17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17487 (exit $ac_status); } && 17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17489 { (case "(($ac_try" in 17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17491 *) ac_try_echo=$ac_try;; 17492esac 17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17494 (eval "$ac_try") 2>&5 17495 ac_status=$? 17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17497 (exit $ac_status); }; } && 17498 { ac_try='test -s conftest$ac_exeext' 17499 { (case "(($ac_try" in 17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17501 *) ac_try_echo=$ac_try;; 17502esac 17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17504 (eval "$ac_try") 2>&5 17505 ac_status=$? 17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17507 (exit $ac_status); }; }; then 17508 eval "$as_ac_var=yes" 17509else 17510 echo "$as_me: failed program was:" >&5 17511sed 's/^/| /' conftest.$ac_ext >&5 17512 17513 eval "$as_ac_var=no" 17514fi 17515 17516rm -f core conftest.err conftest.$ac_objext \ 17517 conftest$ac_exeext conftest.$ac_ext 17518fi 17519ac_res=`eval echo '${'$as_ac_var'}'` 17520 { echo "$as_me:$LINENO: result: $ac_res" >&5 17521echo "${ECHO_T}$ac_res" >&6; } 17522if test `eval echo '${'$as_ac_var'}'` = yes; then 17523 cat >>confdefs.h <<_ACEOF 17524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17525_ACEOF 17526 17527fi 17528done 17529 17530 17531 17532 17533 17534 17535for ac_func in mktemp realpath sbrk setrlimit strdup 17536do 17537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17538{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17541 echo $ECHO_N "(cached) $ECHO_C" >&6 17542else 17543 cat >conftest.$ac_ext <<_ACEOF 17544/* confdefs.h. */ 17545_ACEOF 17546cat confdefs.h >>conftest.$ac_ext 17547cat >>conftest.$ac_ext <<_ACEOF 17548/* end confdefs.h. */ 17549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17550 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17551#define $ac_func innocuous_$ac_func 17552 17553/* System header to define __stub macros and hopefully few prototypes, 17554 which can conflict with char $ac_func (); below. 17555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17556 <limits.h> exists even on freestanding compilers. */ 17557 17558#ifdef __STDC__ 17559# include <limits.h> 17560#else 17561# include <assert.h> 17562#endif 17563 17564#undef $ac_func 17565 17566/* Override any GCC internal prototype to avoid an error. 17567 Use char because int might match the return type of a GCC 17568 builtin and then its argument prototype would still apply. */ 17569#ifdef __cplusplus 17570extern "C" 17571#endif 17572char $ac_func (); 17573/* The GNU C library defines this for functions which it implements 17574 to always fail with ENOSYS. Some functions are actually named 17575 something starting with __ and the normal name is an alias. */ 17576#if defined __stub_$ac_func || defined __stub___$ac_func 17577choke me 17578#endif 17579 17580int 17581main () 17582{ 17583return $ac_func (); 17584 ; 17585 return 0; 17586} 17587_ACEOF 17588rm -f conftest.$ac_objext conftest$ac_exeext 17589if { (ac_try="$ac_link" 17590case "(($ac_try" in 17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17592 *) ac_try_echo=$ac_try;; 17593esac 17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17595 (eval "$ac_link") 2>conftest.er1 17596 ac_status=$? 17597 grep -v '^ *+' conftest.er1 >conftest.err 17598 rm -f conftest.er1 17599 cat conftest.err >&5 17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17601 (exit $ac_status); } && 17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17603 { (case "(($ac_try" in 17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17605 *) ac_try_echo=$ac_try;; 17606esac 17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17608 (eval "$ac_try") 2>&5 17609 ac_status=$? 17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17611 (exit $ac_status); }; } && 17612 { ac_try='test -s conftest$ac_exeext' 17613 { (case "(($ac_try" in 17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17615 *) ac_try_echo=$ac_try;; 17616esac 17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17618 (eval "$ac_try") 2>&5 17619 ac_status=$? 17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17621 (exit $ac_status); }; }; then 17622 eval "$as_ac_var=yes" 17623else 17624 echo "$as_me: failed program was:" >&5 17625sed 's/^/| /' conftest.$ac_ext >&5 17626 17627 eval "$as_ac_var=no" 17628fi 17629 17630rm -f core conftest.err conftest.$ac_objext \ 17631 conftest$ac_exeext conftest.$ac_ext 17632fi 17633ac_res=`eval echo '${'$as_ac_var'}'` 17634 { echo "$as_me:$LINENO: result: $ac_res" >&5 17635echo "${ECHO_T}$ac_res" >&6; } 17636if test `eval echo '${'$as_ac_var'}'` = yes; then 17637 cat >>confdefs.h <<_ACEOF 17638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17639_ACEOF 17640 17641fi 17642done 17643 17644 17645 17646 17647 17648for ac_func in strerror strerror_r strerror_s setenv 17649do 17650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17651{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17654 echo $ECHO_N "(cached) $ECHO_C" >&6 17655else 17656 cat >conftest.$ac_ext <<_ACEOF 17657/* confdefs.h. */ 17658_ACEOF 17659cat confdefs.h >>conftest.$ac_ext 17660cat >>conftest.$ac_ext <<_ACEOF 17661/* end confdefs.h. */ 17662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17664#define $ac_func innocuous_$ac_func 17665 17666/* System header to define __stub macros and hopefully few prototypes, 17667 which can conflict with char $ac_func (); below. 17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17669 <limits.h> exists even on freestanding compilers. */ 17670 17671#ifdef __STDC__ 17672# include <limits.h> 17673#else 17674# include <assert.h> 17675#endif 17676 17677#undef $ac_func 17678 17679/* Override any GCC internal prototype to avoid an error. 17680 Use char because int might match the return type of a GCC 17681 builtin and then its argument prototype would still apply. */ 17682#ifdef __cplusplus 17683extern "C" 17684#endif 17685char $ac_func (); 17686/* The GNU C library defines this for functions which it implements 17687 to always fail with ENOSYS. Some functions are actually named 17688 something starting with __ and the normal name is an alias. */ 17689#if defined __stub_$ac_func || defined __stub___$ac_func 17690choke me 17691#endif 17692 17693int 17694main () 17695{ 17696return $ac_func (); 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701rm -f conftest.$ac_objext conftest$ac_exeext 17702if { (ac_try="$ac_link" 17703case "(($ac_try" in 17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17705 *) ac_try_echo=$ac_try;; 17706esac 17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17708 (eval "$ac_link") 2>conftest.er1 17709 ac_status=$? 17710 grep -v '^ *+' conftest.er1 >conftest.err 17711 rm -f conftest.er1 17712 cat conftest.err >&5 17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17714 (exit $ac_status); } && 17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17716 { (case "(($ac_try" in 17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17718 *) ac_try_echo=$ac_try;; 17719esac 17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17721 (eval "$ac_try") 2>&5 17722 ac_status=$? 17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17724 (exit $ac_status); }; } && 17725 { ac_try='test -s conftest$ac_exeext' 17726 { (case "(($ac_try" in 17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17728 *) ac_try_echo=$ac_try;; 17729esac 17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17731 (eval "$ac_try") 2>&5 17732 ac_status=$? 17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17734 (exit $ac_status); }; }; then 17735 eval "$as_ac_var=yes" 17736else 17737 echo "$as_me: failed program was:" >&5 17738sed 's/^/| /' conftest.$ac_ext >&5 17739 17740 eval "$as_ac_var=no" 17741fi 17742 17743rm -f core conftest.err conftest.$ac_objext \ 17744 conftest$ac_exeext conftest.$ac_ext 17745fi 17746ac_res=`eval echo '${'$as_ac_var'}'` 17747 { echo "$as_me:$LINENO: result: $ac_res" >&5 17748echo "${ECHO_T}$ac_res" >&6; } 17749if test `eval echo '${'$as_ac_var'}'` = yes; then 17750 cat >>confdefs.h <<_ACEOF 17751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17752_ACEOF 17753 17754fi 17755done 17756 17757 17758 17759 17760 17761for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17762do 17763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17764{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17767 echo $ECHO_N "(cached) $ECHO_C" >&6 17768else 17769 cat >conftest.$ac_ext <<_ACEOF 17770/* confdefs.h. */ 17771_ACEOF 17772cat confdefs.h >>conftest.$ac_ext 17773cat >>conftest.$ac_ext <<_ACEOF 17774/* end confdefs.h. */ 17775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17777#define $ac_func innocuous_$ac_func 17778 17779/* System header to define __stub macros and hopefully few prototypes, 17780 which can conflict with char $ac_func (); below. 17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17782 <limits.h> exists even on freestanding compilers. */ 17783 17784#ifdef __STDC__ 17785# include <limits.h> 17786#else 17787# include <assert.h> 17788#endif 17789 17790#undef $ac_func 17791 17792/* Override any GCC internal prototype to avoid an error. 17793 Use char because int might match the return type of a GCC 17794 builtin and then its argument prototype would still apply. */ 17795#ifdef __cplusplus 17796extern "C" 17797#endif 17798char $ac_func (); 17799/* The GNU C library defines this for functions which it implements 17800 to always fail with ENOSYS. Some functions are actually named 17801 something starting with __ and the normal name is an alias. */ 17802#if defined __stub_$ac_func || defined __stub___$ac_func 17803choke me 17804#endif 17805 17806int 17807main () 17808{ 17809return $ac_func (); 17810 ; 17811 return 0; 17812} 17813_ACEOF 17814rm -f conftest.$ac_objext conftest$ac_exeext 17815if { (ac_try="$ac_link" 17816case "(($ac_try" in 17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17818 *) ac_try_echo=$ac_try;; 17819esac 17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17821 (eval "$ac_link") 2>conftest.er1 17822 ac_status=$? 17823 grep -v '^ *+' conftest.er1 >conftest.err 17824 rm -f conftest.er1 17825 cat conftest.err >&5 17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17827 (exit $ac_status); } && 17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17829 { (case "(($ac_try" in 17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17831 *) ac_try_echo=$ac_try;; 17832esac 17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17834 (eval "$ac_try") 2>&5 17835 ac_status=$? 17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17837 (exit $ac_status); }; } && 17838 { ac_try='test -s conftest$ac_exeext' 17839 { (case "(($ac_try" in 17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17841 *) ac_try_echo=$ac_try;; 17842esac 17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17844 (eval "$ac_try") 2>&5 17845 ac_status=$? 17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17847 (exit $ac_status); }; }; then 17848 eval "$as_ac_var=yes" 17849else 17850 echo "$as_me: failed program was:" >&5 17851sed 's/^/| /' conftest.$ac_ext >&5 17852 17853 eval "$as_ac_var=no" 17854fi 17855 17856rm -f core conftest.err conftest.$ac_objext \ 17857 conftest$ac_exeext conftest.$ac_ext 17858fi 17859ac_res=`eval echo '${'$as_ac_var'}'` 17860 { echo "$as_me:$LINENO: result: $ac_res" >&5 17861echo "${ECHO_T}$ac_res" >&6; } 17862if test `eval echo '${'$as_ac_var'}'` = yes; then 17863 cat >>confdefs.h <<_ACEOF 17864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17865_ACEOF 17866 17867fi 17868done 17869 17870 17871 17872 17873 17874for ac_func in setjmp longjmp sigsetjmp siglongjmp 17875do 17876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17877{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17880 echo $ECHO_N "(cached) $ECHO_C" >&6 17881else 17882 cat >conftest.$ac_ext <<_ACEOF 17883/* confdefs.h. */ 17884_ACEOF 17885cat confdefs.h >>conftest.$ac_ext 17886cat >>conftest.$ac_ext <<_ACEOF 17887/* end confdefs.h. */ 17888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17890#define $ac_func innocuous_$ac_func 17891 17892/* System header to define __stub macros and hopefully few prototypes, 17893 which can conflict with char $ac_func (); below. 17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17895 <limits.h> exists even on freestanding compilers. */ 17896 17897#ifdef __STDC__ 17898# include <limits.h> 17899#else 17900# include <assert.h> 17901#endif 17902 17903#undef $ac_func 17904 17905/* Override any GCC internal prototype to avoid an error. 17906 Use char because int might match the return type of a GCC 17907 builtin and then its argument prototype would still apply. */ 17908#ifdef __cplusplus 17909extern "C" 17910#endif 17911char $ac_func (); 17912/* The GNU C library defines this for functions which it implements 17913 to always fail with ENOSYS. Some functions are actually named 17914 something starting with __ and the normal name is an alias. */ 17915#if defined __stub_$ac_func || defined __stub___$ac_func 17916choke me 17917#endif 17918 17919int 17920main () 17921{ 17922return $ac_func (); 17923 ; 17924 return 0; 17925} 17926_ACEOF 17927rm -f conftest.$ac_objext conftest$ac_exeext 17928if { (ac_try="$ac_link" 17929case "(($ac_try" in 17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17931 *) ac_try_echo=$ac_try;; 17932esac 17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17934 (eval "$ac_link") 2>conftest.er1 17935 ac_status=$? 17936 grep -v '^ *+' conftest.er1 >conftest.err 17937 rm -f conftest.er1 17938 cat conftest.err >&5 17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17940 (exit $ac_status); } && 17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17942 { (case "(($ac_try" in 17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17944 *) ac_try_echo=$ac_try;; 17945esac 17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17947 (eval "$ac_try") 2>&5 17948 ac_status=$? 17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17950 (exit $ac_status); }; } && 17951 { ac_try='test -s conftest$ac_exeext' 17952 { (case "(($ac_try" in 17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17954 *) ac_try_echo=$ac_try;; 17955esac 17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17957 (eval "$ac_try") 2>&5 17958 ac_status=$? 17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17960 (exit $ac_status); }; }; then 17961 eval "$as_ac_var=yes" 17962else 17963 echo "$as_me: failed program was:" >&5 17964sed 's/^/| /' conftest.$ac_ext >&5 17965 17966 eval "$as_ac_var=no" 17967fi 17968 17969rm -f core conftest.err conftest.$ac_objext \ 17970 conftest$ac_exeext conftest.$ac_ext 17971fi 17972ac_res=`eval echo '${'$as_ac_var'}'` 17973 { echo "$as_me:$LINENO: result: $ac_res" >&5 17974echo "${ECHO_T}$ac_res" >&6; } 17975if test `eval echo '${'$as_ac_var'}'` = yes; then 17976 cat >>confdefs.h <<_ACEOF 17977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17978_ACEOF 17979 17980fi 17981done 17982 17983{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17984echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17985if test "${llvm_cv_c_printf_a+set}" = set; then 17986 echo $ECHO_N "(cached) $ECHO_C" >&6 17987else 17988 ac_ext=c 17989ac_cpp='$CPP $CPPFLAGS' 17990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17992ac_compiler_gnu=$ac_cv_c_compiler_gnu 17993 17994 if test "$cross_compiling" = yes; then 17995 llvmac_cv_c_printf_a=no 17996else 17997 cat >conftest.$ac_ext <<_ACEOF 17998 17999 /* confdefs.h. */ 18000_ACEOF 18001cat confdefs.h >>conftest.$ac_ext 18002cat >>conftest.$ac_ext <<_ACEOF 18003/* end confdefs.h. */ 18004 18005#include <stdio.h> 18006#include <stdlib.h> 18007 18008int 18009main () 18010{ 18011 18012volatile double A, B; 18013char Buffer[100]; 18014A = 1; 18015A /= 10.0; 18016sprintf(Buffer, "%a", A); 18017B = atof(Buffer); 18018if (A != B) 18019 return (1); 18020if (A != 0x1.999999999999ap-4) 18021 return (1); 18022return (0); 18023 ; 18024 return 0; 18025} 18026_ACEOF 18027rm -f conftest$ac_exeext 18028if { (ac_try="$ac_link" 18029case "(($ac_try" in 18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18031 *) ac_try_echo=$ac_try;; 18032esac 18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18034 (eval "$ac_link") 2>&5 18035 ac_status=$? 18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18038 { (case "(($ac_try" in 18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18040 *) ac_try_echo=$ac_try;; 18041esac 18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18043 (eval "$ac_try") 2>&5 18044 ac_status=$? 18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18046 (exit $ac_status); }; }; then 18047 llvm_cv_c_printf_a=yes 18048else 18049 echo "$as_me: program exited with status $ac_status" >&5 18050echo "$as_me: failed program was:" >&5 18051sed 's/^/| /' conftest.$ac_ext >&5 18052 18053( exit $ac_status ) 18054llvmac_cv_c_printf_a=no 18055fi 18056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18057fi 18058 18059 18060 ac_ext=c 18061ac_cpp='$CPP $CPPFLAGS' 18062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18064ac_compiler_gnu=$ac_cv_c_compiler_gnu 18065 18066fi 18067{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18068echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18069 if test "$llvm_cv_c_printf_a" = "yes"; then 18070 18071cat >>confdefs.h <<\_ACEOF 18072#define HAVE_PRINTF_A 1 18073_ACEOF 18074 18075 fi 18076 18077 18078{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18079echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18080if test "${ac_cv_func_rand48+set}" = set; then 18081 echo $ECHO_N "(cached) $ECHO_C" >&6 18082else 18083 ac_ext=cpp 18084ac_cpp='$CXXCPP $CPPFLAGS' 18085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18088 18089 cat >conftest.$ac_ext <<_ACEOF 18090/* confdefs.h. */ 18091_ACEOF 18092cat confdefs.h >>conftest.$ac_ext 18093cat >>conftest.$ac_ext <<_ACEOF 18094/* end confdefs.h. */ 18095#include <stdlib.h> 18096int 18097main () 18098{ 18099srand48(0);lrand48();drand48(); 18100 ; 18101 return 0; 18102} 18103_ACEOF 18104rm -f conftest.$ac_objext 18105if { (ac_try="$ac_compile" 18106case "(($ac_try" in 18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18108 *) ac_try_echo=$ac_try;; 18109esac 18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18111 (eval "$ac_compile") 2>conftest.er1 18112 ac_status=$? 18113 grep -v '^ *+' conftest.er1 >conftest.err 18114 rm -f conftest.er1 18115 cat conftest.err >&5 18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18117 (exit $ac_status); } && 18118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18119 { (case "(($ac_try" in 18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18121 *) ac_try_echo=$ac_try;; 18122esac 18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18124 (eval "$ac_try") 2>&5 18125 ac_status=$? 18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18127 (exit $ac_status); }; } && 18128 { ac_try='test -s conftest.$ac_objext' 18129 { (case "(($ac_try" in 18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18131 *) ac_try_echo=$ac_try;; 18132esac 18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18134 (eval "$ac_try") 2>&5 18135 ac_status=$? 18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18137 (exit $ac_status); }; }; then 18138 ac_cv_func_rand48=yes 18139else 18140 echo "$as_me: failed program was:" >&5 18141sed 's/^/| /' conftest.$ac_ext >&5 18142 18143 ac_cv_func_rand48=no 18144fi 18145 18146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18147 ac_ext=c 18148ac_cpp='$CPP $CPPFLAGS' 18149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18151ac_compiler_gnu=$ac_cv_c_compiler_gnu 18152 18153fi 18154{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18155echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18156 18157if test "$ac_cv_func_rand48" = "yes" ; then 18158 18159cat >>confdefs.h <<\_ACEOF 18160#define HAVE_RAND48 1 18161_ACEOF 18162 18163fi 18164 18165 18166 18167{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 18168echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 18169if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 18170 echo $ECHO_N "(cached) $ECHO_C" >&6 18171else 18172 ac_ext=cpp 18173ac_cpp='$CXXCPP $CPPFLAGS' 18174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18177 18178 cat >conftest.$ac_ext <<_ACEOF 18179/* confdefs.h. */ 18180_ACEOF 18181cat confdefs.h >>conftest.$ac_ext 18182cat >>conftest.$ac_ext <<_ACEOF 18183/* end confdefs.h. */ 18184#include <math.h> 18185int 18186main () 18187{ 18188float f; isnan(f); 18189 ; 18190 return 0; 18191} 18192_ACEOF 18193rm -f conftest.$ac_objext 18194if { (ac_try="$ac_compile" 18195case "(($ac_try" in 18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18197 *) ac_try_echo=$ac_try;; 18198esac 18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18200 (eval "$ac_compile") 2>conftest.er1 18201 ac_status=$? 18202 grep -v '^ *+' conftest.er1 >conftest.err 18203 rm -f conftest.er1 18204 cat conftest.err >&5 18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18206 (exit $ac_status); } && 18207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18208 { (case "(($ac_try" in 18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18210 *) ac_try_echo=$ac_try;; 18211esac 18212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18213 (eval "$ac_try") 2>&5 18214 ac_status=$? 18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18216 (exit $ac_status); }; } && 18217 { ac_try='test -s conftest.$ac_objext' 18218 { (case "(($ac_try" in 18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18220 *) ac_try_echo=$ac_try;; 18221esac 18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18223 (eval "$ac_try") 2>&5 18224 ac_status=$? 18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18226 (exit $ac_status); }; }; then 18227 ac_cv_func_isnan_in_math_h=yes 18228else 18229 echo "$as_me: failed program was:" >&5 18230sed 's/^/| /' conftest.$ac_ext >&5 18231 18232 ac_cv_func_isnan_in_math_h=no 18233fi 18234 18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18236 ac_ext=c 18237ac_cpp='$CPP $CPPFLAGS' 18238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18240ac_compiler_gnu=$ac_cv_c_compiler_gnu 18241 18242fi 18243{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 18244echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 18245 18246 18247if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 18248 18249cat >>confdefs.h <<\_ACEOF 18250#define HAVE_ISNAN_IN_MATH_H 1 18251_ACEOF 18252 18253fi 18254 18255{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 18256echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 18257if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 18258 echo $ECHO_N "(cached) $ECHO_C" >&6 18259else 18260 ac_ext=cpp 18261ac_cpp='$CXXCPP $CPPFLAGS' 18262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18265 18266 cat >conftest.$ac_ext <<_ACEOF 18267/* confdefs.h. */ 18268_ACEOF 18269cat confdefs.h >>conftest.$ac_ext 18270cat >>conftest.$ac_ext <<_ACEOF 18271/* end confdefs.h. */ 18272#include <cmath> 18273int 18274main () 18275{ 18276float f; isnan(f); 18277 ; 18278 return 0; 18279} 18280_ACEOF 18281rm -f conftest.$ac_objext 18282if { (ac_try="$ac_compile" 18283case "(($ac_try" in 18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18285 *) ac_try_echo=$ac_try;; 18286esac 18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18288 (eval "$ac_compile") 2>conftest.er1 18289 ac_status=$? 18290 grep -v '^ *+' conftest.er1 >conftest.err 18291 rm -f conftest.er1 18292 cat conftest.err >&5 18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18294 (exit $ac_status); } && 18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18296 { (case "(($ac_try" in 18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18298 *) ac_try_echo=$ac_try;; 18299esac 18300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18301 (eval "$ac_try") 2>&5 18302 ac_status=$? 18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18304 (exit $ac_status); }; } && 18305 { ac_try='test -s conftest.$ac_objext' 18306 { (case "(($ac_try" in 18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18308 *) ac_try_echo=$ac_try;; 18309esac 18310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18311 (eval "$ac_try") 2>&5 18312 ac_status=$? 18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18314 (exit $ac_status); }; }; then 18315 ac_cv_func_isnan_in_cmath=yes 18316else 18317 echo "$as_me: failed program was:" >&5 18318sed 's/^/| /' conftest.$ac_ext >&5 18319 18320 ac_cv_func_isnan_in_cmath=no 18321fi 18322 18323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18324 ac_ext=c 18325ac_cpp='$CPP $CPPFLAGS' 18326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18328ac_compiler_gnu=$ac_cv_c_compiler_gnu 18329 18330fi 18331{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 18332echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 18333 18334if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 18335 18336cat >>confdefs.h <<\_ACEOF 18337#define HAVE_ISNAN_IN_CMATH 1 18338_ACEOF 18339 18340fi 18341 18342{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 18343echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 18344if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 18345 echo $ECHO_N "(cached) $ECHO_C" >&6 18346else 18347 ac_ext=cpp 18348ac_cpp='$CXXCPP $CPPFLAGS' 18349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18352 18353 cat >conftest.$ac_ext <<_ACEOF 18354/* confdefs.h. */ 18355_ACEOF 18356cat confdefs.h >>conftest.$ac_ext 18357cat >>conftest.$ac_ext <<_ACEOF 18358/* end confdefs.h. */ 18359#include <cmath> 18360int 18361main () 18362{ 18363float f; std::isnan(f); 18364 ; 18365 return 0; 18366} 18367_ACEOF 18368rm -f conftest.$ac_objext 18369if { (ac_try="$ac_compile" 18370case "(($ac_try" in 18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18372 *) ac_try_echo=$ac_try;; 18373esac 18374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18375 (eval "$ac_compile") 2>conftest.er1 18376 ac_status=$? 18377 grep -v '^ *+' conftest.er1 >conftest.err 18378 rm -f conftest.er1 18379 cat conftest.err >&5 18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18381 (exit $ac_status); } && 18382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18383 { (case "(($ac_try" in 18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18385 *) ac_try_echo=$ac_try;; 18386esac 18387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18388 (eval "$ac_try") 2>&5 18389 ac_status=$? 18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18391 (exit $ac_status); }; } && 18392 { ac_try='test -s conftest.$ac_objext' 18393 { (case "(($ac_try" in 18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18395 *) ac_try_echo=$ac_try;; 18396esac 18397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18398 (eval "$ac_try") 2>&5 18399 ac_status=$? 18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18401 (exit $ac_status); }; }; then 18402 ac_cv_func_std_isnan_in_cmath=yes 18403else 18404 echo "$as_me: failed program was:" >&5 18405sed 's/^/| /' conftest.$ac_ext >&5 18406 18407 ac_cv_func_std_isnan_in_cmath=no 18408fi 18409 18410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18411 ac_ext=c 18412ac_cpp='$CPP $CPPFLAGS' 18413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18415ac_compiler_gnu=$ac_cv_c_compiler_gnu 18416 18417fi 18418{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 18419echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 18420 18421if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 18422 18423cat >>confdefs.h <<\_ACEOF 18424#define HAVE_STD_ISNAN_IN_CMATH 1 18425_ACEOF 18426 18427fi 18428 18429 18430{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 18431echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 18432if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 18433 echo $ECHO_N "(cached) $ECHO_C" >&6 18434else 18435 ac_ext=cpp 18436ac_cpp='$CXXCPP $CPPFLAGS' 18437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18440 18441 cat >conftest.$ac_ext <<_ACEOF 18442/* confdefs.h. */ 18443_ACEOF 18444cat confdefs.h >>conftest.$ac_ext 18445cat >>conftest.$ac_ext <<_ACEOF 18446/* end confdefs.h. */ 18447#include <math.h> 18448int 18449main () 18450{ 18451float f; isinf(f); 18452 ; 18453 return 0; 18454} 18455_ACEOF 18456rm -f conftest.$ac_objext 18457if { (ac_try="$ac_compile" 18458case "(($ac_try" in 18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18460 *) ac_try_echo=$ac_try;; 18461esac 18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18463 (eval "$ac_compile") 2>conftest.er1 18464 ac_status=$? 18465 grep -v '^ *+' conftest.er1 >conftest.err 18466 rm -f conftest.er1 18467 cat conftest.err >&5 18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18469 (exit $ac_status); } && 18470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18471 { (case "(($ac_try" in 18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18473 *) ac_try_echo=$ac_try;; 18474esac 18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18476 (eval "$ac_try") 2>&5 18477 ac_status=$? 18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18479 (exit $ac_status); }; } && 18480 { ac_try='test -s conftest.$ac_objext' 18481 { (case "(($ac_try" in 18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18483 *) ac_try_echo=$ac_try;; 18484esac 18485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18486 (eval "$ac_try") 2>&5 18487 ac_status=$? 18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18489 (exit $ac_status); }; }; then 18490 ac_cv_func_isinf_in_math_h=yes 18491else 18492 echo "$as_me: failed program was:" >&5 18493sed 's/^/| /' conftest.$ac_ext >&5 18494 18495 ac_cv_func_isinf_in_math_h=no 18496fi 18497 18498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18499 ac_ext=c 18500ac_cpp='$CPP $CPPFLAGS' 18501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18503ac_compiler_gnu=$ac_cv_c_compiler_gnu 18504 18505fi 18506{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 18507echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 18508 18509if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 18510 18511cat >>confdefs.h <<\_ACEOF 18512#define HAVE_ISINF_IN_MATH_H 1 18513_ACEOF 18514 18515fi 18516 18517{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 18518echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 18519if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 18520 echo $ECHO_N "(cached) $ECHO_C" >&6 18521else 18522 ac_ext=cpp 18523ac_cpp='$CXXCPP $CPPFLAGS' 18524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18527 18528 cat >conftest.$ac_ext <<_ACEOF 18529/* confdefs.h. */ 18530_ACEOF 18531cat confdefs.h >>conftest.$ac_ext 18532cat >>conftest.$ac_ext <<_ACEOF 18533/* end confdefs.h. */ 18534#include <cmath> 18535int 18536main () 18537{ 18538float f; isinf(f); 18539 ; 18540 return 0; 18541} 18542_ACEOF 18543rm -f conftest.$ac_objext 18544if { (ac_try="$ac_compile" 18545case "(($ac_try" in 18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18547 *) ac_try_echo=$ac_try;; 18548esac 18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18550 (eval "$ac_compile") 2>conftest.er1 18551 ac_status=$? 18552 grep -v '^ *+' conftest.er1 >conftest.err 18553 rm -f conftest.er1 18554 cat conftest.err >&5 18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18556 (exit $ac_status); } && 18557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18558 { (case "(($ac_try" in 18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18560 *) ac_try_echo=$ac_try;; 18561esac 18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18563 (eval "$ac_try") 2>&5 18564 ac_status=$? 18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18566 (exit $ac_status); }; } && 18567 { ac_try='test -s conftest.$ac_objext' 18568 { (case "(($ac_try" in 18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18570 *) ac_try_echo=$ac_try;; 18571esac 18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18573 (eval "$ac_try") 2>&5 18574 ac_status=$? 18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18576 (exit $ac_status); }; }; then 18577 ac_cv_func_isinf_in_cmath=yes 18578else 18579 echo "$as_me: failed program was:" >&5 18580sed 's/^/| /' conftest.$ac_ext >&5 18581 18582 ac_cv_func_isinf_in_cmath=no 18583fi 18584 18585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18586 ac_ext=c 18587ac_cpp='$CPP $CPPFLAGS' 18588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18590ac_compiler_gnu=$ac_cv_c_compiler_gnu 18591 18592fi 18593{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 18594echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 18595 18596if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 18597 18598cat >>confdefs.h <<\_ACEOF 18599#define HAVE_ISINF_IN_CMATH 1 18600_ACEOF 18601 18602fi 18603 18604{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 18605echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 18606if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 18607 echo $ECHO_N "(cached) $ECHO_C" >&6 18608else 18609 ac_ext=cpp 18610ac_cpp='$CXXCPP $CPPFLAGS' 18611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18614 18615 cat >conftest.$ac_ext <<_ACEOF 18616/* confdefs.h. */ 18617_ACEOF 18618cat confdefs.h >>conftest.$ac_ext 18619cat >>conftest.$ac_ext <<_ACEOF 18620/* end confdefs.h. */ 18621#include <cmath> 18622int 18623main () 18624{ 18625float f; std::isinf(f)} 18626 ; 18627 return 0; 18628} 18629_ACEOF 18630rm -f conftest.$ac_objext 18631if { (ac_try="$ac_compile" 18632case "(($ac_try" in 18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18634 *) ac_try_echo=$ac_try;; 18635esac 18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18637 (eval "$ac_compile") 2>conftest.er1 18638 ac_status=$? 18639 grep -v '^ *+' conftest.er1 >conftest.err 18640 rm -f conftest.er1 18641 cat conftest.err >&5 18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18643 (exit $ac_status); } && 18644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18645 { (case "(($ac_try" in 18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18647 *) ac_try_echo=$ac_try;; 18648esac 18649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18650 (eval "$ac_try") 2>&5 18651 ac_status=$? 18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18653 (exit $ac_status); }; } && 18654 { ac_try='test -s conftest.$ac_objext' 18655 { (case "(($ac_try" in 18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18657 *) ac_try_echo=$ac_try;; 18658esac 18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18660 (eval "$ac_try") 2>&5 18661 ac_status=$? 18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18663 (exit $ac_status); }; }; then 18664 ac_cv_func_std_isinf_in_cmath=yes 18665else 18666 echo "$as_me: failed program was:" >&5 18667sed 's/^/| /' conftest.$ac_ext >&5 18668 18669 ac_cv_func_std_isinf_in_cmath=no 18670fi 18671 18672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18673 ac_ext=c 18674ac_cpp='$CPP $CPPFLAGS' 18675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18677ac_compiler_gnu=$ac_cv_c_compiler_gnu 18678 18679fi 18680{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 18681echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 18682 18683if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 18684 18685cat >>confdefs.h <<\_ACEOF 18686#define HAVE_STD_ISINF_IN_CMATH 1 18687_ACEOF 18688 18689fi 18690 18691{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 18692echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 18693if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 18694 echo $ECHO_N "(cached) $ECHO_C" >&6 18695else 18696 ac_ext=cpp 18697ac_cpp='$CXXCPP $CPPFLAGS' 18698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18701 18702 cat >conftest.$ac_ext <<_ACEOF 18703/* confdefs.h. */ 18704_ACEOF 18705cat confdefs.h >>conftest.$ac_ext 18706cat >>conftest.$ac_ext <<_ACEOF 18707/* end confdefs.h. */ 18708#include <ieeefp.h> 18709int 18710main () 18711{ 18712float f; finite(f); 18713 ; 18714 return 0; 18715} 18716_ACEOF 18717rm -f conftest.$ac_objext 18718if { (ac_try="$ac_compile" 18719case "(($ac_try" in 18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18721 *) ac_try_echo=$ac_try;; 18722esac 18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18724 (eval "$ac_compile") 2>conftest.er1 18725 ac_status=$? 18726 grep -v '^ *+' conftest.er1 >conftest.err 18727 rm -f conftest.er1 18728 cat conftest.err >&5 18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18730 (exit $ac_status); } && 18731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18732 { (case "(($ac_try" in 18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18734 *) ac_try_echo=$ac_try;; 18735esac 18736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18737 (eval "$ac_try") 2>&5 18738 ac_status=$? 18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18740 (exit $ac_status); }; } && 18741 { ac_try='test -s conftest.$ac_objext' 18742 { (case "(($ac_try" in 18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18744 *) ac_try_echo=$ac_try;; 18745esac 18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18747 (eval "$ac_try") 2>&5 18748 ac_status=$? 18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18750 (exit $ac_status); }; }; then 18751 ac_cv_func_finite_in_ieeefp_h=yes 18752else 18753 echo "$as_me: failed program was:" >&5 18754sed 's/^/| /' conftest.$ac_ext >&5 18755 18756 ac_cv_func_finite_in_ieeefp_h=no 18757fi 18758 18759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18760 ac_ext=c 18761ac_cpp='$CPP $CPPFLAGS' 18762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18764ac_compiler_gnu=$ac_cv_c_compiler_gnu 18765 18766fi 18767{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 18768echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 18769 18770if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 18771 18772cat >>confdefs.h <<\_ACEOF 18773#define HAVE_FINITE_IN_IEEEFP_H 1 18774_ACEOF 18775 18776fi 18777 18778 18779 18780if test "$llvm_cv_platform_type" = "Unix" ; then 18781 18782 18783for ac_header in stdlib.h unistd.h 18784do 18785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18787 { echo "$as_me:$LINENO: checking for $ac_header" >&5 18788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18790 echo $ECHO_N "(cached) $ECHO_C" >&6 18791fi 18792ac_res=`eval echo '${'$as_ac_Header'}'` 18793 { echo "$as_me:$LINENO: result: $ac_res" >&5 18794echo "${ECHO_T}$ac_res" >&6; } 18795else 18796 # Is the header compilable? 18797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 18798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 18799cat >conftest.$ac_ext <<_ACEOF 18800/* confdefs.h. */ 18801_ACEOF 18802cat confdefs.h >>conftest.$ac_ext 18803cat >>conftest.$ac_ext <<_ACEOF 18804/* end confdefs.h. */ 18805$ac_includes_default 18806#include <$ac_header> 18807_ACEOF 18808rm -f conftest.$ac_objext 18809if { (ac_try="$ac_compile" 18810case "(($ac_try" in 18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18812 *) ac_try_echo=$ac_try;; 18813esac 18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18815 (eval "$ac_compile") 2>conftest.er1 18816 ac_status=$? 18817 grep -v '^ *+' conftest.er1 >conftest.err 18818 rm -f conftest.er1 18819 cat conftest.err >&5 18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18821 (exit $ac_status); } && 18822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18823 { (case "(($ac_try" in 18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18825 *) ac_try_echo=$ac_try;; 18826esac 18827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18828 (eval "$ac_try") 2>&5 18829 ac_status=$? 18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18831 (exit $ac_status); }; } && 18832 { ac_try='test -s conftest.$ac_objext' 18833 { (case "(($ac_try" in 18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18835 *) ac_try_echo=$ac_try;; 18836esac 18837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18838 (eval "$ac_try") 2>&5 18839 ac_status=$? 18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18841 (exit $ac_status); }; }; then 18842 ac_header_compiler=yes 18843else 18844 echo "$as_me: failed program was:" >&5 18845sed 's/^/| /' conftest.$ac_ext >&5 18846 18847 ac_header_compiler=no 18848fi 18849 18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18852echo "${ECHO_T}$ac_header_compiler" >&6; } 18853 18854# Is the header present? 18855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 18856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 18857cat >conftest.$ac_ext <<_ACEOF 18858/* confdefs.h. */ 18859_ACEOF 18860cat confdefs.h >>conftest.$ac_ext 18861cat >>conftest.$ac_ext <<_ACEOF 18862/* end confdefs.h. */ 18863#include <$ac_header> 18864_ACEOF 18865if { (ac_try="$ac_cpp conftest.$ac_ext" 18866case "(($ac_try" in 18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18868 *) ac_try_echo=$ac_try;; 18869esac 18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 18872 ac_status=$? 18873 grep -v '^ *+' conftest.er1 >conftest.err 18874 rm -f conftest.er1 18875 cat conftest.err >&5 18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18877 (exit $ac_status); } >/dev/null; then 18878 if test -s conftest.err; then 18879 ac_cpp_err=$ac_c_preproc_warn_flag 18880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18881 else 18882 ac_cpp_err= 18883 fi 18884else 18885 ac_cpp_err=yes 18886fi 18887if test -z "$ac_cpp_err"; then 18888 ac_header_preproc=yes 18889else 18890 echo "$as_me: failed program was:" >&5 18891sed 's/^/| /' conftest.$ac_ext >&5 18892 18893 ac_header_preproc=no 18894fi 18895 18896rm -f conftest.err conftest.$ac_ext 18897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18898echo "${ECHO_T}$ac_header_preproc" >&6; } 18899 18900# So? What about this header? 18901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18902 yes:no: ) 18903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18907 ac_header_preproc=yes 18908 ;; 18909 no:yes:* ) 18910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18922 ( cat <<\_ASBOX 18923## ----------------------------------- ## 18924## Report this to llvmbugs@cs.uiuc.edu ## 18925## ----------------------------------- ## 18926_ASBOX 18927 ) | sed "s/^/$as_me: WARNING: /" >&2 18928 ;; 18929esac 18930{ echo "$as_me:$LINENO: checking for $ac_header" >&5 18931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18933 echo $ECHO_N "(cached) $ECHO_C" >&6 18934else 18935 eval "$as_ac_Header=\$ac_header_preproc" 18936fi 18937ac_res=`eval echo '${'$as_ac_Header'}'` 18938 { echo "$as_me:$LINENO: result: $ac_res" >&5 18939echo "${ECHO_T}$ac_res" >&6; } 18940 18941fi 18942if test `eval echo '${'$as_ac_Header'}'` = yes; then 18943 cat >>confdefs.h <<_ACEOF 18944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18945_ACEOF 18946 18947fi 18948 18949done 18950 18951 18952for ac_func in getpagesize 18953do 18954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18955{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18958 echo $ECHO_N "(cached) $ECHO_C" >&6 18959else 18960 cat >conftest.$ac_ext <<_ACEOF 18961/* confdefs.h. */ 18962_ACEOF 18963cat confdefs.h >>conftest.$ac_ext 18964cat >>conftest.$ac_ext <<_ACEOF 18965/* end confdefs.h. */ 18966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18968#define $ac_func innocuous_$ac_func 18969 18970/* System header to define __stub macros and hopefully few prototypes, 18971 which can conflict with char $ac_func (); below. 18972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18973 <limits.h> exists even on freestanding compilers. */ 18974 18975#ifdef __STDC__ 18976# include <limits.h> 18977#else 18978# include <assert.h> 18979#endif 18980 18981#undef $ac_func 18982 18983/* Override any GCC internal prototype to avoid an error. 18984 Use char because int might match the return type of a GCC 18985 builtin and then its argument prototype would still apply. */ 18986#ifdef __cplusplus 18987extern "C" 18988#endif 18989char $ac_func (); 18990/* The GNU C library defines this for functions which it implements 18991 to always fail with ENOSYS. Some functions are actually named 18992 something starting with __ and the normal name is an alias. */ 18993#if defined __stub_$ac_func || defined __stub___$ac_func 18994choke me 18995#endif 18996 18997int 18998main () 18999{ 19000return $ac_func (); 19001 ; 19002 return 0; 19003} 19004_ACEOF 19005rm -f conftest.$ac_objext conftest$ac_exeext 19006if { (ac_try="$ac_link" 19007case "(($ac_try" in 19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19009 *) ac_try_echo=$ac_try;; 19010esac 19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19012 (eval "$ac_link") 2>conftest.er1 19013 ac_status=$? 19014 grep -v '^ *+' conftest.er1 >conftest.err 19015 rm -f conftest.er1 19016 cat conftest.err >&5 19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19018 (exit $ac_status); } && 19019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19020 { (case "(($ac_try" in 19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19022 *) ac_try_echo=$ac_try;; 19023esac 19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19025 (eval "$ac_try") 2>&5 19026 ac_status=$? 19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19028 (exit $ac_status); }; } && 19029 { ac_try='test -s conftest$ac_exeext' 19030 { (case "(($ac_try" in 19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19032 *) ac_try_echo=$ac_try;; 19033esac 19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19035 (eval "$ac_try") 2>&5 19036 ac_status=$? 19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19038 (exit $ac_status); }; }; then 19039 eval "$as_ac_var=yes" 19040else 19041 echo "$as_me: failed program was:" >&5 19042sed 's/^/| /' conftest.$ac_ext >&5 19043 19044 eval "$as_ac_var=no" 19045fi 19046 19047rm -f core conftest.err conftest.$ac_objext \ 19048 conftest$ac_exeext conftest.$ac_ext 19049fi 19050ac_res=`eval echo '${'$as_ac_var'}'` 19051 { echo "$as_me:$LINENO: result: $ac_res" >&5 19052echo "${ECHO_T}$ac_res" >&6; } 19053if test `eval echo '${'$as_ac_var'}'` = yes; then 19054 cat >>confdefs.h <<_ACEOF 19055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19056_ACEOF 19057 19058fi 19059done 19060 19061{ echo "$as_me:$LINENO: checking for working mmap" >&5 19062echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 19063if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 19064 echo $ECHO_N "(cached) $ECHO_C" >&6 19065else 19066 if test "$cross_compiling" = yes; then 19067 ac_cv_func_mmap_fixed_mapped=no 19068else 19069 cat >conftest.$ac_ext <<_ACEOF 19070/* confdefs.h. */ 19071_ACEOF 19072cat confdefs.h >>conftest.$ac_ext 19073cat >>conftest.$ac_ext <<_ACEOF 19074/* end confdefs.h. */ 19075$ac_includes_default 19076/* malloc might have been renamed as rpl_malloc. */ 19077#undef malloc 19078 19079/* Thanks to Mike Haertel and Jim Avera for this test. 19080 Here is a matrix of mmap possibilities: 19081 mmap private not fixed 19082 mmap private fixed at somewhere currently unmapped 19083 mmap private fixed at somewhere already mapped 19084 mmap shared not fixed 19085 mmap shared fixed at somewhere currently unmapped 19086 mmap shared fixed at somewhere already mapped 19087 For private mappings, we should verify that changes cannot be read() 19088 back from the file, nor mmap's back from the file at a different 19089 address. (There have been systems where private was not correctly 19090 implemented like the infamous i386 svr4.0, and systems where the 19091 VM page cache was not coherent with the file system buffer cache 19092 like early versions of FreeBSD and possibly contemporary NetBSD.) 19093 For shared mappings, we should conversely verify that changes get 19094 propagated back to all the places they're supposed to be. 19095 19096 Grep wants private fixed already mapped. 19097 The main things grep needs to know about mmap are: 19098 * does it exist and is it safe to write into the mmap'd area 19099 * how to use it (BSD variants) */ 19100 19101#include <fcntl.h> 19102#include <sys/mman.h> 19103 19104#if !STDC_HEADERS && !HAVE_STDLIB_H 19105char *malloc (); 19106#endif 19107 19108/* This mess was copied from the GNU getpagesize.h. */ 19109#if !HAVE_GETPAGESIZE 19110/* Assume that all systems that can run configure have sys/param.h. */ 19111# if !HAVE_SYS_PARAM_H 19112# define HAVE_SYS_PARAM_H 1 19113# endif 19114 19115# ifdef _SC_PAGESIZE 19116# define getpagesize() sysconf(_SC_PAGESIZE) 19117# else /* no _SC_PAGESIZE */ 19118# if HAVE_SYS_PARAM_H 19119# include <sys/param.h> 19120# ifdef EXEC_PAGESIZE 19121# define getpagesize() EXEC_PAGESIZE 19122# else /* no EXEC_PAGESIZE */ 19123# ifdef NBPG 19124# define getpagesize() NBPG * CLSIZE 19125# ifndef CLSIZE 19126# define CLSIZE 1 19127# endif /* no CLSIZE */ 19128# else /* no NBPG */ 19129# ifdef NBPC 19130# define getpagesize() NBPC 19131# else /* no NBPC */ 19132# ifdef PAGESIZE 19133# define getpagesize() PAGESIZE 19134# endif /* PAGESIZE */ 19135# endif /* no NBPC */ 19136# endif /* no NBPG */ 19137# endif /* no EXEC_PAGESIZE */ 19138# else /* no HAVE_SYS_PARAM_H */ 19139# define getpagesize() 8192 /* punt totally */ 19140# endif /* no HAVE_SYS_PARAM_H */ 19141# endif /* no _SC_PAGESIZE */ 19142 19143#endif /* no HAVE_GETPAGESIZE */ 19144 19145int 19146main () 19147{ 19148 char *data, *data2, *data3; 19149 int i, pagesize; 19150 int fd; 19151 19152 pagesize = getpagesize (); 19153 19154 /* First, make a file with some known garbage in it. */ 19155 data = (char *) malloc (pagesize); 19156 if (!data) 19157 return 1; 19158 for (i = 0; i < pagesize; ++i) 19159 *(data + i) = rand (); 19160 umask (0); 19161 fd = creat ("conftest.mmap", 0600); 19162 if (fd < 0) 19163 return 1; 19164 if (write (fd, data, pagesize) != pagesize) 19165 return 1; 19166 close (fd); 19167 19168 /* Next, try to mmap the file at a fixed address which already has 19169 something else allocated at it. If we can, also make sure that 19170 we see the same garbage. */ 19171 fd = open ("conftest.mmap", O_RDWR); 19172 if (fd < 0) 19173 return 1; 19174 data2 = (char *) malloc (2 * pagesize); 19175 if (!data2) 19176 return 1; 19177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 19178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 19179 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 19180 return 1; 19181 for (i = 0; i < pagesize; ++i) 19182 if (*(data + i) != *(data2 + i)) 19183 return 1; 19184 19185 /* Finally, make sure that changes to the mapped area do not 19186 percolate back to the file as seen by read(). (This is a bug on 19187 some variants of i386 svr4.0.) */ 19188 for (i = 0; i < pagesize; ++i) 19189 *(data2 + i) = *(data2 + i) + 1; 19190 data3 = (char *) malloc (pagesize); 19191 if (!data3) 19192 return 1; 19193 if (read (fd, data3, pagesize) != pagesize) 19194 return 1; 19195 for (i = 0; i < pagesize; ++i) 19196 if (*(data + i) != *(data3 + i)) 19197 return 1; 19198 close (fd); 19199 return 0; 19200} 19201_ACEOF 19202rm -f conftest$ac_exeext 19203if { (ac_try="$ac_link" 19204case "(($ac_try" in 19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19206 *) ac_try_echo=$ac_try;; 19207esac 19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19209 (eval "$ac_link") 2>&5 19210 ac_status=$? 19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19213 { (case "(($ac_try" in 19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19215 *) ac_try_echo=$ac_try;; 19216esac 19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19218 (eval "$ac_try") 2>&5 19219 ac_status=$? 19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19221 (exit $ac_status); }; }; then 19222 ac_cv_func_mmap_fixed_mapped=yes 19223else 19224 echo "$as_me: program exited with status $ac_status" >&5 19225echo "$as_me: failed program was:" >&5 19226sed 's/^/| /' conftest.$ac_ext >&5 19227 19228( exit $ac_status ) 19229ac_cv_func_mmap_fixed_mapped=no 19230fi 19231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19232fi 19233 19234 19235fi 19236{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 19237echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 19238if test $ac_cv_func_mmap_fixed_mapped = yes; then 19239 19240cat >>confdefs.h <<\_ACEOF 19241#define HAVE_MMAP 1 19242_ACEOF 19243 19244fi 19245rm -f conftest.mmap 19246 19247 { echo "$as_me:$LINENO: checking for mmap of files" >&5 19248echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 19249if test "${ac_cv_func_mmap_file+set}" = set; then 19250 echo $ECHO_N "(cached) $ECHO_C" >&6 19251else 19252 ac_ext=c 19253ac_cpp='$CPP $CPPFLAGS' 19254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19256ac_compiler_gnu=$ac_cv_c_compiler_gnu 19257 19258 if test "$cross_compiling" = yes; then 19259 ac_cv_func_mmap_file=no 19260else 19261 cat >conftest.$ac_ext <<_ACEOF 19262 19263 /* confdefs.h. */ 19264_ACEOF 19265cat confdefs.h >>conftest.$ac_ext 19266cat >>conftest.$ac_ext <<_ACEOF 19267/* end confdefs.h. */ 19268 19269#include <sys/types.h> 19270#include <sys/mman.h> 19271#include <fcntl.h> 19272 19273int 19274main () 19275{ 19276 19277 int fd; 19278 fd = creat ("foo",0777); 19279 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 19280 unlink ("foo"); 19281 return (fd != (int) MAP_FAILED); 19282 ; 19283 return 0; 19284} 19285_ACEOF 19286rm -f conftest$ac_exeext 19287if { (ac_try="$ac_link" 19288case "(($ac_try" in 19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19290 *) ac_try_echo=$ac_try;; 19291esac 19292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19293 (eval "$ac_link") 2>&5 19294 ac_status=$? 19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19297 { (case "(($ac_try" in 19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19299 *) ac_try_echo=$ac_try;; 19300esac 19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19302 (eval "$ac_try") 2>&5 19303 ac_status=$? 19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19305 (exit $ac_status); }; }; then 19306 ac_cv_func_mmap_file=yes 19307else 19308 echo "$as_me: program exited with status $ac_status" >&5 19309echo "$as_me: failed program was:" >&5 19310sed 's/^/| /' conftest.$ac_ext >&5 19311 19312( exit $ac_status ) 19313ac_cv_func_mmap_file=no 19314fi 19315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19316fi 19317 19318 19319 ac_ext=c 19320ac_cpp='$CPP $CPPFLAGS' 19321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19323ac_compiler_gnu=$ac_cv_c_compiler_gnu 19324 19325 19326fi 19327{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 19328echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 19329if test "$ac_cv_func_mmap_file" = yes; then 19330 19331cat >>confdefs.h <<\_ACEOF 19332#define HAVE_MMAP_FILE 19333_ACEOF 19334 19335 MMAP_FILE=yes 19336 19337fi 19338 19339 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 19340echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 19341if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 19342 echo $ECHO_N "(cached) $ECHO_C" >&6 19343else 19344 if test "$llvm_cv_os_type" = "Interix" ; then 19345 ac_cv_need_dev_zero_for_mmap=yes 19346 else 19347 ac_cv_need_dev_zero_for_mmap=no 19348 fi 19349 19350fi 19351{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 19352echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 19353if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 19354 19355cat >>confdefs.h <<\_ACEOF 19356#define NEED_DEV_ZERO_FOR_MMAP 1 19357_ACEOF 19358 19359fi 19360 19361 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 19362 then 19363 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 19364echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 19365 fi 19366 if test "$ac_cv_func_mmap_file" = "no" 19367 then 19368 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 19369echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 19370 fi 19371fi 19372 19373{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 19374echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 19375cat >conftest.$ac_ext <<_ACEOF 19376/* confdefs.h. */ 19377_ACEOF 19378cat confdefs.h >>conftest.$ac_ext 19379cat >>conftest.$ac_ext <<_ACEOF 19380/* end confdefs.h. */ 19381int main() { 19382 volatile unsigned long val = 1; 19383 __sync_synchronize(); 19384 __sync_val_compare_and_swap(&val, 1, 0); 19385 __sync_add_and_fetch(&val, 1); 19386 __sync_sub_and_fetch(&val, 1); 19387 return 0; 19388 } 19389 19390_ACEOF 19391rm -f conftest.$ac_objext conftest$ac_exeext 19392if { (ac_try="$ac_link" 19393case "(($ac_try" in 19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19395 *) ac_try_echo=$ac_try;; 19396esac 19397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19398 (eval "$ac_link") 2>conftest.er1 19399 ac_status=$? 19400 grep -v '^ *+' conftest.er1 >conftest.err 19401 rm -f conftest.er1 19402 cat conftest.err >&5 19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19404 (exit $ac_status); } && 19405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19406 { (case "(($ac_try" in 19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19408 *) ac_try_echo=$ac_try;; 19409esac 19410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19411 (eval "$ac_try") 2>&5 19412 ac_status=$? 19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19414 (exit $ac_status); }; } && 19415 { ac_try='test -s conftest$ac_exeext' 19416 { (case "(($ac_try" in 19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19418 *) ac_try_echo=$ac_try;; 19419esac 19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19421 (eval "$ac_try") 2>&5 19422 ac_status=$? 19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19424 (exit $ac_status); }; }; then 19425 { echo "$as_me:$LINENO: result: yes" >&5 19426echo "${ECHO_T}yes" >&6; } 19427 19428cat >>confdefs.h <<\_ACEOF 19429#define LLVM_MULTITHREADED 1 19430_ACEOF 19431 19432else 19433 echo "$as_me: failed program was:" >&5 19434sed 's/^/| /' conftest.$ac_ext >&5 19435 19436 { echo "$as_me:$LINENO: result: no" >&5 19437echo "${ECHO_T}no" >&6; } 19438 19439cat >>confdefs.h <<\_ACEOF 19440#define LLVM_MULTITHREADED 0 19441_ACEOF 19442 19443 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 19444echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 19445fi 19446 19447rm -f core conftest.err conftest.$ac_objext \ 19448 conftest$ac_exeext conftest.$ac_ext 19449 19450 19451 19452if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 19453 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 19454echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 19455if test "${llvm_cv_linux_mixed+set}" = set; then 19456 echo $ECHO_N "(cached) $ECHO_C" >&6 19457else 19458 ac_ext=c 19459ac_cpp='$CPP $CPPFLAGS' 19460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19462ac_compiler_gnu=$ac_cv_c_compiler_gnu 19463 19464 cat >conftest.$ac_ext <<_ACEOF 19465/* confdefs.h. */ 19466_ACEOF 19467cat confdefs.h >>conftest.$ac_ext 19468cat >>conftest.$ac_ext <<_ACEOF 19469/* end confdefs.h. */ 19470#ifndef __x86_64__ 19471 error: Not x86-64 even if uname says so! 19472 #endif 19473 19474int 19475main () 19476{ 19477 19478 ; 19479 return 0; 19480} 19481_ACEOF 19482rm -f conftest.$ac_objext 19483if { (ac_try="$ac_compile" 19484case "(($ac_try" in 19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19486 *) ac_try_echo=$ac_try;; 19487esac 19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19489 (eval "$ac_compile") 2>conftest.er1 19490 ac_status=$? 19491 grep -v '^ *+' conftest.er1 >conftest.err 19492 rm -f conftest.er1 19493 cat conftest.err >&5 19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19495 (exit $ac_status); } && 19496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19497 { (case "(($ac_try" in 19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19499 *) ac_try_echo=$ac_try;; 19500esac 19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19502 (eval "$ac_try") 2>&5 19503 ac_status=$? 19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19505 (exit $ac_status); }; } && 19506 { ac_try='test -s conftest.$ac_objext' 19507 { (case "(($ac_try" in 19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19509 *) ac_try_echo=$ac_try;; 19510esac 19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19512 (eval "$ac_try") 2>&5 19513 ac_status=$? 19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19515 (exit $ac_status); }; }; then 19516 llvm_cv_linux_mixed=no 19517else 19518 echo "$as_me: failed program was:" >&5 19519sed 's/^/| /' conftest.$ac_ext >&5 19520 19521 llvm_cv_linux_mixed=yes 19522fi 19523 19524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19525 ac_ext=c 19526ac_cpp='$CPP $CPPFLAGS' 19527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19529ac_compiler_gnu=$ac_cv_c_compiler_gnu 19530 19531 19532fi 19533{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 19534echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 19535 19536 if test "$llvm_cv_linux_mixed" = "yes"; then 19537 llvm_cv_target_arch="x86" 19538 ARCH="x86" 19539 fi 19540fi 19541 19542 19543for ac_func in __dso_handle 19544do 19545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19546{ echo "$as_me:$LINENO: checking for $ac_func" >&5 19547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19549 echo $ECHO_N "(cached) $ECHO_C" >&6 19550else 19551 cat >conftest.$ac_ext <<_ACEOF 19552/* confdefs.h. */ 19553_ACEOF 19554cat confdefs.h >>conftest.$ac_ext 19555cat >>conftest.$ac_ext <<_ACEOF 19556/* end confdefs.h. */ 19557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19558 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19559#define $ac_func innocuous_$ac_func 19560 19561/* System header to define __stub macros and hopefully few prototypes, 19562 which can conflict with char $ac_func (); below. 19563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19564 <limits.h> exists even on freestanding compilers. */ 19565 19566#ifdef __STDC__ 19567# include <limits.h> 19568#else 19569# include <assert.h> 19570#endif 19571 19572#undef $ac_func 19573 19574/* Override any GCC internal prototype to avoid an error. 19575 Use char because int might match the return type of a GCC 19576 builtin and then its argument prototype would still apply. */ 19577#ifdef __cplusplus 19578extern "C" 19579#endif 19580char $ac_func (); 19581/* The GNU C library defines this for functions which it implements 19582 to always fail with ENOSYS. Some functions are actually named 19583 something starting with __ and the normal name is an alias. */ 19584#if defined __stub_$ac_func || defined __stub___$ac_func 19585choke me 19586#endif 19587 19588int 19589main () 19590{ 19591return $ac_func (); 19592 ; 19593 return 0; 19594} 19595_ACEOF 19596rm -f conftest.$ac_objext conftest$ac_exeext 19597if { (ac_try="$ac_link" 19598case "(($ac_try" in 19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19600 *) ac_try_echo=$ac_try;; 19601esac 19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19603 (eval "$ac_link") 2>conftest.er1 19604 ac_status=$? 19605 grep -v '^ *+' conftest.er1 >conftest.err 19606 rm -f conftest.er1 19607 cat conftest.err >&5 19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19609 (exit $ac_status); } && 19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19611 { (case "(($ac_try" in 19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19613 *) ac_try_echo=$ac_try;; 19614esac 19615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19616 (eval "$ac_try") 2>&5 19617 ac_status=$? 19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19619 (exit $ac_status); }; } && 19620 { ac_try='test -s conftest$ac_exeext' 19621 { (case "(($ac_try" in 19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19623 *) ac_try_echo=$ac_try;; 19624esac 19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19626 (eval "$ac_try") 2>&5 19627 ac_status=$? 19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19629 (exit $ac_status); }; }; then 19630 eval "$as_ac_var=yes" 19631else 19632 echo "$as_me: failed program was:" >&5 19633sed 's/^/| /' conftest.$ac_ext >&5 19634 19635 eval "$as_ac_var=no" 19636fi 19637 19638rm -f core conftest.err conftest.$ac_objext \ 19639 conftest$ac_exeext conftest.$ac_ext 19640fi 19641ac_res=`eval echo '${'$as_ac_var'}'` 19642 { echo "$as_me:$LINENO: result: $ac_res" >&5 19643echo "${ECHO_T}$ac_res" >&6; } 19644if test `eval echo '${'$as_ac_var'}'` = yes; then 19645 cat >>confdefs.h <<_ACEOF 19646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19647_ACEOF 19648 19649fi 19650done 19651 19652 19653{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 19654echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } 19655if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 19656 echo $ECHO_N "(cached) $ECHO_C" >&6 19657else 19658 llvm_cv_llvmgcc_sanity="no" 19659if test -x "$LLVMGCC" ; then 19660 cp /dev/null conftest.c 19661 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ 19662 grep 'target datalayout =' > /dev/null 2>&1 19663 if test $? -eq 0 ; then 19664 llvm_cv_llvmgcc_sanity="yes" 19665 fi 19666 rm conftest.c 19667fi 19668fi 19669{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 19670echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } 19671 19672if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 19673 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 19674echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } 19675 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` 19676 LLVMCC1=$llvmcc1path 19677 19678 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` 19679 LLVMCC1PLUS=$llvmcc1pluspath 19680 19681 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` 19682 LLVMGCCDIR=$llvmgccdir 19683 19684 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` 19685 LLVMGCC_LANGS=$llvmgcclangs 19686 19687 { echo "$as_me:$LINENO: result: ok" >&5 19688echo "${ECHO_T}ok" >&6; } 19689fi 19690 19691SHLIBEXT=$libltdl_cv_shlibext 19692 19693 19694# Translate the various configuration directories and other basic 19695# information into substitutions that will end up in Makefile.config.in 19696# that these configured values can be used by the makefiles 19697if test "${prefix}" = "NONE" ; then 19698 prefix="/usr/local" 19699fi 19700eval LLVM_PREFIX="${prefix}"; 19701eval LLVM_BINDIR="${prefix}/bin"; 19702eval LLVM_LIBDIR="${prefix}/lib"; 19703eval LLVM_DATADIR="${prefix}/share/llvm"; 19704eval LLVM_DOCSDIR="${prefix}/docs/llvm"; 19705eval LLVM_ETCDIR="${prefix}/etc/llvm"; 19706eval LLVM_INCLUDEDIR="${prefix}/include"; 19707eval LLVM_INFODIR="${prefix}/info"; 19708eval LLVM_MANDIR="${prefix}/man"; 19709LLVM_CONFIGTIME=`date` 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721# Place the various directores into the config.h file as #defines so that we 19722# can know about the installation paths within LLVM. 19723 19724cat >>confdefs.h <<_ACEOF 19725#define LLVM_PREFIX "$LLVM_PREFIX" 19726_ACEOF 19727 19728 19729cat >>confdefs.h <<_ACEOF 19730#define LLVM_BINDIR "$LLVM_BINDIR" 19731_ACEOF 19732 19733 19734cat >>confdefs.h <<_ACEOF 19735#define LLVM_LIBDIR "$LLVM_LIBDIR" 19736_ACEOF 19737 19738 19739cat >>confdefs.h <<_ACEOF 19740#define LLVM_DATADIR "$LLVM_DATADIR" 19741_ACEOF 19742 19743 19744cat >>confdefs.h <<_ACEOF 19745#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 19746_ACEOF 19747 19748 19749cat >>confdefs.h <<_ACEOF 19750#define LLVM_ETCDIR "$LLVM_ETCDIR" 19751_ACEOF 19752 19753 19754cat >>confdefs.h <<_ACEOF 19755#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 19756_ACEOF 19757 19758 19759cat >>confdefs.h <<_ACEOF 19760#define LLVM_INFODIR "$LLVM_INFODIR" 19761_ACEOF 19762 19763 19764cat >>confdefs.h <<_ACEOF 19765#define LLVM_MANDIR "$LLVM_MANDIR" 19766_ACEOF 19767 19768 19769cat >>confdefs.h <<_ACEOF 19770#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 19771_ACEOF 19772 19773 19774cat >>confdefs.h <<_ACEOF 19775#define LLVM_HOSTTRIPLE "$host" 19776_ACEOF 19777 19778 19779# Determine which bindings to build. 19780if test "$BINDINGS_TO_BUILD" = auto ; then 19781 BINDINGS_TO_BUILD="" 19782 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 19783 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 19784 fi 19785fi 19786BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 19787 19788 19789# This isn't really configurey, but it avoids having to repeat the list in 19790# other files. 19791ALL_BINDINGS=ocaml 19792 19793 19794# Do any work necessary to ensure that bindings have what they need. 19795binding_prereqs_failed=0 19796for a_binding in $BINDINGS_TO_BUILD ; do 19797 case "$a_binding" in 19798 ocaml) 19799 if test "x$OCAMLC" = x ; then 19800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 19801echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 19802 binding_prereqs_failed=1 19803 fi 19804 if test "x$OCAMLDEP" = x ; then 19805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 19806echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 19807 binding_prereqs_failed=1 19808 fi 19809 if test "x$OCAMLOPT" = x ; then 19810 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 19811echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 19812 fi 19813 if test "x$with_ocaml_libdir" != xauto ; then 19814 OCAML_LIBDIR=$with_ocaml_libdir 19815 19816 else 19817 ocaml_stdlib="`"$OCAMLC" -where`" 19818 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 19819 then 19820 # ocaml stdlib is beneath our prefix; use stdlib 19821 OCAML_LIBDIR=$ocaml_stdlib 19822 19823 else 19824 # ocaml stdlib is outside our prefix; use libdir/ocaml 19825 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 19826 19827 fi 19828 fi 19829 ;; 19830 esac 19831done 19832if test "$binding_prereqs_failed" = 1 ; then 19833 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 19834echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 19835 { (exit 1); exit 1; }; } 19836fi 19837 19838{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 19839echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 19840if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 19841 echo $ECHO_N "(cached) $ECHO_C" >&6 19842else 19843 ac_ext=cpp 19844ac_cpp='$CXXCPP $CPPFLAGS' 19845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19848 19849 oldcxxflags="$CXXFLAGS" 19850 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 19851 cat >conftest.$ac_ext <<_ACEOF 19852/* confdefs.h. */ 19853_ACEOF 19854cat confdefs.h >>conftest.$ac_ext 19855cat >>conftest.$ac_ext <<_ACEOF 19856/* end confdefs.h. */ 19857 19858int 19859main () 19860{ 19861 19862 ; 19863 return 0; 19864} 19865_ACEOF 19866rm -f conftest.$ac_objext 19867if { (ac_try="$ac_compile" 19868case "(($ac_try" in 19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19870 *) ac_try_echo=$ac_try;; 19871esac 19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19873 (eval "$ac_compile") 2>conftest.er1 19874 ac_status=$? 19875 grep -v '^ *+' conftest.er1 >conftest.err 19876 rm -f conftest.er1 19877 cat conftest.err >&5 19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19879 (exit $ac_status); } && 19880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19881 { (case "(($ac_try" in 19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19883 *) ac_try_echo=$ac_try;; 19884esac 19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19886 (eval "$ac_try") 2>&5 19887 ac_status=$? 19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19889 (exit $ac_status); }; } && 19890 { ac_try='test -s conftest.$ac_objext' 19891 { (case "(($ac_try" in 19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19893 *) ac_try_echo=$ac_try;; 19894esac 19895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19896 (eval "$ac_try") 2>&5 19897 ac_status=$? 19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19899 (exit $ac_status); }; }; then 19900 llvm_cv_cxx_visibility_inlines_hidden=yes 19901else 19902 echo "$as_me: failed program was:" >&5 19903sed 's/^/| /' conftest.$ac_ext >&5 19904 19905 llvm_cv_cxx_visibility_inlines_hidden=no 19906fi 19907 19908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19909 CXXFLAGS="$oldcxxflags" 19910 ac_ext=c 19911ac_cpp='$CPP $CPPFLAGS' 19912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19914ac_compiler_gnu=$ac_cv_c_compiler_gnu 19915 19916 19917fi 19918{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 19919echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 19920if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 19921 ENABLE_VISIBILITY_INLINES_HIDDEN=1 19922 19923else 19924 ENABLE_VISIBILITY_INLINES_HIDDEN=0 19925 19926fi 19927 19928 19929if test "$llvm_cv_link_use_r" = "yes" ; then 19930 RPATH="-Wl,-R" 19931else 19932 RPATH="-Wl,-rpath" 19933fi 19934 19935 19936if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 19937 RDYNAMIC="-Wl,-export-dynamic" 19938else 19939 RDYNAMIC="" 19940fi 19941 19942 19943 19944ac_config_headers="$ac_config_headers include/llvm/Config/config.h" 19945 19946ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 19947 19948ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 19949 19950ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 19951 19952ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 19953 19954ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" 19955 19956 19957ac_config_files="$ac_config_files Makefile.config" 19958 19959 19960ac_config_files="$ac_config_files llvm.spec" 19961 19962 19963ac_config_files="$ac_config_files docs/doxygen.cfg" 19964 19965 19966ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" 19967 19968 19969ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 19970 19971 19972ac_config_commands="$ac_config_commands setup" 19973 19974ac_config_commands="$ac_config_commands Makefile" 19975 19976 19977ac_config_commands="$ac_config_commands Makefile.common" 19978 19979 19980ac_config_commands="$ac_config_commands examples/Makefile" 19981 19982 19983ac_config_commands="$ac_config_commands lib/Makefile" 19984 19985 19986ac_config_commands="$ac_config_commands runtime/Makefile" 19987 19988 19989ac_config_commands="$ac_config_commands test/Makefile" 19990 19991 19992ac_config_commands="$ac_config_commands test/Makefile.tests" 19993 19994 19995ac_config_commands="$ac_config_commands unittests/Makefile" 19996 19997 19998ac_config_commands="$ac_config_commands tools/Makefile" 19999 20000 20001ac_config_commands="$ac_config_commands utils/Makefile" 20002 20003 20004ac_config_commands="$ac_config_commands projects/Makefile" 20005 20006 20007ac_config_commands="$ac_config_commands bindings/Makefile" 20008 20009 20010ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 20011 20012 20013 20014cat >confcache <<\_ACEOF 20015# This file is a shell script that caches the results of configure 20016# tests run on this system so they can be shared between configure 20017# scripts and configure runs, see configure's option --config-cache. 20018# It is not useful on other systems. If it contains results you don't 20019# want to keep, you may remove or edit it. 20020# 20021# config.status only pays attention to the cache file if you give it 20022# the --recheck option to rerun configure. 20023# 20024# `ac_cv_env_foo' variables (set or unset) will be overridden when 20025# loading this file, other *unset* `ac_cv_foo' will be assigned the 20026# following values. 20027 20028_ACEOF 20029 20030# The following way of writing the cache mishandles newlines in values, 20031# but we know of no workaround that is simple, portable, and efficient. 20032# So, we kill variables containing newlines. 20033# Ultrix sh set writes to stderr and can't be redirected directly, 20034# and sets the high bit in the cache file unless we assign to the vars. 20035( 20036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20037 eval ac_val=\$$ac_var 20038 case $ac_val in #( 20039 *${as_nl}*) 20040 case $ac_var in #( 20041 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20042echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20043 esac 20044 case $ac_var in #( 20045 _ | IFS | as_nl) ;; #( 20046 *) $as_unset $ac_var ;; 20047 esac ;; 20048 esac 20049 done 20050 20051 (set) 2>&1 | 20052 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20053 *${as_nl}ac_space=\ *) 20054 # `set' does not quote correctly, so add quotes (double-quote 20055 # substitution turns \\\\ into \\, and sed turns \\ into \). 20056 sed -n \ 20057 "s/'/'\\\\''/g; 20058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20059 ;; #( 20060 *) 20061 # `set' quotes correctly as required by POSIX, so do not add quotes. 20062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20063 ;; 20064 esac | 20065 sort 20066) | 20067 sed ' 20068 /^ac_cv_env_/b end 20069 t clear 20070 :clear 20071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20072 t end 20073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20074 :end' >>confcache 20075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20076 if test -w "$cache_file"; then 20077 test "x$cache_file" != "x/dev/null" && 20078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20079echo "$as_me: updating cache $cache_file" >&6;} 20080 cat confcache >$cache_file 20081 else 20082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20083echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20084 fi 20085fi 20086rm -f confcache 20087 20088test "x$prefix" = xNONE && prefix=$ac_default_prefix 20089# Let make expand exec_prefix. 20090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20091 20092DEFS=-DHAVE_CONFIG_H 20093 20094ac_libobjs= 20095ac_ltlibobjs= 20096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20097 # 1. Remove the extension, and $U if already installed. 20098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20099 ac_i=`echo "$ac_i" | sed "$ac_script"` 20100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20101 # will be set to the directory where LIBOBJS objects are built. 20102 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20103 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20104done 20105LIBOBJS=$ac_libobjs 20106 20107LTLIBOBJS=$ac_ltlibobjs 20108 20109 20110if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 20111 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 20112Usually this means the macro was only invoked conditionally." >&5 20113echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 20114Usually this means the macro was only invoked conditionally." >&2;} 20115 { (exit 1); exit 1; }; } 20116fi 20117if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 20118 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20119Usually this means the macro was only invoked conditionally." >&5 20120echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20121Usually this means the macro was only invoked conditionally." >&2;} 20122 { (exit 1); exit 1; }; } 20123fi 20124 20125: ${CONFIG_STATUS=./config.status} 20126ac_clean_files_save=$ac_clean_files 20127ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20128{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20129echo "$as_me: creating $CONFIG_STATUS" >&6;} 20130cat >$CONFIG_STATUS <<_ACEOF 20131#! $SHELL 20132# Generated by $as_me. 20133# Run this file to recreate the current configuration. 20134# Compiler output produced by configure, useful for debugging 20135# configure, is in config.log if it exists. 20136 20137debug=false 20138ac_cs_recheck=false 20139ac_cs_silent=false 20140SHELL=\${CONFIG_SHELL-$SHELL} 20141_ACEOF 20142 20143cat >>$CONFIG_STATUS <<\_ACEOF 20144## --------------------- ## 20145## M4sh Initialization. ## 20146## --------------------- ## 20147 20148# Be Bourne compatible 20149if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20150 emulate sh 20151 NULLCMD=: 20152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20153 # is contrary to our usage. Disable this feature. 20154 alias -g '${1+"$@"}'='"$@"' 20155 setopt NO_GLOB_SUBST 20156else 20157 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20158fi 20159BIN_SH=xpg4; export BIN_SH # for Tru64 20160DUALCASE=1; export DUALCASE # for MKS sh 20161 20162 20163# PATH needs CR 20164# Avoid depending upon Character Ranges. 20165as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20167as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20168as_cr_digits='0123456789' 20169as_cr_alnum=$as_cr_Letters$as_cr_digits 20170 20171# The user is always right. 20172if test "${PATH_SEPARATOR+set}" != set; then 20173 echo "#! /bin/sh" >conf$$.sh 20174 echo "exit 0" >>conf$$.sh 20175 chmod +x conf$$.sh 20176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20177 PATH_SEPARATOR=';' 20178 else 20179 PATH_SEPARATOR=: 20180 fi 20181 rm -f conf$$.sh 20182fi 20183 20184# Support unset when possible. 20185if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20186 as_unset=unset 20187else 20188 as_unset=false 20189fi 20190 20191 20192# IFS 20193# We need space, tab and new line, in precisely that order. Quoting is 20194# there to prevent editors from complaining about space-tab. 20195# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20196# splitting by setting IFS to empty value.) 20197as_nl=' 20198' 20199IFS=" "" $as_nl" 20200 20201# Find who we are. Look in the path if we contain no directory separator. 20202case $0 in 20203 *[\\/]* ) as_myself=$0 ;; 20204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20205for as_dir in $PATH 20206do 20207 IFS=$as_save_IFS 20208 test -z "$as_dir" && as_dir=. 20209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20210done 20211IFS=$as_save_IFS 20212 20213 ;; 20214esac 20215# We did not find ourselves, most probably we were run as `sh COMMAND' 20216# in which case we are not to be found in the path. 20217if test "x$as_myself" = x; then 20218 as_myself=$0 20219fi 20220if test ! -f "$as_myself"; then 20221 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20222 { (exit 1); exit 1; } 20223fi 20224 20225# Work around bugs in pre-3.0 UWIN ksh. 20226for as_var in ENV MAIL MAILPATH 20227do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20228done 20229PS1='$ ' 20230PS2='> ' 20231PS4='+ ' 20232 20233# NLS nuisances. 20234for as_var in \ 20235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20237 LC_TELEPHONE LC_TIME 20238do 20239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20240 eval $as_var=C; export $as_var 20241 else 20242 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20243 fi 20244done 20245 20246# Required to use basename. 20247if expr a : '\(a\)' >/dev/null 2>&1 && 20248 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20249 as_expr=expr 20250else 20251 as_expr=false 20252fi 20253 20254if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20255 as_basename=basename 20256else 20257 as_basename=false 20258fi 20259 20260 20261# Name of the executable. 20262as_me=`$as_basename -- "$0" || 20263$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20264 X"$0" : 'X\(//\)$' \| \ 20265 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20266echo X/"$0" | 20267 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20268 s//\1/ 20269 q 20270 } 20271 /^X\/\(\/\/\)$/{ 20272 s//\1/ 20273 q 20274 } 20275 /^X\/\(\/\).*/{ 20276 s//\1/ 20277 q 20278 } 20279 s/.*/./; q'` 20280 20281# CDPATH. 20282$as_unset CDPATH 20283 20284 20285 20286 as_lineno_1=$LINENO 20287 as_lineno_2=$LINENO 20288 test "x$as_lineno_1" != "x$as_lineno_2" && 20289 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20290 20291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20292 # uniformly replaced by the line number. The first 'sed' inserts a 20293 # line-number line after each line using $LINENO; the second 'sed' 20294 # does the real work. The second script uses 'N' to pair each 20295 # line-number line with the line containing $LINENO, and appends 20296 # trailing '-' during substitution so that $LINENO is not a special 20297 # case at line end. 20298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20299 # scripts with optimization help from Paolo Bonzini. Blame Lee 20300 # E. McMahon (1931-1989) for sed's syntax. :-) 20301 sed -n ' 20302 p 20303 /[$]LINENO/= 20304 ' <$as_myself | 20305 sed ' 20306 s/[$]LINENO.*/&-/ 20307 t lineno 20308 b 20309 :lineno 20310 N 20311 :loop 20312 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20313 t loop 20314 s/-\n.*// 20315 ' >$as_me.lineno && 20316 chmod +x "$as_me.lineno" || 20317 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20318 { (exit 1); exit 1; }; } 20319 20320 # Don't try to exec as it changes $[0], causing all sort of problems 20321 # (the dirname of $[0] is not the place where we might find the 20322 # original and so on. Autoconf is especially sensitive to this). 20323 . "./$as_me.lineno" 20324 # Exit status is that of the last command. 20325 exit 20326} 20327 20328 20329if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20330 as_dirname=dirname 20331else 20332 as_dirname=false 20333fi 20334 20335ECHO_C= ECHO_N= ECHO_T= 20336case `echo -n x` in 20337-n*) 20338 case `echo 'x\c'` in 20339 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20340 *) ECHO_C='\c';; 20341 esac;; 20342*) 20343 ECHO_N='-n';; 20344esac 20345 20346if expr a : '\(a\)' >/dev/null 2>&1 && 20347 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20348 as_expr=expr 20349else 20350 as_expr=false 20351fi 20352 20353rm -f conf$$ conf$$.exe conf$$.file 20354if test -d conf$$.dir; then 20355 rm -f conf$$.dir/conf$$.file 20356else 20357 rm -f conf$$.dir 20358 mkdir conf$$.dir 20359fi 20360echo >conf$$.file 20361if ln -s conf$$.file conf$$ 2>/dev/null; then 20362 as_ln_s='ln -s' 20363 # ... but there are two gotchas: 20364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20366 # In both cases, we have to default to `cp -p'. 20367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20368 as_ln_s='cp -p' 20369elif ln conf$$.file conf$$ 2>/dev/null; then 20370 as_ln_s=ln 20371else 20372 as_ln_s='cp -p' 20373fi 20374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20375rmdir conf$$.dir 2>/dev/null 20376 20377if mkdir -p . 2>/dev/null; then 20378 as_mkdir_p=: 20379else 20380 test -d ./-p && rmdir ./-p 20381 as_mkdir_p=false 20382fi 20383 20384# Find out whether ``test -x'' works. Don't use a zero-byte file, as 20385# systems may use methods other than mode bits to determine executability. 20386cat >conf$$.file <<_ASEOF 20387#! /bin/sh 20388exit 0 20389_ASEOF 20390chmod +x conf$$.file 20391if test -x conf$$.file >/dev/null 2>&1; then 20392 as_executable_p="test -x" 20393else 20394 as_executable_p=: 20395fi 20396rm -f conf$$.file 20397 20398# Sed expression to map a string onto a valid CPP name. 20399as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20400 20401# Sed expression to map a string onto a valid variable name. 20402as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20403 20404 20405exec 6>&1 20406 20407# Save the log message, to keep $[0] and so on meaningful, and to 20408# report actual input values of CONFIG_FILES etc. instead of their 20409# values after options handling. 20410ac_log=" 20411This file was extended by llvm $as_me 2.7svn, which was 20412generated by GNU Autoconf 2.60. Invocation command line was 20413 20414 CONFIG_FILES = $CONFIG_FILES 20415 CONFIG_HEADERS = $CONFIG_HEADERS 20416 CONFIG_LINKS = $CONFIG_LINKS 20417 CONFIG_COMMANDS = $CONFIG_COMMANDS 20418 $ $0 $@ 20419 20420on `(hostname || uname -n) 2>/dev/null | sed 1q` 20421" 20422 20423_ACEOF 20424 20425cat >>$CONFIG_STATUS <<_ACEOF 20426# Files that config.status was made for. 20427config_files="$ac_config_files" 20428config_headers="$ac_config_headers" 20429config_commands="$ac_config_commands" 20430 20431_ACEOF 20432 20433cat >>$CONFIG_STATUS <<\_ACEOF 20434ac_cs_usage="\ 20435\`$as_me' instantiates files from templates according to the 20436current configuration. 20437 20438Usage: $0 [OPTIONS] [FILE]... 20439 20440 -h, --help print this help, then exit 20441 -V, --version print version number, then exit 20442 -q, --quiet do not print progress messages 20443 -d, --debug don't remove temporary files 20444 --recheck update $as_me by reconfiguring in the same conditions 20445 --file=FILE[:TEMPLATE] 20446 instantiate the configuration file FILE 20447 --header=FILE[:TEMPLATE] 20448 instantiate the configuration header FILE 20449 20450Configuration files: 20451$config_files 20452 20453Configuration headers: 20454$config_headers 20455 20456Configuration commands: 20457$config_commands 20458 20459Report bugs to <bug-autoconf@gnu.org>." 20460 20461_ACEOF 20462cat >>$CONFIG_STATUS <<_ACEOF 20463ac_cs_version="\\ 20464llvm config.status 2.7svn 20465configured by $0, generated by GNU Autoconf 2.60, 20466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20467 20468Copyright (C) 2006 Free Software Foundation, Inc. 20469This config.status script is free software; the Free Software Foundation 20470gives unlimited permission to copy, distribute and modify it." 20471 20472ac_pwd='$ac_pwd' 20473srcdir='$srcdir' 20474INSTALL='$INSTALL' 20475_ACEOF 20476 20477cat >>$CONFIG_STATUS <<\_ACEOF 20478# If no file are specified by the user, then we need to provide default 20479# value. By we need to know if files were specified by the user. 20480ac_need_defaults=: 20481while test $# != 0 20482do 20483 case $1 in 20484 --*=*) 20485 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20487 ac_shift=: 20488 ;; 20489 *) 20490 ac_option=$1 20491 ac_optarg=$2 20492 ac_shift=shift 20493 ;; 20494 esac 20495 20496 case $ac_option in 20497 # Handling of the options. 20498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20499 ac_cs_recheck=: ;; 20500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20501 echo "$ac_cs_version"; exit ;; 20502 --debug | --debu | --deb | --de | --d | -d ) 20503 debug=: ;; 20504 --file | --fil | --fi | --f ) 20505 $ac_shift 20506 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20507 ac_need_defaults=false;; 20508 --header | --heade | --head | --hea ) 20509 $ac_shift 20510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20511 ac_need_defaults=false;; 20512 --he | --h) 20513 # Conflict between --help and --header 20514 { echo "$as_me: error: ambiguous option: $1 20515Try \`$0 --help' for more information." >&2 20516 { (exit 1); exit 1; }; };; 20517 --help | --hel | -h ) 20518 echo "$ac_cs_usage"; exit ;; 20519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20520 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20521 ac_cs_silent=: ;; 20522 20523 # This is an error. 20524 -*) { echo "$as_me: error: unrecognized option: $1 20525Try \`$0 --help' for more information." >&2 20526 { (exit 1); exit 1; }; } ;; 20527 20528 *) ac_config_targets="$ac_config_targets $1" 20529 ac_need_defaults=false ;; 20530 20531 esac 20532 shift 20533done 20534 20535ac_configure_extra_args= 20536 20537if $ac_cs_silent; then 20538 exec 6>/dev/null 20539 ac_configure_extra_args="$ac_configure_extra_args --silent" 20540fi 20541 20542_ACEOF 20543cat >>$CONFIG_STATUS <<_ACEOF 20544if \$ac_cs_recheck; then 20545 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20546 CONFIG_SHELL=$SHELL 20547 export CONFIG_SHELL 20548 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20549fi 20550 20551_ACEOF 20552cat >>$CONFIG_STATUS <<\_ACEOF 20553exec 5>>config.log 20554{ 20555 echo 20556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20557## Running $as_me. ## 20558_ASBOX 20559 echo "$ac_log" 20560} >&5 20561 20562_ACEOF 20563cat >>$CONFIG_STATUS <<_ACEOF 20564# 20565# INIT-COMMANDS 20566# 20567llvm_src="${srcdir}" 20568 20569_ACEOF 20570 20571cat >>$CONFIG_STATUS <<\_ACEOF 20572 20573# Handling of arguments. 20574for ac_config_target in $ac_config_targets 20575do 20576 case $ac_config_target in 20577 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 20578 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 20579 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 20580 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 20581 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 20582 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; 20583 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 20584 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 20585 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 20586 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; 20587 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 20588 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 20589 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 20590 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 20591 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 20592 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 20593 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 20594 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 20595 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 20596 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 20597 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 20598 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 20599 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 20600 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 20601 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 20602 20603 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20604echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20605 { (exit 1); exit 1; }; };; 20606 esac 20607done 20608 20609 20610# If the user did not use the arguments to specify the items to instantiate, 20611# then the envvar interface is used. Set only those that are not. 20612# We use the long form for the default assignment because of an extremely 20613# bizarre bug on SunOS 4.1.3. 20614if $ac_need_defaults; then 20615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20618fi 20619 20620# Have a temporary directory for convenience. Make it in the build tree 20621# simply because there is no reason against having it here, and in addition, 20622# creating and moving files from /tmp can sometimes cause problems. 20623# Hook for its removal unless debugging. 20624# Note that there is a small window in which the directory will not be cleaned: 20625# after its creation but before its name has been assigned to `$tmp'. 20626$debug || 20627{ 20628 tmp= 20629 trap 'exit_status=$? 20630 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20631' 0 20632 trap '{ (exit 1); exit 1; }' 1 2 13 15 20633} 20634# Create a (secure) tmp directory for tmp files. 20635 20636{ 20637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20638 test -n "$tmp" && test -d "$tmp" 20639} || 20640{ 20641 tmp=./conf$$-$RANDOM 20642 (umask 077 && mkdir "$tmp") 20643} || 20644{ 20645 echo "$me: cannot create a temporary directory in ." >&2 20646 { (exit 1); exit 1; } 20647} 20648 20649# 20650# Set up the sed scripts for CONFIG_FILES section. 20651# 20652 20653# No need to generate the scripts if there are no CONFIG_FILES. 20654# This happens for instance when ./config.status config.h 20655if test -n "$CONFIG_FILES"; then 20656 20657_ACEOF 20658 20659 20660 20661ac_delim='%!_!# ' 20662for ac_last_try in false false false false false :; do 20663 cat >conf$$subs.sed <<_ACEOF 20664SHELL!$SHELL$ac_delim 20665PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20666PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20667PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20668PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20669PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20670PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20671exec_prefix!$exec_prefix$ac_delim 20672prefix!$prefix$ac_delim 20673program_transform_name!$program_transform_name$ac_delim 20674bindir!$bindir$ac_delim 20675sbindir!$sbindir$ac_delim 20676libexecdir!$libexecdir$ac_delim 20677datarootdir!$datarootdir$ac_delim 20678datadir!$datadir$ac_delim 20679sysconfdir!$sysconfdir$ac_delim 20680sharedstatedir!$sharedstatedir$ac_delim 20681localstatedir!$localstatedir$ac_delim 20682includedir!$includedir$ac_delim 20683oldincludedir!$oldincludedir$ac_delim 20684docdir!$docdir$ac_delim 20685infodir!$infodir$ac_delim 20686htmldir!$htmldir$ac_delim 20687dvidir!$dvidir$ac_delim 20688pdfdir!$pdfdir$ac_delim 20689psdir!$psdir$ac_delim 20690libdir!$libdir$ac_delim 20691localedir!$localedir$ac_delim 20692mandir!$mandir$ac_delim 20693DEFS!$DEFS$ac_delim 20694ECHO_C!$ECHO_C$ac_delim 20695ECHO_N!$ECHO_N$ac_delim 20696ECHO_T!$ECHO_T$ac_delim 20697LIBS!$LIBS$ac_delim 20698build_alias!$build_alias$ac_delim 20699host_alias!$host_alias$ac_delim 20700target_alias!$target_alias$ac_delim 20701LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 20702subdirs!$subdirs$ac_delim 20703build!$build$ac_delim 20704build_cpu!$build_cpu$ac_delim 20705build_vendor!$build_vendor$ac_delim 20706build_os!$build_os$ac_delim 20707host!$host$ac_delim 20708host_cpu!$host_cpu$ac_delim 20709host_vendor!$host_vendor$ac_delim 20710host_os!$host_os$ac_delim 20711target!$target$ac_delim 20712target_cpu!$target_cpu$ac_delim 20713target_vendor!$target_vendor$ac_delim 20714target_os!$target_os$ac_delim 20715OS!$OS$ac_delim 20716HOST_OS!$HOST_OS$ac_delim 20717TARGET_OS!$TARGET_OS$ac_delim 20718LINKALL!$LINKALL$ac_delim 20719NOLINKALL!$NOLINKALL$ac_delim 20720LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 20721LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 20722ARCH!$ARCH$ac_delim 20723ENDIAN!$ENDIAN$ac_delim 20724CC!$CC$ac_delim 20725CFLAGS!$CFLAGS$ac_delim 20726LDFLAGS!$LDFLAGS$ac_delim 20727CPPFLAGS!$CPPFLAGS$ac_delim 20728ac_ct_CC!$ac_ct_CC$ac_delim 20729EXEEXT!$EXEEXT$ac_delim 20730OBJEXT!$OBJEXT$ac_delim 20731CPP!$CPP$ac_delim 20732GREP!$GREP$ac_delim 20733EGREP!$EGREP$ac_delim 20734LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 20735BUILD_CC!$BUILD_CC$ac_delim 20736BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 20737BUILD_CXX!$BUILD_CXX$ac_delim 20738CVSBUILD!$CVSBUILD$ac_delim 20739ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 20740ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 20741DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 20742ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 20743EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 20744DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 20745DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 20746JIT!$JIT$ac_delim 20747TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 20748ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 20749ENABLE_THREADS!$ENABLE_THREADS$ac_delim 20750ENABLE_PIC!$ENABLE_PIC$ac_delim 20751TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 20752LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 20753LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 20754LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 20755LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 20756ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 20757CLANGPATH!$CLANGPATH$ac_delim 20758CLANGXXPATH!$CLANGXXPATH$ac_delim 20759ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim 20760OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 20761_ACEOF 20762 20763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20764 break 20765 elif $ac_last_try; then 20766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20767echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20768 { (exit 1); exit 1; }; } 20769 else 20770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20771 fi 20772done 20773 20774ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20775if test -n "$ac_eof"; then 20776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20777 ac_eof=`expr $ac_eof + 1` 20778fi 20779 20780cat >>$CONFIG_STATUS <<_ACEOF 20781cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20783_ACEOF 20784sed ' 20785s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20786s/^/s,@/; s/!/@,|#_!!_#|/ 20787:n 20788t n 20789s/'"$ac_delim"'$/,g/; t 20790s/$/\\/; p 20791N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20792' >>$CONFIG_STATUS <conf$$subs.sed 20793rm -f conf$$subs.sed 20794cat >>$CONFIG_STATUS <<_ACEOF 20795CEOF$ac_eof 20796_ACEOF 20797 20798 20799ac_delim='%!_!# ' 20800for ac_last_try in false false false false false :; do 20801 cat >conf$$subs.sed <<_ACEOF 20802EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 20803BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 20804ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim 20805ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim 20806CXX!$CXX$ac_delim 20807CXXFLAGS!$CXXFLAGS$ac_delim 20808ac_ct_CXX!$ac_ct_CXX$ac_delim 20809NM!$NM$ac_delim 20810ifGNUmake!$ifGNUmake$ac_delim 20811LN_S!$LN_S$ac_delim 20812CMP!$CMP$ac_delim 20813CP!$CP$ac_delim 20814DATE!$DATE$ac_delim 20815FIND!$FIND$ac_delim 20816MKDIR!$MKDIR$ac_delim 20817MV!$MV$ac_delim 20818RANLIB!$RANLIB$ac_delim 20819AR!$AR$ac_delim 20820RM!$RM$ac_delim 20821SED!$SED$ac_delim 20822TAR!$TAR$ac_delim 20823BINPWD!$BINPWD$ac_delim 20824GRAPHVIZ!$GRAPHVIZ$ac_delim 20825DOT!$DOT$ac_delim 20826FDP!$FDP$ac_delim 20827NEATO!$NEATO$ac_delim 20828TWOPI!$TWOPI$ac_delim 20829CIRCO!$CIRCO$ac_delim 20830GV!$GV$ac_delim 20831DOTTY!$DOTTY$ac_delim 20832PERL!$PERL$ac_delim 20833HAVE_PERL!$HAVE_PERL$ac_delim 20834INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20835INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20836INSTALL_DATA!$INSTALL_DATA$ac_delim 20837BZIP2!$BZIP2$ac_delim 20838DOXYGEN!$DOXYGEN$ac_delim 20839GROFF!$GROFF$ac_delim 20840GZIP!$GZIP$ac_delim 20841POD2HTML!$POD2HTML$ac_delim 20842POD2MAN!$POD2MAN$ac_delim 20843RUNTEST!$RUNTEST$ac_delim 20844TCLSH!$TCLSH$ac_delim 20845ZIP!$ZIP$ac_delim 20846OCAMLC!$OCAMLC$ac_delim 20847OCAMLOPT!$OCAMLOPT$ac_delim 20848OCAMLDEP!$OCAMLDEP$ac_delim 20849OCAMLDOC!$OCAMLDOC$ac_delim 20850GAS!$GAS$ac_delim 20851INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 20852INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 20853CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 20854CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 20855LIBADD_DL!$LIBADD_DL$ac_delim 20856LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim 20857LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim 20858LLVMGCC!$LLVMGCC$ac_delim 20859LLVMGXX!$LLVMGXX$ac_delim 20860LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim 20861NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 20862NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 20863USE_UDIS86!$USE_UDIS86$ac_delim 20864USE_OPROFILE!$USE_OPROFILE$ac_delim 20865HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 20866HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 20867MMAP_FILE!$MMAP_FILE$ac_delim 20868LLVMCC1!$LLVMCC1$ac_delim 20869LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim 20870LLVMGCCDIR!$LLVMGCCDIR$ac_delim 20871LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim 20872SHLIBEXT!$SHLIBEXT$ac_delim 20873LLVM_PREFIX!$LLVM_PREFIX$ac_delim 20874LLVM_BINDIR!$LLVM_BINDIR$ac_delim 20875LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 20876LLVM_DATADIR!$LLVM_DATADIR$ac_delim 20877LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 20878LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 20879LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 20880LLVM_INFODIR!$LLVM_INFODIR$ac_delim 20881LLVM_MANDIR!$LLVM_MANDIR$ac_delim 20882LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 20883BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 20884ALL_BINDINGS!$ALL_BINDINGS$ac_delim 20885OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 20886ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 20887RPATH!$RPATH$ac_delim 20888RDYNAMIC!$RDYNAMIC$ac_delim 20889LIBOBJS!$LIBOBJS$ac_delim 20890LTLIBOBJS!$LTLIBOBJS$ac_delim 20891_ACEOF 20892 20893 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then 20894 break 20895 elif $ac_last_try; then 20896 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20897echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20898 { (exit 1); exit 1; }; } 20899 else 20900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20901 fi 20902done 20903 20904ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20905if test -n "$ac_eof"; then 20906 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20907 ac_eof=`expr $ac_eof + 1` 20908fi 20909 20910cat >>$CONFIG_STATUS <<_ACEOF 20911cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20913_ACEOF 20914sed ' 20915s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20916s/^/s,@/; s/!/@,|#_!!_#|/ 20917:n 20918t n 20919s/'"$ac_delim"'$/,g/; t 20920s/$/\\/; p 20921N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20922' >>$CONFIG_STATUS <conf$$subs.sed 20923rm -f conf$$subs.sed 20924cat >>$CONFIG_STATUS <<_ACEOF 20925:end 20926s/|#_!!_#|//g 20927CEOF$ac_eof 20928_ACEOF 20929 20930 20931# VPATH may cause trouble with some makes, so we remove $(srcdir), 20932# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20933# trailing colons and then remove the whole line if VPATH becomes empty 20934# (actually we leave an empty line to preserve line numbers). 20935if test "x$srcdir" = x.; then 20936 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20937s/:*\$(srcdir):*/:/ 20938s/:*\${srcdir}:*/:/ 20939s/:*@srcdir@:*/:/ 20940s/^\([^=]*=[ ]*\):*/\1/ 20941s/:*$// 20942s/^[^=]*=[ ]*$// 20943}' 20944fi 20945 20946cat >>$CONFIG_STATUS <<\_ACEOF 20947fi # test -n "$CONFIG_FILES" 20948 20949 20950for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20951do 20952 case $ac_tag in 20953 :[FHLC]) ac_mode=$ac_tag; continue;; 20954 esac 20955 case $ac_mode$ac_tag in 20956 :[FHL]*:*);; 20957 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20958echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20959 { (exit 1); exit 1; }; };; 20960 :[FH]-) ac_tag=-:-;; 20961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20962 esac 20963 ac_save_IFS=$IFS 20964 IFS=: 20965 set x $ac_tag 20966 IFS=$ac_save_IFS 20967 shift 20968 ac_file=$1 20969 shift 20970 20971 case $ac_mode in 20972 :L) ac_source=$1;; 20973 :[FH]) 20974 ac_file_inputs= 20975 for ac_f 20976 do 20977 case $ac_f in 20978 -) ac_f="$tmp/stdin";; 20979 *) # Look for the file first in the build tree, then in the source tree 20980 # (if the path is not absolute). The absolute path cannot be DOS-style, 20981 # because $ac_f cannot contain `:'. 20982 test -f "$ac_f" || 20983 case $ac_f in 20984 [\\/$]*) false;; 20985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20986 esac || 20987 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20988echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20989 { (exit 1); exit 1; }; };; 20990 esac 20991 ac_file_inputs="$ac_file_inputs $ac_f" 20992 done 20993 20994 # Let's still pretend it is `configure' which instantiates (i.e., don't 20995 # use $as_me), people would be surprised to read: 20996 # /* config.h. Generated by config.status. */ 20997 configure_input="Generated from "`IFS=: 20998 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20999 if test x"$ac_file" != x-; then 21000 configure_input="$ac_file. $configure_input" 21001 { echo "$as_me:$LINENO: creating $ac_file" >&5 21002echo "$as_me: creating $ac_file" >&6;} 21003 fi 21004 21005 case $ac_tag in 21006 *:-:* | *:-) cat >"$tmp/stdin";; 21007 esac 21008 ;; 21009 esac 21010 21011 ac_dir=`$as_dirname -- "$ac_file" || 21012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21013 X"$ac_file" : 'X\(//\)[^/]' \| \ 21014 X"$ac_file" : 'X\(//\)$' \| \ 21015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21016echo X"$ac_file" | 21017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21018 s//\1/ 21019 q 21020 } 21021 /^X\(\/\/\)[^/].*/{ 21022 s//\1/ 21023 q 21024 } 21025 /^X\(\/\/\)$/{ 21026 s//\1/ 21027 q 21028 } 21029 /^X\(\/\).*/{ 21030 s//\1/ 21031 q 21032 } 21033 s/.*/./; q'` 21034 { as_dir="$ac_dir" 21035 case $as_dir in #( 21036 -*) as_dir=./$as_dir;; 21037 esac 21038 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21039 as_dirs= 21040 while :; do 21041 case $as_dir in #( 21042 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21043 *) as_qdir=$as_dir;; 21044 esac 21045 as_dirs="'$as_qdir' $as_dirs" 21046 as_dir=`$as_dirname -- "$as_dir" || 21047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21048 X"$as_dir" : 'X\(//\)[^/]' \| \ 21049 X"$as_dir" : 'X\(//\)$' \| \ 21050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21051echo X"$as_dir" | 21052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21053 s//\1/ 21054 q 21055 } 21056 /^X\(\/\/\)[^/].*/{ 21057 s//\1/ 21058 q 21059 } 21060 /^X\(\/\/\)$/{ 21061 s//\1/ 21062 q 21063 } 21064 /^X\(\/\).*/{ 21065 s//\1/ 21066 q 21067 } 21068 s/.*/./; q'` 21069 test -d "$as_dir" && break 21070 done 21071 test -z "$as_dirs" || eval "mkdir $as_dirs" 21072 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21073echo "$as_me: error: cannot create directory $as_dir" >&2;} 21074 { (exit 1); exit 1; }; }; } 21075 ac_builddir=. 21076 21077case "$ac_dir" in 21078.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21079*) 21080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21081 # A ".." for each directory in $ac_dir_suffix. 21082 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21083 case $ac_top_builddir_sub in 21084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21086 esac ;; 21087esac 21088ac_abs_top_builddir=$ac_pwd 21089ac_abs_builddir=$ac_pwd$ac_dir_suffix 21090# for backward compatibility: 21091ac_top_builddir=$ac_top_build_prefix 21092 21093case $srcdir in 21094 .) # We are building in place. 21095 ac_srcdir=. 21096 ac_top_srcdir=$ac_top_builddir_sub 21097 ac_abs_top_srcdir=$ac_pwd ;; 21098 [\\/]* | ?:[\\/]* ) # Absolute name. 21099 ac_srcdir=$srcdir$ac_dir_suffix; 21100 ac_top_srcdir=$srcdir 21101 ac_abs_top_srcdir=$srcdir ;; 21102 *) # Relative name. 21103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21104 ac_top_srcdir=$ac_top_build_prefix$srcdir 21105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21106esac 21107ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21108 21109 21110 case $ac_mode in 21111 :F) 21112 # 21113 # CONFIG_FILE 21114 # 21115 21116 case $INSTALL in 21117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21119 esac 21120_ACEOF 21121 21122cat >>$CONFIG_STATUS <<\_ACEOF 21123# If the template does not know about datarootdir, expand it. 21124# FIXME: This hack should be removed a few years after 2.60. 21125ac_datarootdir_hack=; ac_datarootdir_seen= 21126 21127case `sed -n '/datarootdir/ { 21128 p 21129 q 21130} 21131/@datadir@/p 21132/@docdir@/p 21133/@infodir@/p 21134/@localedir@/p 21135/@mandir@/p 21136' $ac_file_inputs` in 21137*datarootdir*) ac_datarootdir_seen=yes;; 21138*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21139 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21140echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21141_ACEOF 21142cat >>$CONFIG_STATUS <<_ACEOF 21143 ac_datarootdir_hack=' 21144 s&@datadir@&$datadir&g 21145 s&@docdir@&$docdir&g 21146 s&@infodir@&$infodir&g 21147 s&@localedir@&$localedir&g 21148 s&@mandir@&$mandir&g 21149 s&\\\${datarootdir}&$datarootdir&g' ;; 21150esac 21151_ACEOF 21152 21153# Neutralize VPATH when `$srcdir' = `.'. 21154# Shell code in configure.ac might set extrasub. 21155# FIXME: do we really want to maintain this feature? 21156cat >>$CONFIG_STATUS <<_ACEOF 21157 sed "$ac_vpsub 21158$extrasub 21159_ACEOF 21160cat >>$CONFIG_STATUS <<\_ACEOF 21161:t 21162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21163s&@configure_input@&$configure_input&;t t 21164s&@top_builddir@&$ac_top_builddir_sub&;t t 21165s&@srcdir@&$ac_srcdir&;t t 21166s&@abs_srcdir@&$ac_abs_srcdir&;t t 21167s&@top_srcdir@&$ac_top_srcdir&;t t 21168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21169s&@builddir@&$ac_builddir&;t t 21170s&@abs_builddir@&$ac_abs_builddir&;t t 21171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21172s&@INSTALL@&$ac_INSTALL&;t t 21173$ac_datarootdir_hack 21174" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21175 21176test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21177 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21179 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21180which seems to be undefined. Please make sure it is defined." >&5 21181echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21182which seems to be undefined. Please make sure it is defined." >&2;} 21183 21184 rm -f "$tmp/stdin" 21185 case $ac_file in 21186 -) cat "$tmp/out"; rm -f "$tmp/out";; 21187 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21188 esac 21189 ;; 21190 :H) 21191 # 21192 # CONFIG_HEADER 21193 # 21194_ACEOF 21195 21196# Transform confdefs.h into a sed script `conftest.defines', that 21197# substitutes the proper values into config.h.in to produce config.h. 21198rm -f conftest.defines conftest.tail 21199# First, append a space to every undef/define line, to ease matching. 21200echo 's/$/ /' >conftest.defines 21201# Then, protect against being on the right side of a sed subst, or in 21202# an unquoted here document, in config.status. If some macros were 21203# called several times there might be several #defines for the same 21204# symbol, which is useless. But do not sort them, since the last 21205# AC_DEFINE must be honored. 21206ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21207# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21208# NAME is the cpp macro being defined, VALUE is the value it is being given. 21209# PARAMS is the parameter list in the macro definition--in most cases, it's 21210# just an empty string. 21211ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21212ac_dB='\\)[ (].*,\\1define\\2' 21213ac_dC=' ' 21214ac_dD=' ,' 21215 21216uniq confdefs.h | 21217 sed -n ' 21218 t rset 21219 :rset 21220 s/^[ ]*#[ ]*define[ ][ ]*// 21221 t ok 21222 d 21223 :ok 21224 s/[\\&,]/\\&/g 21225 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21226 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21227 ' >>conftest.defines 21228 21229# Remove the space that was appended to ease matching. 21230# Then replace #undef with comments. This is necessary, for 21231# example, in the case of _POSIX_SOURCE, which is predefined and required 21232# on some systems where configure will not decide to define it. 21233# (The regexp can be short, since the line contains either #define or #undef.) 21234echo 's/ $// 21235s,^[ #]*u.*,/* & */,' >>conftest.defines 21236 21237# Break up conftest.defines: 21238ac_max_sed_lines=50 21239 21240# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21241# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21242# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21243# et cetera. 21244ac_in='$ac_file_inputs' 21245ac_out='"$tmp/out1"' 21246ac_nxt='"$tmp/out2"' 21247 21248while : 21249do 21250 # Write a here document: 21251 cat >>$CONFIG_STATUS <<_ACEOF 21252 # First, check the format of the line: 21253 cat >"\$tmp/defines.sed" <<\\CEOF 21254/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21255/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21256b 21257:def 21258_ACEOF 21259 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21260 echo 'CEOF 21261 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21262 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21263 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21264 grep . conftest.tail >/dev/null || break 21265 rm -f conftest.defines 21266 mv conftest.tail conftest.defines 21267done 21268rm -f conftest.defines conftest.tail 21269 21270echo "ac_result=$ac_in" >>$CONFIG_STATUS 21271cat >>$CONFIG_STATUS <<\_ACEOF 21272 if test x"$ac_file" != x-; then 21273 echo "/* $configure_input */" >"$tmp/config.h" 21274 cat "$ac_result" >>"$tmp/config.h" 21275 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21277echo "$as_me: $ac_file is unchanged" >&6;} 21278 else 21279 rm -f $ac_file 21280 mv "$tmp/config.h" $ac_file 21281 fi 21282 else 21283 echo "/* $configure_input */" 21284 cat "$ac_result" 21285 fi 21286 rm -f "$tmp/out12" 21287 ;; 21288 21289 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21290echo "$as_me: executing $ac_file commands" >&6;} 21291 ;; 21292 esac 21293 21294 21295 case $ac_file$ac_mode in 21296 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 21297 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 21298 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 21299 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 21300 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 21301 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 21302 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 21303 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 21304 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 21305 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 21306 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 21307 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 21308 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 21309 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 21310 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 21311 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 21312 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 21313 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 21314 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 21315 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 21316 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 21317 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 21318 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 21319 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 21320 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 21321 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 21322 21323 esac 21324done # for ac_tag 21325 21326 21327{ (exit 0); exit 0; } 21328_ACEOF 21329chmod +x $CONFIG_STATUS 21330ac_clean_files=$ac_clean_files_save 21331 21332 21333# configure is writing to config.log, and then calls config.status. 21334# config.status does its own redirection, appending to config.log. 21335# Unfortunately, on DOS this fails, as config.log is still kept open 21336# by configure, so config.status won't be able to write to it; its 21337# output is simply discarded. So we exec the FD to /dev/null, 21338# effectively closing config.log, so it can be properly (re)opened and 21339# appended to by config.status. When coming back to configure, we 21340# need to make the FD available again. 21341if test "$no_create" != yes; then 21342 ac_cs_success=: 21343 ac_config_status_args= 21344 test "$silent" = yes && 21345 ac_config_status_args="$ac_config_status_args --quiet" 21346 exec 5>/dev/null 21347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21348 exec 5>>config.log 21349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21350 # would make configure fail if this is the last instruction. 21351 $ac_cs_success || { (exit 1); exit 1; } 21352fi 21353 21354# 21355# CONFIG_SUBDIRS section. 21356# 21357if test "$no_recursion" != yes; then 21358 21359 # Remove --cache-file and --srcdir arguments so they do not pile up. 21360 ac_sub_configure_args= 21361 ac_prev= 21362 eval "set x $ac_configure_args" 21363 shift 21364 for ac_arg 21365 do 21366 if test -n "$ac_prev"; then 21367 ac_prev= 21368 continue 21369 fi 21370 case $ac_arg in 21371 -cache-file | --cache-file | --cache-fil | --cache-fi \ 21372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 21373 ac_prev=cache_file ;; 21374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 21375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 21376 | --c=*) 21377 ;; 21378 --config-cache | -C) 21379 ;; 21380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 21381 ac_prev=srcdir ;; 21382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 21383 ;; 21384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 21385 ac_prev=prefix ;; 21386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 21387 ;; 21388 *) 21389 case $ac_arg in 21390 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21391 esac 21392 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 21393 esac 21394 done 21395 21396 # Always prepend --prefix to ensure using the same prefix 21397 # in subdir configurations. 21398 ac_arg="--prefix=$prefix" 21399 case $ac_arg in 21400 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21401 esac 21402 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 21403 21404 ac_popdir=`pwd` 21405 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 21406 21407 # Do not complain, so a configure script can configure whichever 21408 # parts of a large source tree are present. 21409 test -d "$srcdir/$ac_dir" || continue 21410 21411 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 21412 echo "$as_me:$LINENO: $ac_msg" >&5 21413 echo "$ac_msg" >&6 21414 { as_dir="$ac_dir" 21415 case $as_dir in #( 21416 -*) as_dir=./$as_dir;; 21417 esac 21418 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21419 as_dirs= 21420 while :; do 21421 case $as_dir in #( 21422 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21423 *) as_qdir=$as_dir;; 21424 esac 21425 as_dirs="'$as_qdir' $as_dirs" 21426 as_dir=`$as_dirname -- "$as_dir" || 21427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21428 X"$as_dir" : 'X\(//\)[^/]' \| \ 21429 X"$as_dir" : 'X\(//\)$' \| \ 21430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21431echo X"$as_dir" | 21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21433 s//\1/ 21434 q 21435 } 21436 /^X\(\/\/\)[^/].*/{ 21437 s//\1/ 21438 q 21439 } 21440 /^X\(\/\/\)$/{ 21441 s//\1/ 21442 q 21443 } 21444 /^X\(\/\).*/{ 21445 s//\1/ 21446 q 21447 } 21448 s/.*/./; q'` 21449 test -d "$as_dir" && break 21450 done 21451 test -z "$as_dirs" || eval "mkdir $as_dirs" 21452 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21453echo "$as_me: error: cannot create directory $as_dir" >&2;} 21454 { (exit 1); exit 1; }; }; } 21455 ac_builddir=. 21456 21457case "$ac_dir" in 21458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21459*) 21460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21461 # A ".." for each directory in $ac_dir_suffix. 21462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21463 case $ac_top_builddir_sub in 21464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21466 esac ;; 21467esac 21468ac_abs_top_builddir=$ac_pwd 21469ac_abs_builddir=$ac_pwd$ac_dir_suffix 21470# for backward compatibility: 21471ac_top_builddir=$ac_top_build_prefix 21472 21473case $srcdir in 21474 .) # We are building in place. 21475 ac_srcdir=. 21476 ac_top_srcdir=$ac_top_builddir_sub 21477 ac_abs_top_srcdir=$ac_pwd ;; 21478 [\\/]* | ?:[\\/]* ) # Absolute name. 21479 ac_srcdir=$srcdir$ac_dir_suffix; 21480 ac_top_srcdir=$srcdir 21481 ac_abs_top_srcdir=$srcdir ;; 21482 *) # Relative name. 21483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21484 ac_top_srcdir=$ac_top_build_prefix$srcdir 21485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21486esac 21487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21488 21489 21490 cd "$ac_dir" 21491 21492 # Check for guested configure; otherwise get Cygnus style configure. 21493 if test -f "$ac_srcdir/configure.gnu"; then 21494 ac_sub_configure=$ac_srcdir/configure.gnu 21495 elif test -f "$ac_srcdir/configure"; then 21496 ac_sub_configure=$ac_srcdir/configure 21497 elif test -f "$ac_srcdir/configure.in"; then 21498 # This should be Cygnus configure. 21499 ac_sub_configure=$ac_aux_dir/configure 21500 else 21501 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 21502echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21503 ac_sub_configure= 21504 fi 21505 21506 # The recursion is here. 21507 if test -n "$ac_sub_configure"; then 21508 # Make the cache file name correct relative to the subdirectory. 21509 case $cache_file in 21510 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21511 *) # Relative name. 21512 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 21513 esac 21514 21515 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21516echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21517 # The eval makes quoting arguments work. 21518 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 21519 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 21520 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 21521echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 21522 { (exit 1); exit 1; }; } 21523 fi 21524 21525 cd "$ac_popdir" 21526 done 21527fi 21528 21529