1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LLVM 4.0.0svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13# 14# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139# Use a proper internal environment variable to ensure we don't fall 140 # into an infinite loop, continuously re-executing ourselves. 141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 142 _as_can_reexec=no; export _as_can_reexec; 143 # We cannot yet assume a decent shell, so we have to provide a 144# neutralization value for shells without unset; and this also 145# works around shells that cannot unset nonexistent variables. 146# Preserve -v and -x to the replacement shell. 147BASH_ENV=/dev/null 148ENV=/dev/null 149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 150case $- in # (((( 151 *v*x* | *x*v* ) as_opts=-vx ;; 152 *v* ) as_opts=-v ;; 153 *x* ) as_opts=-x ;; 154 * ) as_opts= ;; 155esac 156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 157# Admittedly, this is quite paranoid, since all the known shells bail 158# out after a failed `exec'. 159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 160as_fn_exit 255 161 fi 162 # We don't want this to propagate to other subprocesses. 163 { _as_can_reexec=; unset _as_can_reexec;} 164if test "x$CONFIG_SHELL" = x; then 165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 166 emulate sh 167 NULLCMD=: 168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 169 # is contrary to our usage. Disable this feature. 170 alias -g '\${1+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 193 194else 195 exitcode=1; echo positional parameters were not saved. 196fi 197test x\$exitcode = x0 || exit 1 198test -x / || exit 1" 199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 203test \$(( 1 + 1 )) = 2 || exit 1" 204 if (eval "$as_required") 2>/dev/null; then : 205 as_have_required=yes 206else 207 as_have_required=no 208fi 209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 210 211else 212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213as_found=false 214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 215do 216 IFS=$as_save_IFS 217 test -z "$as_dir" && as_dir=. 218 as_found=: 219 case $as_dir in #( 220 /*) 221 for as_base in sh bash ksh sh5; do 222 # Try only shells that exist, to save several forks. 223 as_shell=$as_dir/$as_base 224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 228 break 2 229fi 230fi 231 done;; 232 esac 233 as_found=false 234done 235$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 237 CONFIG_SHELL=$SHELL as_have_required=yes 238fi; } 239IFS=$as_save_IFS 240 241 242 if test "x$CONFIG_SHELL" != x; then : 243 export CONFIG_SHELL 244 # We cannot yet assume a decent shell, so we have to provide a 245# neutralization value for shells without unset; and this also 246# works around shells that cannot unset nonexistent variables. 247# Preserve -v and -x to the replacement shell. 248BASH_ENV=/dev/null 249ENV=/dev/null 250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 251case $- in # (((( 252 *v*x* | *x*v* ) as_opts=-vx ;; 253 *v* ) as_opts=-v ;; 254 *x* ) as_opts=-x ;; 255 * ) as_opts= ;; 256esac 257exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 258# Admittedly, this is quite paranoid, since all the known shells bail 259# out after a failed `exec'. 260$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 261exit 255 262fi 263 264 if test x$as_have_required = xno; then : 265 $as_echo "$0: This script requires a shell more modern than all" 266 $as_echo "$0: the shells that I found on your system." 267 if test x${ZSH_VERSION+set} = xset ; then 268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 269 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 270 else 271 $as_echo "$0: Please tell bug-autoconf@gnu.org and 272$0: http://llvm.org/bugs/ about your system, including any 273$0: error possibly output before this message. Then install 274$0: a modern shell, or manually run the script under such a 275$0: shell if you do have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316 317# as_fn_mkdir_p 318# ------------- 319# Create "$as_dir" as a directory, including parents if necessary. 320as_fn_mkdir_p () 321{ 322 323 case $as_dir in #( 324 -*) as_dir=./$as_dir;; 325 esac 326 test -d "$as_dir" || eval $as_mkdir_p || { 327 as_dirs= 328 while :; do 329 case $as_dir in #( 330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 331 *) as_qdir=$as_dir;; 332 esac 333 as_dirs="'$as_qdir' $as_dirs" 334 as_dir=`$as_dirname -- "$as_dir" || 335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 336 X"$as_dir" : 'X\(//\)[^/]' \| \ 337 X"$as_dir" : 'X\(//\)$' \| \ 338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 339$as_echo X"$as_dir" | 340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 341 s//\1/ 342 q 343 } 344 /^X\(\/\/\)[^/].*/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\).*/{ 353 s//\1/ 354 q 355 } 356 s/.*/./; q'` 357 test -d "$as_dir" && break 358 done 359 test -z "$as_dirs" || eval "mkdir $as_dirs" 360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 361 362 363} # as_fn_mkdir_p 364 365# as_fn_executable_p FILE 366# ----------------------- 367# Test if FILE is an executable regular file. 368as_fn_executable_p () 369{ 370 test -f "$1" && test -x "$1" 371} # as_fn_executable_p 372# as_fn_append VAR VALUE 373# ---------------------- 374# Append the text in VALUE to the end of the definition contained in VAR. Take 375# advantage of any shell optimizations that allow amortized linear growth over 376# repeated appends, instead of the typical quadratic growth present in naive 377# implementations. 378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 379 eval 'as_fn_append () 380 { 381 eval $1+=\$2 382 }' 383else 384 as_fn_append () 385 { 386 eval $1=\$$1\$2 387 } 388fi # as_fn_append 389 390# as_fn_arith ARG... 391# ------------------ 392# Perform arithmetic evaluation on the ARGs, and store the result in the 393# global $as_val. Take advantage of shells that can avoid forks. The arguments 394# must be portable across $(()) and expr. 395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 396 eval 'as_fn_arith () 397 { 398 as_val=$(( $* )) 399 }' 400else 401 as_fn_arith () 402 { 403 as_val=`expr "$@" || test $? -eq 1` 404 } 405fi # as_fn_arith 406 407 408# as_fn_error STATUS ERROR [LINENO LOG_FD] 409# ---------------------------------------- 410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 412# script with STATUS, using 1 if that was 0. 413as_fn_error () 414{ 415 as_status=$1; test $as_status -eq 0 && as_status=1 416 if test "$4"; then 417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 419 fi 420 $as_echo "$as_me: error: $2" >&2 421 as_fn_exit $as_status 422} # as_fn_error 423 424if expr a : '\(a\)' >/dev/null 2>&1 && 425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 426 as_expr=expr 427else 428 as_expr=false 429fi 430 431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 432 as_basename=basename 433else 434 as_basename=false 435fi 436 437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 438 as_dirname=dirname 439else 440 as_dirname=false 441fi 442 443as_me=`$as_basename -- "$0" || 444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 445 X"$0" : 'X\(//\)$' \| \ 446 X"$0" : 'X\(/\)' \| . 2>/dev/null || 447$as_echo X/"$0" | 448 sed '/^.*\/\([^/][^/]*\)\/*$/{ 449 s//\1/ 450 q 451 } 452 /^X\/\(\/\/\)$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\).*/{ 457 s//\1/ 458 q 459 } 460 s/.*/./; q'` 461 462# Avoid depending upon Character Ranges. 463as_cr_letters='abcdefghijklmnopqrstuvwxyz' 464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 465as_cr_Letters=$as_cr_letters$as_cr_LETTERS 466as_cr_digits='0123456789' 467as_cr_alnum=$as_cr_Letters$as_cr_digits 468 469 470 as_lineno_1=$LINENO as_lineno_1a=$LINENO 471 as_lineno_2=$LINENO as_lineno_2a=$LINENO 472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 475 sed -n ' 476 p 477 /[$]LINENO/= 478 ' <$as_myself | 479 sed ' 480 s/[$]LINENO.*/&-/ 481 t lineno 482 b 483 :lineno 484 N 485 :loop 486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 487 t loop 488 s/-\n.*// 489 ' >$as_me.lineno && 490 chmod +x "$as_me.lineno" || 491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 492 493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 494 # already done that, so ensure we don't try to do so again and fall 495 # in an infinite loop. This has already happened in practice. 496 _as_can_reexec=no; export _as_can_reexec 497 # Don't try to exec as it changes $[0], causing all sort of problems 498 # (the dirname of $[0] is not the place where we might find the 499 # original and so on. Autoconf is especially sensitive to this). 500 . "./$as_me.lineno" 501 # Exit status is that of the last command. 502 exit 503} 504 505ECHO_C= ECHO_N= ECHO_T= 506case `echo -n x` in #((((( 507-n*) 508 case `echo 'xy\c'` in 509 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 510 xy) ECHO_C='\c';; 511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 512 ECHO_T=' ';; 513 esac;; 514*) 515 ECHO_N='-n';; 516esac 517 518rm -f conf$$ conf$$.exe conf$$.file 519if test -d conf$$.dir; then 520 rm -f conf$$.dir/conf$$.file 521else 522 rm -f conf$$.dir 523 mkdir conf$$.dir 2>/dev/null 524fi 525if (echo >conf$$.file) 2>/dev/null; then 526 if ln -s conf$$.file conf$$ 2>/dev/null; then 527 as_ln_s='ln -s' 528 # ... but there are two gotchas: 529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 531 # In both cases, we have to default to `cp -pR'. 532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 533 as_ln_s='cp -pR' 534 elif ln conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s=ln 536 else 537 as_ln_s='cp -pR' 538 fi 539else 540 as_ln_s='cp -pR' 541fi 542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 543rmdir conf$$.dir 2>/dev/null 544 545if mkdir -p . 2>/dev/null; then 546 as_mkdir_p='mkdir -p "$as_dir"' 547else 548 test -d ./-p && rmdir ./-p 549 as_mkdir_p=false 550fi 551 552as_test_x='test -x' 553as_executable_p=as_fn_executable_p 554 555# Sed expression to map a string onto a valid CPP name. 556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 557 558# Sed expression to map a string onto a valid variable name. 559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 560 561 562test -n "$DJDIR" || exec 7<&0 </dev/null 563exec 6>&1 564 565# Name of the host. 566# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 567# so uname gets run too. 568ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 569 570# 571# Initializations. 572# 573ac_default_prefix=/usr/local 574ac_clean_files= 575ac_config_libobj_dir=. 576LIBOBJS= 577cross_compiling=no 578subdirs= 579MFLAGS= 580MAKEFLAGS= 581 582# Identity of this package. 583PACKAGE_NAME='LLVM' 584PACKAGE_TARNAME='llvm' 585PACKAGE_VERSION='4.0.0svn' 586PACKAGE_STRING='LLVM 4.0.0svn' 587PACKAGE_BUGREPORT='http://llvm.org/bugs/' 588PACKAGE_URL='' 589 590enable_option_checking=no 591# Factoring default headers for most tests. 592ac_includes_default="\ 593#include <stdio.h> 594#ifdef HAVE_SYS_TYPES_H 595# include <sys/types.h> 596#endif 597#ifdef HAVE_SYS_STAT_H 598# include <sys/stat.h> 599#endif 600#ifdef STDC_HEADERS 601# include <stdlib.h> 602# include <stddef.h> 603#else 604# ifdef HAVE_STDLIB_H 605# include <stdlib.h> 606# endif 607#endif 608#ifdef HAVE_STRING_H 609# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 610# include <memory.h> 611# endif 612# include <string.h> 613#endif 614#ifdef HAVE_STRINGS_H 615# include <strings.h> 616#endif 617#ifdef HAVE_INTTYPES_H 618# include <inttypes.h> 619#endif 620#ifdef HAVE_STDINT_H 621# include <stdint.h> 622#endif 623#ifdef HAVE_UNISTD_H 624# include <unistd.h> 625#endif" 626 627ac_subst_vars='LTLIBOBJS 628LIBOBJS 629RDYNAMIC 630RPATH 631ENABLE_VISIBILITY_INLINES_HIDDEN 632OCAML_LIBDIR 633HAVE_OCAML_OUNIT 634HAVE_OCAMLOPT 635BINDINGS_TO_BUILD 636SHLIBEXT 637HUGE_VAL_SANITY 638HAVE_LIBZ 639HAVE_PTHREAD 640USE_INTEL_JITEVENTS 641USE_OPROFILE 642HAVE_TERMINFO 643HAVE_DLOPEN 644NO_COMMENT 645NO_UNINITIALIZED 646NO_MAYBE_UNINITIALIZED 647COVERED_SWITCH_DEFAULT 648MISSING_FIELD_INITIALIZERS 649NO_VARIADIC_MACROS 650EGREP 651HAVE_LINK_VERSION_SCRIPT 652GAS 653OCAMLFIND 654GO 655ZIP 656PDFROFF 657GZIPBIN 658GROFF 659DOXYGEN 660CAT 661BZIP2 662INSTALL_DATA 663INSTALL_SCRIPT 664INSTALL_PROGRAM 665DOT 666BINPWD 667TAR 668SED 669RM 670AR 671RANLIB 672MV 673MKDIR 674GREP 675FIND 676DATE 677CP 678CMP 679NM 680LN_S 681ifGNUmake 682INTERNAL_PREFIX 683ENABLE_TERMINFO 684BINUTILS_INCDIR 685CLANG_SRC_ROOT 686EXTRA_LD_OPTIONS 687EXTRA_OPTIONS 688OPTIMIZE_OPTION 689LLVM_ENUM_DISASSEMBLERS 690LLVM_ENUM_ASM_PARSERS 691LLVM_ENUM_ASM_PRINTERS 692LLVM_ENUM_TARGETS 693TARGETS_TO_BUILD 694ALL_TARGETS 695ENABLE_EMBED_STDCXX 696ENABLE_SHARED 697LLVM_ENABLE_ZLIB 698ENABLE_PTHREADS 699LLVM_ENABLE_THREADS 700clang_doxygen_qhp_cust_filter_attrs 701clang_doxygen_qhp_cust_filter_name 702clang_doxygen_qhelpgenerator_path 703clang_doxygen_qhp_namespace 704clang_doxygen_qch_filename 705clang_doxygen_generate_qhp 706llvm_doxygen_qhp_cust_filter_attrs 707llvm_doxygen_qhp_cust_filter_name 708llvm_doxygen_qhelpgenerator_path 709llvm_doxygen_qhp_namespace 710llvm_doxygen_qch_filename 711llvm_doxygen_generate_qhp 712QHELPGENERATOR 713extra_search_mappings 714searchengine_url 715enable_server_based_search 716enable_external_search 717enable_searchengine 718ENABLE_DOXYGEN 719ENABLE_DOCS 720TARGETS_WITH_JIT 721TARGET_HAS_JIT 722JIT 723KEEP_SYMBOLS 724DEBUG_SYMBOLS 725DEBUG_RUNTIME 726ENABLE_ABI_BREAKING_CHECKS 727EXPENSIVE_CHECKS 728ENABLE_EXPENSIVE_CHECKS 729ENABLE_WERROR 730DISABLE_ASSERTIONS 731ENABLE_PROFILING 732ENABLE_OPTIMIZED 733ENABLE_CLANG_STATIC_ANALYZER 734CLANG_PLUGIN_SUPPORT 735ENABLE_CLANG_ARCMT 736ENABLE_SPLIT_DWARF 737ENABLE_CXX1Y 738ENABLE_LIBCPP 739CVSBUILD 740BUILD_CXX 741BUILD_EXEEXT 742BUILD_CC 743LLVM_CROSS_COMPILING 744HOST_ARCH 745LLVM_NATIVE_ARCH 746ARCH 747LLVM_ON_WIN32 748LLVM_ON_UNIX 749NOLINKALL 750LINKALL 751TARGET_OS 752HOST_OS 753OS 754target_os 755target_vendor 756target_cpu 757target 758host_os 759host_vendor 760host_cpu 761host 762build_os 763build_vendor 764build_cpu 765build 766subdirs 767LLVM_HAS_POLLY 768ENABLE_POLLY 769CXX_COMPILER 770CPP 771ac_ct_CXX 772CXXFLAGS 773CXX 774OBJEXT 775EXEEXT 776ac_ct_CC 777CPPFLAGS 778LDFLAGS 779CFLAGS 780CC 781LLVM_COPYRIGHT 782LLVM_VERSION_SUFFIX 783LLVM_VERSION_PATCH 784LLVM_VERSION_MINOR 785LLVM_VERSION_MAJOR 786target_alias 787host_alias 788build_alias 789LIBS 790ECHO_T 791ECHO_N 792ECHO_C 793DEFS 794mandir 795localedir 796libdir 797psdir 798pdfdir 799dvidir 800htmldir 801infodir 802docdir 803oldincludedir 804includedir 805localstatedir 806sharedstatedir 807sysconfdir 808datadir 809datarootdir 810libexecdir 811sbindir 812bindir 813program_transform_name 814prefix 815exec_prefix 816PACKAGE_URL 817PACKAGE_BUGREPORT 818PACKAGE_STRING 819PACKAGE_VERSION 820PACKAGE_TARNAME 821PACKAGE_NAME 822PATH_SEPARATOR 823SHELL' 824ac_subst_files='' 825ac_user_opts=' 826enable_option_checking 827with_llvm_srcdir 828enable_polly 829enable_libcpp 830enable_compiler_version_checks 831enable_cxx1y 832enable_split_dwarf 833enable_clang_arcmt 834enable_clang_plugin_support 835enable_clang_static_analyzer 836enable_optimized 837enable_profiling 838enable_assertions 839enable_werror 840enable_expensive_checks 841enable_abi_breaking_checks 842enable_debug_runtime 843enable_debug_symbols 844enable_keep_symbols 845enable_jit 846enable_docs 847enable_doxygen 848enable_doxygen_search 849enable_doxygen_external_search 850with_doxygen_search_engine_url 851with_doxygen_search_mappings 852enable_doxygen_qt_help 853enable_threads 854enable_pthreads 855enable_zlib 856enable_shared 857enable_embed_stdcxx 858enable_backtraces 859enable_crash_overrides 860enable_targets 861enable_experimental_targets 862with_optimize_option 863with_extra_options 864with_extra_ld_options 865enable_bindings 866with_ocaml_libdir 867with_clang_srcdir 868with_clang_resource_dir 869with_c_include_dirs 870with_clang_default_openmp_runtime 871with_binutils_include 872with_bug_report_url 873enable_terminfo 874enable_libedit 875enable_libffi 876with_internal_prefix 877with_oprofile 878with_intel_jitevents 879' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CXX 889CXXFLAGS 890CCC 891CPP' 892ac_subdirs_all='tools/polly' 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897ac_unrecognized_opts= 898ac_unrecognized_sep= 899# The variables have the same names as the options, with 900# dashes changed to underlines. 901cache_file=/dev/null 902exec_prefix=NONE 903no_create= 904no_recursion= 905prefix=NONE 906program_prefix=NONE 907program_suffix=NONE 908program_transform_name=s,x,x, 909silent= 910site= 911srcdir= 912verbose= 913x_includes=NONE 914x_libraries=NONE 915 916# Installation directory options. 917# These are left unexpanded so users can "make install exec_prefix=/foo" 918# and all the variables that are supposed to be based on exec_prefix 919# by default will actually change. 920# Use braces instead of parens because sh, perl, etc. also accept them. 921# (The list follows the same order as the GNU Coding Standards.) 922bindir='${exec_prefix}/bin' 923sbindir='${exec_prefix}/sbin' 924libexecdir='${exec_prefix}/libexec' 925datarootdir='${prefix}/share' 926datadir='${datarootdir}' 927sysconfdir='${prefix}/etc' 928sharedstatedir='${prefix}/com' 929localstatedir='${prefix}/var' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1001 as_fn_error $? "invalid feature name: $ac_useropt" 1002 ac_useropt_orig=$ac_useropt 1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1004 case $ac_user_opts in 1005 *" 1006"enable_$ac_useropt" 1007"*) ;; 1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1009 ac_unrecognized_sep=', ';; 1010 esac 1011 eval enable_$ac_useropt=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error $? "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=\$ac_optarg ;; 1242 1243 -without-* | --without-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=no ;; 1258 1259 --x) 1260 # Obsolete; use --with-x. 1261 with_x=yes ;; 1262 1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1264 | --x-incl | --x-inc | --x-in | --x-i) 1265 ac_prev=x_includes ;; 1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1268 x_includes=$ac_optarg ;; 1269 1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1272 ac_prev=x_libraries ;; 1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1275 x_libraries=$ac_optarg ;; 1276 1277 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1278Try \`$0 --help' for more information" 1279 ;; 1280 1281 *=*) 1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1283 # Reject names that are not valid shell variable names. 1284 case $ac_envvar in #( 1285 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1287 esac 1288 eval $ac_envvar=\$ac_optarg 1289 export $ac_envvar ;; 1290 1291 *) 1292 # FIXME: should be removed in autoconf 3.0. 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1297 ;; 1298 1299 esac 1300done 1301 1302if test -n "$ac_prev"; then 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1304 as_fn_error $? "missing argument to $ac_option" 1305fi 1306 1307if test -n "$ac_unrecognized_opts"; then 1308 case $enable_option_checking in 1309 no) ;; 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1312 esac 1313fi 1314 1315# Check all directory arguments for consistency. 1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1317 datadir sysconfdir sharedstatedir localstatedir includedir \ 1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1319 libdir localedir mandir 1320do 1321 eval ac_val=\$$ac_var 1322 # Remove trailing slashes. 1323 case $ac_val in 1324 */ ) 1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1326 eval $ac_var=\$ac_val;; 1327 esac 1328 # Be sure to have absolute directory names. 1329 case $ac_val in 1330 [\\/$]* | ?:[\\/]* ) continue;; 1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1332 esac 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1334done 1335 1336# There might be people who depend on the old broken behavior: `$host' 1337# used to hold the argument of --host etc. 1338# FIXME: To remove some day. 1339build=$build_alias 1340host=$host_alias 1341target=$target_alias 1342 1343# FIXME: To remove some day. 1344if test "x$host_alias" != x; then 1345 if test "x$build_alias" = x; then 1346 cross_compiling=maybe 1347 elif test "x$build_alias" != "x$host_alias"; then 1348 cross_compiling=yes 1349 fi 1350fi 1351 1352ac_tool_prefix= 1353test -n "$host_alias" && ac_tool_prefix=$host_alias- 1354 1355test "$silent" = yes && exec 6>/dev/null 1356 1357 1358ac_pwd=`pwd` && test -n "$ac_pwd" && 1359ac_ls_di=`ls -di .` && 1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1361 as_fn_error $? "working directory cannot be determined" 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1363 as_fn_error $? "pwd does not report name of working directory" 1364 1365 1366# Find the source files, if location was not specified. 1367if test -z "$srcdir"; then 1368 ac_srcdir_defaulted=yes 1369 # Try the directory containing this script, then the parent directory. 1370 ac_confdir=`$as_dirname -- "$as_myself" || 1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1372 X"$as_myself" : 'X\(//\)[^/]' \| \ 1373 X"$as_myself" : 'X\(//\)$' \| \ 1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1375$as_echo X"$as_myself" | 1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)[^/].*/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\/\)$/{ 1385 s//\1/ 1386 q 1387 } 1388 /^X\(\/\).*/{ 1389 s//\1/ 1390 q 1391 } 1392 s/.*/./; q'` 1393 srcdir=$ac_confdir 1394 if test ! -r "$srcdir/$ac_unique_file"; then 1395 srcdir=.. 1396 fi 1397else 1398 ac_srcdir_defaulted=no 1399fi 1400if test ! -r "$srcdir/$ac_unique_file"; then 1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1403fi 1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1405ac_abs_confdir=`( 1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1407 pwd)` 1408# When building in place, set srcdir=. 1409if test "$ac_abs_confdir" = "$ac_pwd"; then 1410 srcdir=. 1411fi 1412# Remove unnecessary trailing slashes from srcdir. 1413# Double slashes in file names in object file debugging info 1414# mess up M-x gdb in Emacs. 1415case $srcdir in 1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1417esac 1418for ac_var in $ac_precious_vars; do 1419 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1420 eval ac_env_${ac_var}_value=\$${ac_var} 1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1423done 1424 1425# 1426# Report the --help message. 1427# 1428if test "$ac_init_help" = "long"; then 1429 # Omit some internal or obsolete options to make the list less imposing. 1430 # This message is too long to be a string in the A/UX 3.1 sh. 1431 cat <<_ACEOF 1432\`configure' configures LLVM 4.0.0svn to adapt to many kinds of systems. 1433 1434Usage: $0 [OPTION]... [VAR=VALUE]... 1435 1436To assign environment variables (e.g., CC, CFLAGS...), specify them as 1437VAR=VALUE. See below for descriptions of some of the useful variables. 1438 1439Defaults for the options are specified in brackets. 1440 1441Configuration: 1442 -h, --help display this help and exit 1443 --help=short display options specific to this package 1444 --help=recursive display the short help of all the included packages 1445 -V, --version display version information and exit 1446 -q, --quiet, --silent do not print \`checking ...' messages 1447 --cache-file=FILE cache test results in FILE [disabled] 1448 -C, --config-cache alias for \`--cache-file=config.cache' 1449 -n, --no-create do not create output files 1450 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1451 1452Installation directories: 1453 --prefix=PREFIX install architecture-independent files in PREFIX 1454 [$ac_default_prefix] 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1456 [PREFIX] 1457 1458By default, \`make install' will install all the files in 1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1460an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1461for instance \`--prefix=\$HOME'. 1462 1463For better control, use the options below. 1464 1465Fine tuning of the installation directories: 1466 --bindir=DIR user executables [EPREFIX/bin] 1467 --sbindir=DIR system admin executables [EPREFIX/sbin] 1468 --libexecdir=DIR program executables [EPREFIX/libexec] 1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1472 --libdir=DIR object code libraries [EPREFIX/lib] 1473 --includedir=DIR C header files [PREFIX/include] 1474 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1477 --infodir=DIR info documentation [DATAROOTDIR/info] 1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1479 --mandir=DIR man documentation [DATAROOTDIR/man] 1480 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1481 --htmldir=DIR html documentation [DOCDIR] 1482 --dvidir=DIR dvi documentation [DOCDIR] 1483 --pdfdir=DIR pdf documentation [DOCDIR] 1484 --psdir=DIR ps documentation [DOCDIR] 1485_ACEOF 1486 1487 cat <<\_ACEOF 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492 --target=TARGET configure for building compilers for TARGET [HOST] 1493_ACEOF 1494fi 1495 1496if test -n "$ac_init_help"; then 1497 case $ac_init_help in 1498 short | recursive ) echo "Configuration of LLVM 4.0.0svn:";; 1499 esac 1500 cat <<\_ACEOF 1501 1502Optional Features: 1503 --disable-option-checking ignore unrecognized --enable/--with options 1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1506 --enable-polly Use polly if available (default is YES) 1507 --enable-libcpp Use libc++ if available (default is NO) 1508 --enable-compiler-version-checks 1509 Check the version of the host compiler (default is 1510 YES) 1511 --enable-cxx1y Use c++1y if available (default is NO) 1512 --enable-split-dwarf Use split-dwarf if available (default is NO) 1513 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1514 --enable-clang-plugin-support 1515 Enable plugin support in clang (default is YES) 1516 --enable-clang-static-analyzer 1517 Enable building of clang Static Analyzer (default is 1518 YES) 1519 --enable-optimized Compile with optimizations enabled (default is NO) 1520 --enable-profiling Compile with profiling enabled (default is NO) 1521 --enable-assertions Compile with assertion checks enabled (default is 1522 YES) 1523 --enable-werror Compile with -Werror enabled (default is NO) 1524 --enable-expensive-checks 1525 Compile with expensive debug checks enabled (default 1526 is NO) 1527 --enable-abi-breaking-checks 1528 Compile with abi-breaking asserts support (default 1529 is with-asserts) 1530 --enable-debug-runtime Build runtime libs with debug symbols (default is 1531 NO) 1532 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1533 optimization is on and YES if it's off) 1534 --enable-keep-symbols Do not strip installed executables) 1535 --enable-jit Enable Just In Time Compiling (default is YES) 1536 --enable-docs Build documents (default is YES) 1537 --enable-doxygen Build doxygen documentation (default is NO) 1538 --enable-doxygen-search Enable doxygen search support (default is NO) 1539 --enable-doxygen-external-search 1540 Enable doxygen exteranl search (default is NO) 1541 --enable-doxygen-qt-help 1542 Build Qt help files (default is NO) 1543 --enable-threads Use threads if available (default is YES) 1544 --enable-pthreads Use pthreads if available (default is YES) 1545 --enable-zlib Use zlib for compression/decompression if available 1546 (default is YES) 1547 --enable-shared Build a shared library and link tools against it 1548 (default is NO) 1549 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1550 Win32 DLL (default is NO) 1551 --enable-backtraces Enable embedding backtraces on crash (default is 1552 YES) 1553 --enable-crash-overrides 1554 Enable crash handling overrides (default is YES) 1555 --enable-targets Build specific host targets: all or 1556 target1,target2,... Valid targets are: host, x86, 1557 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1558 hexagon, xcore, msp430, nvptx, systemz, r600, bpf, 1559 wasm, and cpp (default=all) 1560 --enable-experimental-targets 1561 Build experimental host targets: disable or 1562 target1,target2,... (default=disable) 1563 --enable-bindings Build specific language bindings: 1564 all,auto,none,{binding-name} (default=auto) 1565 --enable-terminfo Query the terminfo database if available (default is 1566 YES) 1567 --enable-libedit Use libedit if available (default is YES) 1568 --enable-libffi Check for the presence of libffi (default is NO) 1569 1570Optional Packages: 1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1573 --with-llvm-srcdir Directory to the out-of-tree LLVM source 1574 --with-doxygen-search-engine-url 1575 Specify the external search engine for doxygen 1576 --with-doxygen-search-mappings 1577 Specify the extra search mapping for doxygen 1578 --with-optimize-option Select the compiler options to use for optimized 1579 builds 1580 --with-extra-options Specify additional options to compile LLVM with 1581 --with-extra-ld-options Specify additional options to link LLVM with 1582 --with-ocaml-libdir Specify install location for ocaml bindings (default 1583 is stdlib) 1584 --with-clang-srcdir Directory to the out-of-tree Clang source 1585 --with-clang-resource-dir 1586 Relative directory from the Clang binary for 1587 resource files 1588 --with-c-include-dirs Colon separated list of directories clang will 1589 search for headers 1590 --with-clang-default-openmp-runtime 1591 The default OpenMP runtime for Clang. 1592 --with-binutils-include Specify path to binutils/include/ containing 1593 plugin-api.h file for gold plugin. 1594 --with-bug-report-url Specify the URL where bug reports should be 1595 submitted (default=http://llvm.org/bugs/) 1596 --with-internal-prefix Installation directory for internal files 1597 --with-oprofile=<prefix> 1598 Tell OProfile >= 0.9.4 how to symbolize JIT output 1599 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1600 1601 1602Some influential environment variables: 1603 CC C compiler command 1604 CFLAGS C compiler flags 1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1606 nonstandard directory <lib dir> 1607 LIBS libraries to pass to the linker, e.g. -l<library> 1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1609 you have headers in a nonstandard directory <include dir> 1610 CXX C++ compiler command 1611 CXXFLAGS C++ compiler flags 1612 CPP C preprocessor 1613 1614Use these variables to override the choices made by `configure' or to help 1615it to find libraries and programs with nonstandard names/locations. 1616 1617Report bugs to <http://llvm.org/bugs/>. 1618_ACEOF 1619ac_status=$? 1620fi 1621 1622if test "$ac_init_help" = "recursive"; then 1623 # If there are subdirs, report their specific --help. 1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1625 test -d "$ac_dir" || 1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1627 continue 1628 ac_builddir=. 1629 1630case "$ac_dir" in 1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1632*) 1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1634 # A ".." for each directory in $ac_dir_suffix. 1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1636 case $ac_top_builddir_sub in 1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1639 esac ;; 1640esac 1641ac_abs_top_builddir=$ac_pwd 1642ac_abs_builddir=$ac_pwd$ac_dir_suffix 1643# for backward compatibility: 1644ac_top_builddir=$ac_top_build_prefix 1645 1646case $srcdir in 1647 .) # We are building in place. 1648 ac_srcdir=. 1649 ac_top_srcdir=$ac_top_builddir_sub 1650 ac_abs_top_srcdir=$ac_pwd ;; 1651 [\\/]* | ?:[\\/]* ) # Absolute name. 1652 ac_srcdir=$srcdir$ac_dir_suffix; 1653 ac_top_srcdir=$srcdir 1654 ac_abs_top_srcdir=$srcdir ;; 1655 *) # Relative name. 1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1657 ac_top_srcdir=$ac_top_build_prefix$srcdir 1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1659esac 1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1661 1662 cd "$ac_dir" || { ac_status=$?; continue; } 1663 # Check for guested configure. 1664 if test -f "$ac_srcdir/configure.gnu"; then 1665 echo && 1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1667 elif test -f "$ac_srcdir/configure"; then 1668 echo && 1669 $SHELL "$ac_srcdir/configure" --help=recursive 1670 else 1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1672 fi || ac_status=$? 1673 cd "$ac_pwd" || { ac_status=$?; break; } 1674 done 1675fi 1676 1677test -n "$ac_init_help" && exit $ac_status 1678if $ac_init_version; then 1679 cat <<\_ACEOF 1680LLVM configure 4.0.0svn 1681generated by GNU Autoconf 2.69 1682 1683Copyright (C) 2012 Free Software Foundation, Inc. 1684This configure script is free software; the Free Software Foundation 1685gives unlimited permission to copy, distribute and modify it. 1686 1687Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 1688_ACEOF 1689 exit 1690fi 1691 1692## ------------------------ ## 1693## Autoconf initialization. ## 1694## ------------------------ ## 1695 1696# ac_fn_c_try_compile LINENO 1697# -------------------------- 1698# Try to compile conftest.$ac_ext, and return whether this succeeded. 1699ac_fn_c_try_compile () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 rm -f conftest.$ac_objext 1703 if { { ac_try="$ac_compile" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_compile") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { 1719 test -z "$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 } && test -s conftest.$ac_objext; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_compile 1733 1734# ac_fn_cxx_try_compile LINENO 1735# ---------------------------- 1736# Try to compile conftest.$ac_ext, and return whether this succeeded. 1737ac_fn_cxx_try_compile () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext 1741 if { { ac_try="$ac_compile" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_compile") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_cxx_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest.$ac_objext; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=1 1766fi 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_cxx_try_compile 1771 1772# ac_fn_c_try_cpp LINENO 1773# ---------------------- 1774# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_cpp () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if { { ac_try="$ac_cpp conftest.$ac_ext" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } > conftest.i && { 1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=1 1803fi 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_cpp 1808 1809# ac_fn_cxx_try_link LINENO 1810# ------------------------- 1811# Try to link conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_cxx_try_link () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext conftest$ac_exeext 1816 if { { ac_try="$ac_link" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_link") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_cxx_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest$ac_exeext && { 1835 test "$cross_compiling" = yes || 1836 test -x conftest$ac_exeext 1837 }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1847 # interfere with the next link command; also delete a directory that is 1848 # left behind by Apple's compiler. We do this before executing the actions. 1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853} # ac_fn_cxx_try_link 1854 1855# ac_fn_c_try_link LINENO 1856# ----------------------- 1857# Try to link conftest.$ac_ext, and return whether this succeeded. 1858ac_fn_c_try_link () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 rm -f conftest.$ac_objext conftest$ac_exeext 1862 if { { ac_try="$ac_link" 1863case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_link") 2>conftest.err 1870 ac_status=$? 1871 if test -s conftest.err; then 1872 grep -v '^ *+' conftest.err >conftest.er1 1873 cat conftest.er1 >&5 1874 mv -f conftest.er1 conftest.err 1875 fi 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } && { 1878 test -z "$ac_c_werror_flag" || 1879 test ! -s conftest.err 1880 } && test -s conftest$ac_exeext && { 1881 test "$cross_compiling" = yes || 1882 test -x conftest$ac_exeext 1883 }; then : 1884 ac_retval=0 1885else 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=1 1890fi 1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1893 # interfere with the next link command; also delete a directory that is 1894 # left behind by Apple's compiler. We do this before executing the actions. 1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} # ac_fn_c_try_link 1900 1901# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1902# ------------------------------------------------------- 1903# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1904# the include files in INCLUDES and setting the cache variable VAR 1905# accordingly. 1906ac_fn_c_check_header_mongrel () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 if eval \${$3+:} false; then : 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918else 1919 # Is the header compilable? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1921$as_echo_n "checking $2 usability... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925#include <$2> 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 ac_header_compiler=yes 1929else 1930 ac_header_compiler=no 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1934$as_echo "$ac_header_compiler" >&6; } 1935 1936# Is the header present? 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1938$as_echo_n "checking $2 presence... " >&6; } 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941#include <$2> 1942_ACEOF 1943if ac_fn_c_try_cpp "$LINENO"; then : 1944 ac_header_preproc=yes 1945else 1946 ac_header_preproc=no 1947fi 1948rm -f conftest.err conftest.i conftest.$ac_ext 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1950$as_echo "$ac_header_preproc" >&6; } 1951 1952# So? What about this header? 1953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1954 yes:no: ) 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1956$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960 no:yes:* ) 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1962$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1964$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1966$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1968$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971( $as_echo "## ------------------------------------ ## 1972## Report this to http://llvm.org/bugs/ ## 1973## ------------------------------------ ##" 1974 ) | sed "s/^/$as_me: WARNING: /" >&2 1975 ;; 1976esac 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 eval "$3=\$ac_header_compiler" 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987fi 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_header_mongrel 1991 1992# ac_fn_c_try_run LINENO 1993# ---------------------- 1994# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1995# that executables *can* be run. 1996ac_fn_c_try_run () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 if { { ac_try="$ac_link" 2000case "(($ac_try" in 2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2002 *) ac_try_echo=$ac_try;; 2003esac 2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2005$as_echo "$ac_try_echo"; } >&5 2006 (eval "$ac_link") 2>&5 2007 ac_status=$? 2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2010 { { case "(($ac_try" in 2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2012 *) ac_try_echo=$ac_try;; 2013esac 2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2015$as_echo "$ac_try_echo"; } >&5 2016 (eval "$ac_try") 2>&5 2017 ac_status=$? 2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2019 test $ac_status = 0; }; }; then : 2020 ac_retval=0 2021else 2022 $as_echo "$as_me: program exited with status $ac_status" >&5 2023 $as_echo "$as_me: failed program was:" >&5 2024sed 's/^/| /' conftest.$ac_ext >&5 2025 2026 ac_retval=$ac_status 2027fi 2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 as_fn_set_status $ac_retval 2031 2032} # ac_fn_c_try_run 2033 2034# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2035# ------------------------------------------------------- 2036# Tests whether HEADER exists and can be compiled using the include files in 2037# INCLUDES, setting the cache variable VAR accordingly. 2038ac_fn_c_check_header_compile () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042$as_echo_n "checking for $2... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 eval "$3=yes" 2053else 2054 eval "$3=no" 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057fi 2058eval ac_res=\$$3 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2060$as_echo "$ac_res" >&6; } 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 2063} # ac_fn_c_check_header_compile 2064 2065# ac_fn_c_check_func LINENO FUNC VAR 2066# ---------------------------------- 2067# Tests whether FUNC exists, setting the cache variable VAR accordingly 2068ac_fn_c_check_func () 2069{ 2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2072$as_echo_n "checking for $2... " >&6; } 2073if eval \${$3+:} false; then : 2074 $as_echo_n "(cached) " >&6 2075else 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2080#define $2 innocuous_$2 2081 2082/* System header to define __stub macros and hopefully few prototypes, 2083 which can conflict with char $2 (); below. 2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2085 <limits.h> exists even on freestanding compilers. */ 2086 2087#ifdef __STDC__ 2088# include <limits.h> 2089#else 2090# include <assert.h> 2091#endif 2092 2093#undef $2 2094 2095/* Override any GCC internal prototype to avoid an error. 2096 Use char because int might match the return type of a GCC 2097 builtin and then its argument prototype would still apply. */ 2098#ifdef __cplusplus 2099extern "C" 2100#endif 2101char $2 (); 2102/* The GNU C library defines this for functions which it implements 2103 to always fail with ENOSYS. Some functions are actually named 2104 something starting with __ and the normal name is an alias. */ 2105#if defined __stub_$2 || defined __stub___$2 2106choke me 2107#endif 2108 2109int 2110main () 2111{ 2112return $2 (); 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_link "$LINENO"; then : 2118 eval "$3=yes" 2119else 2120 eval "$3=no" 2121fi 2122rm -f core conftest.err conftest.$ac_objext \ 2123 conftest$ac_exeext conftest.$ac_ext 2124fi 2125eval ac_res=\$$3 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2127$as_echo "$ac_res" >&6; } 2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2129 2130} # ac_fn_c_check_func 2131 2132# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2133# --------------------------------------------- 2134# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2135# accordingly. 2136ac_fn_c_check_decl () 2137{ 2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2139 as_decl_name=`echo $2|sed 's/ *(.*//'` 2140 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2142$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2143if eval \${$3+:} false; then : 2144 $as_echo_n "(cached) " >&6 2145else 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149int 2150main () 2151{ 2152#ifndef $as_decl_name 2153#ifdef __cplusplus 2154 (void) $as_decl_use; 2155#else 2156 (void) $as_decl_name; 2157#endif 2158#endif 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 eval "$3=yes" 2166else 2167 eval "$3=no" 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170fi 2171eval ac_res=\$$3 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2173$as_echo "$ac_res" >&6; } 2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2175 2176} # ac_fn_c_check_decl 2177 2178# ac_fn_cxx_try_run LINENO 2179# ------------------------ 2180# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2181# that executables *can* be run. 2182ac_fn_cxx_try_run () 2183{ 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2185 if { { ac_try="$ac_link" 2186case "(($ac_try" in 2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2188 *) ac_try_echo=$ac_try;; 2189esac 2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2191$as_echo "$ac_try_echo"; } >&5 2192 (eval "$ac_link") 2>&5 2193 ac_status=$? 2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2196 { { case "(($ac_try" in 2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2198 *) ac_try_echo=$ac_try;; 2199esac 2200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2201$as_echo "$ac_try_echo"; } >&5 2202 (eval "$ac_try") 2>&5 2203 ac_status=$? 2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2205 test $ac_status = 0; }; }; then : 2206 ac_retval=0 2207else 2208 $as_echo "$as_me: program exited with status $ac_status" >&5 2209 $as_echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212 ac_retval=$ac_status 2213fi 2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 as_fn_set_status $ac_retval 2217 2218} # ac_fn_cxx_try_run 2219 2220# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2221# ------------------------------------------- 2222# Tests whether TYPE exists after having included INCLUDES, setting cache 2223# variable VAR accordingly. 2224ac_fn_c_check_type () 2225{ 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2228$as_echo_n "checking for $2... " >&6; } 2229if eval \${$3+:} false; then : 2230 $as_echo_n "(cached) " >&6 2231else 2232 eval "$3=no" 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239if (sizeof ($2)) 2240 return 0; 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252if (sizeof (($2))) 2253 return 0; 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_c_try_compile "$LINENO"; then : 2259 2260else 2261 eval "$3=yes" 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267eval ac_res=\$$3 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2269$as_echo "$ac_res" >&6; } 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 2272} # ac_fn_c_check_type 2273 2274# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2275# ---------------------------------------------------- 2276# Tries to find if the field MEMBER exists in type AGGR, after including 2277# INCLUDES, setting cache variable VAR accordingly. 2278ac_fn_c_check_member () 2279{ 2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2282$as_echo_n "checking for $2.$3... " >&6; } 2283if eval \${$4+:} false; then : 2284 $as_echo_n "(cached) " >&6 2285else 2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287/* end confdefs.h. */ 2288$5 2289int 2290main () 2291{ 2292static $2 ac_aggr; 2293if (ac_aggr.$3) 2294return 0; 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299if ac_fn_c_try_compile "$LINENO"; then : 2300 eval "$4=yes" 2301else 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$5 2305int 2306main () 2307{ 2308static $2 ac_aggr; 2309if (sizeof ac_aggr.$3) 2310return 0; 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 eval "$4=yes" 2317else 2318 eval "$4=no" 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321fi 2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2323fi 2324eval ac_res=\$$4 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2326$as_echo "$ac_res" >&6; } 2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2328 2329} # ac_fn_c_check_member 2330cat >config.log <<_ACEOF 2331This file contains any messages produced by compilers while 2332running configure, to aid debugging if configure makes a mistake. 2333 2334It was created by LLVM $as_me 4.0.0svn, which was 2335generated by GNU Autoconf 2.69. Invocation command line was 2336 2337 $ $0 $@ 2338 2339_ACEOF 2340exec 5>>config.log 2341{ 2342cat <<_ASUNAME 2343## --------- ## 2344## Platform. ## 2345## --------- ## 2346 2347hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2348uname -m = `(uname -m) 2>/dev/null || echo unknown` 2349uname -r = `(uname -r) 2>/dev/null || echo unknown` 2350uname -s = `(uname -s) 2>/dev/null || echo unknown` 2351uname -v = `(uname -v) 2>/dev/null || echo unknown` 2352 2353/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2354/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2355 2356/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2357/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2358/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2359/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2360/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2361/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2362/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2363 2364_ASUNAME 2365 2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2367for as_dir in $PATH 2368do 2369 IFS=$as_save_IFS 2370 test -z "$as_dir" && as_dir=. 2371 $as_echo "PATH: $as_dir" 2372 done 2373IFS=$as_save_IFS 2374 2375} >&5 2376 2377cat >&5 <<_ACEOF 2378 2379 2380## ----------- ## 2381## Core tests. ## 2382## ----------- ## 2383 2384_ACEOF 2385 2386 2387# Keep a trace of the command line. 2388# Strip out --no-create and --no-recursion so they do not pile up. 2389# Strip out --silent because we don't want to record it for future runs. 2390# Also quote any args containing shell meta-characters. 2391# Make two passes to allow for proper duplicate-argument suppression. 2392ac_configure_args= 2393ac_configure_args0= 2394ac_configure_args1= 2395ac_must_keep_next=false 2396for ac_pass in 1 2 2397do 2398 for ac_arg 2399 do 2400 case $ac_arg in 2401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2403 | -silent | --silent | --silen | --sile | --sil) 2404 continue ;; 2405 *\'*) 2406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2407 esac 2408 case $ac_pass in 2409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2410 2) 2411 as_fn_append ac_configure_args1 " '$ac_arg'" 2412 if test $ac_must_keep_next = true; then 2413 ac_must_keep_next=false # Got value, back to normal. 2414 else 2415 case $ac_arg in 2416 *=* | --config-cache | -C | -disable-* | --disable-* \ 2417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2419 | -with-* | --with-* | -without-* | --without-* | --x) 2420 case "$ac_configure_args0 " in 2421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2422 esac 2423 ;; 2424 -* ) ac_must_keep_next=true ;; 2425 esac 2426 fi 2427 as_fn_append ac_configure_args " '$ac_arg'" 2428 ;; 2429 esac 2430 done 2431done 2432{ ac_configure_args0=; unset ac_configure_args0;} 2433{ ac_configure_args1=; unset ac_configure_args1;} 2434 2435# When interrupted or exit'd, cleanup temporary files, and complete 2436# config.log. We remove comments because anyway the quotes in there 2437# would cause problems or look ugly. 2438# WARNING: Use '\'' to represent an apostrophe within the trap. 2439# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2440trap 'exit_status=$? 2441 # Save into config.log some information that might help in debugging. 2442 { 2443 echo 2444 2445 $as_echo "## ---------------- ## 2446## Cache variables. ## 2447## ---------------- ##" 2448 echo 2449 # The following way of writing the cache mishandles newlines in values, 2450( 2451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2452 eval ac_val=\$$ac_var 2453 case $ac_val in #( 2454 *${as_nl}*) 2455 case $ac_var in #( 2456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2457$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2458 esac 2459 case $ac_var in #( 2460 _ | IFS | as_nl) ;; #( 2461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2462 *) { eval $ac_var=; unset $ac_var;} ;; 2463 esac ;; 2464 esac 2465 done 2466 (set) 2>&1 | 2467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2468 *${as_nl}ac_space=\ *) 2469 sed -n \ 2470 "s/'\''/'\''\\\\'\'''\''/g; 2471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2472 ;; #( 2473 *) 2474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2475 ;; 2476 esac | 2477 sort 2478) 2479 echo 2480 2481 $as_echo "## ----------------- ## 2482## Output variables. ## 2483## ----------------- ##" 2484 echo 2485 for ac_var in $ac_subst_vars 2486 do 2487 eval ac_val=\$$ac_var 2488 case $ac_val in 2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2490 esac 2491 $as_echo "$ac_var='\''$ac_val'\''" 2492 done | sort 2493 echo 2494 2495 if test -n "$ac_subst_files"; then 2496 $as_echo "## ------------------- ## 2497## File substitutions. ## 2498## ------------------- ##" 2499 echo 2500 for ac_var in $ac_subst_files 2501 do 2502 eval ac_val=\$$ac_var 2503 case $ac_val in 2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2505 esac 2506 $as_echo "$ac_var='\''$ac_val'\''" 2507 done | sort 2508 echo 2509 fi 2510 2511 if test -s confdefs.h; then 2512 $as_echo "## ----------- ## 2513## confdefs.h. ## 2514## ----------- ##" 2515 echo 2516 cat confdefs.h 2517 echo 2518 fi 2519 test "$ac_signal" != 0 && 2520 $as_echo "$as_me: caught signal $ac_signal" 2521 $as_echo "$as_me: exit $exit_status" 2522 } >&5 2523 rm -f core *.core core.conftest.* && 2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2525 exit $exit_status 2526' 0 2527for ac_signal in 1 2 13 15; do 2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2529done 2530ac_signal=0 2531 2532# confdefs.h avoids OS command line length limits that DEFS can exceed. 2533rm -f -r conftest* confdefs.h 2534 2535$as_echo "/* confdefs.h */" > confdefs.h 2536 2537# Predefined preprocessor variables. 2538 2539cat >>confdefs.h <<_ACEOF 2540#define PACKAGE_NAME "$PACKAGE_NAME" 2541_ACEOF 2542 2543cat >>confdefs.h <<_ACEOF 2544#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2545_ACEOF 2546 2547cat >>confdefs.h <<_ACEOF 2548#define PACKAGE_VERSION "$PACKAGE_VERSION" 2549_ACEOF 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_STRING "$PACKAGE_STRING" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_URL "$PACKAGE_URL" 2561_ACEOF 2562 2563 2564# Let the site file select an alternate cache file if it wants to. 2565# Prefer an explicitly selected file to automatically selected ones. 2566ac_site_file1=NONE 2567ac_site_file2=NONE 2568if test -n "$CONFIG_SITE"; then 2569 # We do not want a PATH search for config.site. 2570 case $CONFIG_SITE in #(( 2571 -*) ac_site_file1=./$CONFIG_SITE;; 2572 */*) ac_site_file1=$CONFIG_SITE;; 2573 *) ac_site_file1=./$CONFIG_SITE;; 2574 esac 2575elif test "x$prefix" != xNONE; then 2576 ac_site_file1=$prefix/share/config.site 2577 ac_site_file2=$prefix/etc/config.site 2578else 2579 ac_site_file1=$ac_default_prefix/share/config.site 2580 ac_site_file2=$ac_default_prefix/etc/config.site 2581fi 2582for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2583do 2584 test "x$ac_site_file" = xNONE && continue 2585 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2587$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2588 sed 's/^/| /' "$ac_site_file" >&5 2589 . "$ac_site_file" \ 2590 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2592as_fn_error $? "failed to load site script $ac_site_file 2593See \`config.log' for more details" "$LINENO" 5; } 2594 fi 2595done 2596 2597if test -r "$cache_file"; then 2598 # Some versions of bash will fail to source /dev/null (special files 2599 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2600 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2602$as_echo "$as_me: loading cache $cache_file" >&6;} 2603 case $cache_file in 2604 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2605 *) . "./$cache_file";; 2606 esac 2607 fi 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2610$as_echo "$as_me: creating cache $cache_file" >&6;} 2611 >$cache_file 2612fi 2613 2614# Check that the precious variables saved in the cache have kept the same 2615# value. 2616ac_cache_corrupted=false 2617for ac_var in $ac_precious_vars; do 2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2619 eval ac_new_set=\$ac_env_${ac_var}_set 2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2621 eval ac_new_val=\$ac_env_${ac_var}_value 2622 case $ac_old_set,$ac_new_set in 2623 set,) 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2625$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2626 ac_cache_corrupted=: ;; 2627 ,set) 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2629$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2630 ac_cache_corrupted=: ;; 2631 ,);; 2632 *) 2633 if test "x$ac_old_val" != "x$ac_new_val"; then 2634 # differences in whitespace do not lead to failure. 2635 ac_old_val_w=`echo x $ac_old_val` 2636 ac_new_val_w=`echo x $ac_new_val` 2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2639$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2640 ac_cache_corrupted=: 2641 else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2643$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2644 eval $ac_var=\$ac_old_val 2645 fi 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2647$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2649$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2650 fi;; 2651 esac 2652 # Pass precious variables to config.status. 2653 if test "$ac_new_set" = set; then 2654 case $ac_new_val in 2655 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2656 *) ac_arg=$ac_var=$ac_new_val ;; 2657 esac 2658 case " $ac_configure_args " in 2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2661 esac 2662 fi 2663done 2664if $ac_cache_corrupted; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2668$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2669 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2670fi 2671## -------------------- ## 2672## Main body of script. ## 2673## -------------------- ## 2674 2675ac_ext=c 2676ac_cpp='$CPP $CPPFLAGS' 2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2679ac_compiler_gnu=$ac_cv_c_compiler_gnu 2680 2681 2682 2683LLVM_VERSION_MAJOR=4 2684LLVM_VERSION_MINOR=0 2685LLVM_VERSION_PATCH=0 2686LLVM_VERSION_SUFFIX=svn 2687 2688 2689cat >>confdefs.h <<_ACEOF 2690#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 2691_ACEOF 2692 2693 2694cat >>confdefs.h <<_ACEOF 2695#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 2696_ACEOF 2697 2698 2699cat >>confdefs.h <<_ACEOF 2700#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 2701_ACEOF 2702 2703 2704cat >>confdefs.h <<_ACEOF 2705#define LLVM_VERSION_STRING "$PACKAGE_VERSION" 2706_ACEOF 2707 2708if false; then 2709 2710cat >>confdefs.h <<_ACEOF 2711#define LLVM_VERSION_INFO /**/ 2712_ACEOF 2713 2714fi 2715 2716 2717 2718 2719 2720 2721LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." 2722 2723 2724 2725 2726 2727ac_aux_dir= 2728for ac_dir in autoconf "$srcdir"/autoconf; do 2729 if test -f "$ac_dir/install-sh"; then 2730 ac_aux_dir=$ac_dir 2731 ac_install_sh="$ac_aux_dir/install-sh -c" 2732 break 2733 elif test -f "$ac_dir/install.sh"; then 2734 ac_aux_dir=$ac_dir 2735 ac_install_sh="$ac_aux_dir/install.sh -c" 2736 break 2737 elif test -f "$ac_dir/shtool"; then 2738 ac_aux_dir=$ac_dir 2739 ac_install_sh="$ac_aux_dir/shtool install -c" 2740 break 2741 fi 2742done 2743if test -z "$ac_aux_dir"; then 2744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 2745fi 2746 2747# These three variables are undocumented and unsupported, 2748# and are intended to be withdrawn in a future Autoconf release. 2749# They can cause serious problems if a builder's source tree is in a directory 2750# whose full name contains unusual characters. 2751ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2752ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2753ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2754 2755 2756 2757 2758# Check whether --with-llvm-srcdir was given. 2759if test "${with_llvm_srcdir+set}" = set; then : 2760 withval=$with_llvm_srcdir; 2761else 2762 withval="-" 2763fi 2764 2765case "$withval" in 2766 -) llvm_srcdir="$srcdir" ;; 2767 /* | [A-Za-z]:[\\/]*) llvm_srcdir="$withval" ;; 2768 *) llvm_srcdir="$ac_pwd/$withval" ;; 2769esac 2770 2771if test ${srcdir} != "." ; then 2772 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2773 as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5 2774 fi 2775fi 2776 2777if test ${srcdir} = "." ; then 2778 as_fn_error $? "In-source builds are not allowed. Please configure from a separate build directory!" "$LINENO" 5 2779fi 2780 2781: ${CFLAGS=} 2782: ${CXXFLAGS=} 2783 2784ac_ext=c 2785ac_cpp='$CPP $CPPFLAGS' 2786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2788ac_compiler_gnu=$ac_cv_c_compiler_gnu 2789if test -n "$ac_tool_prefix"; then 2790 for ac_prog in clang gcc 2791 do 2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795$as_echo_n "checking for $ac_word... " >&6; } 2796if ${ac_cv_prog_CC+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test -n "$CC"; then 2800 ac_cv_prog_CC="$CC" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819CC=$ac_cv_prog_CC 2820if test -n "$CC"; then 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2822$as_echo "$CC" >&6; } 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829 test -n "$CC" && break 2830 done 2831fi 2832if test -z "$CC"; then 2833 ac_ct_CC=$CC 2834 for ac_prog in clang gcc 2835do 2836 # Extract the first word of "$ac_prog", so it can be a program name with args. 2837set dummy $ac_prog; ac_word=$2 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839$as_echo_n "checking for $ac_word... " >&6; } 2840if ${ac_cv_prog_ac_ct_CC+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 if test -n "$ac_ct_CC"; then 2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2845else 2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2853 ac_cv_prog_ac_ct_CC="$ac_prog" 2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858 done 2859IFS=$as_save_IFS 2860 2861fi 2862fi 2863ac_ct_CC=$ac_cv_prog_ac_ct_CC 2864if test -n "$ac_ct_CC"; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2866$as_echo "$ac_ct_CC" >&6; } 2867else 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2869$as_echo "no" >&6; } 2870fi 2871 2872 2873 test -n "$ac_ct_CC" && break 2874done 2875 2876 if test "x$ac_ct_CC" = x; then 2877 CC="" 2878 else 2879 case $cross_compiling:$ac_tool_warned in 2880yes:) 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2883ac_tool_warned=yes ;; 2884esac 2885 CC=$ac_ct_CC 2886 fi 2887fi 2888 2889 2890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error $? "no acceptable C compiler found in \$PATH 2893See \`config.log' for more details" "$LINENO" 5; } 2894 2895# Provide some information about the compiler. 2896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2897set X $ac_compile 2898ac_compiler=$2 2899for ac_option in --version -v -V -qversion; do 2900 { { ac_try="$ac_compiler $ac_option >&5" 2901case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2906$as_echo "$ac_try_echo"; } >&5 2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2908 ac_status=$? 2909 if test -s conftest.err; then 2910 sed '10a\ 2911... rest of stderr output deleted ... 2912 10q' conftest.err >conftest.er1 2913 cat conftest.er1 >&5 2914 fi 2915 rm -f conftest.er1 conftest.err 2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2917 test $ac_status = 0; } 2918done 2919 2920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2937$as_echo_n "checking whether the C compiler works... " >&6; } 2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939 2940# The possible output files: 2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2942 2943ac_rmfiles= 2944for ac_file in $ac_files 2945do 2946 case $ac_file in 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2949 esac 2950done 2951rm -f $ac_rmfiles 2952 2953if { { ac_try="$ac_link_default" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2959$as_echo "$ac_try_echo"; } >&5 2960 (eval "$ac_link_default") 2>&5 2961 ac_status=$? 2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2963 test $ac_status = 0; }; then : 2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2966# in a Makefile. We should not override ac_cv_exeext if it was cached, 2967# so that the user can short-circuit this test for compilers unknown to 2968# Autoconf. 2969for ac_file in $ac_files '' 2970do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2974 ;; 2975 [ab].out ) 2976 # We found the default executable, but exeext='' is most 2977 # certainly right. 2978 break;; 2979 *.* ) 2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2981 then :; else 2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2983 fi 2984 # We set ac_cv_exeext here because the later test for it is not 2985 # safe: cross compilers may not add the suffix if given an `-o' 2986 # argument, so we may need to know it at that point already. 2987 # Even if this section looks crufty: it has the advantage of 2988 # actually working. 2989 break;; 2990 * ) 2991 break;; 2992 esac 2993done 2994test "$ac_cv_exeext" = no && ac_cv_exeext= 2995 2996else 2997 ac_file='' 2998fi 2999if test -z "$ac_file"; then : 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001$as_echo "no" >&6; } 3002$as_echo "$as_me: failed program was:" >&5 3003sed 's/^/| /' conftest.$ac_ext >&5 3004 3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007as_fn_error 77 "C compiler cannot create executables 3008See \`config.log' for more details" "$LINENO" 5; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011$as_echo "yes" >&6; } 3012fi 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3014$as_echo_n "checking for C compiler default output file name... " >&6; } 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3016$as_echo "$ac_file" >&6; } 3017ac_exeext=$ac_cv_exeext 3018 3019rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3020ac_clean_files=$ac_clean_files_save 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3022$as_echo_n "checking for suffix of executables... " >&6; } 3023if { { ac_try="$ac_link" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3029$as_echo "$ac_try_echo"; } >&5 3030 (eval "$ac_link") 2>&5 3031 ac_status=$? 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; }; then : 3034 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3035# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3036# work properly (i.e., refer to `conftest.exe'), while it won't with 3037# `rm'. 3038for ac_file in conftest.exe conftest conftest.*; do 3039 test -f "$ac_file" || continue 3040 case $ac_file in 3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3043 break;; 3044 * ) break;; 3045 esac 3046done 3047else 3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3050as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3051See \`config.log' for more details" "$LINENO" 5; } 3052fi 3053rm -f conftest conftest$ac_cv_exeext 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3055$as_echo "$ac_cv_exeext" >&6; } 3056 3057rm -f conftest.$ac_ext 3058EXEEXT=$ac_cv_exeext 3059ac_exeext=$EXEEXT 3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3061/* end confdefs.h. */ 3062#include <stdio.h> 3063int 3064main () 3065{ 3066FILE *f = fopen ("conftest.out", "w"); 3067 return ferror (f) || fclose (f) != 0; 3068 3069 ; 3070 return 0; 3071} 3072_ACEOF 3073ac_clean_files="$ac_clean_files conftest.out" 3074# Check that the compiler produces executables we can run. If not, either 3075# the compiler is broken, or we cross compile. 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3077$as_echo_n "checking whether we are cross compiling... " >&6; } 3078if test "$cross_compiling" != yes; then 3079 { { ac_try="$ac_link" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3085$as_echo "$ac_try_echo"; } >&5 3086 (eval "$ac_link") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3089 test $ac_status = 0; } 3090 if { ac_try='./conftest$ac_cv_exeext' 3091 { { case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096$as_echo "$ac_try_echo"; } >&5 3097 (eval "$ac_try") 2>&5 3098 ac_status=$? 3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3100 test $ac_status = 0; }; }; then 3101 cross_compiling=no 3102 else 3103 if test "$cross_compiling" = maybe; then 3104 cross_compiling=yes 3105 else 3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3108as_fn_error $? "cannot run C compiled programs. 3109If you meant to cross compile, use \`--host'. 3110See \`config.log' for more details" "$LINENO" 5; } 3111 fi 3112 fi 3113fi 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3115$as_echo "$cross_compiling" >&6; } 3116 3117rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3118ac_clean_files=$ac_clean_files_save 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3120$as_echo_n "checking for suffix of object files... " >&6; } 3121if ${ac_cv_objext+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3125/* end confdefs.h. */ 3126 3127int 3128main () 3129{ 3130 3131 ; 3132 return 0; 3133} 3134_ACEOF 3135rm -f conftest.o conftest.obj 3136if { { ac_try="$ac_compile" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3142$as_echo "$ac_try_echo"; } >&5 3143 (eval "$ac_compile") 2>&5 3144 ac_status=$? 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3146 test $ac_status = 0; }; then : 3147 for ac_file in conftest.o conftest.obj conftest.*; do 3148 test -f "$ac_file" || continue; 3149 case $ac_file in 3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3152 break;; 3153 esac 3154done 3155else 3156 $as_echo "$as_me: failed program was:" >&5 3157sed 's/^/| /' conftest.$ac_ext >&5 3158 3159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161as_fn_error $? "cannot compute suffix of object files: cannot compile 3162See \`config.log' for more details" "$LINENO" 5; } 3163fi 3164rm -f conftest.$ac_cv_objext conftest.$ac_ext 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3167$as_echo "$ac_cv_objext" >&6; } 3168OBJEXT=$ac_cv_objext 3169ac_objext=$OBJEXT 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3171$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3172if ${ac_cv_c_compiler_gnu+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181#ifndef __GNUC__ 3182 choke me 3183#endif 3184 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189if ac_fn_c_try_compile "$LINENO"; then : 3190 ac_compiler_gnu=yes 3191else 3192 ac_compiler_gnu=no 3193fi 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195ac_cv_c_compiler_gnu=$ac_compiler_gnu 3196 3197fi 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3199$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3200if test $ac_compiler_gnu = yes; then 3201 GCC=yes 3202else 3203 GCC= 3204fi 3205ac_test_CFLAGS=${CFLAGS+set} 3206ac_save_CFLAGS=$CFLAGS 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3208$as_echo_n "checking whether $CC accepts -g... " >&6; } 3209if ${ac_cv_prog_cc_g+:} false; then : 3210 $as_echo_n "(cached) " >&6 3211else 3212 ac_save_c_werror_flag=$ac_c_werror_flag 3213 ac_c_werror_flag=yes 3214 ac_cv_prog_cc_g=no 3215 CFLAGS="-g" 3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218 3219int 3220main () 3221{ 3222 3223 ; 3224 return 0; 3225} 3226_ACEOF 3227if ac_fn_c_try_compile "$LINENO"; then : 3228 ac_cv_prog_cc_g=yes 3229else 3230 CFLAGS="" 3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232/* end confdefs.h. */ 3233 3234int 3235main () 3236{ 3237 3238 ; 3239 return 0; 3240} 3241_ACEOF 3242if ac_fn_c_try_compile "$LINENO"; then : 3243 3244else 3245 ac_c_werror_flag=$ac_save_c_werror_flag 3246 CFLAGS="-g" 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249 3250int 3251main () 3252{ 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258if ac_fn_c_try_compile "$LINENO"; then : 3259 ac_cv_prog_cc_g=yes 3260fi 3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3262fi 3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3264fi 3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3266 ac_c_werror_flag=$ac_save_c_werror_flag 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3269$as_echo "$ac_cv_prog_cc_g" >&6; } 3270if test "$ac_test_CFLAGS" = set; then 3271 CFLAGS=$ac_save_CFLAGS 3272elif test $ac_cv_prog_cc_g = yes; then 3273 if test "$GCC" = yes; then 3274 CFLAGS="-g -O2" 3275 else 3276 CFLAGS="-g" 3277 fi 3278else 3279 if test "$GCC" = yes; then 3280 CFLAGS="-O2" 3281 else 3282 CFLAGS= 3283 fi 3284fi 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3286$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3287if ${ac_cv_prog_cc_c89+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 ac_cv_prog_cc_c89=no 3291ac_save_CC=$CC 3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294#include <stdarg.h> 3295#include <stdio.h> 3296struct stat; 3297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3298struct buf { int x; }; 3299FILE * (*rcsopen) (struct buf *, struct stat *, int); 3300static char *e (p, i) 3301 char **p; 3302 int i; 3303{ 3304 return p[i]; 3305} 3306static char *f (char * (*g) (char **, int), char **p, ...) 3307{ 3308 char *s; 3309 va_list v; 3310 va_start (v,p); 3311 s = g (p, va_arg (v,int)); 3312 va_end (v); 3313 return s; 3314} 3315 3316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3317 function prototypes and stuff, but not '\xHH' hex character constants. 3318 These don't provoke an error unfortunately, instead are silently treated 3319 as 'x'. The following induces an error, until -std is added to get 3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3321 array size at least. It's necessary to write '\x00'==0 to get something 3322 that's true only with -std. */ 3323int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3324 3325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3326 inside strings and character constants. */ 3327#define FOO(x) 'x' 3328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3329 3330int test (int i, double x); 3331struct s1 {int (*f) (int a);}; 3332struct s2 {int (*f) (double a);}; 3333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3334int argc; 3335char **argv; 3336int 3337main () 3338{ 3339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3346do 3347 CC="$ac_save_CC $ac_arg" 3348 if ac_fn_c_try_compile "$LINENO"; then : 3349 ac_cv_prog_cc_c89=$ac_arg 3350fi 3351rm -f core conftest.err conftest.$ac_objext 3352 test "x$ac_cv_prog_cc_c89" != "xno" && break 3353done 3354rm -f conftest.$ac_ext 3355CC=$ac_save_CC 3356 3357fi 3358# AC_CACHE_VAL 3359case "x$ac_cv_prog_cc_c89" in 3360 x) 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3362$as_echo "none needed" >&6; } ;; 3363 xno) 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3365$as_echo "unsupported" >&6; } ;; 3366 *) 3367 CC="$CC $ac_cv_prog_cc_c89" 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3369$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3370esac 3371if test "x$ac_cv_prog_cc_c89" != xno; then : 3372 3373fi 3374 3375ac_ext=c 3376ac_cpp='$CPP $CPPFLAGS' 3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379ac_compiler_gnu=$ac_cv_c_compiler_gnu 3380 3381ac_ext=cpp 3382ac_cpp='$CXXCPP $CPPFLAGS' 3383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3386if test -z "$CXX"; then 3387 if test -n "$CCC"; then 3388 CXX=$CCC 3389 else 3390 if test -n "$ac_tool_prefix"; then 3391 for ac_prog in clang++ g++ 3392 do 3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3394set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396$as_echo_n "checking for $ac_word... " >&6; } 3397if ${ac_cv_prog_CXX+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 if test -n "$CXX"; then 3401 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3402else 3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3404for as_dir in $PATH 3405do 3406 IFS=$as_save_IFS 3407 test -z "$as_dir" && as_dir=. 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3412 break 2 3413 fi 3414done 3415 done 3416IFS=$as_save_IFS 3417 3418fi 3419fi 3420CXX=$ac_cv_prog_CXX 3421if test -n "$CXX"; then 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3423$as_echo "$CXX" >&6; } 3424else 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426$as_echo "no" >&6; } 3427fi 3428 3429 3430 test -n "$CXX" && break 3431 done 3432fi 3433if test -z "$CXX"; then 3434 ac_ct_CXX=$CXX 3435 for ac_prog in clang++ g++ 3436do 3437 # Extract the first word of "$ac_prog", so it can be a program name with args. 3438set dummy $ac_prog; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$ac_ct_CXX"; then 3445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3454 ac_cv_prog_ac_ct_CXX="$ac_prog" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3465if test -n "$ac_ct_CXX"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3467$as_echo "$ac_ct_CXX" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474 test -n "$ac_ct_CXX" && break 3475done 3476 3477 if test "x$ac_ct_CXX" = x; then 3478 CXX="g++" 3479 else 3480 case $cross_compiling:$ac_tool_warned in 3481yes:) 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3484ac_tool_warned=yes ;; 3485esac 3486 CXX=$ac_ct_CXX 3487 fi 3488fi 3489 3490 fi 3491fi 3492# Provide some information about the compiler. 3493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3494set X $ac_compile 3495ac_compiler=$2 3496for ac_option in --version -v -V -qversion; do 3497 { { ac_try="$ac_compiler $ac_option >&5" 3498case "(($ac_try" in 3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 *) ac_try_echo=$ac_try;; 3501esac 3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3503$as_echo "$ac_try_echo"; } >&5 3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3505 ac_status=$? 3506 if test -s conftest.err; then 3507 sed '10a\ 3508... rest of stderr output deleted ... 3509 10q' conftest.err >conftest.er1 3510 cat conftest.er1 >&5 3511 fi 3512 rm -f conftest.er1 conftest.err 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; } 3515done 3516 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3518$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3519if ${ac_cv_cxx_compiler_gnu+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528#ifndef __GNUC__ 3529 choke me 3530#endif 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_cxx_try_compile "$LINENO"; then : 3537 ac_compiler_gnu=yes 3538else 3539 ac_compiler_gnu=no 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3546$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3547if test $ac_compiler_gnu = yes; then 3548 GXX=yes 3549else 3550 GXX= 3551fi 3552ac_test_CXXFLAGS=${CXXFLAGS+set} 3553ac_save_CXXFLAGS=$CXXFLAGS 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3555$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3556if ${ac_cv_prog_cxx_g+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3560 ac_cxx_werror_flag=yes 3561 ac_cv_prog_cxx_g=no 3562 CXXFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_cxx_try_compile "$LINENO"; then : 3575 ac_cv_prog_cxx_g=yes 3576else 3577 CXXFLAGS="" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_cxx_try_compile "$LINENO"; then : 3590 3591else 3592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3593 CXXFLAGS="-g" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_cxx_try_compile "$LINENO"; then : 3606 ac_cv_prog_cxx_g=yes 3607fi 3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3616$as_echo "$ac_cv_prog_cxx_g" >&6; } 3617if test "$ac_test_CXXFLAGS" = set; then 3618 CXXFLAGS=$ac_save_CXXFLAGS 3619elif test $ac_cv_prog_cxx_g = yes; then 3620 if test "$GXX" = yes; then 3621 CXXFLAGS="-g -O2" 3622 else 3623 CXXFLAGS="-g" 3624 fi 3625else 3626 if test "$GXX" = yes; then 3627 CXXFLAGS="-O2" 3628 else 3629 CXXFLAGS= 3630 fi 3631fi 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3644$as_echo_n "checking how to run the C preprocessor... " >&6; } 3645# On Suns, sometimes $CPP names a directory. 3646if test -n "$CPP" && test -d "$CPP"; then 3647 CPP= 3648fi 3649if test -z "$CPP"; then 3650 if ${ac_cv_prog_CPP+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 # Double quotes because CPP needs to be expanded 3654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3655 do 3656 ac_preproc_ok=false 3657for ac_c_preproc_warn_flag in '' yes 3658do 3659 # Use a header file that comes with gcc, so configuring glibc 3660 # with a fresh cross-compiler works. 3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3662 # <limits.h> exists even on freestanding compilers. 3663 # On the NeXT, cc -E runs the code through the compiler's parser, 3664 # not just through cpp. "Syntax error" is here to catch this case. 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667#ifdef __STDC__ 3668# include <limits.h> 3669#else 3670# include <assert.h> 3671#endif 3672 Syntax error 3673_ACEOF 3674if ac_fn_c_try_cpp "$LINENO"; then : 3675 3676else 3677 # Broken: fails on valid input. 3678continue 3679fi 3680rm -f conftest.err conftest.i conftest.$ac_ext 3681 3682 # OK, works on sane cases. Now check whether nonexistent headers 3683 # can be detected and how. 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686#include <ac_nonexistent.h> 3687_ACEOF 3688if ac_fn_c_try_cpp "$LINENO"; then : 3689 # Broken: success on invalid input. 3690continue 3691else 3692 # Passes both tests. 3693ac_preproc_ok=: 3694break 3695fi 3696rm -f conftest.err conftest.i conftest.$ac_ext 3697 3698done 3699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3700rm -f conftest.i conftest.err conftest.$ac_ext 3701if $ac_preproc_ok; then : 3702 break 3703fi 3704 3705 done 3706 ac_cv_prog_CPP=$CPP 3707 3708fi 3709 CPP=$ac_cv_prog_CPP 3710else 3711 ac_cv_prog_CPP=$CPP 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3714$as_echo "$CPP" >&6; } 3715ac_preproc_ok=false 3716for ac_c_preproc_warn_flag in '' yes 3717do 3718 # Use a header file that comes with gcc, so configuring glibc 3719 # with a fresh cross-compiler works. 3720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3721 # <limits.h> exists even on freestanding compilers. 3722 # On the NeXT, cc -E runs the code through the compiler's parser, 3723 # not just through cpp. "Syntax error" is here to catch this case. 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726#ifdef __STDC__ 3727# include <limits.h> 3728#else 3729# include <assert.h> 3730#endif 3731 Syntax error 3732_ACEOF 3733if ac_fn_c_try_cpp "$LINENO"; then : 3734 3735else 3736 # Broken: fails on valid input. 3737continue 3738fi 3739rm -f conftest.err conftest.i conftest.$ac_ext 3740 3741 # OK, works on sane cases. Now check whether nonexistent headers 3742 # can be detected and how. 3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745#include <ac_nonexistent.h> 3746_ACEOF 3747if ac_fn_c_try_cpp "$LINENO"; then : 3748 # Broken: success on invalid input. 3749continue 3750else 3751 # Passes both tests. 3752ac_preproc_ok=: 3753break 3754fi 3755rm -f conftest.err conftest.i conftest.$ac_ext 3756 3757done 3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3759rm -f conftest.i conftest.err conftest.$ac_ext 3760if $ac_preproc_ok; then : 3761 3762else 3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3766See \`config.log' for more details" "$LINENO" 5; } 3767fi 3768 3769ac_ext=c 3770ac_cpp='$CPP $CPPFLAGS' 3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3773ac_compiler_gnu=$ac_cv_c_compiler_gnu 3774 3775 3776if test "$CXX" = "clang++" ; then 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang works" >&5 3778$as_echo_n "checking whether clang works... " >&6; } 3779 ac_ext=cpp 3780ac_cpp='$CXXCPP $CPPFLAGS' 3781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3784 3785 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#include <limits> 3789#if __has_include (<cxxabi.h>) 3790#include <cxxabi.h> 3791#endif 3792#if __has_include (<unwind.h>) 3793#include <unwind.h> 3794#endif 3795 3796int 3797main () 3798{ 3799 3800 ; 3801 return 0; 3802} 3803_ACEOF 3804if ac_fn_cxx_try_compile "$LINENO"; then : 3805 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3807$as_echo "yes" >&6; } 3808 3809else 3810 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813 as_fn_error $? "Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." "$LINENO" 5 3814 3815fi 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817 ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822 3823fi 3824 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC or Clang is our host compiler" >&5 3826$as_echo_n "checking whether GCC or Clang is our host compiler... " >&6; } 3827ac_ext=cpp 3828ac_cpp='$CXXCPP $CPPFLAGS' 3829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3832 3833llvm_cv_cxx_compiler=unknown 3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836#if ! __clang__ 3837 #error 3838 #endif 3839 3840_ACEOF 3841if ac_fn_cxx_try_compile "$LINENO"; then : 3842 llvm_cv_cxx_compiler=clang 3843else 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#if ! __GNUC__ 3847 #error 3848 #endif 3849 3850_ACEOF 3851if ac_fn_cxx_try_compile "$LINENO"; then : 3852 llvm_cv_cxx_compiler=gcc 3853fi 3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3855fi 3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${llvm_cv_cxx_compiler}" >&5 3864$as_echo "${llvm_cv_cxx_compiler}" >&6; } 3865CXX_COMPILER=$llvm_cv_cxx_compiler 3866 3867 3868# Check whether --enable-polly was given. 3869if test "${enable_polly+set}" = set; then : 3870 enableval=$enable_polly; 3871else 3872 enableval=default 3873fi 3874 3875case "$enableval" in 3876 yes) ENABLE_POLLY=1 3877 ;; 3878 no) ENABLE_POLLY=0 3879 ;; 3880 default) ENABLE_POLLY=1 3881 ;; 3882 *) as_fn_error $? "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 3883esac 3884 3885 3886if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3887 LLVM_HAS_POLLY=1 3888 3889 3890 3891subdirs="$subdirs tools/polly" 3892 3893fi 3894if false; then 3895 3896$as_echo "#define LINK_POLLY_INTO_TOOLS /**/" >>confdefs.h 3897 3898fi 3899 3900 3901# Make sure we can run config.sub. 3902$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3904 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3906$as_echo_n "checking build system type... " >&6; } 3907if ${ac_cv_build+:} false; then : 3908 $as_echo_n "(cached) " >&6 3909else 3910 ac_build_alias=$build_alias 3911test "x$ac_build_alias" = x && 3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3913test "x$ac_build_alias" = x && 3914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3915ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3917 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3920$as_echo "$ac_cv_build" >&6; } 3921case $ac_cv_build in 3922*-*-*) ;; 3923*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3924esac 3925build=$ac_cv_build 3926ac_save_IFS=$IFS; IFS='-' 3927set x $ac_cv_build 3928shift 3929build_cpu=$1 3930build_vendor=$2 3931shift; shift 3932# Remember, the first character of IFS is used to create $*, 3933# except with old shells: 3934build_os=$* 3935IFS=$ac_save_IFS 3936case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3937 3938 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3940$as_echo_n "checking host system type... " >&6; } 3941if ${ac_cv_host+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 if test "x$host_alias" = x; then 3945 ac_cv_host=$ac_cv_build 3946else 3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3949fi 3950 3951fi 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3953$as_echo "$ac_cv_host" >&6; } 3954case $ac_cv_host in 3955*-*-*) ;; 3956*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3957esac 3958host=$ac_cv_host 3959ac_save_IFS=$IFS; IFS='-' 3960set x $ac_cv_host 3961shift 3962host_cpu=$1 3963host_vendor=$2 3964shift; shift 3965# Remember, the first character of IFS is used to create $*, 3966# except with old shells: 3967host_os=$* 3968IFS=$ac_save_IFS 3969case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3970 3971 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3973$as_echo_n "checking target system type... " >&6; } 3974if ${ac_cv_target+:} false; then : 3975 $as_echo_n "(cached) " >&6 3976else 3977 if test "x$target_alias" = x; then 3978 ac_cv_target=$ac_cv_host 3979else 3980 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3982fi 3983 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3986$as_echo "$ac_cv_target" >&6; } 3987case $ac_cv_target in 3988*-*-*) ;; 3989*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3990esac 3991target=$ac_cv_target 3992ac_save_IFS=$IFS; IFS='-' 3993set x $ac_cv_target 3994shift 3995target_cpu=$1 3996target_vendor=$2 3997shift; shift 3998# Remember, the first character of IFS is used to create $*, 3999# except with old shells: 4000target_os=$* 4001IFS=$ac_save_IFS 4002case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4003 4004 4005# The aliases save the names the user supplied, while $host etc. 4006# will get canonicalized. 4007test -n "$target_alias" && 4008 test "$program_prefix$program_suffix$program_transform_name" = \ 4009 NONENONEs,x,x, && 4010 program_prefix=${target_alias}- 4011 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5 4013$as_echo_n "checking type of operating system we're going to host on... " >&6; } 4014if ${llvm_cv_os_type+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 case $host in 4018 *-*-aix*) 4019 llvm_cv_link_all_option="-Wl,--whole-archive" 4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4021 llvm_cv_os_type="AIX" 4022 llvm_cv_platform_type="Unix" ;; 4023 *-*-irix*) 4024 llvm_cv_link_all_option="-Wl,--whole-archive" 4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4026 llvm_cv_os_type="IRIX" 4027 llvm_cv_platform_type="Unix" ;; 4028 *-*-cygwin*) 4029 llvm_cv_link_all_option="-Wl,--whole-archive" 4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4031 llvm_cv_os_type="Cygwin" 4032 llvm_cv_platform_type="Unix" ;; 4033 *-*-darwin*) 4034 llvm_cv_link_all_option="-Wl,-all_load" 4035 llvm_cv_no_link_all_option="-Wl,-noall_load" 4036 llvm_cv_os_type="Darwin" 4037 llvm_cv_platform_type="Unix" ;; 4038 *-*-minix*) 4039 llvm_cv_link_all_option="-Wl,-all_load" 4040 llvm_cv_no_link_all_option="-Wl,-noall_load" 4041 llvm_cv_os_type="Minix" 4042 llvm_cv_platform_type="Unix" ;; 4043 *-*-freebsd*) 4044 llvm_cv_link_all_option="-Wl,--whole-archive" 4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4046 llvm_cv_os_type="FreeBSD" 4047 llvm_cv_platform_type="Unix" ;; 4048 *-*-kfreebsd-gnu) 4049 llvm_cv_link_all_option="-Wl,--whole-archive" 4050 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4051 llvm_cv_os_type="GNU/kFreeBSD" 4052 llvm_cv_platform_type="Unix" ;; 4053 *-*-openbsd*) 4054 llvm_cv_link_all_option="-Wl,--whole-archive" 4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4056 llvm_cv_os_type="OpenBSD" 4057 llvm_cv_platform_type="Unix" ;; 4058 *-*-netbsd*) 4059 llvm_cv_link_all_option="-Wl,--whole-archive" 4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4061 llvm_cv_os_type="NetBSD" 4062 llvm_cv_platform_type="Unix" ;; 4063 *-*-dragonfly*) 4064 llvm_cv_link_all_option="-Wl,--whole-archive" 4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4066 llvm_cv_os_type="DragonFly" 4067 llvm_cv_platform_type="Unix" ;; 4068 *-*-bitrig*) 4069 llvm_cv_link_all_option="-Wl,--whole-archive" 4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4071 llvm_cv_os_type="Bitrig" 4072 llvm_cv_platform_type="Unix" ;; 4073 *-*-hpux*) 4074 llvm_cv_link_all_option="-Wl,--whole-archive" 4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4076 llvm_cv_os_type="HP-UX" 4077 llvm_cv_platform_type="Unix" ;; 4078 *-*-interix*) 4079 llvm_cv_link_all_option="-Wl,--whole-archive" 4080 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4081 llvm_cv_os_type="Interix" 4082 llvm_cv_platform_type="Unix" ;; 4083 *-*-linux*) 4084 llvm_cv_link_all_option="-Wl,--whole-archive" 4085 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4086 llvm_cv_os_type="Linux" 4087 llvm_cv_platform_type="Unix" ;; 4088 *-*-gnu*) 4089 llvm_cv_link_all_option="-Wl,--whole-archive" 4090 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4091 llvm_cv_os_type="GNU" 4092 llvm_cv_platform_type="Unix" ;; 4093 *-*-solaris*) 4094 llvm_cv_link_all_option="-Wl,-z,allextract" 4095 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 4096 llvm_cv_os_type="SunOS" 4097 llvm_cv_platform_type="Unix" ;; 4098 *-*-win32*) 4099 llvm_cv_link_all_option="-Wl,--whole-archive" 4100 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4101 llvm_cv_os_type="Win32" 4102 llvm_cv_platform_type="Win32" ;; 4103 *-*-mingw*) 4104 llvm_cv_link_all_option="-Wl,--whole-archive" 4105 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4106 llvm_cv_os_type="MingW" 4107 llvm_cv_platform_type="Win32" ;; 4108 *-*-haiku*) 4109 llvm_cv_link_all_option="-Wl,--whole-archive" 4110 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4111 llvm_cv_os_type="Haiku" 4112 llvm_cv_platform_type="Unix" ;; 4113 *-unknown-eabi*) 4114 llvm_cv_link_all_option="-Wl,--whole-archive" 4115 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4116 llvm_cv_os_type="Freestanding" 4117 llvm_cv_platform_type="Unix" ;; 4118 *-unknown-elf*) 4119 llvm_cv_link_all_option="-Wl,--whole-archive" 4120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4121 llvm_cv_os_type="Freestanding" 4122 llvm_cv_platform_type="Unix" ;; 4123 *) 4124 llvm_cv_link_all_option="" 4125 llvm_cv_no_link_all_option="" 4126 llvm_cv_os_type="Unknown" 4127 llvm_cv_platform_type="Unknown" ;; 4128esac 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5 4131$as_echo "$llvm_cv_os_type" >&6; } 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5 4134$as_echo_n "checking type of operating system we're going to target... " >&6; } 4135if ${llvm_cv_target_os_type+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 case $target in 4139 *-*-aix*) 4140 llvm_cv_target_os_type="AIX" ;; 4141 *-*-irix*) 4142 llvm_cv_target_os_type="IRIX" ;; 4143 *-*-cygwin*) 4144 llvm_cv_target_os_type="Cygwin" ;; 4145 *-*-darwin*) 4146 llvm_cv_target_os_type="Darwin" ;; 4147 *-*-minix*) 4148 llvm_cv_target_os_type="Minix" ;; 4149 *-*-freebsd*) 4150 llvm_cv_target_os_type="FreeBSD" ;; 4151 *-*-kfreebsd-gnu) 4152 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 4153 *-*-openbsd*) 4154 llvm_cv_target_os_type="OpenBSD" ;; 4155 *-*-netbsd*) 4156 llvm_cv_target_os_type="NetBSD" ;; 4157 *-*-dragonfly*) 4158 llvm_cv_target_os_type="DragonFly" ;; 4159 *-*-bitrig*) 4160 llvm_cv_target_os_type="Bitrig" ;; 4161 *-*-hpux*) 4162 llvm_cv_target_os_type="HP-UX" ;; 4163 *-*-interix*) 4164 llvm_cv_target_os_type="Interix" ;; 4165 *-*-linux*) 4166 llvm_cv_target_os_type="Linux" ;; 4167 *-*-gnu*) 4168 llvm_cv_target_os_type="GNU" ;; 4169 *-*-solaris*) 4170 llvm_cv_target_os_type="SunOS" ;; 4171 *-*-win32*) 4172 llvm_cv_target_os_type="Win32" ;; 4173 *-*-mingw*) 4174 llvm_cv_target_os_type="MingW" ;; 4175 *-*-haiku*) 4176 llvm_cv_target_os_type="Haiku" ;; 4177 *-*-rtems*) 4178 llvm_cv_target_os_type="RTEMS" ;; 4179 *-*-nacl*) 4180 llvm_cv_target_os_type="NativeClient" ;; 4181 *-unknown-eabi*) 4182 llvm_cv_target_os_type="Freestanding" ;; 4183 *-*-ps4) 4184 llvm_cv_target_os_type="PS4" ;; 4185 *) 4186 llvm_cv_target_os_type="Unknown" ;; 4187esac 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5 4190$as_echo "$llvm_cv_target_os_type" >&6; } 4191 4192if test "$llvm_cv_os_type" = "Unknown" ; then 4193 as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5 4194fi 4195 4196OS=$llvm_cv_os_type 4197 4198HOST_OS=$llvm_cv_os_type 4199 4200TARGET_OS=$llvm_cv_target_os_type 4201 4202 4203LINKALL=$llvm_cv_link_all_option 4204 4205NOLINKALL=$llvm_cv_no_link_all_option 4206 4207 4208case $llvm_cv_platform_type in 4209 Unix) 4210 4211$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h 4212 4213 LLVM_ON_UNIX=1 4214 4215 LLVM_ON_WIN32=0 4216 4217 ;; 4218 Win32) 4219 4220$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h 4221 4222 LLVM_ON_UNIX=0 4223 4224 LLVM_ON_WIN32=1 4225 4226 ;; 4227esac 4228 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5 4230$as_echo_n "checking target architecture... " >&6; } 4231if ${llvm_cv_target_arch+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 case $target in 4235 i?86-*) llvm_cv_target_arch="x86" ;; 4236 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4237 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4238 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4239 arm64*-*) llvm_cv_target_arch="AArch64" ;; 4240 arm*-*) llvm_cv_target_arch="ARM" ;; 4241 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4242 avr-*) llvm_cv_target_arch="AVR" ;; 4243 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4244 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4245 xcore-*) llvm_cv_target_arch="XCore" ;; 4246 msp430-*) llvm_cv_target_arch="MSP430" ;; 4247 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4248 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4249 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4250 wasm*-*) llvm_cv_target_arch="WebAssembly" ;; 4251 *) llvm_cv_target_arch="Unknown" ;; 4252esac 4253fi 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5 4255$as_echo "$llvm_cv_target_arch" >&6; } 4256 4257if test "$llvm_cv_target_arch" = "Unknown" ; then 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5 4259$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4260fi 4261 4262case "$llvm_cv_target_arch" in 4263 x86) LLVM_NATIVE_ARCH="X86" ;; 4264 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4265 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4266esac 4267 4268ARCH=$llvm_cv_target_arch 4269 4270LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH 4271 4272 4273case $host in 4274 i?86-*) host_arch="x86" ;; 4275 amd64-* | x86_64-*) host_arch="x86_64" ;; 4276 sparc*-*) host_arch="Sparc" ;; 4277 powerpc*-*) host_arch="PowerPC" ;; 4278 arm64*-*) host_arch="AArch64" ;; 4279 arm*-*) host_arch="ARM" ;; 4280 aarch64*-*) host_arch="AArch64" ;; 4281 avr-*) host_arch="AVR" ;; 4282 mips-* | mips64-*) host_arch="Mips" ;; 4283 mipsel-* | mips64el-*) host_arch="Mips" ;; 4284 xcore-*) host_arch="XCore" ;; 4285 msp430-*) host_arch="MSP430" ;; 4286 hexagon-*) host_arch="Hexagon" ;; 4287 s390x-*) host_arch="SystemZ" ;; 4288 wasm*-*) host_arch="WebAssembly" ;; 4289 *) host_arch="Unknown" ;; 4290esac 4291 4292if test "$host_arch" = "Unknown" ; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown host archicture" >&5 4294$as_echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4295fi 4296 4297HOST_ARCH=$host_arch 4298 4299 4300if test "$cross_compiling" = yes; then 4301 LLVM_CROSS_COMPILING=1 4302 4303 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5 4305$as_echo_n "checking for executable suffix on build platform... " >&6; } 4306if ${ac_cv_build_exeext+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4310 ac_cv_build_exeext=.exe 4311else 4312 ac_build_prefix=${build_alias}- 4313 4314 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4315set dummy ${ac_build_prefix}gcc; ac_word=$2 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4317$as_echo_n "checking for $ac_word... " >&6; } 4318if ${ac_cv_prog_BUILD_CC+:} false; then : 4319 $as_echo_n "(cached) " >&6 4320else 4321 if test -n "$BUILD_CC"; then 4322 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4323else 4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4325for as_dir in $PATH 4326do 4327 IFS=$as_save_IFS 4328 test -z "$as_dir" && as_dir=. 4329 for ac_exec_ext in '' $ac_executable_extensions; do 4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4331 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4333 break 2 4334 fi 4335done 4336 done 4337IFS=$as_save_IFS 4338 4339fi 4340fi 4341BUILD_CC=$ac_cv_prog_BUILD_CC 4342if test -n "$BUILD_CC"; then 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4344$as_echo "$BUILD_CC" >&6; } 4345else 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4347$as_echo "no" >&6; } 4348fi 4349 4350 4351 if test -z "$BUILD_CC"; then 4352 # Extract the first word of "gcc", so it can be a program name with args. 4353set dummy gcc; ac_word=$2 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355$as_echo_n "checking for $ac_word... " >&6; } 4356if ${ac_cv_prog_BUILD_CC+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -n "$BUILD_CC"; then 4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4369 ac_cv_prog_BUILD_CC="gcc" 4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379BUILD_CC=$ac_cv_prog_BUILD_CC 4380if test -n "$BUILD_CC"; then 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4382$as_echo "$BUILD_CC" >&6; } 4383else 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4385$as_echo "no" >&6; } 4386fi 4387 4388 4389 if test -z "$BUILD_CC"; then 4390 # Extract the first word of "cc", so it can be a program name with args. 4391set dummy cc; ac_word=$2 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4393$as_echo_n "checking for $ac_word... " >&6; } 4394if ${ac_cv_prog_BUILD_CC+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if test -n "$BUILD_CC"; then 4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4399else 4400 ac_prog_rejected=no 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4409 ac_prog_rejected=yes 4410 continue 4411 fi 4412 ac_cv_prog_BUILD_CC="cc" 4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4414 break 2 4415 fi 4416done 4417 done 4418IFS=$as_save_IFS 4419 4420if test $ac_prog_rejected = yes; then 4421 # We found a bogon in the path, so make sure we never use it. 4422 set dummy $ac_cv_prog_BUILD_CC 4423 shift 4424 if test $# != 0; then 4425 # We chose a different compiler from the bogus one. 4426 # However, it has the same basename, so the bogon will be chosen 4427 # first if we set BUILD_CC to just the basename; use the full file name. 4428 shift 4429 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4430 fi 4431fi 4432fi 4433fi 4434BUILD_CC=$ac_cv_prog_BUILD_CC 4435if test -n "$BUILD_CC"; then 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4437$as_echo "$BUILD_CC" >&6; } 4438else 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4440$as_echo "no" >&6; } 4441fi 4442 4443 4444 fi 4445 fi 4446 test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 4447 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4448 rm -f conftest* 4449 echo 'int main () { return 0; }' > conftest.$ac_ext 4450 ac_cv_build_exeext= 4451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5 4452 (eval $ac_build_link) 2>&5 4453 ac_status=$? 4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4455 test $ac_status = 0; }; then 4456 for file in conftest.*; do 4457 case $file in 4458 *.c | *.o | *.obj | *.dSYM) ;; 4459 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4460 esac 4461 done 4462 else 4463 as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5 4464 fi 4465 rm -f conftest* 4466 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4467fi 4468fi 4469 4470BUILD_EXEEXT="" 4471test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5 4473$as_echo "${ac_cv_build_exeext}" >&6; } 4474ac_build_exeext=$BUILD_EXEEXT 4475 4476 ac_build_prefix=${build_alias}- 4477 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4478set dummy ${ac_build_prefix}g++; ac_word=$2 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4480$as_echo_n "checking for $ac_word... " >&6; } 4481if ${ac_cv_prog_BUILD_CXX+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -n "$BUILD_CXX"; then 4485 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4486else 4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4494 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4496 break 2 4497 fi 4498done 4499 done 4500IFS=$as_save_IFS 4501 4502fi 4503fi 4504BUILD_CXX=$ac_cv_prog_BUILD_CXX 4505if test -n "$BUILD_CXX"; then 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4507$as_echo "$BUILD_CXX" >&6; } 4508else 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4510$as_echo "no" >&6; } 4511fi 4512 4513 4514 if test -z "$BUILD_CXX"; then 4515 # Extract the first word of "g++", so it can be a program name with args. 4516set dummy g++; ac_word=$2 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518$as_echo_n "checking for $ac_word... " >&6; } 4519if ${ac_cv_prog_BUILD_CXX+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 if test -n "$BUILD_CXX"; then 4523 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4524else 4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526for as_dir in $PATH 4527do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4532 ac_cv_prog_BUILD_CXX="g++" 4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536done 4537 done 4538IFS=$as_save_IFS 4539 4540fi 4541fi 4542BUILD_CXX=$ac_cv_prog_BUILD_CXX 4543if test -n "$BUILD_CXX"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4545$as_echo "$BUILD_CXX" >&6; } 4546else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4548$as_echo "no" >&6; } 4549fi 4550 4551 4552 if test -z "$BUILD_CXX"; then 4553 # Extract the first word of "c++", so it can be a program name with args. 4554set dummy c++; ac_word=$2 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4556$as_echo_n "checking for $ac_word... " >&6; } 4557if ${ac_cv_prog_BUILD_CXX+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 if test -n "$BUILD_CXX"; then 4561 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4562else 4563 ac_prog_rejected=no 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4572 ac_prog_rejected=yes 4573 continue 4574 fi 4575 ac_cv_prog_BUILD_CXX="c++" 4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4577 break 2 4578 fi 4579done 4580 done 4581IFS=$as_save_IFS 4582 4583if test $ac_prog_rejected = yes; then 4584 # We found a bogon in the path, so make sure we never use it. 4585 set dummy $ac_cv_prog_BUILD_CXX 4586 shift 4587 if test $# != 0; then 4588 # We chose a different compiler from the bogus one. 4589 # However, it has the same basename, so the bogon will be chosen 4590 # first if we set BUILD_CXX to just the basename; use the full file name. 4591 shift 4592 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4593 fi 4594fi 4595fi 4596fi 4597BUILD_CXX=$ac_cv_prog_BUILD_CXX 4598if test -n "$BUILD_CXX"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4600$as_echo "$BUILD_CXX" >&6; } 4601else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603$as_echo "no" >&6; } 4604fi 4605 4606 4607 fi 4608 fi 4609else 4610 LLVM_CROSS_COMPILING=0 4611 4612fi 4613 4614if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4615 cvsbuild="yes" 4616 optimize="no" 4617 CVSBUILD=CVSBUILD=1 4618 4619else 4620 cvsbuild="no" 4621 optimize="yes" 4622fi 4623 4624 4625# Check whether --enable-libcpp was given. 4626if test "${enable_libcpp+set}" = set; then : 4627 enableval=$enable_libcpp; 4628else 4629 enableval=default 4630fi 4631 4632case "$enableval" in 4633 yes) ENABLE_LIBCPP=1 4634 ;; 4635 no) ENABLE_LIBCPP=0 4636 ;; 4637 default) ENABLE_LIBCPP=0 4638;; 4639 *) as_fn_error $? "Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4640esac 4641 4642# Check whether --enable-compiler-version-checks was given. 4643if test "${enable_compiler_version_checks+set}" = set; then : 4644 enableval=$enable_compiler_version_checks; 4645else 4646 enableval=default 4647fi 4648 4649case "$enableval" in 4650 no) 4651 ;; 4652 yes|default) 4653 ac_ext=cpp 4654ac_cpp='$CXXCPP $CPPFLAGS' 4655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4658 4659 case "$llvm_cv_cxx_compiler" in 4660 clang) 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5 4662$as_echo_n "checking whether Clang is new enough... " >&6; } 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665 4666#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) 4667#error This version of Clang is too old to build LLVM 4668#endif 4669 4670_ACEOF 4671if ac_fn_cxx_try_compile "$LINENO"; then : 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4673$as_echo "yes" >&6; } 4674else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676$as_echo "no" >&6; } 4677 as_fn_error $? " 4678The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4679Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4680bypass these sanity checks." "$LINENO" 5 4681fi 4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4683 4684 if test "$ENABLE_LIBCPP" -eq 0 ; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang will select a modern C++ standard library" >&5 4686$as_echo_n "checking whether Clang will select a modern C++ standard library... " >&6; } 4687 llvm_cv_old_cxxflags="$CXXFLAGS" 4688 CXXFLAGS="$CXXFLAGS -std=c++0x" 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692#include <atomic> 4693std::atomic<float> x(0.0f); 4694int main() { return (float)x; } 4695 4696_ACEOF 4697if ac_fn_cxx_try_link "$LINENO"; then : 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4699$as_echo "yes" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703 as_fn_error $? " 4704We detected a missing feature in the standard C++ library that was known to be 4705missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4706C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4707than 4.7. You will need to update your system and ensure Clang uses the newer 4708standard library. 4709 4710If this error is incorrect or you need to force things to work, you may pass 4711'--disable-compiler-version-checks' to configure to bypass this test." "$LINENO" 5 4712fi 4713rm -f core conftest.err conftest.$ac_objext \ 4714 conftest$ac_exeext conftest.$ac_ext 4715 CXXFLAGS="$llvm_cv_old_cxxflags" 4716 fi 4717 ;; 4718 gcc) 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is new enough" >&5 4720$as_echo_n "checking whether GCC is new enough... " >&6; } 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723 4724#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) 4725#error This version of GCC is too old to build LLVM 4726#endif 4727 4728_ACEOF 4729if ac_fn_cxx_try_compile "$LINENO"; then : 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4731$as_echo "yes" >&6; } 4732else 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4734$as_echo "no" >&6; } 4735 as_fn_error $? " 4736The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4737to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4738bypass these sanity checks." "$LINENO" 5 4739fi 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4741 ;; 4742 unknown) 4743 ;; 4744 esac 4745 ac_ext=c 4746ac_cpp='$CPP $CPPFLAGS' 4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4749ac_compiler_gnu=$ac_cv_c_compiler_gnu 4750 4751 ;; 4752 *) 4753 as_fn_error $? "Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" "$LINENO" 5 4754 ;; 4755esac 4756 4757# Check whether --enable-cxx1y was given. 4758if test "${enable_cxx1y+set}" = set; then : 4759 enableval=$enable_cxx1y; 4760else 4761 enableval=default 4762fi 4763 4764case "$enableval" in 4765 yes) ENABLE_CXX1Y=1 4766 ;; 4767 no) ENABLE_CXX1Y=0 4768 ;; 4769 default) ENABLE_CXX1Y=0 4770;; 4771 *) as_fn_error $? "Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4772esac 4773 4774# Check whether --enable-split-dwarf was given. 4775if test "${enable_split_dwarf+set}" = set; then : 4776 enableval=$enable_split_dwarf; 4777else 4778 enableval=default 4779fi 4780 4781case "$enableval" in 4782 yes) ENABLE_SPLIT_DWARF=1 4783 ;; 4784 no) ENABLE_SPLIT_DWARF=0 4785 ;; 4786 default) ENABLE_SPLIT_DWARF=0 4787;; 4788 *) as_fn_error $? "Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4789esac 4790 4791clang_arcmt="yes" 4792# Check whether --enable-clang-arcmt was given. 4793if test "${enable_clang_arcmt+set}" = set; then : 4794 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 4795else 4796 enableval="yes" 4797fi 4798 4799case "$enableval" in 4800 yes) ENABLE_CLANG_ARCMT=1 4801 ;; 4802 no) ENABLE_CLANG_ARCMT=0 4803 ;; 4804 default) ENABLE_CLANG_ARCMT=1 4805;; 4806 *) as_fn_error $? "Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4807esac 4808 4809clang_plugin_support="yes" 4810# Check whether --enable-clang-plugin-support was given. 4811if test "${enable_clang_plugin_support+set}" = set; then : 4812 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" 4813else 4814 enableval="yes" 4815fi 4816 4817case "$enableval" in 4818 yes) CLANG_PLUGIN_SUPPORT=1 4819 ;; 4820 no) CLANG_PLUGIN_SUPPORT=0 4821 ;; 4822 default) CLANG_PLUGIN_SUPPORT=1 4823;; 4824 *) as_fn_error $? "Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4825esac 4826 4827clang_static_analyzer="yes" 4828# Check whether --enable-clang-static-analyzer was given. 4829if test "${enable_clang_static_analyzer+set}" = set; then : 4830 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 4831else 4832 enableval="yes" 4833fi 4834 4835case "$enableval" in 4836 yes) ENABLE_CLANG_STATIC_ANALYZER=1 4837 ;; 4838 no) 4839 if test ${clang_arcmt} != "no" ; then 4840 as_fn_error $? "Cannot enable clang ARC Migration Tool while disabling static analyzer." "$LINENO" 5 4841 fi 4842 ENABLE_CLANG_STATIC_ANALYZER=0 4843 4844 ;; 4845 default) ENABLE_CLANG_STATIC_ANALYZER=1 4846;; 4847 *) as_fn_error $? "Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4848esac 4849 4850# Check whether --enable-optimized was given. 4851if test "${enable_optimized+set}" = set; then : 4852 enableval=$enable_optimized; 4853else 4854 enableval=$optimize 4855fi 4856 4857if test ${enableval} = "no" ; then 4858 ENABLE_OPTIMIZED= 4859 4860else 4861 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4862 4863fi 4864 4865# Check whether --enable-profiling was given. 4866if test "${enable_profiling+set}" = set; then : 4867 enableval=$enable_profiling; 4868else 4869 enableval="no" 4870fi 4871 4872if test ${enableval} = "no" ; then 4873 ENABLE_PROFILING= 4874 4875else 4876 ENABLE_PROFILING=ENABLE_PROFILING=1 4877 4878fi 4879 4880# Check whether --enable-assertions was given. 4881if test "${enable_assertions+set}" = set; then : 4882 enableval=$enable_assertions; 4883else 4884 enableval="yes" 4885fi 4886 4887if test ${enableval} = "yes" ; then 4888 DISABLE_ASSERTIONS= 4889 4890 assertions_enabled="yes" 4891else 4892 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4893 4894 assertions_enabled="no" 4895fi 4896 4897# Check whether --enable-werror was given. 4898if test "${enable_werror+set}" = set; then : 4899 enableval=$enable_werror; 4900else 4901 enableval="no" 4902fi 4903 4904case "$enableval" in 4905 yes) ENABLE_WERROR=1 4906 ;; 4907 no) ENABLE_WERROR=0 4908 ;; 4909 default) ENABLE_WERROR=0 4910;; 4911 *) as_fn_error $? "Invalid setting for --enable-werror. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4912esac 4913 4914# Check whether --enable-expensive-checks was given. 4915if test "${enable_expensive_checks+set}" = set; then : 4916 enableval=$enable_expensive_checks; 4917else 4918 enableval="no" 4919fi 4920 4921if test ${enableval} = "yes" ; then 4922 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4923 4924 EXPENSIVE_CHECKS=yes 4925 4926else 4927 ENABLE_EXPENSIVE_CHECKS= 4928 4929 EXPENSIVE_CHECKS=no 4930 4931fi 4932 4933# Check whether --enable-abi-breaking-checks was given. 4934if test "${enable_abi_breaking_checks+set}" = set; then : 4935 enableval=$enable_abi_breaking_checks; 4936else 4937 enableval="with-asserts" 4938fi 4939 4940case "$enableval" in 4941 with-asserts) if test ${assertions_enabled} = "yes" ; then 4942 ENABLE_ABI_BREAKING_CHECKS=1 4943 else 4944 ENABLE_ABI_BREAKING_CHECKS=0 4945 fi ;; 4946 yes) 4947 ENABLE_ABI_BREAKING_CHECKS=1 4948 ;; 4949 no) 4950 ENABLE_ABI_BREAKING_CHECKS=0 4951 ;; 4952 *) as_fn_error $? "Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" "$LINENO" 5 4953esac 4954ENABLE_ABI_BREAKING_CHECKS=$ENABLE_ABI_BREAKING_CHECKS 4955 4956 4957cat >>confdefs.h <<_ACEOF 4958#define LLVM_ENABLE_ABI_BREAKING_CHECKS $ENABLE_ABI_BREAKING_CHECKS 4959_ACEOF 4960 4961 4962# Check whether --enable-debug-runtime was given. 4963if test "${enable_debug_runtime+set}" = set; then : 4964 enableval=$enable_debug_runtime; 4965else 4966 enableval=no 4967fi 4968 4969if test ${enableval} = "no" ; then 4970 DEBUG_RUNTIME= 4971 4972else 4973 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4974 4975fi 4976 4977# Check whether --enable-debug-symbols was given. 4978if test "${enable_debug_symbols+set}" = set; then : 4979 enableval=$enable_debug_symbols; 4980else 4981 enableval=no 4982fi 4983 4984if test ${enableval} = "no" ; then 4985 DEBUG_SYMBOLS= 4986 4987else 4988 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4989 4990fi 4991 4992# Check whether --enable-keep-symbols was given. 4993if test "${enable_keep_symbols+set}" = set; then : 4994 enableval=$enable_keep_symbols; 4995else 4996 enableval=no 4997fi 4998 4999if test ${enableval} = "no" ; then 5000 KEEP_SYMBOLS= 5001 5002else 5003 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5004 5005fi 5006 5007# Check whether --enable-jit was given. 5008if test "${enable_jit+set}" = set; then : 5009 enableval=$enable_jit; 5010else 5011 enableval=default 5012fi 5013 5014if test ${enableval} = "no" 5015then 5016 JIT= 5017 5018else 5019 case "$llvm_cv_target_arch" in 5020 x86) TARGET_HAS_JIT=1 5021 ;; 5022 Sparc) TARGET_HAS_JIT=0 5023 ;; 5024 PowerPC) TARGET_HAS_JIT=1 5025 ;; 5026 x86_64) TARGET_HAS_JIT=1 5027 ;; 5028 ARM) TARGET_HAS_JIT=1 5029 ;; 5030 AVR) TARGET_HAS_JIT=0 5031 ;; 5032 Mips) TARGET_HAS_JIT=1 5033 ;; 5034 XCore) TARGET_HAS_JIT=0 5035 ;; 5036 MSP430) TARGET_HAS_JIT=0 5037 ;; 5038 Hexagon) TARGET_HAS_JIT=0 5039 ;; 5040 NVPTX) TARGET_HAS_JIT=0 5041 ;; 5042 SystemZ) TARGET_HAS_JIT=1 5043 ;; 5044 WebAssembly) TARGET_HAS_JIT=0 5045 ;; 5046 *) TARGET_HAS_JIT=0 5047 ;; 5048 esac 5049fi 5050 5051TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" 5052TARGETS_WITH_JIT=$TARGETS_WITH_JIT 5053 5054 5055# Check whether --enable-docs was given. 5056if test "${enable_docs+set}" = set; then : 5057 enableval=$enable_docs; 5058else 5059 enableval=default 5060fi 5061 5062case "$enableval" in 5063 yes) ENABLE_DOCS=1 5064 ;; 5065 no) ENABLE_DOCS=0 5066 ;; 5067 default) ENABLE_DOCS=1 5068 ;; 5069 *) as_fn_error $? "Invalid setting for --enable-docs. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5070esac 5071 5072# Check whether --enable-doxygen was given. 5073if test "${enable_doxygen+set}" = set; then : 5074 enableval=$enable_doxygen; 5075else 5076 enableval=default 5077fi 5078 5079case "$enableval" in 5080 yes) ENABLE_DOXYGEN=1 5081 ;; 5082 no|default) ENABLE_DOXYGEN=0 5083 ;; 5084 *) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5085esac 5086 5087# Check whether --enable-doxygen-search was given. 5088if test "${enable_doxygen_search+set}" = set; then : 5089 enableval=$enable_doxygen_search; 5090else 5091 enableval=default 5092fi 5093 5094ENABLE_DOXYGEN_SEARCH="$enableval" 5095 5096case "$enableval" in 5097 yes|no|default) ;; 5098 *) as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5099esac 5100 5101# Check whether --enable-doxygen-external-search was given. 5102if test "${enable_doxygen_external_search+set}" = set; then : 5103 enableval=$enable_doxygen_external_search; 5104else 5105 enableval=default 5106fi 5107 5108ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" 5109 5110case "$enableval" in 5111 yes) 5112 case "$ENABLE_DOXYGEN_SEARCH" in 5113 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; 5114 no) as_fn_error $? "The option --enable-doxygen-external-search requires --enable-doxygen-search" "$LINENO" 5 ;; 5115 esac 5116 ;; 5117 no|default) ;; 5118 *) as_fn_error $? "Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5119esac 5120 5121 5122# Check whether --with-doxygen-search-engine-url was given. 5123if test "${with_doxygen_search_engine_url+set}" = set; then : 5124 withval=$with_doxygen_search_engine_url; 5125fi 5126 5127WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" 5128 5129 5130# Check whether --with-doxygen-search-mappings was given. 5131if test "${with_doxygen_search_mappings+set}" = set; then : 5132 withval=$with_doxygen_search_mappings; 5133fi 5134 5135WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" 5136 5137case "$ENABLE_DOXYGEN_SEARCH" in 5138 yes) 5139 if test "$ENABLE_DOXYGEN" = "0" ; then 5140 as_fn_error $? "The option --enable-doxygen-search requires --enable-doxygen." "$LINENO" 5 5141 fi 5142 5143 enable_searchengine=YES 5144 5145 5146 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in 5147 yes) 5148 enable_external_search=YES 5149 5150 enable_server_based_search=YES 5151 5152 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL" 5153 5154 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS" 5155 5156 ;; 5157 5158 no|default) 5159 enable_external_search=NO 5160 5161 enable_server_based_search=NO 5162 5163 5164 5165 ;; 5166 esac 5167 ;; 5168 5169 no|default) 5170 enable_searchengine=NO 5171 5172 5173 enable_server_based_search=NO 5174 5175 enable_external_search=NO 5176 5177 5178 ;; 5179 5180 *) 5181 as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 5182 ;; 5183esac 5184 5185# Check whether --enable-doxygen-qt-help was given. 5186if test "${enable_doxygen_qt_help+set}" = set; then : 5187 enableval=$enable_doxygen_qt_help; 5188else 5189 enableval=default 5190fi 5191 5192case "$enableval" in 5193 yes) 5194 if test "$ENABLE_DOXYGEN" = "0" ; then 5195 as_fn_error $? "The option --enable-doxygen-qt-help requires --enable-doxygen." "$LINENO" 5 5196 fi 5197 5198 # Extract the first word of "qhelpgenerator", so it can be a program name with args. 5199set dummy qhelpgenerator; ac_word=$2 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5201$as_echo_n "checking for $ac_word... " >&6; } 5202if ${ac_cv_path_QHELPGENERATOR+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 case $QHELPGENERATOR in 5206 [\\/]* | ?:[\\/]*) 5207 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path. 5208 ;; 5209 *) 5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_exec_ext in '' $ac_executable_extensions; do 5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5217 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext" 5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5219 break 2 5220 fi 5221done 5222 done 5223IFS=$as_save_IFS 5224 5225 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator" 5226 ;; 5227esac 5228fi 5229QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR 5230if test -n "$QHELPGENERATOR"; then 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QHELPGENERATOR" >&5 5232$as_echo "$QHELPGENERATOR" >&6; } 5233else 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5235$as_echo "no" >&6; } 5236fi 5237 5238 5239 5240 llvm_doxygen_generate_qhp=YES 5241 5242 llvm_doxygen_qch_filename=org.llvm.qch 5243 5244 llvm_doxygen_qhp_namespace=org.llvm 5245 5246 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5247 5248 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING" 5249 5250 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION" 5251 5252 5253 clang_doxygen_generate_qhp=YES 5254 5255 clang_doxygen_qch_filename=org.llvm.clang.qch 5256 5257 clang_doxygen_qhp_namespace=org.llvm.clang 5258 5259 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5260 5261 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5262 5263 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5264 5265 ;; 5266 5267 no|default) 5268 llvm_doxygen_generate_qhp=NO 5269 5270 5271 5272 5273 5274 5275 5276 clang_doxygen_generate_qhp=NO 5277 5278 5279 5280 5281 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5282 5283 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5284 5285 ;; 5286 5287 *) 5288 as_fn_error $? "Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5289esac 5290 5291# Check whether --enable-threads was given. 5292if test "${enable_threads+set}" = set; then : 5293 enableval=$enable_threads; 5294else 5295 enableval=default 5296fi 5297 5298case "$enableval" in 5299 yes) LLVM_ENABLE_THREADS=1 5300 ;; 5301 no) LLVM_ENABLE_THREADS=0 5302 ;; 5303 default) LLVM_ENABLE_THREADS=1 5304 ;; 5305 *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5306esac 5307 5308cat >>confdefs.h <<_ACEOF 5309#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5310_ACEOF 5311 5312 5313# Check whether --enable-pthreads was given. 5314if test "${enable_pthreads+set}" = set; then : 5315 enableval=$enable_pthreads; 5316else 5317 enableval=default 5318fi 5319 5320case "$enableval" in 5321 yes) ENABLE_PTHREADS=1 5322 ;; 5323 no) ENABLE_PTHREADS=0 5324 ;; 5325 default) ENABLE_PTHREADS=1 5326 ;; 5327 *) as_fn_error $? "Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5328esac 5329 5330# Check whether --enable-zlib was given. 5331if test "${enable_zlib+set}" = set; then : 5332 enableval=$enable_zlib; 5333else 5334 enableval=default 5335fi 5336 5337case "$enableval" in 5338 yes) LLVM_ENABLE_ZLIB=1 5339 ;; 5340 no) LLVM_ENABLE_ZLIB=0 5341 ;; 5342 default) LLVM_ENABLE_ZLIB=1 5343 ;; 5344 *) as_fn_error $? "Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5345esac 5346 5347cat >>confdefs.h <<_ACEOF 5348#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5349_ACEOF 5350 5351 5352# Check whether --enable-shared was given. 5353if test "${enable_shared+set}" = set; then : 5354 enableval=$enable_shared; 5355else 5356 enableval=default 5357fi 5358 5359case "$enableval" in 5360 yes) ENABLE_SHARED=1 5361 ;; 5362 no) ENABLE_SHARED=0 5363 ;; 5364 default) ENABLE_SHARED=0 5365 ;; 5366 *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5367esac 5368 5369# Check whether --enable-embed-stdcxx was given. 5370if test "${enable_embed_stdcxx+set}" = set; then : 5371 enableval=$enable_embed_stdcxx; 5372else 5373 enableval=default 5374fi 5375 5376case "$enableval" in 5377 yes) ENABLE_EMBED_STDCXX=1 5378 ;; 5379 no) ENABLE_EMBED_STDCXX=0 5380 ;; 5381 default) ENABLE_EMBED_STDCXX=0 5382 ;; 5383 *) as_fn_error $? "Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5384esac 5385 5386# Check whether --enable-backtraces was given. 5387if test "${enable_backtraces+set}" = set; then : 5388 enableval=$enable_backtraces; case "$enableval" in 5389 yes) llvm_cv_enable_backtraces="yes" ;; 5390 no) llvm_cv_enable_backtraces="no" ;; 5391 *) as_fn_error $? "Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5392 esac 5393else 5394 llvm_cv_enable_backtraces="yes" 5395fi 5396 5397if test "$llvm_cv_enable_backtraces" = "yes" ; then 5398 5399$as_echo "#define ENABLE_BACKTRACES 1" >>confdefs.h 5400 5401fi 5402 5403# Check whether --enable-crash-overrides was given. 5404if test "${enable_crash_overrides+set}" = set; then : 5405 enableval=$enable_crash_overrides; case "$enableval" in 5406 yes) llvm_cv_enable_crash_overrides="yes" ;; 5407 no) llvm_cv_enable_crash_overrides="no" ;; 5408 *) as_fn_error $? "Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5409 esac 5410else 5411 llvm_cv_enable_crash_overrides="yes" 5412fi 5413 5414if test "$llvm_cv_enable_crash_overrides" = "yes" ; then 5415 5416$as_echo "#define ENABLE_CRASH_OVERRIDES 1" >>confdefs.h 5417 5418fi 5419 5420ALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore" 5421ALL_TARGETS=$ALL_TARGETS 5422 5423 5424TARGETS_TO_BUILD="" 5425# Check whether --enable-targets was given. 5426if test "${enable_targets+set}" = set; then : 5427 enableval=$enable_targets; 5428else 5429 enableval=all 5430fi 5431 5432if test "$enableval" = host-only ; then 5433 enableval=host 5434fi 5435case "$enableval" in 5436 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; 5437 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5438 case "$a_target" in 5439 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5440 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5441 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5442 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5443 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5444 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5445 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5446 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;; 5447 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5448 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5449 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5450 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5451 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5452 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5453 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5454 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5455 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5456 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5457 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5458 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5459 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5460 host) case "$llvm_cv_target_arch" in 5461 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5462 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5463 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5464 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5465 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5466 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5467 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5468 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5469 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5470 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5471 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5472 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5473 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5474 *) as_fn_error $? "Can not set target to build" "$LINENO" 5 ;; 5475 esac ;; 5476 *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;; 5477 esac 5478 done 5479 ;; 5480esac 5481 5482# Check whether --enable-experimental-targets was given. 5483if test "${enable_experimental_targets+set}" = set; then : 5484 enableval=$enable_experimental_targets; 5485else 5486 enableval=disable 5487fi 5488 5489 5490if test ${enableval} != "disable" 5491then 5492 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5493fi 5494 5495TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5496 5497 5498for a_target in $TARGETS_TO_BUILD; do 5499 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5500 5501cat >>confdefs.h <<_ACEOF 5502#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5503_ACEOF 5504 5505 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5506 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5507 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5508 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5509 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then 5510 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5511 fi 5512 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then 5513 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5514 fi 5515 5516cat >>confdefs.h <<_ACEOF 5517#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5518_ACEOF 5519 5520 5521cat >>confdefs.h <<_ACEOF 5522#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5523_ACEOF 5524 5525 5526cat >>confdefs.h <<_ACEOF 5527#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5528_ACEOF 5529 5530 5531cat >>confdefs.h <<_ACEOF 5532#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5533_ACEOF 5534 5535 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then 5536 5537cat >>confdefs.h <<_ACEOF 5538#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5539_ACEOF 5540 5541 fi 5542 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then 5543 5544cat >>confdefs.h <<_ACEOF 5545#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5546_ACEOF 5547 5548 fi 5549 fi 5550done 5551 5552LLVM_ENUM_TARGETS="" 5553LLVM_ENUM_ASM_PRINTERS="" 5554LLVM_ENUM_ASM_PARSERS="" 5555LLVM_ENUM_DISASSEMBLERS="" 5556for target_to_build in $TARGETS_TO_BUILD; do 5557 LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)" 5558 has_asm_printer=0 5559 for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do 5560 if test -f "$asm_printer"; then 5561 has_asm_printer=1 5562 fi 5563 done 5564 if test "$has_asm_printer" = 1; then 5565 LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)"; 5566 fi 5567 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then 5568 LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)"; 5569 fi 5570 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then 5571 LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)"; 5572 fi 5573done 5574LLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}" 5575LLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}" 5576LLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}" 5577LLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}" 5578 5579 5580 5581 5582 5583 5584# Check whether --with-optimize-option was given. 5585if test "${with_optimize_option+set}" = set; then : 5586 withval=$with_optimize_option; 5587else 5588 withval=default 5589fi 5590 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5 5592$as_echo_n "checking optimization flags... " >&6; } 5593case "$withval" in 5594 default) 5595 case "$llvm_cv_os_type" in 5596 FreeBSD) optimize_option=-O2 ;; 5597 MingW) optimize_option=-O2 ;; 5598 *) optimize_option=-O3 ;; 5599 esac ;; 5600 *) optimize_option="$withval" ;; 5601esac 5602OPTIMIZE_OPTION=$optimize_option 5603 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5 5605$as_echo "$optimize_option" >&6; } 5606 5607 5608# Check whether --with-extra-options was given. 5609if test "${with_extra_options+set}" = set; then : 5610 withval=$with_extra_options; 5611else 5612 withval=default 5613fi 5614 5615case "$withval" in 5616 default) EXTRA_OPTIONS= ;; 5617 *) EXTRA_OPTIONS=$withval ;; 5618esac 5619EXTRA_OPTIONS=$EXTRA_OPTIONS 5620 5621 5622 5623# Check whether --with-extra-ld-options was given. 5624if test "${with_extra_ld_options+set}" = set; then : 5625 withval=$with_extra_ld_options; 5626else 5627 withval=default 5628fi 5629 5630case "$withval" in 5631 default) EXTRA_LD_OPTIONS= ;; 5632 *) EXTRA_LD_OPTIONS=$withval ;; 5633esac 5634EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5635 5636 5637# Check whether --enable-bindings was given. 5638if test "${enable_bindings+set}" = set; then : 5639 enableval=$enable_bindings; 5640else 5641 enableval=default 5642fi 5643 5644BINDINGS_TO_BUILD="" 5645case "$enableval" in 5646 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5647 all ) BINDINGS_TO_BUILD="ocaml" ;; 5648 none | no) BINDINGS_TO_BUILD="" ;; 5649 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5650 case "$a_binding" in 5651 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5652 *) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;; 5653 esac 5654 done 5655 ;; 5656esac 5657 5658 5659# Check whether --with-ocaml-libdir was given. 5660if test "${with_ocaml_libdir+set}" = set; then : 5661 withval=$with_ocaml_libdir; 5662else 5663 withval=auto 5664fi 5665 5666case "$withval" in 5667 auto) with_ocaml_libdir="$withval" ;; 5668 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5669 *) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;; 5670esac 5671 5672 5673# Check whether --with-clang-srcdir was given. 5674if test "${with_clang_srcdir+set}" = set; then : 5675 withval=$with_clang_srcdir; 5676else 5677 withval="-" 5678fi 5679 5680case "$withval" in 5681 -) clang_src_root="" ;; 5682 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5683 *) clang_src_root="$ac_pwd/$withval" ;; 5684esac 5685CLANG_SRC_ROOT=$clang_src_root 5686 5687 5688 5689# Check whether --with-clang-resource-dir was given. 5690if test "${with_clang_resource_dir+set}" = set; then : 5691 withval=$with_clang_resource_dir; 5692else 5693 withval="" 5694fi 5695 5696 5697cat >>confdefs.h <<_ACEOF 5698#define CLANG_RESOURCE_DIR "$withval" 5699_ACEOF 5700 5701 5702 5703# Check whether --with-c-include-dirs was given. 5704if test "${with_c_include_dirs+set}" = set; then : 5705 withval=$with_c_include_dirs; 5706else 5707 withval="" 5708fi 5709 5710 5711cat >>confdefs.h <<_ACEOF 5712#define C_INCLUDE_DIRS "$withval" 5713_ACEOF 5714 5715 5716 5717# Check whether --with-clang-default-openmp-runtime was given. 5718if test "${with_clang_default_openmp_runtime+set}" = set; then : 5719 withval=$with_clang_default_openmp_runtime; 5720else 5721 withval="libomp" 5722fi 5723 5724 5725 5726cat >>confdefs.h <<_ACEOF 5727#define CLANG_ENABLE_ARCMT 1 5728_ACEOF 5729 5730 5731cat >>confdefs.h <<_ACEOF 5732#define CLANG_ENABLE_OBJC_REWRITER 1 5733_ACEOF 5734 5735 5736cat >>confdefs.h <<_ACEOF 5737#define CLANG_ENABLE_STATIC_ANALYZER 1 5738_ACEOF 5739 5740 5741 5742cat >>confdefs.h <<_ACEOF 5743#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0 5744_ACEOF 5745 5746 5747cat >>confdefs.h <<_ACEOF 5748#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35" 5749_ACEOF 5750 5751 5752 5753cat >>confdefs.h <<_ACEOF 5754#define ENABLE_X86_RELAX_RELOCATIONS 0 5755_ACEOF 5756 5757 5758cat >>confdefs.h <<_ACEOF 5759#define CLANG_DEFAULT_CXX_STDLIB "" 5760_ACEOF 5761 5762 5763cat >>confdefs.h <<_ACEOF 5764#define CLANG_DEFAULT_LINKER "" 5765_ACEOF 5766 5767 5768cat >>confdefs.h <<_ACEOF 5769#define CLANG_DEFAULT_OBJCOPY "objcopy" 5770_ACEOF 5771 5772 5773cat >>confdefs.h <<_ACEOF 5774#define CLANG_DEFAULT_RTLIB "" 5775_ACEOF 5776 5777 5778cat >>confdefs.h <<_ACEOF 5779#define CLANG_DEFAULT_UNWINDLIB "none" 5780_ACEOF 5781 5782 5783cat >>confdefs.h <<_ACEOF 5784#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp" 5785_ACEOF 5786 5787 5788cat >>confdefs.h <<_ACEOF 5789#define CLANG_LIBDIR_SUFFIX "" 5790_ACEOF 5791 5792 5793cat >>confdefs.h <<_ACEOF 5794#define DEFAULT_SYSROOT "" 5795_ACEOF 5796 5797 5798cat >>confdefs.h <<_ACEOF 5799#define GCC_INSTALL_PREFIX "" 5800_ACEOF 5801 5802 5803 5804# Check whether --with-binutils-include was given. 5805if test "${with_binutils_include+set}" = set; then : 5806 withval=$with_binutils_include; 5807else 5808 withval=default 5809fi 5810 5811case "$withval" in 5812 default) WITH_BINUTILS_INCDIR=default ;; 5813 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5814 *) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;; 5815esac 5816if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5817 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5818 5819 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5820 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5821 as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5; 5822 fi 5823fi 5824 5825 5826# Check whether --with-bug-report-url was given. 5827if test "${with_bug_report_url+set}" = set; then : 5828 withval=$with_bug_report_url; 5829else 5830 withval="http://llvm.org/bugs/" 5831fi 5832 5833 5834cat >>confdefs.h <<_ACEOF 5835#define BUG_REPORT_URL "$withval" 5836_ACEOF 5837 5838 5839# Check whether --enable-terminfo was given. 5840if test "${enable_terminfo+set}" = set; then : 5841 enableval=$enable_terminfo; case "$enableval" in 5842 yes) llvm_cv_enable_terminfo="yes" ;; 5843 no) llvm_cv_enable_terminfo="no" ;; 5844 *) as_fn_error $? "Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5845 esac 5846else 5847 llvm_cv_enable_terminfo="yes" 5848fi 5849 5850case "$llvm_cv_enable_terminfo" in 5851 yes) ENABLE_TERMINFO=1 5852 ;; 5853 no) ENABLE_TERMINFO=0 5854 ;; 5855esac 5856 5857# Check whether --enable-libedit was given. 5858if test "${enable_libedit+set}" = set; then : 5859 enableval=$enable_libedit; case "$enableval" in 5860 yes) llvm_cv_enable_libedit="yes" ;; 5861 no) llvm_cv_enable_libedit="no" ;; 5862 *) as_fn_error $? "Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5863 esac 5864else 5865 llvm_cv_enable_libedit="yes" 5866fi 5867 5868 5869# Check whether --enable-libffi was given. 5870if test "${enable_libffi+set}" = set; then : 5871 enableval=$enable_libffi; case "$enableval" in 5872 yes) llvm_cv_enable_libffi="yes" ;; 5873 no) llvm_cv_enable_libffi="no" ;; 5874 *) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5875 esac 5876else 5877 llvm_cv_enable_libffi=no 5878fi 5879 5880 5881 5882# Check whether --with-internal-prefix was given. 5883if test "${with_internal_prefix+set}" = set; then : 5884 withval=$with_internal_prefix; 5885else 5886 withval="" 5887fi 5888 5889INTERNAL_PREFIX=$withval 5890 5891 5892 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 5894$as_echo_n "checking for GNU make... " >&6; } 5895if ${llvm_cv_gnu_make_command+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 llvm_cv_gnu_make_command='' 5899 for a in "$MAKE" make gmake gnumake ; do 5900 if test -z "$a" ; then continue ; fi ; 5901 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5902 then 5903 llvm_cv_gnu_make_command=$a ; 5904 break; 5905 fi 5906 done 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5 5909$as_echo "$llvm_cv_gnu_make_command" >&6; } 5910 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5911 ifGNUmake='' ; 5912 else 5913 ifGNUmake='#' ; 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 5915$as_echo "\"Not found\"" >&6; }; 5916 fi 5917 5918 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5920$as_echo_n "checking whether ln -s works... " >&6; } 5921LN_S=$as_ln_s 5922if test "$LN_S" = "ln -s"; then 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5924$as_echo "yes" >&6; } 5925else 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5927$as_echo "no, using $LN_S" >&6; } 5928fi 5929 5930# Extract the first word of "nm", so it can be a program name with args. 5931set dummy nm; ac_word=$2 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5933$as_echo_n "checking for $ac_word... " >&6; } 5934if ${ac_cv_path_NM+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 case $NM in 5938 [\\/]* | ?:[\\/]*) 5939 ac_cv_path_NM="$NM" # Let the user override the test with a path. 5940 ;; 5941 *) 5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5949 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954 done 5955IFS=$as_save_IFS 5956 5957 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" 5958 ;; 5959esac 5960fi 5961NM=$ac_cv_path_NM 5962if test -n "$NM"; then 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 5964$as_echo "$NM" >&6; } 5965else 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5967$as_echo "no" >&6; } 5968fi 5969 5970 5971# Extract the first word of "cmp", so it can be a program name with args. 5972set dummy cmp; ac_word=$2 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5974$as_echo_n "checking for $ac_word... " >&6; } 5975if ${ac_cv_path_CMP+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 case $CMP in 5979 [\\/]* | ?:[\\/]*) 5980 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5981 ;; 5982 *) 5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984for as_dir in $PATH 5985do 5986 IFS=$as_save_IFS 5987 test -z "$as_dir" && as_dir=. 5988 for ac_exec_ext in '' $ac_executable_extensions; do 5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5990 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5992 break 2 5993 fi 5994done 5995 done 5996IFS=$as_save_IFS 5997 5998 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5999 ;; 6000esac 6001fi 6002CMP=$ac_cv_path_CMP 6003if test -n "$CMP"; then 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6005$as_echo "$CMP" >&6; } 6006else 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6008$as_echo "no" >&6; } 6009fi 6010 6011 6012# Extract the first word of "cp", so it can be a program name with args. 6013set dummy cp; ac_word=$2 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6015$as_echo_n "checking for $ac_word... " >&6; } 6016if ${ac_cv_path_CP+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 case $CP in 6020 [\\/]* | ?:[\\/]*) 6021 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6022 ;; 6023 *) 6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025for as_dir in $PATH 6026do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_exec_ext in '' $ac_executable_extensions; do 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6031 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6033 break 2 6034 fi 6035done 6036 done 6037IFS=$as_save_IFS 6038 6039 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6040 ;; 6041esac 6042fi 6043CP=$ac_cv_path_CP 6044if test -n "$CP"; then 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6046$as_echo "$CP" >&6; } 6047else 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049$as_echo "no" >&6; } 6050fi 6051 6052 6053# Extract the first word of "date", so it can be a program name with args. 6054set dummy date; ac_word=$2 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if ${ac_cv_path_DATE+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 case $DATE in 6061 [\\/]* | ?:[\\/]*) 6062 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6063 ;; 6064 *) 6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6072 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077 done 6078IFS=$as_save_IFS 6079 6080 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6081 ;; 6082esac 6083fi 6084DATE=$ac_cv_path_DATE 6085if test -n "$DATE"; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6087$as_echo "$DATE" >&6; } 6088else 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6090$as_echo "no" >&6; } 6091fi 6092 6093 6094# Extract the first word of "find", so it can be a program name with args. 6095set dummy find; ac_word=$2 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if ${ac_cv_path_FIND+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 case $FIND in 6102 [\\/]* | ?:[\\/]*) 6103 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6104 ;; 6105 *) 6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6113 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6122 ;; 6123esac 6124fi 6125FIND=$ac_cv_path_FIND 6126if test -n "$FIND"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 6128$as_echo "$FIND" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134 6135# Extract the first word of "grep", so it can be a program name with args. 6136set dummy grep; ac_word=$2 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6138$as_echo_n "checking for $ac_word... " >&6; } 6139if ${ac_cv_path_GREP+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 case $GREP in 6143 [\\/]* | ?:[\\/]*) 6144 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6145 ;; 6146 *) 6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6148for as_dir in $PATH 6149do 6150 IFS=$as_save_IFS 6151 test -z "$as_dir" && as_dir=. 6152 for ac_exec_ext in '' $ac_executable_extensions; do 6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6154 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6156 break 2 6157 fi 6158done 6159 done 6160IFS=$as_save_IFS 6161 6162 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6163 ;; 6164esac 6165fi 6166GREP=$ac_cv_path_GREP 6167if test -n "$GREP"; then 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 6169$as_echo "$GREP" >&6; } 6170else 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6172$as_echo "no" >&6; } 6173fi 6174 6175 6176# Extract the first word of "mkdir", so it can be a program name with args. 6177set dummy mkdir; ac_word=$2 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6179$as_echo_n "checking for $ac_word... " >&6; } 6180if ${ac_cv_path_MKDIR+:} false; then : 6181 $as_echo_n "(cached) " >&6 6182else 6183 case $MKDIR in 6184 [\\/]* | ?:[\\/]*) 6185 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6186 ;; 6187 *) 6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6189for as_dir in $PATH 6190do 6191 IFS=$as_save_IFS 6192 test -z "$as_dir" && as_dir=. 6193 for ac_exec_ext in '' $ac_executable_extensions; do 6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6195 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6197 break 2 6198 fi 6199done 6200 done 6201IFS=$as_save_IFS 6202 6203 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6204 ;; 6205esac 6206fi 6207MKDIR=$ac_cv_path_MKDIR 6208if test -n "$MKDIR"; then 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 6210$as_echo "$MKDIR" >&6; } 6211else 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6213$as_echo "no" >&6; } 6214fi 6215 6216 6217# Extract the first word of "mv", so it can be a program name with args. 6218set dummy mv; ac_word=$2 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6220$as_echo_n "checking for $ac_word... " >&6; } 6221if ${ac_cv_path_MV+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 case $MV in 6225 [\\/]* | ?:[\\/]*) 6226 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6227 ;; 6228 *) 6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6245 ;; 6246esac 6247fi 6248MV=$ac_cv_path_MV 6249if test -n "$MV"; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 6251$as_echo "$MV" >&6; } 6252else 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6254$as_echo "no" >&6; } 6255fi 6256 6257 6258if test -n "$ac_tool_prefix"; then 6259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6260set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262$as_echo_n "checking for $ac_word... " >&6; } 6263if ${ac_cv_prog_RANLIB+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 if test -n "$RANLIB"; then 6267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6268else 6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280done 6281 done 6282IFS=$as_save_IFS 6283 6284fi 6285fi 6286RANLIB=$ac_cv_prog_RANLIB 6287if test -n "$RANLIB"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6289$as_echo "$RANLIB" >&6; } 6290else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292$as_echo "no" >&6; } 6293fi 6294 6295 6296fi 6297if test -z "$ac_cv_prog_RANLIB"; then 6298 ac_ct_RANLIB=$RANLIB 6299 # Extract the first word of "ranlib", so it can be a program name with args. 6300set dummy ranlib; ac_word=$2 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6302$as_echo_n "checking for $ac_word... " >&6; } 6303if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 if test -n "$ac_ct_RANLIB"; then 6307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6308else 6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6310for as_dir in $PATH 6311do 6312 IFS=$as_save_IFS 6313 test -z "$as_dir" && as_dir=. 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6316 ac_cv_prog_ac_ct_RANLIB="ranlib" 6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320done 6321 done 6322IFS=$as_save_IFS 6323 6324fi 6325fi 6326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6327if test -n "$ac_ct_RANLIB"; then 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6329$as_echo "$ac_ct_RANLIB" >&6; } 6330else 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332$as_echo "no" >&6; } 6333fi 6334 6335 if test "x$ac_ct_RANLIB" = x; then 6336 RANLIB=":" 6337 else 6338 case $cross_compiling:$ac_tool_warned in 6339yes:) 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6342ac_tool_warned=yes ;; 6343esac 6344 RANLIB=$ac_ct_RANLIB 6345 fi 6346else 6347 RANLIB="$ac_cv_prog_RANLIB" 6348fi 6349 6350if test -n "$ac_tool_prefix"; then 6351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6352set dummy ${ac_tool_prefix}ar; ac_word=$2 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6354$as_echo_n "checking for $ac_word... " >&6; } 6355if ${ac_cv_prog_AR+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 if test -n "$AR"; then 6359 ac_cv_prog_AR="$AR" # Let the user override the test. 6360else 6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362for as_dir in $PATH 6363do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6368 ac_cv_prog_AR="${ac_tool_prefix}ar" 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372done 6373 done 6374IFS=$as_save_IFS 6375 6376fi 6377fi 6378AR=$ac_cv_prog_AR 6379if test -n "$AR"; then 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6381$as_echo "$AR" >&6; } 6382else 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6384$as_echo "no" >&6; } 6385fi 6386 6387 6388fi 6389if test -z "$ac_cv_prog_AR"; then 6390 ac_ct_AR=$AR 6391 # Extract the first word of "ar", so it can be a program name with args. 6392set dummy ar; ac_word=$2 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394$as_echo_n "checking for $ac_word... " >&6; } 6395if ${ac_cv_prog_ac_ct_AR+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 if test -n "$ac_ct_AR"; then 6399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6400else 6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402for as_dir in $PATH 6403do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6408 ac_cv_prog_ac_ct_AR="ar" 6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413 done 6414IFS=$as_save_IFS 6415 6416fi 6417fi 6418ac_ct_AR=$ac_cv_prog_ac_ct_AR 6419if test -n "$ac_ct_AR"; then 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6421$as_echo "$ac_ct_AR" >&6; } 6422else 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424$as_echo "no" >&6; } 6425fi 6426 6427 if test "x$ac_ct_AR" = x; then 6428 AR="false" 6429 else 6430 case $cross_compiling:$ac_tool_warned in 6431yes:) 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6434ac_tool_warned=yes ;; 6435esac 6436 AR=$ac_ct_AR 6437 fi 6438else 6439 AR="$ac_cv_prog_AR" 6440fi 6441 6442# Extract the first word of "rm", so it can be a program name with args. 6443set dummy rm; ac_word=$2 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6445$as_echo_n "checking for $ac_word... " >&6; } 6446if ${ac_cv_path_RM+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 case $RM in 6450 [\\/]* | ?:[\\/]*) 6451 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6452 ;; 6453 *) 6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6461 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465done 6466 done 6467IFS=$as_save_IFS 6468 6469 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6470 ;; 6471esac 6472fi 6473RM=$ac_cv_path_RM 6474if test -n "$RM"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 6476$as_echo "$RM" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 6483# Extract the first word of "sed", so it can be a program name with args. 6484set dummy sed; ac_word=$2 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6486$as_echo_n "checking for $ac_word... " >&6; } 6487if ${ac_cv_path_SED+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 case $SED in 6491 [\\/]* | ?:[\\/]*) 6492 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6493 ;; 6494 *) 6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6502 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506done 6507 done 6508IFS=$as_save_IFS 6509 6510 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6511 ;; 6512esac 6513fi 6514SED=$ac_cv_path_SED 6515if test -n "$SED"; then 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 6517$as_echo "$SED" >&6; } 6518else 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6520$as_echo "no" >&6; } 6521fi 6522 6523 6524# Extract the first word of "tar", so it can be a program name with args. 6525set dummy tar; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_path_TAR+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 case $TAR in 6532 [\\/]* | ?:[\\/]*) 6533 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6534 ;; 6535 *) 6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6537for as_dir in $PATH 6538do 6539 IFS=$as_save_IFS 6540 test -z "$as_dir" && as_dir=. 6541 for ac_exec_ext in '' $ac_executable_extensions; do 6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6543 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6545 break 2 6546 fi 6547done 6548 done 6549IFS=$as_save_IFS 6550 6551 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6552 ;; 6553esac 6554fi 6555TAR=$ac_cv_path_TAR 6556if test -n "$TAR"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 6558$as_echo "$TAR" >&6; } 6559else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561$as_echo "no" >&6; } 6562fi 6563 6564 6565# Extract the first word of "pwd", so it can be a program name with args. 6566set dummy pwd; ac_word=$2 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568$as_echo_n "checking for $ac_word... " >&6; } 6569if ${ac_cv_path_BINPWD+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 case $BINPWD in 6573 [\\/]* | ?:[\\/]*) 6574 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6575 ;; 6576 *) 6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6578for as_dir in $PATH 6579do 6580 IFS=$as_save_IFS 6581 test -z "$as_dir" && as_dir=. 6582 for ac_exec_ext in '' $ac_executable_extensions; do 6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6584 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6586 break 2 6587 fi 6588done 6589 done 6590IFS=$as_save_IFS 6591 6592 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6593 ;; 6594esac 6595fi 6596BINPWD=$ac_cv_path_BINPWD 6597if test -n "$BINPWD"; then 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5 6599$as_echo "$BINPWD" >&6; } 6600else 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602$as_echo "no" >&6; } 6603fi 6604 6605 6606 6607# Extract the first word of "dot", so it can be a program name with args. 6608set dummy dot; ac_word=$2 6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6610$as_echo_n "checking for $ac_word... " >&6; } 6611if ${ac_cv_path_DOT+:} false; then : 6612 $as_echo_n "(cached) " >&6 6613else 6614 case $DOT in 6615 [\\/]* | ?:[\\/]*) 6616 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6617 ;; 6618 *) 6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6620for as_dir in $PATH 6621do 6622 IFS=$as_save_IFS 6623 test -z "$as_dir" && as_dir=. 6624 for ac_exec_ext in '' $ac_executable_extensions; do 6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6626 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6628 break 2 6629 fi 6630done 6631 done 6632IFS=$as_save_IFS 6633 6634 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6635 ;; 6636esac 6637fi 6638DOT=$ac_cv_path_DOT 6639if test -n "$DOT"; then 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 6641$as_echo "$DOT" >&6; } 6642else 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6644$as_echo "no" >&6; } 6645fi 6646 6647 6648if test "$DOT" != "echo dot" ; then 6649 if test "$llvm_cv_os_type" = "MingW" ; then 6650 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6651 fi 6652fi 6653 6654# Find a good install program. We prefer a C program (faster), 6655# so one script is as good as another. But avoid the broken or 6656# incompatible versions: 6657# SysV /etc/install, /usr/sbin/install 6658# SunOS /usr/etc/install 6659# IRIX /sbin/install 6660# AIX /bin/install 6661# AmigaOS /C/install, which installs bootblocks on floppy discs 6662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6663# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6665# OS/2's system install, which has a completely different semantic 6666# ./install, which can be erroneously created by make from ./install.sh. 6667# Reject install programs that cannot install multiple files. 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6669$as_echo_n "checking for a BSD-compatible install... " >&6; } 6670if test -z "$INSTALL"; then 6671if ${ac_cv_path_install+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 # Account for people who put trailing slashes in PATH elements. 6680case $as_dir/ in #(( 6681 ./ | .// | /[cC]/* | \ 6682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6683 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6684 /usr/ucb/* ) ;; 6685 *) 6686 # OSF1 and SCO ODT 3.0 have their own names for install. 6687 # Don't use installbsd from OSF since it installs stuff as root 6688 # by default. 6689 for ac_prog in ginstall scoinst install; do 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6692 if test $ac_prog = install && 6693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6694 # AIX install. It has an incompatible calling convention. 6695 : 6696 elif test $ac_prog = install && 6697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6698 # program-specific install script used by HP pwplus--don't use. 6699 : 6700 else 6701 rm -rf conftest.one conftest.two conftest.dir 6702 echo one > conftest.one 6703 echo two > conftest.two 6704 mkdir conftest.dir 6705 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6706 test -s conftest.one && test -s conftest.two && 6707 test -s conftest.dir/conftest.one && 6708 test -s conftest.dir/conftest.two 6709 then 6710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6711 break 3 6712 fi 6713 fi 6714 fi 6715 done 6716 done 6717 ;; 6718esac 6719 6720 done 6721IFS=$as_save_IFS 6722 6723rm -rf conftest.one conftest.two conftest.dir 6724 6725fi 6726 if test "${ac_cv_path_install+set}" = set; then 6727 INSTALL=$ac_cv_path_install 6728 else 6729 # As a last resort, use the slow shell script. Don't cache a 6730 # value for INSTALL within a source directory, because that will 6731 # break other packages using the cache if that directory is 6732 # removed, or if the value is a relative name. 6733 INSTALL=$ac_install_sh 6734 fi 6735fi 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6737$as_echo "$INSTALL" >&6; } 6738 6739# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6740# It thinks the first close brace ends the variable substitution. 6741test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6742 6743test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6744 6745test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6746 6747case "$INSTALL" in 6748 [\\/$]* | ?:[\\/]* ) ;; 6749 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6750esac 6751 6752# Extract the first word of "bzip2", so it can be a program name with args. 6753set dummy bzip2; ac_word=$2 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6755$as_echo_n "checking for $ac_word... " >&6; } 6756if ${ac_cv_path_BZIP2+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 case $BZIP2 in 6760 [\\/]* | ?:[\\/]*) 6761 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6762 ;; 6763 *) 6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6771 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776 done 6777IFS=$as_save_IFS 6778 6779 ;; 6780esac 6781fi 6782BZIP2=$ac_cv_path_BZIP2 6783if test -n "$BZIP2"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5 6785$as_echo "$BZIP2" >&6; } 6786else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6788$as_echo "no" >&6; } 6789fi 6790 6791 6792# Extract the first word of "cat", so it can be a program name with args. 6793set dummy cat; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_path_CAT+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 case $CAT in 6800 [\\/]* | ?:[\\/]*) 6801 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 6802 ;; 6803 *) 6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805for as_dir in $PATH 6806do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_exec_ext in '' $ac_executable_extensions; do 6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6811 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6813 break 2 6814 fi 6815done 6816 done 6817IFS=$as_save_IFS 6818 6819 ;; 6820esac 6821fi 6822CAT=$ac_cv_path_CAT 6823if test -n "$CAT"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 6825$as_echo "$CAT" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828$as_echo "no" >&6; } 6829fi 6830 6831 6832# Extract the first word of "doxygen", so it can be a program name with args. 6833set dummy doxygen; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_path_DOXYGEN+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 case $DOXYGEN in 6840 [\\/]* | ?:[\\/]*) 6841 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6842 ;; 6843 *) 6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6851 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859 ;; 6860esac 6861fi 6862DOXYGEN=$ac_cv_path_DOXYGEN 6863if test -n "$DOXYGEN"; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 6865$as_echo "$DOXYGEN" >&6; } 6866else 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6868$as_echo "no" >&6; } 6869fi 6870 6871 6872# Extract the first word of "groff", so it can be a program name with args. 6873set dummy groff; ac_word=$2 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6875$as_echo_n "checking for $ac_word... " >&6; } 6876if ${ac_cv_path_GROFF+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 case $GROFF in 6880 [\\/]* | ?:[\\/]*) 6881 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 6882 ;; 6883 *) 6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899 ;; 6900esac 6901fi 6902GROFF=$ac_cv_path_GROFF 6903if test -n "$GROFF"; then 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 6905$as_echo "$GROFF" >&6; } 6906else 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908$as_echo "no" >&6; } 6909fi 6910 6911 6912# Extract the first word of "gzip", so it can be a program name with args. 6913set dummy gzip; ac_word=$2 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6915$as_echo_n "checking for $ac_word... " >&6; } 6916if ${ac_cv_path_GZIPBIN+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 case $GZIPBIN in 6920 [\\/]* | ?:[\\/]*) 6921 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 6922 ;; 6923 *) 6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6931 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935done 6936 done 6937IFS=$as_save_IFS 6938 6939 ;; 6940esac 6941fi 6942GZIPBIN=$ac_cv_path_GZIPBIN 6943if test -n "$GZIPBIN"; then 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPBIN" >&5 6945$as_echo "$GZIPBIN" >&6; } 6946else 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6948$as_echo "no" >&6; } 6949fi 6950 6951 6952# Extract the first word of "pdfroff", so it can be a program name with args. 6953set dummy pdfroff; ac_word=$2 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6955$as_echo_n "checking for $ac_word... " >&6; } 6956if ${ac_cv_path_PDFROFF+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 case $PDFROFF in 6960 [\\/]* | ?:[\\/]*) 6961 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 6962 ;; 6963 *) 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965for as_dir in $PATH 6966do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6971 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975done 6976 done 6977IFS=$as_save_IFS 6978 6979 ;; 6980esac 6981fi 6982PDFROFF=$ac_cv_path_PDFROFF 6983if test -n "$PDFROFF"; then 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5 6985$as_echo "$PDFROFF" >&6; } 6986else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6988$as_echo "no" >&6; } 6989fi 6990 6991 6992# Extract the first word of "zip", so it can be a program name with args. 6993set dummy zip; ac_word=$2 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6995$as_echo_n "checking for $ac_word... " >&6; } 6996if ${ac_cv_path_ZIP+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 case $ZIP in 7000 [\\/]* | ?:[\\/]*) 7001 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7002 ;; 7003 *) 7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005for as_dir in $PATH 7006do 7007 IFS=$as_save_IFS 7008 test -z "$as_dir" && as_dir=. 7009 for ac_exec_ext in '' $ac_executable_extensions; do 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7011 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7013 break 2 7014 fi 7015done 7016 done 7017IFS=$as_save_IFS 7018 7019 ;; 7020esac 7021fi 7022ZIP=$ac_cv_path_ZIP 7023if test -n "$ZIP"; then 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 7025$as_echo "$ZIP" >&6; } 7026else 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7028$as_echo "no" >&6; } 7029fi 7030 7031 7032# Extract the first word of "go", so it can be a program name with args. 7033set dummy go; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_path_GO+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 case $GO in 7040 [\\/]* | ?:[\\/]*) 7041 ac_cv_path_GO="$GO" # Let the user override the test with a path. 7042 ;; 7043 *) 7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045for as_dir in $PATH 7046do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055done 7056 done 7057IFS=$as_save_IFS 7058 7059 ;; 7060esac 7061fi 7062GO=$ac_cv_path_GO 7063if test -n "$GO"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5 7065$as_echo "$GO" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 7072for ac_prog in ocamlfind 7073do 7074 # Extract the first word of "$ac_prog", so it can be a program name with args. 7075set dummy $ac_prog; ac_word=$2 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077$as_echo_n "checking for $ac_word... " >&6; } 7078if ${ac_cv_path_OCAMLFIND+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 case $OCAMLFIND in 7082 [\\/]* | ?:[\\/]*) 7083 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. 7084 ;; 7085 *) 7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101 ;; 7102esac 7103fi 7104OCAMLFIND=$ac_cv_path_OCAMLFIND 7105if test -n "$OCAMLFIND"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 7107$as_echo "$OCAMLFIND" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111fi 7112 7113 7114 test -n "$OCAMLFIND" && break 7115done 7116 7117for ac_prog in gas as 7118do 7119 # Extract the first word of "$ac_prog", so it can be a program name with args. 7120set dummy $ac_prog; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_path_GAS+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 case $GAS in 7127 [\\/]* | ?:[\\/]*) 7128 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7129 ;; 7130 *) 7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132for as_dir in $PATH 7133do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7138 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142done 7143 done 7144IFS=$as_save_IFS 7145 7146 ;; 7147esac 7148fi 7149GAS=$ac_cv_path_GAS 7150if test -n "$GAS"; then 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5 7152$as_echo "$GAS" >&6; } 7153else 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7155$as_echo "no" >&6; } 7156fi 7157 7158 7159 test -n "$GAS" && break 7160done 7161 7162 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5 7164$as_echo_n "checking for linker version... " >&6; } 7165if ${llvm_cv_link_version+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 7169 version_string="$(${LD:-ld} -v 2>&1 | head -1)" 7170 7171 # Check for ld64. 7172 if (echo "$version_string" | grep -q "ld64"); then 7173 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7174 else 7175 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7176 fi 7177 7178fi 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5 7180$as_echo "$llvm_cv_link_version" >&6; } 7181 7182cat >>confdefs.h <<_ACEOF 7183#define HOST_LINK_VERSION "$llvm_cv_link_version" 7184_ACEOF 7185 7186 7187 7188 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5 7190$as_echo_n "checking for compiler -Wl,--version-script option... " >&6; } 7191if ${llvm_cv_link_use_version_script+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 ac_ext=c 7195ac_cpp='$CPP $CPPFLAGS' 7196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7198ac_compiler_gnu=$ac_cv_c_compiler_gnu 7199 7200 oldcflags="$CFLAGS" 7201 7202 # The following code is from the autoconf manual, 7203 # "11.13: Limitations of Usual Tools". 7204 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7205 # Use mktemp if possible; otherwise fall back on mkdir, 7206 # with $RANDOM to make collisions less likely. 7207 : ${TMPDIR=/tmp} 7208 { 7209 tmp=` 7210 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7211 ` && 7212 test -n "$tmp" && test -d "$tmp" 7213 } || { 7214 tmp=$TMPDIR/foo$$-$RANDOM 7215 (umask 077 && mkdir "$tmp") 7216 } || exit $? 7217 7218 echo "{" > "$tmp/export.map" 7219 echo " global: main;" >> "$tmp/export.map" 7220 echo " local: *;" >> "$tmp/export.map" 7221 echo "};" >> "$tmp/export.map" 7222 7223 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226 7227int 7228main () 7229{ 7230 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235if ac_fn_c_try_link "$LINENO"; then : 7236 llvm_cv_link_use_version_script=yes 7237else 7238 llvm_cv_link_use_version_script=no 7239fi 7240rm -f core conftest.err conftest.$ac_objext \ 7241 conftest$ac_exeext conftest.$ac_ext 7242 rm "$tmp/export.map" 7243 rmdir "$tmp" 7244 CFLAGS="$oldcflags" 7245 ac_ext=c 7246ac_cpp='$CPP $CPPFLAGS' 7247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7249ac_compiler_gnu=$ac_cv_c_compiler_gnu 7250 7251 7252fi 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5 7254$as_echo "$llvm_cv_link_use_version_script" >&6; } 7255if test "$llvm_cv_link_use_version_script" = yes ; then 7256 HAVE_LINK_VERSION_SCRIPT=1 7257 7258 fi 7259 7260 7261 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7263$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7264if ${ac_cv_path_GREP+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 if test -z "$GREP"; then 7268 ac_path_GREP_found=false 7269 # Loop through the user's path and test for each of PROGNAME-LIST 7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7272do 7273 IFS=$as_save_IFS 7274 test -z "$as_dir" && as_dir=. 7275 for ac_prog in grep ggrep; do 7276 for ac_exec_ext in '' $ac_executable_extensions; do 7277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7278 as_fn_executable_p "$ac_path_GREP" || continue 7279# Check for GNU ac_path_GREP and select it if it is found. 7280 # Check for GNU $ac_path_GREP 7281case `"$ac_path_GREP" --version 2>&1` in 7282*GNU*) 7283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7284*) 7285 ac_count=0 7286 $as_echo_n 0123456789 >"conftest.in" 7287 while : 7288 do 7289 cat "conftest.in" "conftest.in" >"conftest.tmp" 7290 mv "conftest.tmp" "conftest.in" 7291 cp "conftest.in" "conftest.nl" 7292 $as_echo 'GREP' >> "conftest.nl" 7293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7295 as_fn_arith $ac_count + 1 && ac_count=$as_val 7296 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7297 # Best one so far, save it but keep looking for a better one 7298 ac_cv_path_GREP="$ac_path_GREP" 7299 ac_path_GREP_max=$ac_count 7300 fi 7301 # 10*(2^10) chars as input seems more than enough 7302 test $ac_count -gt 10 && break 7303 done 7304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7305esac 7306 7307 $ac_path_GREP_found && break 3 7308 done 7309 done 7310 done 7311IFS=$as_save_IFS 7312 if test -z "$ac_cv_path_GREP"; then 7313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7314 fi 7315else 7316 ac_cv_path_GREP=$GREP 7317fi 7318 7319fi 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7321$as_echo "$ac_cv_path_GREP" >&6; } 7322 GREP="$ac_cv_path_GREP" 7323 7324 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7326$as_echo_n "checking for egrep... " >&6; } 7327if ${ac_cv_path_EGREP+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7331 then ac_cv_path_EGREP="$GREP -E" 7332 else 7333 if test -z "$EGREP"; then 7334 ac_path_EGREP_found=false 7335 # Loop through the user's path and test for each of PROGNAME-LIST 7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7338do 7339 IFS=$as_save_IFS 7340 test -z "$as_dir" && as_dir=. 7341 for ac_prog in egrep; do 7342 for ac_exec_ext in '' $ac_executable_extensions; do 7343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7344 as_fn_executable_p "$ac_path_EGREP" || continue 7345# Check for GNU ac_path_EGREP and select it if it is found. 7346 # Check for GNU $ac_path_EGREP 7347case `"$ac_path_EGREP" --version 2>&1` in 7348*GNU*) 7349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7350*) 7351 ac_count=0 7352 $as_echo_n 0123456789 >"conftest.in" 7353 while : 7354 do 7355 cat "conftest.in" "conftest.in" >"conftest.tmp" 7356 mv "conftest.tmp" "conftest.in" 7357 cp "conftest.in" "conftest.nl" 7358 $as_echo 'EGREP' >> "conftest.nl" 7359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7361 as_fn_arith $ac_count + 1 && ac_count=$as_val 7362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7363 # Best one so far, save it but keep looking for a better one 7364 ac_cv_path_EGREP="$ac_path_EGREP" 7365 ac_path_EGREP_max=$ac_count 7366 fi 7367 # 10*(2^10) chars as input seems more than enough 7368 test $ac_count -gt 10 && break 7369 done 7370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7371esac 7372 7373 $ac_path_EGREP_found && break 3 7374 done 7375 done 7376 done 7377IFS=$as_save_IFS 7378 if test -z "$ac_cv_path_EGREP"; then 7379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7380 fi 7381else 7382 ac_cv_path_EGREP=$EGREP 7383fi 7384 7385 fi 7386fi 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7388$as_echo "$ac_cv_path_EGREP" >&6; } 7389 EGREP="$ac_cv_path_EGREP" 7390 7391 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7393$as_echo_n "checking for ANSI C header files... " >&6; } 7394if ${ac_cv_header_stdc+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398/* end confdefs.h. */ 7399#include <stdlib.h> 7400#include <stdarg.h> 7401#include <string.h> 7402#include <float.h> 7403 7404int 7405main () 7406{ 7407 7408 ; 7409 return 0; 7410} 7411_ACEOF 7412if ac_fn_c_try_compile "$LINENO"; then : 7413 ac_cv_header_stdc=yes 7414else 7415 ac_cv_header_stdc=no 7416fi 7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7418 7419if test $ac_cv_header_stdc = yes; then 7420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7422/* end confdefs.h. */ 7423#include <string.h> 7424 7425_ACEOF 7426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7427 $EGREP "memchr" >/dev/null 2>&1; then : 7428 7429else 7430 ac_cv_header_stdc=no 7431fi 7432rm -f conftest* 7433 7434fi 7435 7436if test $ac_cv_header_stdc = yes; then 7437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439/* end confdefs.h. */ 7440#include <stdlib.h> 7441 7442_ACEOF 7443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7444 $EGREP "free" >/dev/null 2>&1; then : 7445 7446else 7447 ac_cv_header_stdc=no 7448fi 7449rm -f conftest* 7450 7451fi 7452 7453if test $ac_cv_header_stdc = yes; then 7454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7455 if test "$cross_compiling" = yes; then : 7456 : 7457else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460#include <ctype.h> 7461#include <stdlib.h> 7462#if ((' ' & 0x0FF) == 0x020) 7463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7465#else 7466# define ISLOWER(c) \ 7467 (('a' <= (c) && (c) <= 'i') \ 7468 || ('j' <= (c) && (c) <= 'r') \ 7469 || ('s' <= (c) && (c) <= 'z')) 7470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7471#endif 7472 7473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7474int 7475main () 7476{ 7477 int i; 7478 for (i = 0; i < 256; i++) 7479 if (XOR (islower (i), ISLOWER (i)) 7480 || toupper (i) != TOUPPER (i)) 7481 return 2; 7482 return 0; 7483} 7484_ACEOF 7485if ac_fn_c_try_run "$LINENO"; then : 7486 7487else 7488 ac_cv_header_stdc=no 7489fi 7490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7491 conftest.$ac_objext conftest.beam conftest.$ac_ext 7492fi 7493 7494fi 7495fi 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7497$as_echo "$ac_cv_header_stdc" >&6; } 7498if test $ac_cv_header_stdc = yes; then 7499 7500$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7501 7502fi 7503 7504# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7505for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7506 inttypes.h stdint.h unistd.h 7507do : 7508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7509ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7510" 7511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7512 cat >>confdefs.h <<_ACEOF 7513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7514_ACEOF 7515 7516fi 7517 7518done 7519 7520 7521for ac_header in errno.h 7522do : 7523 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 7524if test "x$ac_cv_header_errno_h" = xyes; then : 7525 cat >>confdefs.h <<_ACEOF 7526#define HAVE_ERRNO_H 1 7527_ACEOF 7528 7529fi 7530 7531done 7532 7533 7534case "$llvm_cv_os_type" in 7535 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;; 7536 Darwin) llvm_shlib_ext=.dylib ;; 7537 *) llvm_shlib_ext=.so ;; 7538esac 7539 7540 7541cat >>confdefs.h <<_ACEOF 7542#define LTDL_SHLIB_EXT "$llvm_shlib_ext" 7543_ACEOF 7544 7545 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5 7547$as_echo_n "checking tool compatibility... " >&6; } 7548 7549ICC=no 7550IXX=no 7551case $CC in 7552 icc*|icpc*) 7553 ICC=yes 7554 IXX=yes 7555 ;; 7556 *) 7557 ;; 7558esac 7559 7560if test "$GCC" != "yes" && test "$ICC" != "yes" 7561then 7562 as_fn_error $? "gcc|icc required but not found" "$LINENO" 5 7563fi 7564 7565if test "$GXX" != "yes" && test "$IXX" != "yes" 7566then 7567 as_fn_error $? "g++|clang++|icc required but not found" "$LINENO" 5 7568fi 7569 7570if test "$GCC" = "yes" 7571then 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574 7575 7576 #if !defined(__GNUC__) || __GNUC__ < 3 7577 #error Unsupported GCC version 7578 #endif 7579 7580 7581_ACEOF 7582if ac_fn_c_try_compile "$LINENO"; then : 7583 7584else 7585 as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7588fi 7589 7590if test -z "$llvm_cv_gnu_make_command" 7591then 7592 as_fn_error $? "GNU Make required but not found" "$LINENO" 5 7593fi 7594 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7596$as_echo "ok" >&6; } 7597 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5 7599$as_echo_n "checking optional compiler flags... " >&6; } 7600case "$llvm_cv_cxx_compiler" in 7601 clang) 7602 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 7603 7604 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers` 7605 7606 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 7607 7608 ;; 7609 gcc) 7610 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 7611 7612 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 7613 7614 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 7615 7616 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 7617 7618 if test -z "$NO_MAYBE_UNINITIALIZED" 7619 then 7620 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 7621 7622 fi 7623 ;; 7624 unknown) 7625 ;; 7626esac 7627 7628no_comment= 7629llvm_cv_old_cxxflags="$CXXFLAGS" 7630CXXFLAGS="$CXXFLAGS -Wcomment -Werror" 7631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633 7634 // Comment \o\ 7635// Another comment 7636int main() { return 0; } 7637 7638 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO"; then : 7641 7642 no_comment=-Wno-comment 7643 7644fi 7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646NO_COMMENT=$no_comment 7647 7648CXXFLAGS="$llvm_cv_old_cxxflags" 7649 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5 7651$as_echo "$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; } 7652 7653 7654if test "$llvm_cv_os_type" = "MingW" ; then 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5 7656$as_echo_n "checking for main in -lpsapi... " >&6; } 7657if ${ac_cv_lib_psapi_main+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 ac_check_lib_save_LIBS=$LIBS 7661LIBS="-lpsapi $LIBS" 7662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664 7665 7666int 7667main () 7668{ 7669return main (); 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674if ac_fn_c_try_link "$LINENO"; then : 7675 ac_cv_lib_psapi_main=yes 7676else 7677 ac_cv_lib_psapi_main=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext \ 7680 conftest$ac_exeext conftest.$ac_ext 7681LIBS=$ac_check_lib_save_LIBS 7682fi 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5 7684$as_echo "$ac_cv_lib_psapi_main" >&6; } 7685if test "x$ac_cv_lib_psapi_main" = xyes; then : 7686 cat >>confdefs.h <<_ACEOF 7687#define HAVE_LIBPSAPI 1 7688_ACEOF 7689 7690 LIBS="-lpsapi $LIBS" 7691 7692fi 7693 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshell32" >&5 7695$as_echo_n "checking for main in -lshell32... " >&6; } 7696if ${ac_cv_lib_shell32_main+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 ac_check_lib_save_LIBS=$LIBS 7700LIBS="-lshell32 $LIBS" 7701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703 7704 7705int 7706main () 7707{ 7708return main (); 7709 ; 7710 return 0; 7711} 7712_ACEOF 7713if ac_fn_c_try_link "$LINENO"; then : 7714 ac_cv_lib_shell32_main=yes 7715else 7716 ac_cv_lib_shell32_main=no 7717fi 7718rm -f core conftest.err conftest.$ac_objext \ 7719 conftest$ac_exeext conftest.$ac_ext 7720LIBS=$ac_check_lib_save_LIBS 7721fi 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_main" >&5 7723$as_echo "$ac_cv_lib_shell32_main" >&6; } 7724if test "x$ac_cv_lib_shell32_main" = xyes; then : 7725 cat >>confdefs.h <<_ACEOF 7726#define HAVE_LIBSHELL32 1 7727_ACEOF 7728 7729 LIBS="-lshell32 $LIBS" 7730 7731fi 7732 7733fi 7734 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 7736$as_echo_n "checking for library containing dlopen... " >&6; } 7737if ${ac_cv_search_dlopen+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 ac_func_search_save_LIBS=$LIBS 7741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743 7744/* Override any GCC internal prototype to avoid an error. 7745 Use char because int might match the return type of a GCC 7746 builtin and then its argument prototype would still apply. */ 7747#ifdef __cplusplus 7748extern "C" 7749#endif 7750char dlopen (); 7751int 7752main () 7753{ 7754return dlopen (); 7755 ; 7756 return 0; 7757} 7758_ACEOF 7759for ac_lib in '' dl; do 7760 if test -z "$ac_lib"; then 7761 ac_res="none required" 7762 else 7763 ac_res=-l$ac_lib 7764 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7765 fi 7766 if ac_fn_c_try_link "$LINENO"; then : 7767 ac_cv_search_dlopen=$ac_res 7768fi 7769rm -f core conftest.err conftest.$ac_objext \ 7770 conftest$ac_exeext 7771 if ${ac_cv_search_dlopen+:} false; then : 7772 break 7773fi 7774done 7775if ${ac_cv_search_dlopen+:} false; then : 7776 7777else 7778 ac_cv_search_dlopen=no 7779fi 7780rm conftest.$ac_ext 7781LIBS=$ac_func_search_save_LIBS 7782fi 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 7784$as_echo "$ac_cv_search_dlopen" >&6; } 7785ac_res=$ac_cv_search_dlopen 7786if test "$ac_res" != no; then : 7787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7788 7789 7790$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 7791 7792HAVE_DLOPEN='1' 7793 7794 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5 7797$as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 7798fi 7799 7800 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7802$as_echo_n "checking for library containing clock_gettime... " >&6; } 7803if ${ac_cv_search_clock_gettime+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 ac_func_search_save_LIBS=$LIBS 7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809 7810/* Override any GCC internal prototype to avoid an error. 7811 Use char because int might match the return type of a GCC 7812 builtin and then its argument prototype would still apply. */ 7813#ifdef __cplusplus 7814extern "C" 7815#endif 7816char clock_gettime (); 7817int 7818main () 7819{ 7820return clock_gettime (); 7821 ; 7822 return 0; 7823} 7824_ACEOF 7825for ac_lib in '' rt; do 7826 if test -z "$ac_lib"; then 7827 ac_res="none required" 7828 else 7829 ac_res=-l$ac_lib 7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7831 fi 7832 if ac_fn_c_try_link "$LINENO"; then : 7833 ac_cv_search_clock_gettime=$ac_res 7834fi 7835rm -f core conftest.err conftest.$ac_objext \ 7836 conftest$ac_exeext 7837 if ${ac_cv_search_clock_gettime+:} false; then : 7838 break 7839fi 7840done 7841if ${ac_cv_search_clock_gettime+:} false; then : 7842 7843else 7844 ac_cv_search_clock_gettime=no 7845fi 7846rm conftest.$ac_ext 7847LIBS=$ac_func_search_save_LIBS 7848fi 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7850$as_echo "$ac_cv_search_clock_gettime" >&6; } 7851ac_res=$ac_cv_search_clock_gettime 7852if test "$ac_res" != no; then : 7853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7854 7855fi 7856 7857 7858if test "$llvm_cv_enable_terminfo" = "yes" ; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5 7860$as_echo_n "checking for library containing setupterm... " >&6; } 7861if ${ac_cv_search_setupterm+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 ac_func_search_save_LIBS=$LIBS 7865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867 7868/* Override any GCC internal prototype to avoid an error. 7869 Use char because int might match the return type of a GCC 7870 builtin and then its argument prototype would still apply. */ 7871#ifdef __cplusplus 7872extern "C" 7873#endif 7874char setupterm (); 7875int 7876main () 7877{ 7878return setupterm (); 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do 7884 if test -z "$ac_lib"; then 7885 ac_res="none required" 7886 else 7887 ac_res=-l$ac_lib 7888 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7889 fi 7890 if ac_fn_c_try_link "$LINENO"; then : 7891 ac_cv_search_setupterm=$ac_res 7892fi 7893rm -f core conftest.err conftest.$ac_objext \ 7894 conftest$ac_exeext 7895 if ${ac_cv_search_setupterm+:} false; then : 7896 break 7897fi 7898done 7899if ${ac_cv_search_setupterm+:} false; then : 7900 7901else 7902 ac_cv_search_setupterm=no 7903fi 7904rm conftest.$ac_ext 7905LIBS=$ac_func_search_save_LIBS 7906fi 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5 7908$as_echo "$ac_cv_search_setupterm" >&6; } 7909ac_res=$ac_cv_search_setupterm 7910if test "$ac_res" != no; then : 7911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7912 7913 7914$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h 7915 7916HAVE_TERMINFO='1' 7917 7918 7919fi 7920 7921fi 7922 7923if test "$llvm_cv_enable_libedit" = "yes" ; then 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing el_init" >&5 7925$as_echo_n "checking for library containing el_init... " >&6; } 7926if ${ac_cv_search_el_init+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 ac_func_search_save_LIBS=$LIBS 7930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7931/* end confdefs.h. */ 7932 7933/* Override any GCC internal prototype to avoid an error. 7934 Use char because int might match the return type of a GCC 7935 builtin and then its argument prototype would still apply. */ 7936#ifdef __cplusplus 7937extern "C" 7938#endif 7939char el_init (); 7940int 7941main () 7942{ 7943return el_init (); 7944 ; 7945 return 0; 7946} 7947_ACEOF 7948for ac_lib in '' edit; do 7949 if test -z "$ac_lib"; then 7950 ac_res="none required" 7951 else 7952 ac_res=-l$ac_lib 7953 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7954 fi 7955 if ac_fn_c_try_link "$LINENO"; then : 7956 ac_cv_search_el_init=$ac_res 7957fi 7958rm -f core conftest.err conftest.$ac_objext \ 7959 conftest$ac_exeext 7960 if ${ac_cv_search_el_init+:} false; then : 7961 break 7962fi 7963done 7964if ${ac_cv_search_el_init+:} false; then : 7965 7966else 7967 ac_cv_search_el_init=no 7968fi 7969rm conftest.$ac_ext 7970LIBS=$ac_func_search_save_LIBS 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_init" >&5 7973$as_echo "$ac_cv_search_el_init" >&6; } 7974ac_res=$ac_cv_search_el_init 7975if test "$ac_res" != no; then : 7976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7977 7978$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h 7979 7980fi 7981 7982fi 7983 7984if test "$llvm_cv_enable_libffi" = "yes" ; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 7986$as_echo_n "checking for library containing ffi_call... " >&6; } 7987if ${ac_cv_search_ffi_call+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 ac_func_search_save_LIBS=$LIBS 7991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993 7994/* Override any GCC internal prototype to avoid an error. 7995 Use char because int might match the return type of a GCC 7996 builtin and then its argument prototype would still apply. */ 7997#ifdef __cplusplus 7998extern "C" 7999#endif 8000char ffi_call (); 8001int 8002main () 8003{ 8004return ffi_call (); 8005 ; 8006 return 0; 8007} 8008_ACEOF 8009for ac_lib in '' ffi; do 8010 if test -z "$ac_lib"; then 8011 ac_res="none required" 8012 else 8013 ac_res=-l$ac_lib 8014 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8015 fi 8016 if ac_fn_c_try_link "$LINENO"; then : 8017 ac_cv_search_ffi_call=$ac_res 8018fi 8019rm -f core conftest.err conftest.$ac_objext \ 8020 conftest$ac_exeext 8021 if ${ac_cv_search_ffi_call+:} false; then : 8022 break 8023fi 8024done 8025if ${ac_cv_search_ffi_call+:} false; then : 8026 8027else 8028 ac_cv_search_ffi_call=no 8029fi 8030rm conftest.$ac_ext 8031LIBS=$ac_func_search_save_LIBS 8032fi 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 8034$as_echo "$ac_cv_search_ffi_call" >&6; } 8035ac_res=$ac_cv_search_ffi_call 8036if test "$ac_res" != no; then : 8037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8038 8039$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h 8040 8041else 8042 as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5 8043fi 8044 8045fi 8046 8047for ac_func in mallinfo mallctl 8048do : 8049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8050ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8051if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8052 cat >>confdefs.h <<_ACEOF 8053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8054_ACEOF 8055 8056fi 8057done 8058 8059 8060if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 8062$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 8063if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 ac_check_lib_save_LIBS=$LIBS 8067LIBS="-lpthread $LIBS" 8068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070 8071/* Override any GCC internal prototype to avoid an error. 8072 Use char because int might match the return type of a GCC 8073 builtin and then its argument prototype would still apply. */ 8074#ifdef __cplusplus 8075extern "C" 8076#endif 8077char pthread_mutex_init (); 8078int 8079main () 8080{ 8081return pthread_mutex_init (); 8082 ; 8083 return 0; 8084} 8085_ACEOF 8086if ac_fn_c_try_link "$LINENO"; then : 8087 ac_cv_lib_pthread_pthread_mutex_init=yes 8088else 8089 ac_cv_lib_pthread_pthread_mutex_init=no 8090fi 8091rm -f core conftest.err conftest.$ac_objext \ 8092 conftest$ac_exeext conftest.$ac_ext 8093LIBS=$ac_check_lib_save_LIBS 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 8096$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 8097if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 8098 cat >>confdefs.h <<_ACEOF 8099#define HAVE_LIBPTHREAD 1 8100_ACEOF 8101 8102 LIBS="-lpthread $LIBS" 8103 8104fi 8105 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 8107$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } 8108if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 ac_func_search_save_LIBS=$LIBS 8112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8113/* end confdefs.h. */ 8114 8115/* Override any GCC internal prototype to avoid an error. 8116 Use char because int might match the return type of a GCC 8117 builtin and then its argument prototype would still apply. */ 8118#ifdef __cplusplus 8119extern "C" 8120#endif 8121char pthread_mutex_lock (); 8122int 8123main () 8124{ 8125return pthread_mutex_lock (); 8126 ; 8127 return 0; 8128} 8129_ACEOF 8130for ac_lib in '' pthread; do 8131 if test -z "$ac_lib"; then 8132 ac_res="none required" 8133 else 8134 ac_res=-l$ac_lib 8135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8136 fi 8137 if ac_fn_c_try_link "$LINENO"; then : 8138 ac_cv_search_pthread_mutex_lock=$ac_res 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext 8142 if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8143 break 8144fi 8145done 8146if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8147 8148else 8149 ac_cv_search_pthread_mutex_lock=no 8150fi 8151rm conftest.$ac_ext 8152LIBS=$ac_func_search_save_LIBS 8153fi 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 8155$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } 8156ac_res=$ac_cv_search_pthread_mutex_lock 8157if test "$ac_res" != no; then : 8158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8159 8160$as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h 8161 8162fi 8163 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5 8165$as_echo_n "checking for library containing pthread_rwlock_init... " >&6; } 8166if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 ac_func_search_save_LIBS=$LIBS 8170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171/* end confdefs.h. */ 8172 8173/* Override any GCC internal prototype to avoid an error. 8174 Use char because int might match the return type of a GCC 8175 builtin and then its argument prototype would still apply. */ 8176#ifdef __cplusplus 8177extern "C" 8178#endif 8179char pthread_rwlock_init (); 8180int 8181main () 8182{ 8183return pthread_rwlock_init (); 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188for ac_lib in '' pthread; do 8189 if test -z "$ac_lib"; then 8190 ac_res="none required" 8191 else 8192 ac_res=-l$ac_lib 8193 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8194 fi 8195 if ac_fn_c_try_link "$LINENO"; then : 8196 ac_cv_search_pthread_rwlock_init=$ac_res 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext 8200 if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8201 break 8202fi 8203done 8204if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8205 8206else 8207 ac_cv_search_pthread_rwlock_init=no 8208fi 8209rm conftest.$ac_ext 8210LIBS=$ac_func_search_save_LIBS 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5 8213$as_echo "$ac_cv_search_pthread_rwlock_init" >&6; } 8214ac_res=$ac_cv_search_pthread_rwlock_init 8215if test "$ac_res" != no; then : 8216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8217 8218$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h 8219 8220fi 8221 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5 8223$as_echo_n "checking for library containing pthread_getspecific... " >&6; } 8224if ${ac_cv_search_pthread_getspecific+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226else 8227 ac_func_search_save_LIBS=$LIBS 8228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230 8231/* Override any GCC internal prototype to avoid an error. 8232 Use char because int might match the return type of a GCC 8233 builtin and then its argument prototype would still apply. */ 8234#ifdef __cplusplus 8235extern "C" 8236#endif 8237char pthread_getspecific (); 8238int 8239main () 8240{ 8241return pthread_getspecific (); 8242 ; 8243 return 0; 8244} 8245_ACEOF 8246for ac_lib in '' pthread; do 8247 if test -z "$ac_lib"; then 8248 ac_res="none required" 8249 else 8250 ac_res=-l$ac_lib 8251 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8252 fi 8253 if ac_fn_c_try_link "$LINENO"; then : 8254 ac_cv_search_pthread_getspecific=$ac_res 8255fi 8256rm -f core conftest.err conftest.$ac_objext \ 8257 conftest$ac_exeext 8258 if ${ac_cv_search_pthread_getspecific+:} false; then : 8259 break 8260fi 8261done 8262if ${ac_cv_search_pthread_getspecific+:} false; then : 8263 8264else 8265 ac_cv_search_pthread_getspecific=no 8266fi 8267rm conftest.$ac_ext 8268LIBS=$ac_func_search_save_LIBS 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5 8271$as_echo "$ac_cv_search_pthread_getspecific" >&6; } 8272ac_res=$ac_cv_search_pthread_getspecific 8273if test "$ac_res" != no; then : 8274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8275 8276$as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h 8277 8278fi 8279 8280fi 8281 8282if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 8284$as_echo_n "checking for compress2 in -lz... " >&6; } 8285if ${ac_cv_lib_z_compress2+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 ac_check_lib_save_LIBS=$LIBS 8289LIBS="-lz $LIBS" 8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292 8293/* Override any GCC internal prototype to avoid an error. 8294 Use char because int might match the return type of a GCC 8295 builtin and then its argument prototype would still apply. */ 8296#ifdef __cplusplus 8297extern "C" 8298#endif 8299char compress2 (); 8300int 8301main () 8302{ 8303return compress2 (); 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308if ac_fn_c_try_link "$LINENO"; then : 8309 ac_cv_lib_z_compress2=yes 8310else 8311 ac_cv_lib_z_compress2=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext \ 8314 conftest$ac_exeext conftest.$ac_ext 8315LIBS=$ac_check_lib_save_LIBS 8316fi 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 8318$as_echo "$ac_cv_lib_z_compress2" >&6; } 8319if test "x$ac_cv_lib_z_compress2" = xyes; then : 8320 cat >>confdefs.h <<_ACEOF 8321#define HAVE_LIBZ 1 8322_ACEOF 8323 8324 LIBS="-lz $LIBS" 8325 8326fi 8327 8328fi 8329 8330USE_OPROFILE=0 8331 8332# Check whether --with-oprofile was given. 8333if test "${with_oprofile+set}" = set; then : 8334 withval=$with_oprofile; 8335 case "$withval" in 8336 no) ;; 8337 *) 8338 USE_OPROFILE=1 8339 ;; 8340 esac 8341 case "$withval" in 8342 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 8343 no) llvm_cv_oppath= ;; 8344 *) llvm_cv_oppath="${withval}/lib/oprofile" 8345 CPPFLAGS="-I${withval}/include";; 8346 esac 8347 case $llvm_cv_os_type in 8348 Linux) 8349 if test -n "$llvm_cv_oppath" ; then 8350 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5 8352$as_echo_n "checking for library containing bfd_init... " >&6; } 8353if ${ac_cv_search_bfd_init+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 ac_func_search_save_LIBS=$LIBS 8357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359 8360/* Override any GCC internal prototype to avoid an error. 8361 Use char because int might match the return type of a GCC 8362 builtin and then its argument prototype would still apply. */ 8363#ifdef __cplusplus 8364extern "C" 8365#endif 8366char bfd_init (); 8367int 8368main () 8369{ 8370return bfd_init (); 8371 ; 8372 return 0; 8373} 8374_ACEOF 8375for ac_lib in '' bfd; do 8376 if test -z "$ac_lib"; then 8377 ac_res="none required" 8378 else 8379 ac_res=-l$ac_lib 8380 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8381 fi 8382 if ac_fn_c_try_link "$LINENO"; then : 8383 ac_cv_search_bfd_init=$ac_res 8384fi 8385rm -f core conftest.err conftest.$ac_objext \ 8386 conftest$ac_exeext 8387 if ${ac_cv_search_bfd_init+:} false; then : 8388 break 8389fi 8390done 8391if ${ac_cv_search_bfd_init+:} false; then : 8392 8393else 8394 ac_cv_search_bfd_init=no 8395fi 8396rm conftest.$ac_ext 8397LIBS=$ac_func_search_save_LIBS 8398fi 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5 8400$as_echo "$ac_cv_search_bfd_init" >&6; } 8401ac_res=$ac_cv_search_bfd_init 8402if test "$ac_res" != no; then : 8403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8404 8405fi 8406 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5 8408$as_echo_n "checking for library containing op_open_agent... " >&6; } 8409if ${ac_cv_search_op_open_agent+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411else 8412 ac_func_search_save_LIBS=$LIBS 8413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415 8416/* Override any GCC internal prototype to avoid an error. 8417 Use char because int might match the return type of a GCC 8418 builtin and then its argument prototype would still apply. */ 8419#ifdef __cplusplus 8420extern "C" 8421#endif 8422char op_open_agent (); 8423int 8424main () 8425{ 8426return op_open_agent (); 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431for ac_lib in '' opagent; do 8432 if test -z "$ac_lib"; then 8433 ac_res="none required" 8434 else 8435 ac_res=-l$ac_lib 8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8437 fi 8438 if ac_fn_c_try_link "$LINENO"; then : 8439 ac_cv_search_op_open_agent=$ac_res 8440fi 8441rm -f core conftest.err conftest.$ac_objext \ 8442 conftest$ac_exeext 8443 if ${ac_cv_search_op_open_agent+:} false; then : 8444 break 8445fi 8446done 8447if ${ac_cv_search_op_open_agent+:} false; then : 8448 8449else 8450 ac_cv_search_op_open_agent=no 8451fi 8452rm conftest.$ac_ext 8453LIBS=$ac_func_search_save_LIBS 8454fi 8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5 8456$as_echo "$ac_cv_search_op_open_agent" >&6; } 8457ac_res=$ac_cv_search_op_open_agent 8458if test "$ac_res" != no; then : 8459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8460 8461else 8462 8463 echo "Error! You need to have libopagent around." 8464 exit 1 8465 8466fi 8467 8468 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default" 8469if test "x$ac_cv_header_opagent_h" = xyes; then : 8470 8471else 8472 8473 echo "Error! You need to have opagent.h around." 8474 exit 1 8475 8476fi 8477 8478 8479 fi ;; 8480 *) 8481 as_fn_error $? "OProfile support is available on Linux only." "$LINENO" 5 ;; 8482 esac 8483 8484fi 8485 8486USE_OPROFILE=$USE_OPROFILE 8487 8488 8489cat >>confdefs.h <<_ACEOF 8490#define LLVM_USE_OPROFILE $USE_OPROFILE 8491_ACEOF 8492 8493 8494 8495# Check whether --with-intel-jitevents was given. 8496if test "${with_intel_jitevents+set}" = set; then : 8497 withval=$with_intel_jitevents; 8498 case "$withval" in 8499 yes) USE_INTEL_JITEVENTS=1 8500;; 8501 no) USE_INTEL_JITEVENTS=0 8502;; 8503 *) as_fn_error $? "Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" "$LINENO" 5;; 8504 esac 8505 8506 case $llvm_cv_os_type in 8507 Linux|Win32|Cygwin|MingW) ;; 8508 *) as_fn_error $? "Intel JIT API support is available on Linux and Windows only." "$LINENO" 5;; 8509 esac 8510 8511 case "$llvm_cv_target_arch" in 8512 x86|x86_64) ;; 8513 *) as_fn_error $? "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." "$LINENO" 5;; 8514 esac 8515 8516else 8517 8518 USE_INTEL_JITEVENTS=0 8519 8520 8521fi 8522 8523 8524cat >>confdefs.h <<_ACEOF 8525#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 8526_ACEOF 8527 8528 8529 8530ac_header_dirent=no 8531for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8532 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8534$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8535if eval \${$as_ac_Header+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540#include <sys/types.h> 8541#include <$ac_hdr> 8542 8543int 8544main () 8545{ 8546if ((DIR *) 0) 8547return 0; 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552if ac_fn_c_try_compile "$LINENO"; then : 8553 eval "$as_ac_Header=yes" 8554else 8555 eval "$as_ac_Header=no" 8556fi 8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8558fi 8559eval ac_res=\$$as_ac_Header 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8561$as_echo "$ac_res" >&6; } 8562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8563 cat >>confdefs.h <<_ACEOF 8564#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8565_ACEOF 8566 8567ac_header_dirent=$ac_hdr; break 8568fi 8569 8570done 8571# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8572if test $ac_header_dirent = dirent.h; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8574$as_echo_n "checking for library containing opendir... " >&6; } 8575if ${ac_cv_search_opendir+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 ac_func_search_save_LIBS=$LIBS 8579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581 8582/* Override any GCC internal prototype to avoid an error. 8583 Use char because int might match the return type of a GCC 8584 builtin and then its argument prototype would still apply. */ 8585#ifdef __cplusplus 8586extern "C" 8587#endif 8588char opendir (); 8589int 8590main () 8591{ 8592return opendir (); 8593 ; 8594 return 0; 8595} 8596_ACEOF 8597for ac_lib in '' dir; do 8598 if test -z "$ac_lib"; then 8599 ac_res="none required" 8600 else 8601 ac_res=-l$ac_lib 8602 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8603 fi 8604 if ac_fn_c_try_link "$LINENO"; then : 8605 ac_cv_search_opendir=$ac_res 8606fi 8607rm -f core conftest.err conftest.$ac_objext \ 8608 conftest$ac_exeext 8609 if ${ac_cv_search_opendir+:} false; then : 8610 break 8611fi 8612done 8613if ${ac_cv_search_opendir+:} false; then : 8614 8615else 8616 ac_cv_search_opendir=no 8617fi 8618rm conftest.$ac_ext 8619LIBS=$ac_func_search_save_LIBS 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8622$as_echo "$ac_cv_search_opendir" >&6; } 8623ac_res=$ac_cv_search_opendir 8624if test "$ac_res" != no; then : 8625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8626 8627fi 8628 8629else 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8631$as_echo_n "checking for library containing opendir... " >&6; } 8632if ${ac_cv_search_opendir+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 ac_func_search_save_LIBS=$LIBS 8636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637/* end confdefs.h. */ 8638 8639/* Override any GCC internal prototype to avoid an error. 8640 Use char because int might match the return type of a GCC 8641 builtin and then its argument prototype would still apply. */ 8642#ifdef __cplusplus 8643extern "C" 8644#endif 8645char opendir (); 8646int 8647main () 8648{ 8649return opendir (); 8650 ; 8651 return 0; 8652} 8653_ACEOF 8654for ac_lib in '' x; do 8655 if test -z "$ac_lib"; then 8656 ac_res="none required" 8657 else 8658 ac_res=-l$ac_lib 8659 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8660 fi 8661 if ac_fn_c_try_link "$LINENO"; then : 8662 ac_cv_search_opendir=$ac_res 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext 8666 if ${ac_cv_search_opendir+:} false; then : 8667 break 8668fi 8669done 8670if ${ac_cv_search_opendir+:} false; then : 8671 8672else 8673 ac_cv_search_opendir=no 8674fi 8675rm conftest.$ac_ext 8676LIBS=$ac_func_search_save_LIBS 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8679$as_echo "$ac_cv_search_opendir" >&6; } 8680ac_res=$ac_cv_search_opendir 8681if test "$ac_res" != no; then : 8682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8683 8684fi 8685 8686fi 8687 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 8689$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 8690if ${ac_cv_header_stat_broken+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695#include <sys/types.h> 8696#include <sys/stat.h> 8697 8698#if defined S_ISBLK && defined S_IFDIR 8699extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 8700#endif 8701 8702#if defined S_ISBLK && defined S_IFCHR 8703extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 8704#endif 8705 8706#if defined S_ISLNK && defined S_IFREG 8707extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 8708#endif 8709 8710#if defined S_ISSOCK && defined S_IFREG 8711extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 8712#endif 8713 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO"; then : 8716 ac_cv_header_stat_broken=no 8717else 8718 ac_cv_header_stat_broken=yes 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721fi 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 8723$as_echo "$ac_cv_header_stat_broken" >&6; } 8724if test $ac_cv_header_stat_broken = yes; then 8725 8726$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 8727 8728fi 8729 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8731$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8732if ${ac_cv_header_time+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736/* end confdefs.h. */ 8737#include <sys/types.h> 8738#include <sys/time.h> 8739#include <time.h> 8740 8741int 8742main () 8743{ 8744if ((struct tm *) 0) 8745return 0; 8746 ; 8747 return 0; 8748} 8749_ACEOF 8750if ac_fn_c_try_compile "$LINENO"; then : 8751 ac_cv_header_time=yes 8752else 8753 ac_cv_header_time=no 8754fi 8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8756fi 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8758$as_echo "$ac_cv_header_time" >&6; } 8759if test $ac_cv_header_time = yes; then 8760 8761$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8762 8763fi 8764 8765 8766for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 8767do : 8768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8769ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8771 cat >>confdefs.h <<_ACEOF 8772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8773_ACEOF 8774 8775fi 8776 8777done 8778 8779for ac_header in signal.h stdint.h termios.h unistd.h 8780do : 8781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8782ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8784 cat >>confdefs.h <<_ACEOF 8785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8786_ACEOF 8787 8788fi 8789 8790done 8791 8792for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 8793do : 8794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8795ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8797 cat >>confdefs.h <<_ACEOF 8798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8799_ACEOF 8800 8801fi 8802 8803done 8804 8805for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 8806do : 8807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8808ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8810 cat >>confdefs.h <<_ACEOF 8811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8812_ACEOF 8813 8814fi 8815 8816done 8817 8818for ac_header in valgrind/valgrind.h 8819do : 8820 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 8821if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 8822 cat >>confdefs.h <<_ACEOF 8823#define HAVE_VALGRIND_VALGRIND_H 1 8824_ACEOF 8825 8826fi 8827 8828done 8829 8830for ac_header in fenv.h 8831do : 8832 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 8833if test "x$ac_cv_header_fenv_h" = xyes; then : 8834 cat >>confdefs.h <<_ACEOF 8835#define HAVE_FENV_H 1 8836_ACEOF 8837 8838fi 8839 8840done 8841 8842ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "#include <stdlib.h> 8843" 8844if test "x$ac_cv_have_decl_arc4random" = xyes; then : 8845 ac_have_decl=1 8846else 8847 ac_have_decl=0 8848fi 8849 8850cat >>confdefs.h <<_ACEOF 8851#define HAVE_DECL_ARC4RANDOM $ac_have_decl 8852_ACEOF 8853 8854ac_fn_c_check_decl "$LINENO" "FE_ALL_EXCEPT" "ac_cv_have_decl_FE_ALL_EXCEPT" "#include <fenv.h> 8855" 8856if test "x$ac_cv_have_decl_FE_ALL_EXCEPT" = xyes; then : 8857 ac_have_decl=1 8858else 8859 ac_have_decl=0 8860fi 8861 8862cat >>confdefs.h <<_ACEOF 8863#define HAVE_DECL_FE_ALL_EXCEPT $ac_have_decl 8864_ACEOF 8865ac_fn_c_check_decl "$LINENO" "FE_INEXACT" "ac_cv_have_decl_FE_INEXACT" "#include <fenv.h> 8866" 8867if test "x$ac_cv_have_decl_FE_INEXACT" = xyes; then : 8868 ac_have_decl=1 8869else 8870 ac_have_decl=0 8871fi 8872 8873cat >>confdefs.h <<_ACEOF 8874#define HAVE_DECL_FE_INEXACT $ac_have_decl 8875_ACEOF 8876 8877if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 8878 for ac_header in pthread.h 8879do : 8880 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 8881if test "x$ac_cv_header_pthread_h" = xyes; then : 8882 cat >>confdefs.h <<_ACEOF 8883#define HAVE_PTHREAD_H 1 8884_ACEOF 8885 HAVE_PTHREAD=1 8886 8887else 8888 HAVE_PTHREAD=0 8889 8890fi 8891 8892done 8893 8894else 8895 HAVE_PTHREAD=0 8896 8897fi 8898if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 8899 for ac_header in zlib.h 8900do : 8901 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 8902if test "x$ac_cv_header_zlib_h" = xyes; then : 8903 cat >>confdefs.h <<_ACEOF 8904#define HAVE_ZLIB_H 1 8905_ACEOF 8906 HAVE_LIBZ=1 8907 8908else 8909 HAVE_LIBZ=0 8910 8911fi 8912 8913done 8914 8915else 8916 HAVE_LIBZ=0 8917 8918fi 8919 8920if test "$llvm_cv_enable_libffi" = "yes" ; then 8921 for ac_header in ffi.h ffi/ffi.h 8922do : 8923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8924ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8925if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8926 cat >>confdefs.h <<_ACEOF 8927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8928_ACEOF 8929 8930fi 8931 8932done 8933 8934fi 8935 8936for ac_header in CrashReporterClient.h 8937do : 8938 ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default" 8939if test "x$ac_cv_header_CrashReporterClient_h" = xyes; then : 8940 cat >>confdefs.h <<_ACEOF 8941#define HAVE_CRASHREPORTERCLIENT_H 1 8942_ACEOF 8943 8944fi 8945 8946done 8947 8948 8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __crashreporter_info__" >&5 8950$as_echo_n "checking __crashreporter_info__... " >&6; } 8951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952/* end confdefs.h. */ 8953 8954 8955 extern const char *__crashreporter_info__; 8956 int main() { 8957 __crashreporter_info__ = "test"; 8958 return 0; 8959 } 8960 8961 8962_ACEOF 8963if ac_fn_c_try_link "$LINENO"; then : 8964 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8966$as_echo "yes" >&6; } 8967 8968$as_echo "#define HAVE_CRASHREPORTER_INFO 1" >>confdefs.h 8969 8970 8971else 8972 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8974$as_echo "no" >&6; } 8975 8976$as_echo "#define HAVE_CRASHREPORTER_INFO 0" >>confdefs.h 8977 8978 8979fi 8980rm -f core conftest.err conftest.$ac_objext \ 8981 conftest$ac_exeext conftest.$ac_ext 8982 8983 8984$as_echo "#define HAVE_DIA_SDK 0" >>confdefs.h 8985 8986 8987 8988 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5 8990$as_echo_n "checking for HUGE_VAL sanity... " >&6; } 8991if ${ac_cv_huge_val_sanity+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 8995 ac_ext=cpp 8996ac_cpp='$CXXCPP $CPPFLAGS' 8997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9000 9001 ac_save_CXXFLAGS=$CXXFLAGS 9002 CXXFLAGS="$CXXFLAGS -pedantic" 9003 if test "$cross_compiling" = yes; then : 9004 ac_cv_huge_val_sanity=yes 9005else 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008#include <math.h> 9009int 9010main () 9011{ 9012double x = HUGE_VAL; return x != x; 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017if ac_fn_cxx_try_run "$LINENO"; then : 9018 ac_cv_huge_val_sanity=yes 9019else 9020 ac_cv_huge_val_sanity=no 9021fi 9022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9023 conftest.$ac_objext conftest.beam conftest.$ac_ext 9024fi 9025 9026 CXXFLAGS=$ac_save_CXXFLAGS 9027 ac_ext=c 9028ac_cpp='$CPP $CPPFLAGS' 9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9031ac_compiler_gnu=$ac_cv_c_compiler_gnu 9032 9033 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5 9036$as_echo "$ac_cv_huge_val_sanity" >&6; } 9037 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 9038 9039 9040ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 9041if test "x$ac_cv_type_pid_t" = xyes; then : 9042 9043else 9044 9045cat >>confdefs.h <<_ACEOF 9046#define pid_t int 9047_ACEOF 9048 9049fi 9050 9051ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 9052if test "x$ac_cv_type_size_t" = xyes; then : 9053 9054else 9055 9056cat >>confdefs.h <<_ACEOF 9057#define size_t unsigned int 9058_ACEOF 9059 9060fi 9061 9062 9063cat >>confdefs.h <<_ACEOF 9064#define RETSIGTYPE void 9065_ACEOF 9066 9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 9068$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 9069if ${ac_cv_struct_tm+:} false; then : 9070 $as_echo_n "(cached) " >&6 9071else 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074#include <sys/types.h> 9075#include <time.h> 9076 9077int 9078main () 9079{ 9080struct tm tm; 9081 int *p = &tm.tm_sec; 9082 return !p; 9083 ; 9084 return 0; 9085} 9086_ACEOF 9087if ac_fn_c_try_compile "$LINENO"; then : 9088 ac_cv_struct_tm=time.h 9089else 9090 ac_cv_struct_tm=sys/time.h 9091fi 9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9093fi 9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 9095$as_echo "$ac_cv_struct_tm" >&6; } 9096if test $ac_cv_struct_tm = sys/time.h; then 9097 9098$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 9099 9100fi 9101 9102ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 9103if test "x$ac_cv_type_int64_t" = xyes; then : 9104 9105cat >>confdefs.h <<_ACEOF 9106#define HAVE_INT64_T 1 9107_ACEOF 9108 9109 9110else 9111 as_fn_error $? "Type int64_t required but not found" "$LINENO" 5 9112fi 9113 9114ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 9115if test "x$ac_cv_type_uint64_t" = xyes; then : 9116 9117cat >>confdefs.h <<_ACEOF 9118#define HAVE_UINT64_T 1 9119_ACEOF 9120 9121 9122else 9123 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" 9124if test "x$ac_cv_type_u_int64_t" = xyes; then : 9125 9126cat >>confdefs.h <<_ACEOF 9127#define HAVE_U_INT64_T 1 9128_ACEOF 9129 9130 9131else 9132 as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5 9133fi 9134 9135fi 9136 9137 9138ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec.tv_nsec" "ac_cv_member_struct_stat_st_mtimensec_tv_nsec" "#include <sys/stat.h> 9139" 9140if test "x$ac_cv_member_struct_stat_st_mtimensec_tv_nsec" = xyes; then : 9141 9142cat >>confdefs.h <<_ACEOF 9143#define HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC 1 9144_ACEOF 9145 9146 9147fi 9148ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h> 9149" 9150if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 9151 9152cat >>confdefs.h <<_ACEOF 9153#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 9154_ACEOF 9155 9156 9157fi 9158 9159 9160 9161for ac_func in _Unwind_Backtrace backtrace getcwd 9162do : 9163 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9164ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9165if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9166 cat >>confdefs.h <<_ACEOF 9167#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9168_ACEOF 9169 9170fi 9171done 9172 9173for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 9174do : 9175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9176ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9177if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9178 cat >>confdefs.h <<_ACEOF 9179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9180_ACEOF 9181 9182fi 9183done 9184 9185for ac_func in isatty mkdtemp mkstemp 9186do : 9187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9188ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9189if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9190 cat >>confdefs.h <<_ACEOF 9191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9192_ACEOF 9193 9194fi 9195done 9196 9197for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 9198do : 9199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9200ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9201if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9202 cat >>confdefs.h <<_ACEOF 9203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9204_ACEOF 9205 9206fi 9207done 9208 9209for ac_func in strerror strerror_r setenv 9210do : 9211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9212ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9213if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9214 cat >>confdefs.h <<_ACEOF 9215#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9216_ACEOF 9217 9218fi 9219done 9220 9221for ac_func in strtoll sysconf malloc_zone_statistics 9222do : 9223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9224ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9225if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9226 cat >>confdefs.h <<_ACEOF 9227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9228_ACEOF 9229 9230fi 9231done 9232 9233for ac_func in sigaltstack writev posix_fallocate 9234do : 9235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9236ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9237if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9238 cat >>confdefs.h <<_ACEOF 9239#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9240_ACEOF 9241 9242fi 9243done 9244 9245for ac_func in futimes futimens _chsize_s 9246do : 9247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9249if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9250 cat >>confdefs.h <<_ACEOF 9251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9252_ACEOF 9253 9254fi 9255done 9256 9257 9258ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 9259if test "x$ac_cv_have_decl_arc4random" = xyes; then : 9260 ac_have_decl=1 9261else 9262 ac_have_decl=0 9263fi 9264 9265cat >>confdefs.h <<_ACEOF 9266#define HAVE_DECL_ARC4RANDOM $ac_have_decl 9267_ACEOF 9268 9269 9270ac_fn_c_check_decl "$LINENO" "strerror_s" "ac_cv_have_decl_strerror_s" "$ac_includes_default" 9271if test "x$ac_cv_have_decl_strerror_s" = xyes; then : 9272 ac_have_decl=1 9273else 9274 ac_have_decl=0 9275fi 9276 9277cat >>confdefs.h <<_ACEOF 9278#define HAVE_DECL_STRERROR_S $ac_have_decl 9279_ACEOF 9280 9281 9282if test "$llvm_cv_os_type" = "MingW" ; then 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _alloca in -lgcc" >&5 9284$as_echo_n "checking for _alloca in -lgcc... " >&6; } 9285if ${ac_cv_lib_gcc__alloca+:} false; then : 9286 $as_echo_n "(cached) " >&6 9287else 9288 ac_check_lib_save_LIBS=$LIBS 9289LIBS="-lgcc $LIBS" 9290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292 9293/* Override any GCC internal prototype to avoid an error. 9294 Use char because int might match the return type of a GCC 9295 builtin and then its argument prototype would still apply. */ 9296#ifdef __cplusplus 9297extern "C" 9298#endif 9299char _alloca (); 9300int 9301main () 9302{ 9303return _alloca (); 9304 ; 9305 return 0; 9306} 9307_ACEOF 9308if ac_fn_c_try_link "$LINENO"; then : 9309 ac_cv_lib_gcc__alloca=yes 9310else 9311 ac_cv_lib_gcc__alloca=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext \ 9314 conftest$ac_exeext conftest.$ac_ext 9315LIBS=$ac_check_lib_save_LIBS 9316fi 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__alloca" >&5 9318$as_echo "$ac_cv_lib_gcc__alloca" >&6; } 9319if test "x$ac_cv_lib_gcc__alloca" = xyes; then : 9320 9321$as_echo "#define HAVE__ALLOCA 1" >>confdefs.h 9322 9323fi 9324 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alloca in -lgcc" >&5 9326$as_echo_n "checking for __alloca in -lgcc... " >&6; } 9327if ${ac_cv_lib_gcc___alloca+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 ac_check_lib_save_LIBS=$LIBS 9331LIBS="-lgcc $LIBS" 9332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9333/* end confdefs.h. */ 9334 9335/* Override any GCC internal prototype to avoid an error. 9336 Use char because int might match the return type of a GCC 9337 builtin and then its argument prototype would still apply. */ 9338#ifdef __cplusplus 9339extern "C" 9340#endif 9341char __alloca (); 9342int 9343main () 9344{ 9345return __alloca (); 9346 ; 9347 return 0; 9348} 9349_ACEOF 9350if ac_fn_c_try_link "$LINENO"; then : 9351 ac_cv_lib_gcc___alloca=yes 9352else 9353 ac_cv_lib_gcc___alloca=no 9354fi 9355rm -f core conftest.err conftest.$ac_objext \ 9356 conftest$ac_exeext conftest.$ac_ext 9357LIBS=$ac_check_lib_save_LIBS 9358fi 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___alloca" >&5 9360$as_echo "$ac_cv_lib_gcc___alloca" >&6; } 9361if test "x$ac_cv_lib_gcc___alloca" = xyes; then : 9362 9363$as_echo "#define HAVE___ALLOCA 1" >>confdefs.h 9364 9365fi 9366 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk in -lgcc" >&5 9368$as_echo_n "checking for __chkstk in -lgcc... " >&6; } 9369if ${ac_cv_lib_gcc___chkstk+:} false; then : 9370 $as_echo_n "(cached) " >&6 9371else 9372 ac_check_lib_save_LIBS=$LIBS 9373LIBS="-lgcc $LIBS" 9374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9375/* end confdefs.h. */ 9376 9377/* Override any GCC internal prototype to avoid an error. 9378 Use char because int might match the return type of a GCC 9379 builtin and then its argument prototype would still apply. */ 9380#ifdef __cplusplus 9381extern "C" 9382#endif 9383char __chkstk (); 9384int 9385main () 9386{ 9387return __chkstk (); 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO"; then : 9393 ac_cv_lib_gcc___chkstk=yes 9394else 9395 ac_cv_lib_gcc___chkstk=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399LIBS=$ac_check_lib_save_LIBS 9400fi 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk" >&5 9402$as_echo "$ac_cv_lib_gcc___chkstk" >&6; } 9403if test "x$ac_cv_lib_gcc___chkstk" = xyes; then : 9404 9405$as_echo "#define HAVE___CHKSTK 1" >>confdefs.h 9406 9407fi 9408 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk_ms in -lgcc" >&5 9410$as_echo_n "checking for __chkstk_ms in -lgcc... " >&6; } 9411if ${ac_cv_lib_gcc___chkstk_ms+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 ac_check_lib_save_LIBS=$LIBS 9415LIBS="-lgcc $LIBS" 9416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418 9419/* Override any GCC internal prototype to avoid an error. 9420 Use char because int might match the return type of a GCC 9421 builtin and then its argument prototype would still apply. */ 9422#ifdef __cplusplus 9423extern "C" 9424#endif 9425char __chkstk_ms (); 9426int 9427main () 9428{ 9429return __chkstk_ms (); 9430 ; 9431 return 0; 9432} 9433_ACEOF 9434if ac_fn_c_try_link "$LINENO"; then : 9435 ac_cv_lib_gcc___chkstk_ms=yes 9436else 9437 ac_cv_lib_gcc___chkstk_ms=no 9438fi 9439rm -f core conftest.err conftest.$ac_objext \ 9440 conftest$ac_exeext conftest.$ac_ext 9441LIBS=$ac_check_lib_save_LIBS 9442fi 9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk_ms" >&5 9444$as_echo "$ac_cv_lib_gcc___chkstk_ms" >&6; } 9445if test "x$ac_cv_lib_gcc___chkstk_ms" = xyes; then : 9446 9447$as_echo "#define HAVE___CHKSTK_MS 1" >>confdefs.h 9448 9449fi 9450 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk in -lgcc" >&5 9452$as_echo_n "checking for ___chkstk in -lgcc... " >&6; } 9453if ${ac_cv_lib_gcc____chkstk+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 ac_check_lib_save_LIBS=$LIBS 9457LIBS="-lgcc $LIBS" 9458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460 9461/* Override any GCC internal prototype to avoid an error. 9462 Use char because int might match the return type of a GCC 9463 builtin and then its argument prototype would still apply. */ 9464#ifdef __cplusplus 9465extern "C" 9466#endif 9467char ___chkstk (); 9468int 9469main () 9470{ 9471return ___chkstk (); 9472 ; 9473 return 0; 9474} 9475_ACEOF 9476if ac_fn_c_try_link "$LINENO"; then : 9477 ac_cv_lib_gcc____chkstk=yes 9478else 9479 ac_cv_lib_gcc____chkstk=no 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483LIBS=$ac_check_lib_save_LIBS 9484fi 9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk" >&5 9486$as_echo "$ac_cv_lib_gcc____chkstk" >&6; } 9487if test "x$ac_cv_lib_gcc____chkstk" = xyes; then : 9488 9489$as_echo "#define HAVE____CHKSTK 1" >>confdefs.h 9490 9491fi 9492 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk_ms in -lgcc" >&5 9494$as_echo_n "checking for ___chkstk_ms in -lgcc... " >&6; } 9495if ${ac_cv_lib_gcc____chkstk_ms+:} false; then : 9496 $as_echo_n "(cached) " >&6 9497else 9498 ac_check_lib_save_LIBS=$LIBS 9499LIBS="-lgcc $LIBS" 9500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9501/* end confdefs.h. */ 9502 9503/* Override any GCC internal prototype to avoid an error. 9504 Use char because int might match the return type of a GCC 9505 builtin and then its argument prototype would still apply. */ 9506#ifdef __cplusplus 9507extern "C" 9508#endif 9509char ___chkstk_ms (); 9510int 9511main () 9512{ 9513return ___chkstk_ms (); 9514 ; 9515 return 0; 9516} 9517_ACEOF 9518if ac_fn_c_try_link "$LINENO"; then : 9519 ac_cv_lib_gcc____chkstk_ms=yes 9520else 9521 ac_cv_lib_gcc____chkstk_ms=no 9522fi 9523rm -f core conftest.err conftest.$ac_objext \ 9524 conftest$ac_exeext conftest.$ac_ext 9525LIBS=$ac_check_lib_save_LIBS 9526fi 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk_ms" >&5 9528$as_echo "$ac_cv_lib_gcc____chkstk_ms" >&6; } 9529if test "x$ac_cv_lib_gcc____chkstk_ms" = xyes; then : 9530 9531$as_echo "#define HAVE____CHKSTK_MS 1" >>confdefs.h 9532 9533fi 9534 9535 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashldi3 in -lgcc" >&5 9537$as_echo_n "checking for __ashldi3 in -lgcc... " >&6; } 9538if ${ac_cv_lib_gcc___ashldi3+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540else 9541 ac_check_lib_save_LIBS=$LIBS 9542LIBS="-lgcc $LIBS" 9543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9544/* end confdefs.h. */ 9545 9546/* Override any GCC internal prototype to avoid an error. 9547 Use char because int might match the return type of a GCC 9548 builtin and then its argument prototype would still apply. */ 9549#ifdef __cplusplus 9550extern "C" 9551#endif 9552char __ashldi3 (); 9553int 9554main () 9555{ 9556return __ashldi3 (); 9557 ; 9558 return 0; 9559} 9560_ACEOF 9561if ac_fn_c_try_link "$LINENO"; then : 9562 ac_cv_lib_gcc___ashldi3=yes 9563else 9564 ac_cv_lib_gcc___ashldi3=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568LIBS=$ac_check_lib_save_LIBS 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashldi3" >&5 9571$as_echo "$ac_cv_lib_gcc___ashldi3" >&6; } 9572if test "x$ac_cv_lib_gcc___ashldi3" = xyes; then : 9573 9574$as_echo "#define HAVE___ASHLDI3 1" >>confdefs.h 9575 9576fi 9577 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashrdi3 in -lgcc" >&5 9579$as_echo_n "checking for __ashrdi3 in -lgcc... " >&6; } 9580if ${ac_cv_lib_gcc___ashrdi3+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 ac_check_lib_save_LIBS=$LIBS 9584LIBS="-lgcc $LIBS" 9585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586/* end confdefs.h. */ 9587 9588/* Override any GCC internal prototype to avoid an error. 9589 Use char because int might match the return type of a GCC 9590 builtin and then its argument prototype would still apply. */ 9591#ifdef __cplusplus 9592extern "C" 9593#endif 9594char __ashrdi3 (); 9595int 9596main () 9597{ 9598return __ashrdi3 (); 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603if ac_fn_c_try_link "$LINENO"; then : 9604 ac_cv_lib_gcc___ashrdi3=yes 9605else 9606 ac_cv_lib_gcc___ashrdi3=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610LIBS=$ac_check_lib_save_LIBS 9611fi 9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashrdi3" >&5 9613$as_echo "$ac_cv_lib_gcc___ashrdi3" >&6; } 9614if test "x$ac_cv_lib_gcc___ashrdi3" = xyes; then : 9615 9616$as_echo "#define HAVE___ASHRDI3 1" >>confdefs.h 9617 9618fi 9619 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __divdi3 in -lgcc" >&5 9621$as_echo_n "checking for __divdi3 in -lgcc... " >&6; } 9622if ${ac_cv_lib_gcc___divdi3+:} false; then : 9623 $as_echo_n "(cached) " >&6 9624else 9625 ac_check_lib_save_LIBS=$LIBS 9626LIBS="-lgcc $LIBS" 9627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630/* Override any GCC internal prototype to avoid an error. 9631 Use char because int might match the return type of a GCC 9632 builtin and then its argument prototype would still apply. */ 9633#ifdef __cplusplus 9634extern "C" 9635#endif 9636char __divdi3 (); 9637int 9638main () 9639{ 9640return __divdi3 (); 9641 ; 9642 return 0; 9643} 9644_ACEOF 9645if ac_fn_c_try_link "$LINENO"; then : 9646 ac_cv_lib_gcc___divdi3=yes 9647else 9648 ac_cv_lib_gcc___divdi3=no 9649fi 9650rm -f core conftest.err conftest.$ac_objext \ 9651 conftest$ac_exeext conftest.$ac_ext 9652LIBS=$ac_check_lib_save_LIBS 9653fi 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___divdi3" >&5 9655$as_echo "$ac_cv_lib_gcc___divdi3" >&6; } 9656if test "x$ac_cv_lib_gcc___divdi3" = xyes; then : 9657 9658$as_echo "#define HAVE___DIVDI3 1" >>confdefs.h 9659 9660fi 9661 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixdfdi in -lgcc" >&5 9663$as_echo_n "checking for __fixdfdi in -lgcc... " >&6; } 9664if ${ac_cv_lib_gcc___fixdfdi+:} false; then : 9665 $as_echo_n "(cached) " >&6 9666else 9667 ac_check_lib_save_LIBS=$LIBS 9668LIBS="-lgcc $LIBS" 9669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670/* end confdefs.h. */ 9671 9672/* Override any GCC internal prototype to avoid an error. 9673 Use char because int might match the return type of a GCC 9674 builtin and then its argument prototype would still apply. */ 9675#ifdef __cplusplus 9676extern "C" 9677#endif 9678char __fixdfdi (); 9679int 9680main () 9681{ 9682return __fixdfdi (); 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687if ac_fn_c_try_link "$LINENO"; then : 9688 ac_cv_lib_gcc___fixdfdi=yes 9689else 9690 ac_cv_lib_gcc___fixdfdi=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext conftest.$ac_ext 9694LIBS=$ac_check_lib_save_LIBS 9695fi 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixdfdi" >&5 9697$as_echo "$ac_cv_lib_gcc___fixdfdi" >&6; } 9698if test "x$ac_cv_lib_gcc___fixdfdi" = xyes; then : 9699 9700$as_echo "#define HAVE___FIXDFDI 1" >>confdefs.h 9701 9702fi 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixsfdi in -lgcc" >&5 9705$as_echo_n "checking for __fixsfdi in -lgcc... " >&6; } 9706if ${ac_cv_lib_gcc___fixsfdi+:} false; then : 9707 $as_echo_n "(cached) " >&6 9708else 9709 ac_check_lib_save_LIBS=$LIBS 9710LIBS="-lgcc $LIBS" 9711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713 9714/* Override any GCC internal prototype to avoid an error. 9715 Use char because int might match the return type of a GCC 9716 builtin and then its argument prototype would still apply. */ 9717#ifdef __cplusplus 9718extern "C" 9719#endif 9720char __fixsfdi (); 9721int 9722main () 9723{ 9724return __fixsfdi (); 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729if ac_fn_c_try_link "$LINENO"; then : 9730 ac_cv_lib_gcc___fixsfdi=yes 9731else 9732 ac_cv_lib_gcc___fixsfdi=no 9733fi 9734rm -f core conftest.err conftest.$ac_objext \ 9735 conftest$ac_exeext conftest.$ac_ext 9736LIBS=$ac_check_lib_save_LIBS 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixsfdi" >&5 9739$as_echo "$ac_cv_lib_gcc___fixsfdi" >&6; } 9740if test "x$ac_cv_lib_gcc___fixsfdi" = xyes; then : 9741 9742$as_echo "#define HAVE___FIXSFDI 1" >>confdefs.h 9743 9744fi 9745 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __floatdidf in -lgcc" >&5 9747$as_echo_n "checking for __floatdidf in -lgcc... " >&6; } 9748if ${ac_cv_lib_gcc___floatdidf+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 ac_check_lib_save_LIBS=$LIBS 9752LIBS="-lgcc $LIBS" 9753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755 9756/* Override any GCC internal prototype to avoid an error. 9757 Use char because int might match the return type of a GCC 9758 builtin and then its argument prototype would still apply. */ 9759#ifdef __cplusplus 9760extern "C" 9761#endif 9762char __floatdidf (); 9763int 9764main () 9765{ 9766return __floatdidf (); 9767 ; 9768 return 0; 9769} 9770_ACEOF 9771if ac_fn_c_try_link "$LINENO"; then : 9772 ac_cv_lib_gcc___floatdidf=yes 9773else 9774 ac_cv_lib_gcc___floatdidf=no 9775fi 9776rm -f core conftest.err conftest.$ac_objext \ 9777 conftest$ac_exeext conftest.$ac_ext 9778LIBS=$ac_check_lib_save_LIBS 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___floatdidf" >&5 9781$as_echo "$ac_cv_lib_gcc___floatdidf" >&6; } 9782if test "x$ac_cv_lib_gcc___floatdidf" = xyes; then : 9783 9784$as_echo "#define HAVE___FLOATDIDF 1" >>confdefs.h 9785 9786fi 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __lshrdi3 in -lgcc" >&5 9789$as_echo_n "checking for __lshrdi3 in -lgcc... " >&6; } 9790if ${ac_cv_lib_gcc___lshrdi3+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 ac_check_lib_save_LIBS=$LIBS 9794LIBS="-lgcc $LIBS" 9795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797 9798/* Override any GCC internal prototype to avoid an error. 9799 Use char because int might match the return type of a GCC 9800 builtin and then its argument prototype would still apply. */ 9801#ifdef __cplusplus 9802extern "C" 9803#endif 9804char __lshrdi3 (); 9805int 9806main () 9807{ 9808return __lshrdi3 (); 9809 ; 9810 return 0; 9811} 9812_ACEOF 9813if ac_fn_c_try_link "$LINENO"; then : 9814 ac_cv_lib_gcc___lshrdi3=yes 9815else 9816 ac_cv_lib_gcc___lshrdi3=no 9817fi 9818rm -f core conftest.err conftest.$ac_objext \ 9819 conftest$ac_exeext conftest.$ac_ext 9820LIBS=$ac_check_lib_save_LIBS 9821fi 9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___lshrdi3" >&5 9823$as_echo "$ac_cv_lib_gcc___lshrdi3" >&6; } 9824if test "x$ac_cv_lib_gcc___lshrdi3" = xyes; then : 9825 9826$as_echo "#define HAVE___LSHRDI3 1" >>confdefs.h 9827 9828fi 9829 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __moddi3 in -lgcc" >&5 9831$as_echo_n "checking for __moddi3 in -lgcc... " >&6; } 9832if ${ac_cv_lib_gcc___moddi3+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 ac_check_lib_save_LIBS=$LIBS 9836LIBS="-lgcc $LIBS" 9837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839 9840/* Override any GCC internal prototype to avoid an error. 9841 Use char because int might match the return type of a GCC 9842 builtin and then its argument prototype would still apply. */ 9843#ifdef __cplusplus 9844extern "C" 9845#endif 9846char __moddi3 (); 9847int 9848main () 9849{ 9850return __moddi3 (); 9851 ; 9852 return 0; 9853} 9854_ACEOF 9855if ac_fn_c_try_link "$LINENO"; then : 9856 ac_cv_lib_gcc___moddi3=yes 9857else 9858 ac_cv_lib_gcc___moddi3=no 9859fi 9860rm -f core conftest.err conftest.$ac_objext \ 9861 conftest$ac_exeext conftest.$ac_ext 9862LIBS=$ac_check_lib_save_LIBS 9863fi 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___moddi3" >&5 9865$as_echo "$ac_cv_lib_gcc___moddi3" >&6; } 9866if test "x$ac_cv_lib_gcc___moddi3" = xyes; then : 9867 9868$as_echo "#define HAVE___MODDI3 1" >>confdefs.h 9869 9870fi 9871 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __udivdi3 in -lgcc" >&5 9873$as_echo_n "checking for __udivdi3 in -lgcc... " >&6; } 9874if ${ac_cv_lib_gcc___udivdi3+:} false; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 ac_check_lib_save_LIBS=$LIBS 9878LIBS="-lgcc $LIBS" 9879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9880/* end confdefs.h. */ 9881 9882/* Override any GCC internal prototype to avoid an error. 9883 Use char because int might match the return type of a GCC 9884 builtin and then its argument prototype would still apply. */ 9885#ifdef __cplusplus 9886extern "C" 9887#endif 9888char __udivdi3 (); 9889int 9890main () 9891{ 9892return __udivdi3 (); 9893 ; 9894 return 0; 9895} 9896_ACEOF 9897if ac_fn_c_try_link "$LINENO"; then : 9898 ac_cv_lib_gcc___udivdi3=yes 9899else 9900 ac_cv_lib_gcc___udivdi3=no 9901fi 9902rm -f core conftest.err conftest.$ac_objext \ 9903 conftest$ac_exeext conftest.$ac_ext 9904LIBS=$ac_check_lib_save_LIBS 9905fi 9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___udivdi3" >&5 9907$as_echo "$ac_cv_lib_gcc___udivdi3" >&6; } 9908if test "x$ac_cv_lib_gcc___udivdi3" = xyes; then : 9909 9910$as_echo "#define HAVE___UDIVDI3 1" >>confdefs.h 9911 9912fi 9913 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __umoddi3 in -lgcc" >&5 9915$as_echo_n "checking for __umoddi3 in -lgcc... " >&6; } 9916if ${ac_cv_lib_gcc___umoddi3+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 ac_check_lib_save_LIBS=$LIBS 9920LIBS="-lgcc $LIBS" 9921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9922/* end confdefs.h. */ 9923 9924/* Override any GCC internal prototype to avoid an error. 9925 Use char because int might match the return type of a GCC 9926 builtin and then its argument prototype would still apply. */ 9927#ifdef __cplusplus 9928extern "C" 9929#endif 9930char __umoddi3 (); 9931int 9932main () 9933{ 9934return __umoddi3 (); 9935 ; 9936 return 0; 9937} 9938_ACEOF 9939if ac_fn_c_try_link "$LINENO"; then : 9940 ac_cv_lib_gcc___umoddi3=yes 9941else 9942 ac_cv_lib_gcc___umoddi3=no 9943fi 9944rm -f core conftest.err conftest.$ac_objext \ 9945 conftest$ac_exeext conftest.$ac_ext 9946LIBS=$ac_check_lib_save_LIBS 9947fi 9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___umoddi3" >&5 9949$as_echo "$ac_cv_lib_gcc___umoddi3" >&6; } 9950if test "x$ac_cv_lib_gcc___umoddi3" = xyes; then : 9951 9952$as_echo "#define HAVE___UMODDI3 1" >>confdefs.h 9953 9954fi 9955 9956 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __main in -lgcc" >&5 9958$as_echo_n "checking for __main in -lgcc... " >&6; } 9959if ${ac_cv_lib_gcc___main+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 ac_check_lib_save_LIBS=$LIBS 9963LIBS="-lgcc $LIBS" 9964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966 9967/* Override any GCC internal prototype to avoid an error. 9968 Use char because int might match the return type of a GCC 9969 builtin and then its argument prototype would still apply. */ 9970#ifdef __cplusplus 9971extern "C" 9972#endif 9973char __main (); 9974int 9975main () 9976{ 9977return __main (); 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982if ac_fn_c_try_link "$LINENO"; then : 9983 ac_cv_lib_gcc___main=yes 9984else 9985 ac_cv_lib_gcc___main=no 9986fi 9987rm -f core conftest.err conftest.$ac_objext \ 9988 conftest$ac_exeext conftest.$ac_ext 9989LIBS=$ac_check_lib_save_LIBS 9990fi 9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___main" >&5 9992$as_echo "$ac_cv_lib_gcc___main" >&6; } 9993if test "x$ac_cv_lib_gcc___main" = xyes; then : 9994 9995$as_echo "#define HAVE___MAIN 1" >>confdefs.h 9996 9997fi 9998 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cmpdi2 in -lgcc" >&5 10000$as_echo_n "checking for __cmpdi2 in -lgcc... " >&6; } 10001if ${ac_cv_lib_gcc___cmpdi2+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 ac_check_lib_save_LIBS=$LIBS 10005LIBS="-lgcc $LIBS" 10006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10007/* end confdefs.h. */ 10008 10009/* Override any GCC internal prototype to avoid an error. 10010 Use char because int might match the return type of a GCC 10011 builtin and then its argument prototype would still apply. */ 10012#ifdef __cplusplus 10013extern "C" 10014#endif 10015char __cmpdi2 (); 10016int 10017main () 10018{ 10019return __cmpdi2 (); 10020 ; 10021 return 0; 10022} 10023_ACEOF 10024if ac_fn_c_try_link "$LINENO"; then : 10025 ac_cv_lib_gcc___cmpdi2=yes 10026else 10027 ac_cv_lib_gcc___cmpdi2=no 10028fi 10029rm -f core conftest.err conftest.$ac_objext \ 10030 conftest$ac_exeext conftest.$ac_ext 10031LIBS=$ac_check_lib_save_LIBS 10032fi 10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___cmpdi2" >&5 10034$as_echo "$ac_cv_lib_gcc___cmpdi2" >&6; } 10035if test "x$ac_cv_lib_gcc___cmpdi2" = xyes; then : 10036 10037$as_echo "#define HAVE___CMPDI2 1" >>confdefs.h 10038 10039fi 10040 10041fi 10042 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5 10044$as_echo_n "checking for GCC atomic builtins... " >&6; } 10045ac_ext=cpp 10046ac_cpp='$CXXCPP $CPPFLAGS' 10047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10050 10051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053 10054 10055 int main() { 10056 volatile unsigned long val = 1; 10057 __sync_synchronize(); 10058 __sync_val_compare_and_swap(&val, 1, 0); 10059 __sync_add_and_fetch(&val, 1); 10060 __sync_sub_and_fetch(&val, 1); 10061 return 0; 10062 } 10063 10064 10065_ACEOF 10066if ac_fn_cxx_try_link "$LINENO"; then : 10067 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10069$as_echo "yes" >&6; } 10070 10071$as_echo "#define LLVM_HAS_ATOMICS 1" >>confdefs.h 10072 10073 10074else 10075 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10077$as_echo "no" >&6; } 10078 10079$as_echo "#define LLVM_HAS_ATOMICS 0" >>confdefs.h 10080 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 10082$as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 10083 10084fi 10085rm -f core conftest.err conftest.$ac_objext \ 10086 conftest$ac_exeext conftest.$ac_ext 10087ac_ext=c 10088ac_cpp='$CPP $CPPFLAGS' 10089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10091ac_compiler_gnu=$ac_cv_c_compiler_gnu 10092 10093 10094ac_ext=cpp 10095ac_cpp='$CXXCPP $CPPFLAGS' 10096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10099 10100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101/* end confdefs.h. */ 10102 10103 10104#include <type_traits> 10105struct T { int val; }; 10106static_assert(std::is_trivially_copyable<T>::value, "ok"); 10107int main() { return 0; } 10108 10109 10110_ACEOF 10111if ac_fn_cxx_try_link "$LINENO"; then : 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10114$as_echo "yes" >&6; } 10115 10116$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h 10117 10118 10119else 10120 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10122$as_echo "no" >&6; } 10123 10124$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 0" >>confdefs.h 10125 10126 10127fi 10128rm -f core conftest.err conftest.$ac_objext \ 10129 conftest$ac_exeext conftest.$ac_ext 10130ac_ext=c 10131ac_cpp='$CPP $CPPFLAGS' 10132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10134ac_compiler_gnu=$ac_cv_c_compiler_gnu 10135 10136 10137 10138if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5 10140$as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; } 10141if ${llvm_cv_linux_mixed+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 ac_ext=c 10145ac_cpp='$CPP $CPPFLAGS' 10146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10148ac_compiler_gnu=$ac_cv_c_compiler_gnu 10149 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152#ifndef __x86_64__ 10153 error: Not x86-64 even if uname says so! 10154 #endif 10155 10156int 10157main () 10158{ 10159 10160 ; 10161 return 0; 10162} 10163_ACEOF 10164if ac_fn_c_try_compile "$LINENO"; then : 10165 llvm_cv_linux_mixed=no 10166else 10167 llvm_cv_linux_mixed=yes 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10170 ac_ext=c 10171ac_cpp='$CPP $CPPFLAGS' 10172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10174ac_compiler_gnu=$ac_cv_c_compiler_gnu 10175 10176 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5 10179$as_echo "$llvm_cv_linux_mixed" >&6; } 10180 10181 if test "$llvm_cv_linux_mixed" = "yes"; then 10182 llvm_cv_target_arch="x86" 10183 ARCH="x86" 10184 fi 10185fi 10186 10187SHLIBEXT=$llvm_shlib_ext 10188 10189 10190if test "${prefix}" = "NONE" ; then 10191 prefix="/usr/local" 10192fi 10193eval LLVM_PREFIX="${prefix}"; 10194 10195 10196cat >>confdefs.h <<_ACEOF 10197#define LLVM_PREFIX "$LLVM_PREFIX" 10198_ACEOF 10199 10200 10201cat >>confdefs.h <<_ACEOF 10202#define LLVM_HOST_TRIPLE "$host" 10203_ACEOF 10204 10205 10206cat >>confdefs.h <<_ACEOF 10207#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 10208_ACEOF 10209 10210 10211if test "$BINDINGS_TO_BUILD" = auto ; then 10212 BINDINGS_TO_BUILD="" 10213 if test "x$OCAMLFIND" != x ; then 10214 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 10215 fi 10216 if test "x$GO" != x ; then 10217 if $GO run ${srcdir}/bindings/go/conftest.go ; then 10218 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD" 10219 fi 10220 fi 10221fi 10222BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 10223 10224 10225binding_prereqs_failed=0 10226for a_binding in $BINDINGS_TO_BUILD ; do 10227 case "$a_binding" in 10228 ocaml) 10229 if test "x$OCAMLFIND" = x ; then 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5 10231$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;} 10232 binding_prereqs_failed=1 10233 fi 10234 10235 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then 10236 HAVE_OCAMLOPT=1 10237 else 10238 HAVE_OCAMLOPT=0 10239 fi 10240 10241 10242 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5 10244$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;} 10245 binding_prereqs_failed=1 10246 fi 10247 10248 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then 10249 HAVE_OCAML_OUNIT=1 10250 else 10251 HAVE_OCAML_OUNIT=0 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5 10253$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;} 10254 fi 10255 10256 10257 if test "x$with_ocaml_libdir" != xauto ; then 10258 OCAML_LIBDIR=$with_ocaml_libdir 10259 10260 else 10261 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`" 10262 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 10263 then 10264 # ocaml stdlib is beneath our prefix; use stdlib 10265 OCAML_LIBDIR=$ocaml_stdlib 10266 10267 else 10268 # ocaml stdlib is outside our prefix; use libdir/ocaml 10269 OCAML_LIBDIR=${prefix}/lib/ocaml 10270 10271 fi 10272 fi 10273 ;; 10274 go) 10275 if test "x$GO" = x ; then 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5 10277$as_echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;} 10278 binding_prereqs_failed=1 10279 else 10280 if $GO run ${srcdir}/bindings/go/conftest.go ; then 10281 : 10282 else 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5 10284$as_echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;} 10285 binding_prereqs_failed=1 10286 fi 10287 fi 10288 ;; 10289 esac 10290done 10291if test "$binding_prereqs_failed" = 1 ; then 10292 as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5 10293fi 10294 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5 10296$as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; } 10297if ${llvm_cv_cxx_visibility_inlines_hidden+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299else 10300 ac_ext=cpp 10301ac_cpp='$CXXCPP $CPPFLAGS' 10302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10305 10306 oldcxxflags="$CXXFLAGS" 10307 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10309/* end confdefs.h. */ 10310template <typename T> struct X { void __attribute__((noinline)) f() {} }; 10311int 10312main () 10313{ 10314X<int>().f(); 10315 ; 10316 return 0; 10317} 10318_ACEOF 10319if ac_fn_cxx_try_compile "$LINENO"; then : 10320 llvm_cv_cxx_visibility_inlines_hidden=yes 10321else 10322 llvm_cv_cxx_visibility_inlines_hidden=no 10323fi 10324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10325 CXXFLAGS="$oldcxxflags" 10326 ac_ext=c 10327ac_cpp='$CPP $CPPFLAGS' 10328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10330ac_compiler_gnu=$ac_cv_c_compiler_gnu 10331 10332 10333fi 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 10335$as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 10336if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 10337 ENABLE_VISIBILITY_INLINES_HIDDEN=1 10338 10339else 10340 ENABLE_VISIBILITY_INLINES_HIDDEN=0 10341 10342fi 10343 10344 10345if test "$llvm_cv_link_use_r" = "yes" ; then 10346 RPATH="-Wl,-R" 10347else 10348 RPATH="-Wl,-rpath" 10349fi 10350 10351 10352if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 10353 RDYNAMIC="-rdynamic" 10354else 10355 RDYNAMIC="" 10356fi 10357 10358 10359 10360$as_echo "#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0" >>confdefs.h 10361 10362 10363cat >>confdefs.h <<_ACEOF 10364#define BACKTRACE_HEADER <execinfo.h> 10365_ACEOF 10366 10367 10368 10369$as_echo "#define LLVM_ENABLE_CRASH_DUMPS 0" >>confdefs.h 10370 10371 10372$as_echo "#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0" >>confdefs.h 10373 10374 10375 10376ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h" 10377 10378 10379 10380 10381ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 10382 10383ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 10384 10385ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 10386 10387ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 10388 10389ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 10390 10391 10392if test "${clang_src_root}" = ""; then 10393 clang_src_root="$srcdir/tools/clang" 10394fi 10395if test -f ${clang_src_root}/README.txt; then 10396 ac_config_headers="$ac_config_headers include/clang/Config/config.h" 10397 10398fi 10399 10400cat >confcache <<\_ACEOF 10401# This file is a shell script that caches the results of configure 10402# tests run on this system so they can be shared between configure 10403# scripts and configure runs, see configure's option --config-cache. 10404# It is not useful on other systems. If it contains results you don't 10405# want to keep, you may remove or edit it. 10406# 10407# config.status only pays attention to the cache file if you give it 10408# the --recheck option to rerun configure. 10409# 10410# `ac_cv_env_foo' variables (set or unset) will be overridden when 10411# loading this file, other *unset* `ac_cv_foo' will be assigned the 10412# following values. 10413 10414_ACEOF 10415 10416# The following way of writing the cache mishandles newlines in values, 10417# but we know of no workaround that is simple, portable, and efficient. 10418# So, we kill variables containing newlines. 10419# Ultrix sh set writes to stderr and can't be redirected directly, 10420# and sets the high bit in the cache file unless we assign to the vars. 10421( 10422 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10423 eval ac_val=\$$ac_var 10424 case $ac_val in #( 10425 *${as_nl}*) 10426 case $ac_var in #( 10427 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10428$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10429 esac 10430 case $ac_var in #( 10431 _ | IFS | as_nl) ;; #( 10432 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10433 *) { eval $ac_var=; unset $ac_var;} ;; 10434 esac ;; 10435 esac 10436 done 10437 10438 (set) 2>&1 | 10439 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10440 *${as_nl}ac_space=\ *) 10441 # `set' does not quote correctly, so add quotes: double-quote 10442 # substitution turns \\\\ into \\, and sed turns \\ into \. 10443 sed -n \ 10444 "s/'/'\\\\''/g; 10445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10446 ;; #( 10447 *) 10448 # `set' quotes correctly as required by POSIX, so do not add quotes. 10449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10450 ;; 10451 esac | 10452 sort 10453) | 10454 sed ' 10455 /^ac_cv_env_/b end 10456 t clear 10457 :clear 10458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10459 t end 10460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10461 :end' >>confcache 10462if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10463 if test -w "$cache_file"; then 10464 if test "x$cache_file" != "x/dev/null"; then 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10466$as_echo "$as_me: updating cache $cache_file" >&6;} 10467 if test ! -f "$cache_file" || test -h "$cache_file"; then 10468 cat confcache >"$cache_file" 10469 else 10470 case $cache_file in #( 10471 */* | ?:*) 10472 mv -f confcache "$cache_file"$$ && 10473 mv -f "$cache_file"$$ "$cache_file" ;; #( 10474 *) 10475 mv -f confcache "$cache_file" ;; 10476 esac 10477 fi 10478 fi 10479 else 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10481$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10482 fi 10483fi 10484rm -f confcache 10485 10486test "x$prefix" = xNONE && prefix=$ac_default_prefix 10487# Let make expand exec_prefix. 10488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10489 10490DEFS=-DHAVE_CONFIG_H 10491 10492ac_libobjs= 10493ac_ltlibobjs= 10494U= 10495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10496 # 1. Remove the extension, and $U if already installed. 10497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10500 # will be set to the directory where LIBOBJS objects are built. 10501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10503done 10504LIBOBJS=$ac_libobjs 10505 10506LTLIBOBJS=$ac_ltlibobjs 10507 10508 10509 10510: "${CONFIG_STATUS=./config.status}" 10511ac_write_fail=0 10512ac_clean_files_save=$ac_clean_files 10513ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10515$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10516as_write_fail=0 10517cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10518#! $SHELL 10519# Generated by $as_me. 10520# Run this file to recreate the current configuration. 10521# Compiler output produced by configure, useful for debugging 10522# configure, is in config.log if it exists. 10523 10524debug=false 10525ac_cs_recheck=false 10526ac_cs_silent=false 10527 10528SHELL=\${CONFIG_SHELL-$SHELL} 10529export SHELL 10530_ASEOF 10531cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10532## -------------------- ## 10533## M4sh Initialization. ## 10534## -------------------- ## 10535 10536# Be more Bourne compatible 10537DUALCASE=1; export DUALCASE # for MKS sh 10538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10539 emulate sh 10540 NULLCMD=: 10541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10542 # is contrary to our usage. Disable this feature. 10543 alias -g '${1+"$@"}'='"$@"' 10544 setopt NO_GLOB_SUBST 10545else 10546 case `(set -o) 2>/dev/null` in #( 10547 *posix*) : 10548 set -o posix ;; #( 10549 *) : 10550 ;; 10551esac 10552fi 10553 10554 10555as_nl=' 10556' 10557export as_nl 10558# Printing a long string crashes Solaris 7 /usr/bin/printf. 10559as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10562# Prefer a ksh shell builtin over an external printf program on Solaris, 10563# but without wasting forks for bash or zsh. 10564if test -z "$BASH_VERSION$ZSH_VERSION" \ 10565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10566 as_echo='print -r --' 10567 as_echo_n='print -rn --' 10568elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10569 as_echo='printf %s\n' 10570 as_echo_n='printf %s' 10571else 10572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10574 as_echo_n='/usr/ucb/echo -n' 10575 else 10576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10577 as_echo_n_body='eval 10578 arg=$1; 10579 case $arg in #( 10580 *"$as_nl"*) 10581 expr "X$arg" : "X\\(.*\\)$as_nl"; 10582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10583 esac; 10584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10585 ' 10586 export as_echo_n_body 10587 as_echo_n='sh -c $as_echo_n_body as_echo' 10588 fi 10589 export as_echo_body 10590 as_echo='sh -c $as_echo_body as_echo' 10591fi 10592 10593# The user is always right. 10594if test "${PATH_SEPARATOR+set}" != set; then 10595 PATH_SEPARATOR=: 10596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10598 PATH_SEPARATOR=';' 10599 } 10600fi 10601 10602 10603# IFS 10604# We need space, tab and new line, in precisely that order. Quoting is 10605# there to prevent editors from complaining about space-tab. 10606# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10607# splitting by setting IFS to empty value.) 10608IFS=" "" $as_nl" 10609 10610# Find who we are. Look in the path if we contain no directory separator. 10611as_myself= 10612case $0 in #(( 10613 *[\\/]* ) as_myself=$0 ;; 10614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10615for as_dir in $PATH 10616do 10617 IFS=$as_save_IFS 10618 test -z "$as_dir" && as_dir=. 10619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10620 done 10621IFS=$as_save_IFS 10622 10623 ;; 10624esac 10625# We did not find ourselves, most probably we were run as `sh COMMAND' 10626# in which case we are not to be found in the path. 10627if test "x$as_myself" = x; then 10628 as_myself=$0 10629fi 10630if test ! -f "$as_myself"; then 10631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10632 exit 1 10633fi 10634 10635# Unset variables that we do not need and which cause bugs (e.g. in 10636# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10637# suppresses any "Segmentation fault" message there. '((' could 10638# trigger a bug in pdksh 5.2.14. 10639for as_var in BASH_ENV ENV MAIL MAILPATH 10640do eval test x\${$as_var+set} = xset \ 10641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10642done 10643PS1='$ ' 10644PS2='> ' 10645PS4='+ ' 10646 10647# NLS nuisances. 10648LC_ALL=C 10649export LC_ALL 10650LANGUAGE=C 10651export LANGUAGE 10652 10653# CDPATH. 10654(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10655 10656 10657# as_fn_error STATUS ERROR [LINENO LOG_FD] 10658# ---------------------------------------- 10659# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10660# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10661# script with STATUS, using 1 if that was 0. 10662as_fn_error () 10663{ 10664 as_status=$1; test $as_status -eq 0 && as_status=1 10665 if test "$4"; then 10666 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10668 fi 10669 $as_echo "$as_me: error: $2" >&2 10670 as_fn_exit $as_status 10671} # as_fn_error 10672 10673 10674# as_fn_set_status STATUS 10675# ----------------------- 10676# Set $? to STATUS, without forking. 10677as_fn_set_status () 10678{ 10679 return $1 10680} # as_fn_set_status 10681 10682# as_fn_exit STATUS 10683# ----------------- 10684# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10685as_fn_exit () 10686{ 10687 set +e 10688 as_fn_set_status $1 10689 exit $1 10690} # as_fn_exit 10691 10692# as_fn_unset VAR 10693# --------------- 10694# Portably unset VAR. 10695as_fn_unset () 10696{ 10697 { eval $1=; unset $1;} 10698} 10699as_unset=as_fn_unset 10700# as_fn_append VAR VALUE 10701# ---------------------- 10702# Append the text in VALUE to the end of the definition contained in VAR. Take 10703# advantage of any shell optimizations that allow amortized linear growth over 10704# repeated appends, instead of the typical quadratic growth present in naive 10705# implementations. 10706if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10707 eval 'as_fn_append () 10708 { 10709 eval $1+=\$2 10710 }' 10711else 10712 as_fn_append () 10713 { 10714 eval $1=\$$1\$2 10715 } 10716fi # as_fn_append 10717 10718# as_fn_arith ARG... 10719# ------------------ 10720# Perform arithmetic evaluation on the ARGs, and store the result in the 10721# global $as_val. Take advantage of shells that can avoid forks. The arguments 10722# must be portable across $(()) and expr. 10723if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10724 eval 'as_fn_arith () 10725 { 10726 as_val=$(( $* )) 10727 }' 10728else 10729 as_fn_arith () 10730 { 10731 as_val=`expr "$@" || test $? -eq 1` 10732 } 10733fi # as_fn_arith 10734 10735 10736if expr a : '\(a\)' >/dev/null 2>&1 && 10737 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10738 as_expr=expr 10739else 10740 as_expr=false 10741fi 10742 10743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10744 as_basename=basename 10745else 10746 as_basename=false 10747fi 10748 10749if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10750 as_dirname=dirname 10751else 10752 as_dirname=false 10753fi 10754 10755as_me=`$as_basename -- "$0" || 10756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10757 X"$0" : 'X\(//\)$' \| \ 10758 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10759$as_echo X/"$0" | 10760 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10761 s//\1/ 10762 q 10763 } 10764 /^X\/\(\/\/\)$/{ 10765 s//\1/ 10766 q 10767 } 10768 /^X\/\(\/\).*/{ 10769 s//\1/ 10770 q 10771 } 10772 s/.*/./; q'` 10773 10774# Avoid depending upon Character Ranges. 10775as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10777as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10778as_cr_digits='0123456789' 10779as_cr_alnum=$as_cr_Letters$as_cr_digits 10780 10781ECHO_C= ECHO_N= ECHO_T= 10782case `echo -n x` in #((((( 10783-n*) 10784 case `echo 'xy\c'` in 10785 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10786 xy) ECHO_C='\c';; 10787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10788 ECHO_T=' ';; 10789 esac;; 10790*) 10791 ECHO_N='-n';; 10792esac 10793 10794rm -f conf$$ conf$$.exe conf$$.file 10795if test -d conf$$.dir; then 10796 rm -f conf$$.dir/conf$$.file 10797else 10798 rm -f conf$$.dir 10799 mkdir conf$$.dir 2>/dev/null 10800fi 10801if (echo >conf$$.file) 2>/dev/null; then 10802 if ln -s conf$$.file conf$$ 2>/dev/null; then 10803 as_ln_s='ln -s' 10804 # ... but there are two gotchas: 10805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10807 # In both cases, we have to default to `cp -pR'. 10808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10809 as_ln_s='cp -pR' 10810 elif ln conf$$.file conf$$ 2>/dev/null; then 10811 as_ln_s=ln 10812 else 10813 as_ln_s='cp -pR' 10814 fi 10815else 10816 as_ln_s='cp -pR' 10817fi 10818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10819rmdir conf$$.dir 2>/dev/null 10820 10821 10822# as_fn_mkdir_p 10823# ------------- 10824# Create "$as_dir" as a directory, including parents if necessary. 10825as_fn_mkdir_p () 10826{ 10827 10828 case $as_dir in #( 10829 -*) as_dir=./$as_dir;; 10830 esac 10831 test -d "$as_dir" || eval $as_mkdir_p || { 10832 as_dirs= 10833 while :; do 10834 case $as_dir in #( 10835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10836 *) as_qdir=$as_dir;; 10837 esac 10838 as_dirs="'$as_qdir' $as_dirs" 10839 as_dir=`$as_dirname -- "$as_dir" || 10840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10841 X"$as_dir" : 'X\(//\)[^/]' \| \ 10842 X"$as_dir" : 'X\(//\)$' \| \ 10843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10844$as_echo X"$as_dir" | 10845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10846 s//\1/ 10847 q 10848 } 10849 /^X\(\/\/\)[^/].*/{ 10850 s//\1/ 10851 q 10852 } 10853 /^X\(\/\/\)$/{ 10854 s//\1/ 10855 q 10856 } 10857 /^X\(\/\).*/{ 10858 s//\1/ 10859 q 10860 } 10861 s/.*/./; q'` 10862 test -d "$as_dir" && break 10863 done 10864 test -z "$as_dirs" || eval "mkdir $as_dirs" 10865 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10866 10867 10868} # as_fn_mkdir_p 10869if mkdir -p . 2>/dev/null; then 10870 as_mkdir_p='mkdir -p "$as_dir"' 10871else 10872 test -d ./-p && rmdir ./-p 10873 as_mkdir_p=false 10874fi 10875 10876 10877# as_fn_executable_p FILE 10878# ----------------------- 10879# Test if FILE is an executable regular file. 10880as_fn_executable_p () 10881{ 10882 test -f "$1" && test -x "$1" 10883} # as_fn_executable_p 10884as_test_x='test -x' 10885as_executable_p=as_fn_executable_p 10886 10887# Sed expression to map a string onto a valid CPP name. 10888as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10889 10890# Sed expression to map a string onto a valid variable name. 10891as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10892 10893 10894exec 6>&1 10895## ----------------------------------- ## 10896## Main body of $CONFIG_STATUS script. ## 10897## ----------------------------------- ## 10898_ASEOF 10899test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10900 10901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10902# Save the log message, to keep $0 and so on meaningful, and to 10903# report actual input values of CONFIG_FILES etc. instead of their 10904# values after options handling. 10905ac_log=" 10906This file was extended by LLVM $as_me 4.0.0svn, which was 10907generated by GNU Autoconf 2.69. Invocation command line was 10908 10909 CONFIG_FILES = $CONFIG_FILES 10910 CONFIG_HEADERS = $CONFIG_HEADERS 10911 CONFIG_LINKS = $CONFIG_LINKS 10912 CONFIG_COMMANDS = $CONFIG_COMMANDS 10913 $ $0 $@ 10914 10915on `(hostname || uname -n) 2>/dev/null | sed 1q` 10916" 10917 10918_ACEOF 10919 10920case $ac_config_files in *" 10921"*) set x $ac_config_files; shift; ac_config_files=$*;; 10922esac 10923 10924case $ac_config_headers in *" 10925"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10926esac 10927 10928 10929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10930# Files that config.status was made for. 10931config_files="$ac_config_files" 10932config_headers="$ac_config_headers" 10933 10934_ACEOF 10935 10936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10937ac_cs_usage="\ 10938\`$as_me' instantiates files and other configuration actions 10939from templates according to the current configuration. Unless the files 10940and actions are specified as TAGs, all are instantiated by default. 10941 10942Usage: $0 [OPTION]... [TAG]... 10943 10944 -h, --help print this help, then exit 10945 -V, --version print version number and configuration settings, then exit 10946 --config print configuration, then exit 10947 -q, --quiet, --silent 10948 do not print progress messages 10949 -d, --debug don't remove temporary files 10950 --recheck update $as_me by reconfiguring in the same conditions 10951 --file=FILE[:TEMPLATE] 10952 instantiate the configuration file FILE 10953 --header=FILE[:TEMPLATE] 10954 instantiate the configuration header FILE 10955 10956Configuration files: 10957$config_files 10958 10959Configuration headers: 10960$config_headers 10961 10962Report bugs to <http://llvm.org/bugs/>." 10963 10964_ACEOF 10965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10966ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10967ac_cs_version="\\ 10968LLVM config.status 4.0.0svn 10969configured by $0, generated by GNU Autoconf 2.69, 10970 with options \\"\$ac_cs_config\\" 10971 10972Copyright (C) 2012 Free Software Foundation, Inc. 10973This config.status script is free software; the Free Software Foundation 10974gives unlimited permission to copy, distribute and modify it." 10975 10976ac_pwd='$ac_pwd' 10977srcdir='$srcdir' 10978INSTALL='$INSTALL' 10979test -n "\$AWK" || AWK=awk 10980_ACEOF 10981 10982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10983# The default lists apply if the user does not specify any file. 10984ac_need_defaults=: 10985while test $# != 0 10986do 10987 case $1 in 10988 --*=?*) 10989 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10991 ac_shift=: 10992 ;; 10993 --*=) 10994 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10995 ac_optarg= 10996 ac_shift=: 10997 ;; 10998 *) 10999 ac_option=$1 11000 ac_optarg=$2 11001 ac_shift=shift 11002 ;; 11003 esac 11004 11005 case $ac_option in 11006 # Handling of the options. 11007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11008 ac_cs_recheck=: ;; 11009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11010 $as_echo "$ac_cs_version"; exit ;; 11011 --config | --confi | --conf | --con | --co | --c ) 11012 $as_echo "$ac_cs_config"; exit ;; 11013 --debug | --debu | --deb | --de | --d | -d ) 11014 debug=: ;; 11015 --file | --fil | --fi | --f ) 11016 $ac_shift 11017 case $ac_optarg in 11018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11019 '') as_fn_error $? "missing file argument" ;; 11020 esac 11021 as_fn_append CONFIG_FILES " '$ac_optarg'" 11022 ac_need_defaults=false;; 11023 --header | --heade | --head | --hea ) 11024 $ac_shift 11025 case $ac_optarg in 11026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11027 esac 11028 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11029 ac_need_defaults=false;; 11030 --he | --h) 11031 # Conflict between --help and --header 11032 as_fn_error $? "ambiguous option: \`$1' 11033Try \`$0 --help' for more information.";; 11034 --help | --hel | -h ) 11035 $as_echo "$ac_cs_usage"; exit ;; 11036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11037 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11038 ac_cs_silent=: ;; 11039 11040 # This is an error. 11041 -*) as_fn_error $? "unrecognized option: \`$1' 11042Try \`$0 --help' for more information." ;; 11043 11044 *) as_fn_append ac_config_targets " $1" 11045 ac_need_defaults=false ;; 11046 11047 esac 11048 shift 11049done 11050 11051ac_configure_extra_args= 11052 11053if $ac_cs_silent; then 11054 exec 6>/dev/null 11055 ac_configure_extra_args="$ac_configure_extra_args --silent" 11056fi 11057 11058_ACEOF 11059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11060if \$ac_cs_recheck; then 11061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11062 shift 11063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11064 CONFIG_SHELL='$SHELL' 11065 export CONFIG_SHELL 11066 exec "\$@" 11067fi 11068 11069_ACEOF 11070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11071exec 5>>config.log 11072{ 11073 echo 11074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11075## Running $as_me. ## 11076_ASBOX 11077 $as_echo "$ac_log" 11078} >&5 11079 11080_ACEOF 11081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11082_ACEOF 11083 11084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11085 11086# Handling of arguments. 11087for ac_config_target in $ac_config_targets 11088do 11089 case $ac_config_target in 11090 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 11091 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 11092 "include/llvm/Config/abi-breaking.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/abi-breaking.h" ;; 11093 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 11094 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 11095 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 11096 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 11097 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 11098 "include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/clang/Config/config.h" ;; 11099 11100 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11101 esac 11102done 11103 11104 11105# If the user did not use the arguments to specify the items to instantiate, 11106# then the envvar interface is used. Set only those that are not. 11107# We use the long form for the default assignment because of an extremely 11108# bizarre bug on SunOS 4.1.3. 11109if $ac_need_defaults; then 11110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11112fi 11113 11114# Have a temporary directory for convenience. Make it in the build tree 11115# simply because there is no reason against having it here, and in addition, 11116# creating and moving files from /tmp can sometimes cause problems. 11117# Hook for its removal unless debugging. 11118# Note that there is a small window in which the directory will not be cleaned: 11119# after its creation but before its name has been assigned to `$tmp'. 11120$debug || 11121{ 11122 tmp= ac_tmp= 11123 trap 'exit_status=$? 11124 : "${ac_tmp:=$tmp}" 11125 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11126' 0 11127 trap 'as_fn_exit 1' 1 2 13 15 11128} 11129# Create a (secure) tmp directory for tmp files. 11130 11131{ 11132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11133 test -d "$tmp" 11134} || 11135{ 11136 tmp=./conf$$-$RANDOM 11137 (umask 077 && mkdir "$tmp") 11138} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11139ac_tmp=$tmp 11140 11141# Set up the scripts for CONFIG_FILES section. 11142# No need to generate them if there are no CONFIG_FILES. 11143# This happens for instance with `./config.status config.h'. 11144if test -n "$CONFIG_FILES"; then 11145 11146 11147ac_cr=`echo X | tr X '\015'` 11148# On cygwin, bash can eat \r inside `` if the user requested igncr. 11149# But we know of no other shell where ac_cr would be empty at this 11150# point, so we can use a bashism as a fallback. 11151if test "x$ac_cr" = x; then 11152 eval ac_cr=\$\'\\r\' 11153fi 11154ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11155if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11156 ac_cs_awk_cr='\\r' 11157else 11158 ac_cs_awk_cr=$ac_cr 11159fi 11160 11161echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11162_ACEOF 11163 11164 11165{ 11166 echo "cat >conf$$subs.awk <<_ACEOF" && 11167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11168 echo "_ACEOF" 11169} >conf$$subs.sh || 11170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11171ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11172ac_delim='%!_!# ' 11173for ac_last_try in false false false false false :; do 11174 . ./conf$$subs.sh || 11175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11176 11177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11178 if test $ac_delim_n = $ac_delim_num; then 11179 break 11180 elif $ac_last_try; then 11181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11182 else 11183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11184 fi 11185done 11186rm -f conf$$subs.sh 11187 11188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11189cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11190_ACEOF 11191sed -n ' 11192h 11193s/^/S["/; s/!.*/"]=/ 11194p 11195g 11196s/^[^!]*!// 11197:repl 11198t repl 11199s/'"$ac_delim"'$// 11200t delim 11201:nl 11202h 11203s/\(.\{148\}\)..*/\1/ 11204t more1 11205s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11206p 11207n 11208b repl 11209:more1 11210s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11211p 11212g 11213s/.\{148\}// 11214t nl 11215:delim 11216h 11217s/\(.\{148\}\)..*/\1/ 11218t more2 11219s/["\\]/\\&/g; s/^/"/; s/$/"/ 11220p 11221b 11222:more2 11223s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11224p 11225g 11226s/.\{148\}// 11227t delim 11228' <conf$$subs.awk | sed ' 11229/^[^""]/{ 11230 N 11231 s/\n// 11232} 11233' >>$CONFIG_STATUS || ac_write_fail=1 11234rm -f conf$$subs.awk 11235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11236_ACAWK 11237cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11238 for (key in S) S_is_set[key] = 1 11239 FS = "" 11240 11241} 11242{ 11243 line = $ 0 11244 nfields = split(line, field, "@") 11245 substed = 0 11246 len = length(field[1]) 11247 for (i = 2; i < nfields; i++) { 11248 key = field[i] 11249 keylen = length(key) 11250 if (S_is_set[key]) { 11251 value = S[key] 11252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11253 len += length(value) + length(field[++i]) 11254 substed = 1 11255 } else 11256 len += 1 + keylen 11257 } 11258 11259 print line 11260} 11261 11262_ACAWK 11263_ACEOF 11264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11265if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11266 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11267else 11268 cat 11269fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11270 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11271_ACEOF 11272 11273# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11274# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11275# trailing colons and then remove the whole line if VPATH becomes empty 11276# (actually we leave an empty line to preserve line numbers). 11277if test "x$srcdir" = x.; then 11278 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11279h 11280s/// 11281s/^/:/ 11282s/[ ]*$/:/ 11283s/:\$(srcdir):/:/g 11284s/:\${srcdir}:/:/g 11285s/:@srcdir@:/:/g 11286s/^:*// 11287s/:*$// 11288x 11289s/\(=[ ]*\).*/\1/ 11290G 11291s/\n// 11292s/^[^=]*=[ ]*$// 11293}' 11294fi 11295 11296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11297fi # test -n "$CONFIG_FILES" 11298 11299# Set up the scripts for CONFIG_HEADERS section. 11300# No need to generate them if there are no CONFIG_HEADERS. 11301# This happens for instance with `./config.status Makefile'. 11302if test -n "$CONFIG_HEADERS"; then 11303cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11304BEGIN { 11305_ACEOF 11306 11307# Transform confdefs.h into an awk script `defines.awk', embedded as 11308# here-document in config.status, that substitutes the proper values into 11309# config.h.in to produce config.h. 11310 11311# Create a delimiter string that does not exist in confdefs.h, to ease 11312# handling of long lines. 11313ac_delim='%!_!# ' 11314for ac_last_try in false false :; do 11315 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11316 if test -z "$ac_tt"; then 11317 break 11318 elif $ac_last_try; then 11319 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11320 else 11321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11322 fi 11323done 11324 11325# For the awk script, D is an array of macro values keyed by name, 11326# likewise P contains macro parameters if any. Preserve backslash 11327# newline sequences. 11328 11329ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11330sed -n ' 11331s/.\{148\}/&'"$ac_delim"'/g 11332t rset 11333:rset 11334s/^[ ]*#[ ]*define[ ][ ]*/ / 11335t def 11336d 11337:def 11338s/\\$// 11339t bsnl 11340s/["\\]/\\&/g 11341s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11342D["\1"]=" \3"/p 11343s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11344d 11345:bsnl 11346s/["\\]/\\&/g 11347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11348D["\1"]=" \3\\\\\\n"\\/p 11349t cont 11350s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11351t cont 11352d 11353:cont 11354n 11355s/.\{148\}/&'"$ac_delim"'/g 11356t clear 11357:clear 11358s/\\$// 11359t bsnlc 11360s/["\\]/\\&/g; s/^/"/; s/$/"/p 11361d 11362:bsnlc 11363s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11364b cont 11365' <confdefs.h | sed ' 11366s/'"$ac_delim"'/"\\\ 11367"/g' >>$CONFIG_STATUS || ac_write_fail=1 11368 11369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11370 for (key in D) D_is_set[key] = 1 11371 FS = "" 11372} 11373/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11374 line = \$ 0 11375 split(line, arg, " ") 11376 if (arg[1] == "#") { 11377 defundef = arg[2] 11378 mac1 = arg[3] 11379 } else { 11380 defundef = substr(arg[1], 2) 11381 mac1 = arg[2] 11382 } 11383 split(mac1, mac2, "(") #) 11384 macro = mac2[1] 11385 prefix = substr(line, 1, index(line, defundef) - 1) 11386 if (D_is_set[macro]) { 11387 # Preserve the white space surrounding the "#". 11388 print prefix "define", macro P[macro] D[macro] 11389 next 11390 } else { 11391 # Replace #undef with comments. This is necessary, for example, 11392 # in the case of _POSIX_SOURCE, which is predefined and required 11393 # on some systems where configure will not decide to define it. 11394 if (defundef == "undef") { 11395 print "/*", prefix defundef, macro, "*/" 11396 next 11397 } 11398 } 11399} 11400{ print } 11401_ACAWK 11402_ACEOF 11403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11404 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11405fi # test -n "$CONFIG_HEADERS" 11406 11407 11408eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 11409shift 11410for ac_tag 11411do 11412 case $ac_tag in 11413 :[FHLC]) ac_mode=$ac_tag; continue;; 11414 esac 11415 case $ac_mode$ac_tag in 11416 :[FHL]*:*);; 11417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11418 :[FH]-) ac_tag=-:-;; 11419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11420 esac 11421 ac_save_IFS=$IFS 11422 IFS=: 11423 set x $ac_tag 11424 IFS=$ac_save_IFS 11425 shift 11426 ac_file=$1 11427 shift 11428 11429 case $ac_mode in 11430 :L) ac_source=$1;; 11431 :[FH]) 11432 ac_file_inputs= 11433 for ac_f 11434 do 11435 case $ac_f in 11436 -) ac_f="$ac_tmp/stdin";; 11437 *) # Look for the file first in the build tree, then in the source tree 11438 # (if the path is not absolute). The absolute path cannot be DOS-style, 11439 # because $ac_f cannot contain `:'. 11440 test -f "$ac_f" || 11441 case $ac_f in 11442 [\\/$]*) false;; 11443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11444 esac || 11445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11446 esac 11447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11448 as_fn_append ac_file_inputs " '$ac_f'" 11449 done 11450 11451 # Let's still pretend it is `configure' which instantiates (i.e., don't 11452 # use $as_me), people would be surprised to read: 11453 # /* config.h. Generated by config.status. */ 11454 configure_input='Generated from '` 11455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11456 `' by configure.' 11457 if test x"$ac_file" != x-; then 11458 configure_input="$ac_file. $configure_input" 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11460$as_echo "$as_me: creating $ac_file" >&6;} 11461 fi 11462 # Neutralize special characters interpreted by sed in replacement strings. 11463 case $configure_input in #( 11464 *\&* | *\|* | *\\* ) 11465 ac_sed_conf_input=`$as_echo "$configure_input" | 11466 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11467 *) ac_sed_conf_input=$configure_input;; 11468 esac 11469 11470 case $ac_tag in 11471 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11473 esac 11474 ;; 11475 esac 11476 11477 ac_dir=`$as_dirname -- "$ac_file" || 11478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11479 X"$ac_file" : 'X\(//\)[^/]' \| \ 11480 X"$ac_file" : 'X\(//\)$' \| \ 11481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11482$as_echo X"$ac_file" | 11483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11484 s//\1/ 11485 q 11486 } 11487 /^X\(\/\/\)[^/].*/{ 11488 s//\1/ 11489 q 11490 } 11491 /^X\(\/\/\)$/{ 11492 s//\1/ 11493 q 11494 } 11495 /^X\(\/\).*/{ 11496 s//\1/ 11497 q 11498 } 11499 s/.*/./; q'` 11500 as_dir="$ac_dir"; as_fn_mkdir_p 11501 ac_builddir=. 11502 11503case "$ac_dir" in 11504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11505*) 11506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11507 # A ".." for each directory in $ac_dir_suffix. 11508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11509 case $ac_top_builddir_sub in 11510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11512 esac ;; 11513esac 11514ac_abs_top_builddir=$ac_pwd 11515ac_abs_builddir=$ac_pwd$ac_dir_suffix 11516# for backward compatibility: 11517ac_top_builddir=$ac_top_build_prefix 11518 11519case $srcdir in 11520 .) # We are building in place. 11521 ac_srcdir=. 11522 ac_top_srcdir=$ac_top_builddir_sub 11523 ac_abs_top_srcdir=$ac_pwd ;; 11524 [\\/]* | ?:[\\/]* ) # Absolute name. 11525 ac_srcdir=$srcdir$ac_dir_suffix; 11526 ac_top_srcdir=$srcdir 11527 ac_abs_top_srcdir=$srcdir ;; 11528 *) # Relative name. 11529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11530 ac_top_srcdir=$ac_top_build_prefix$srcdir 11531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11532esac 11533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11534 11535 11536 case $ac_mode in 11537 :F) 11538 # 11539 # CONFIG_FILE 11540 # 11541 11542 case $INSTALL in 11543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11545 esac 11546_ACEOF 11547 11548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11549# If the template does not know about datarootdir, expand it. 11550# FIXME: This hack should be removed a few years after 2.60. 11551ac_datarootdir_hack=; ac_datarootdir_seen= 11552ac_sed_dataroot=' 11553/datarootdir/ { 11554 p 11555 q 11556} 11557/@datadir@/p 11558/@docdir@/p 11559/@infodir@/p 11560/@localedir@/p 11561/@mandir@/p' 11562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11563*datarootdir*) ac_datarootdir_seen=yes;; 11564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11567_ACEOF 11568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11569 ac_datarootdir_hack=' 11570 s&@datadir@&$datadir&g 11571 s&@docdir@&$docdir&g 11572 s&@infodir@&$infodir&g 11573 s&@localedir@&$localedir&g 11574 s&@mandir@&$mandir&g 11575 s&\\\${datarootdir}&$datarootdir&g' ;; 11576esac 11577_ACEOF 11578 11579# Neutralize VPATH when `$srcdir' = `.'. 11580# Shell code in configure.ac might set extrasub. 11581# FIXME: do we really want to maintain this feature? 11582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11583ac_sed_extra="$ac_vpsub 11584$extrasub 11585_ACEOF 11586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11587:t 11588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11589s|@configure_input@|$ac_sed_conf_input|;t t 11590s&@top_builddir@&$ac_top_builddir_sub&;t t 11591s&@top_build_prefix@&$ac_top_build_prefix&;t t 11592s&@srcdir@&$ac_srcdir&;t t 11593s&@abs_srcdir@&$ac_abs_srcdir&;t t 11594s&@top_srcdir@&$ac_top_srcdir&;t t 11595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11596s&@builddir@&$ac_builddir&;t t 11597s&@abs_builddir@&$ac_abs_builddir&;t t 11598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11599s&@INSTALL@&$ac_INSTALL&;t t 11600$ac_datarootdir_hack 11601" 11602eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11603 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11604 11605test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11606 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11608 "$ac_tmp/out"`; test -z "$ac_out"; } && 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11610which seems to be undefined. Please make sure it is defined" >&5 11611$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11612which seems to be undefined. Please make sure it is defined" >&2;} 11613 11614 rm -f "$ac_tmp/stdin" 11615 case $ac_file in 11616 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11617 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11618 esac \ 11619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11620 ;; 11621 :H) 11622 # 11623 # CONFIG_HEADER 11624 # 11625 if test x"$ac_file" != x-; then 11626 { 11627 $as_echo "/* $configure_input */" \ 11628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11629 } >"$ac_tmp/config.h" \ 11630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11631 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11633$as_echo "$as_me: $ac_file is unchanged" >&6;} 11634 else 11635 rm -f "$ac_file" 11636 mv "$ac_tmp/config.h" "$ac_file" \ 11637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11638 fi 11639 else 11640 $as_echo "/* $configure_input */" \ 11641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11642 || as_fn_error $? "could not create -" "$LINENO" 5 11643 fi 11644 ;; 11645 11646 11647 esac 11648 11649done # for ac_tag 11650 11651 11652as_fn_exit 0 11653_ACEOF 11654ac_clean_files=$ac_clean_files_save 11655 11656test $ac_write_fail = 0 || 11657 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11658 11659 11660# configure is writing to config.log, and then calls config.status. 11661# config.status does its own redirection, appending to config.log. 11662# Unfortunately, on DOS this fails, as config.log is still kept open 11663# by configure, so config.status won't be able to write to it; its 11664# output is simply discarded. So we exec the FD to /dev/null, 11665# effectively closing config.log, so it can be properly (re)opened and 11666# appended to by config.status. When coming back to configure, we 11667# need to make the FD available again. 11668if test "$no_create" != yes; then 11669 ac_cs_success=: 11670 ac_config_status_args= 11671 test "$silent" = yes && 11672 ac_config_status_args="$ac_config_status_args --quiet" 11673 exec 5>/dev/null 11674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11675 exec 5>>config.log 11676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11677 # would make configure fail if this is the last instruction. 11678 $ac_cs_success || as_fn_exit 1 11679fi 11680 11681# 11682# CONFIG_SUBDIRS section. 11683# 11684if test "$no_recursion" != yes; then 11685 11686 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 11687 # so they do not pile up. 11688 ac_sub_configure_args= 11689 ac_prev= 11690 eval "set x $ac_configure_args" 11691 shift 11692 for ac_arg 11693 do 11694 if test -n "$ac_prev"; then 11695 ac_prev= 11696 continue 11697 fi 11698 case $ac_arg in 11699 -cache-file | --cache-file | --cache-fil | --cache-fi \ 11700 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11701 ac_prev=cache_file ;; 11702 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 11703 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 11704 | --c=*) 11705 ;; 11706 --config-cache | -C) 11707 ;; 11708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11709 ac_prev=srcdir ;; 11710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11711 ;; 11712 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 11713 ac_prev=prefix ;; 11714 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 11715 ;; 11716 --disable-option-checking) 11717 ;; 11718 *) 11719 case $ac_arg in 11720 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 11721 esac 11722 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 11723 esac 11724 done 11725 11726 # Always prepend --prefix to ensure using the same prefix 11727 # in subdir configurations. 11728 ac_arg="--prefix=$prefix" 11729 case $ac_arg in 11730 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 11731 esac 11732 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 11733 11734 # Pass --silent 11735 if test "$silent" = yes; then 11736 ac_sub_configure_args="--silent $ac_sub_configure_args" 11737 fi 11738 11739 # Always prepend --disable-option-checking to silence warnings, since 11740 # different subdirs can have different --enable and --with options. 11741 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 11742 11743 ac_popdir=`pwd` 11744 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 11745 11746 # Do not complain, so a configure script can configure whichever 11747 # parts of a large source tree are present. 11748 test -d "$srcdir/$ac_dir" || continue 11749 11750 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 11751 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 11752 $as_echo "$ac_msg" >&6 11753 as_dir="$ac_dir"; as_fn_mkdir_p 11754 ac_builddir=. 11755 11756case "$ac_dir" in 11757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11758*) 11759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11760 # A ".." for each directory in $ac_dir_suffix. 11761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11762 case $ac_top_builddir_sub in 11763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11765 esac ;; 11766esac 11767ac_abs_top_builddir=$ac_pwd 11768ac_abs_builddir=$ac_pwd$ac_dir_suffix 11769# for backward compatibility: 11770ac_top_builddir=$ac_top_build_prefix 11771 11772case $srcdir in 11773 .) # We are building in place. 11774 ac_srcdir=. 11775 ac_top_srcdir=$ac_top_builddir_sub 11776 ac_abs_top_srcdir=$ac_pwd ;; 11777 [\\/]* | ?:[\\/]* ) # Absolute name. 11778 ac_srcdir=$srcdir$ac_dir_suffix; 11779 ac_top_srcdir=$srcdir 11780 ac_abs_top_srcdir=$srcdir ;; 11781 *) # Relative name. 11782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11783 ac_top_srcdir=$ac_top_build_prefix$srcdir 11784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11785esac 11786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11787 11788 11789 cd "$ac_dir" 11790 11791 # Check for guested configure; otherwise get Cygnus style configure. 11792 if test -f "$ac_srcdir/configure.gnu"; then 11793 ac_sub_configure=$ac_srcdir/configure.gnu 11794 elif test -f "$ac_srcdir/configure"; then 11795 ac_sub_configure=$ac_srcdir/configure 11796 elif test -f "$ac_srcdir/configure.in"; then 11797 # This should be Cygnus configure. 11798 ac_sub_configure=$ac_aux_dir/configure 11799 else 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 11801$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 11802 ac_sub_configure= 11803 fi 11804 11805 # The recursion is here. 11806 if test -n "$ac_sub_configure"; then 11807 # Make the cache file name correct relative to the subdirectory. 11808 case $cache_file in 11809 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 11810 *) # Relative name. 11811 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 11812 esac 11813 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 11815$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 11816 # The eval makes quoting arguments work. 11817 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 11818 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 11819 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 11820 fi 11821 11822 cd "$ac_popdir" 11823 done 11824fi 11825if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11827$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11828fi 11829 11830