2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/test-suite
813 projects/llvm-poolalloc
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1423 --enable-pic Build LLVM with Position Independent Code (default
1425 --enable-shared Build a shared library and link tools against it
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.6.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.6.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=6
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964 if test -f "$ac_dir/install-sh"; then
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 elif test -f "$ac_dir/install.sh"; then
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 elif test -f "$ac_dir/shtool"; then
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 if test ${srcdir} != "." ; then
1995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in clang gcc
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2055 for ac_prog in clang gcc
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6; }
2089 { echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6; }
2094 test -n "$ac_ct_CC" && break
2097 if test "x$ac_ct_CC" = x; then
2100 case $cross_compiling:$ac_tool_warned in
2102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet. If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&5
2105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106 whose name does not start with the host triplet. If you think this
2107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108 ac_tool_warned=yes ;;
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO: checking for C compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (ac_try="$ac_compiler --version >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler --version >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -v >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -v >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -V >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -V >&5") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 # List of possible output files, starting from the most likely.
2180 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181 # only as a last resort. b.out is created by i960 compilers.
2182 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2184 # The IRIX 6 linker writes into existing files which may not be
2185 # executable, retaining their permissions. Remove them first so a
2186 # subsequent execution test works.
2188 for ac_file in $ac_files
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197 if { (ac_try="$ac_link_default"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203 (eval "$ac_link_default") 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2212 for ac_file in $ac_files
2214 test -f "$ac_file" || continue
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2219 # We found the default executable, but exeext='' is most
2223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2250 ac_exeext=$ac_cv_exeext
2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6; }
2254 # Check that the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_try") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 if test "$cross_compiling" = maybe; then
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6; }
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check that the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6; }
2298 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300 if { (ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_link") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest$ac_cv_exeext
2332 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2338 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340 if test "${ac_cv_objext+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2358 rm -f conftest.o conftest.obj
2359 if { (ac_try="$ac_compile"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compile") 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in conftest.o conftest.obj conftest.*; do
2370 test -f "$ac_file" || continue;
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2394 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 ac_save_c_werror_flag=$ac_c_werror_flag
2474 ac_c_werror_flag=yes
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_c_werror_flag=$ac_save_c_werror_flag
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2665 if test "$GCC" = yes; then
2671 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_cc_c89+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_prog_cc_c89=no
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2702 s = g (p, va_arg (v,int));
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738 CC="$ac_save_CC $ac_arg"
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_cv_prog_cc_c89=$ac_arg
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f core conftest.err conftest.$ac_objext
2782 test "x$ac_cv_prog_cc_c89" != "xno" && break
2784 rm -f conftest.$ac_ext
2789 case "x$ac_cv_prog_cc_c89" in
2791 { echo "$as_me:$LINENO: result: none needed" >&5
2792 echo "${ECHO_T}none needed" >&6; } ;;
2794 { echo "$as_me:$LINENO: result: unsupported" >&5
2795 echo "${ECHO_T}unsupported" >&6; } ;;
2797 CC="$CC $ac_cv_prog_cc_c89"
2798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 ac_cpp='$CXXCPP $CPPFLAGS'
2811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814 if test -z "$CXX"; then
2815 if test -n "$CCC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in clang++ g++
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CXX"; then
2829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 { echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2858 test -n "$CXX" && break
2861 if test -z "$CXX"; then
2863 for ac_prog in clang++ g++
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CXX"; then
2873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893 if test -n "$ac_ct_CXX"; then
2894 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2902 test -n "$ac_ct_CXX" && break
2905 if test "x$ac_ct_CXX" = x; then
2908 case $cross_compiling:$ac_tool_warned in
2910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&5
2913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2924 # Provide some information about the compiler.
2925 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (ac_try="$ac_compiler --version >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -V >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3027 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cxx_g+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038 ac_cxx_werror_flag=yes
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cxx_g=yes
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cxx_g=yes
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220 if test "$ac_test_CXXFLAGS" = set; then
3221 CXXFLAGS=$ac_save_CXXFLAGS
3222 elif test $ac_cv_prog_cxx_g = yes; then
3223 if test "$GXX" = yes; then
3229 if test "$GXX" = yes; then
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248 # On Suns, sometimes $CPP names a directory.
3249 if test -n "$CPP" && test -d "$CPP"; then
3252 if test -z "$CPP"; then
3253 if test "${ac_cv_prog_CPP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 # Double quotes because CPP needs to be expanded
3257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3260 for ac_c_preproc_warn_flag in '' yes
3262 # Use a header file that comes with gcc, so configuring glibc
3263 # with a fresh cross-compiler works.
3264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 # <limits.h> exists even on freestanding compilers.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp. "Syntax error" is here to catch this case.
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3275 # include <limits.h>
3277 # include <assert.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 if test -z "$ac_cpp_err"; then
3348 # Broken: success on invalid input.
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Passes both tests.
3359 rm -f conftest.err conftest.$ac_ext
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test "$CXX" = "clang++" ; then
3501 { echo "$as_me:$LINENO: checking whether clang works" >&5
3502 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 #if __has_include (<cxxabi.h>)
3520 #if __has_include (<unwind.h>)
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3577 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3578 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579 { (exit 1); exit 1; }; }
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600 llvm_cv_cxx_compiler=unknown
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 llvm_cv_cxx_compiler=clang
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 llvm_cv_cxx_compiler=gcc
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719 if test -d ${srcdir}/projects/test-suite ; then
3720 subdirs="$subdirs projects/test-suite"
3724 if test -d ${srcdir}/projects/llvm-test ; then
3725 subdirs="$subdirs projects/llvm-test"
3729 if test -d ${srcdir}/projects/poolalloc ; then
3730 subdirs="$subdirs projects/poolalloc"
3734 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735 subdirs="$subdirs projects/llvm-poolalloc"
3739 for i in `ls ${srcdir}/projects`
3741 if test -d ${srcdir}/projects/${i} ; then
3743 safecode) subdirs="$subdirs projects/safecode"
3751 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760 enableval=$enable_polly;
3765 case "$enableval" in
3770 default) ENABLE_POLLY=1
3772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774 { (exit 1); exit 1; }; } ;;
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3781 subdirs="$subdirs tools/polly"
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790 { (exit 1); exit 1; }; }
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803 { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807 { (exit 1); exit 1; }; }
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816 { (exit 1); exit 1; }; };;
3819 ac_save_IFS=$IFS; IFS='-'
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 if test "x$host_alias" = x; then
3838 ac_cv_host=$ac_cv_build
3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843 { (exit 1); exit 1; }; }
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853 { (exit 1); exit 1; }; };;
3856 ac_save_IFS=$IFS; IFS='-'
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test "x$target_alias" = x; then
3875 ac_cv_target=$ac_cv_host
3877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890 { (exit 1); exit 1; }; };;
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909 test "$program_prefix$program_suffix$program_transform_name" = \
3911 program_prefix=${target_alias}-
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="AIX"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="IRIX"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="Cygwin"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Darwin"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,-all_load"
3941 llvm_cv_no_link_all_option="-Wl,-noall_load"
3942 llvm_cv_os_type="Minix"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="FreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="GNU/kFreeBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="OpenBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="NetBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="DragonFly"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="HP-UX"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="Interix"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="Linux"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="GNU"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,-z,allextract"
3991 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992 llvm_cv_os_type="SunOS"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="Win32"
3998 llvm_cv_platform_type="Win32" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="MingW"
4003 llvm_cv_platform_type="Win32" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Haiku"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Freestanding"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4020 llvm_cv_link_all_option=""
4021 llvm_cv_no_link_all_option=""
4022 llvm_cv_os_type="Unknown"
4023 llvm_cv_platform_type="Unknown" ;;
4026 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4027 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4029 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4030 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4031 if test "${llvm_cv_target_os_type+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 llvm_cv_target_os_type="AIX" ;;
4038 llvm_cv_target_os_type="IRIX" ;;
4040 llvm_cv_target_os_type="Cygwin" ;;
4042 llvm_cv_target_os_type="Darwin" ;;
4044 llvm_cv_target_os_type="Minix" ;;
4046 llvm_cv_target_os_type="FreeBSD" ;;
4048 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4050 llvm_cv_target_os_type="OpenBSD" ;;
4052 llvm_cv_target_os_type="NetBSD" ;;
4054 llvm_cv_target_os_type="DragonFly" ;;
4056 llvm_cv_target_os_type="HP-UX" ;;
4058 llvm_cv_target_os_type="Interix" ;;
4060 llvm_cv_target_os_type="Linux" ;;
4062 llvm_cv_target_os_type="GNU" ;;
4064 llvm_cv_target_os_type="SunOS" ;;
4066 llvm_cv_target_os_type="Win32" ;;
4068 llvm_cv_target_os_type="MingW" ;;
4070 llvm_cv_target_os_type="Haiku" ;;
4072 llvm_cv_target_os_type="RTEMS" ;;
4074 llvm_cv_target_os_type="NativeClient" ;;
4076 llvm_cv_target_os_type="Freestanding" ;;
4078 llvm_cv_target_os_type="Unknown" ;;
4081 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4082 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4084 if test "$llvm_cv_os_type" = "Unknown" ; then
4085 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4086 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4087 { (exit 1); exit 1; }; }
4092 HOST_OS=$llvm_cv_os_type
4094 TARGET_OS=$llvm_cv_target_os_type
4097 LINKALL=$llvm_cv_link_all_option
4099 NOLINKALL=$llvm_cv_no_link_all_option
4102 case $llvm_cv_platform_type in
4105 cat >>confdefs.h <<\_ACEOF
4106 #define LLVM_ON_UNIX 1
4116 cat >>confdefs.h <<\_ACEOF
4117 #define LLVM_ON_WIN32 1
4127 { echo "$as_me:$LINENO: checking target architecture" >&5
4128 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4129 if test "${llvm_cv_target_arch+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 i?86-*) llvm_cv_target_arch="x86" ;;
4134 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4135 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4136 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4137 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4138 arm*-*) llvm_cv_target_arch="ARM" ;;
4139 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4140 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4141 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4142 xcore-*) llvm_cv_target_arch="XCore" ;;
4143 msp430-*) llvm_cv_target_arch="MSP430" ;;
4144 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4145 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4146 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4147 *) llvm_cv_target_arch="Unknown" ;;
4150 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4151 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4153 if test "$llvm_cv_target_arch" = "Unknown" ; then
4154 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4155 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4158 case "$llvm_cv_target_arch" in
4159 x86) LLVM_NATIVE_ARCH="X86" ;;
4160 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4161 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4164 ARCH=$llvm_cv_target_arch
4166 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4170 i?86-*) host_arch="x86" ;;
4171 amd64-* | x86_64-*) host_arch="x86_64" ;;
4172 sparc*-*) host_arch="Sparc" ;;
4173 powerpc*-*) host_arch="PowerPC" ;;
4174 arm64*-*) host_arch="AArch64" ;;
4175 arm*-*) host_arch="ARM" ;;
4176 aarch64*-*) host_arch="AArch64" ;;
4177 mips-* | mips64-*) host_arch="Mips" ;;
4178 mipsel-* | mips64el-*) host_arch="Mips" ;;
4179 xcore-*) host_arch="XCore" ;;
4180 msp430-*) host_arch="MSP430" ;;
4181 hexagon-*) host_arch="Hexagon" ;;
4182 s390x-*) host_arch="SystemZ" ;;
4183 *) host_arch="Unknown" ;;
4186 if test "$host_arch" = "Unknown" ; then
4187 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4188 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4191 HOST_ARCH=$host_arch
4194 if test "$cross_compiling" = yes; then
4195 LLVM_CROSS_COMPILING=1
4198 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4199 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4200 if test "${ac_cv_build_exeext+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4204 ac_cv_build_exeext=.exe
4206 ac_build_prefix=${build_alias}-
4208 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4209 set dummy ${ac_build_prefix}gcc; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 if test -n "$BUILD_CC"; then
4216 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 BUILD_CC=$ac_cv_prog_BUILD_CC
4236 if test -n "$BUILD_CC"; then
4237 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4238 echo "${ECHO_T}$BUILD_CC" >&6; }
4240 { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4245 if test -z "$BUILD_CC"; then
4246 # Extract the first word of "gcc", so it can be a program name with args.
4247 set dummy gcc; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$BUILD_CC"; then
4254 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_BUILD_CC="gcc"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 BUILD_CC=$ac_cv_prog_BUILD_CC
4274 if test -n "$BUILD_CC"; then
4275 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4276 echo "${ECHO_T}$BUILD_CC" >&6; }
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4283 if test -z "$BUILD_CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$BUILD_CC"; then
4292 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4306 ac_cv_prog_BUILD_CC="cc"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_BUILD_CC
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set BUILD_CC to just the basename; use the full file name.
4323 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4328 BUILD_CC=$ac_cv_prog_BUILD_CC
4329 if test -n "$BUILD_CC"; then
4330 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4331 echo "${ECHO_T}$BUILD_CC" >&6; }
4333 { echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6; }
4340 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4341 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4342 { (exit 1); exit 1; }; }
4343 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4345 echo 'int main () { return 0; }' > conftest.$ac_ext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4348 (eval $ac_build_link) 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; then
4352 for file in conftest.*; do
4354 *.c | *.o | *.obj | *.dSYM) ;;
4355 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4359 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4360 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4361 { (exit 1); exit 1; }; }
4364 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4369 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4370 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4371 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4372 ac_build_exeext=$BUILD_EXEEXT
4374 ac_build_prefix=${build_alias}-
4375 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4376 set dummy ${ac_build_prefix}g++; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test -n "$BUILD_CXX"; then
4383 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4403 if test -n "$BUILD_CXX"; then
4404 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4405 echo "${ECHO_T}$BUILD_CXX" >&6; }
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4412 if test -z "$BUILD_CXX"; then
4413 # Extract the first word of "g++", so it can be a program name with args.
4414 set dummy g++; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -n "$BUILD_CXX"; then
4421 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_BUILD_CXX="g++"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4441 if test -n "$BUILD_CXX"; then
4442 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4443 echo "${ECHO_T}$BUILD_CXX" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 if test -z "$BUILD_CXX"; then
4451 # Extract the first word of "c++", so it can be a program name with args.
4452 set dummy c++; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 if test -n "$BUILD_CXX"; then
4459 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4470 ac_prog_rejected=yes
4473 ac_cv_prog_BUILD_CXX="c++"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 if test $ac_prog_rejected = yes; then
4482 # We found a bogon in the path, so make sure we never use it.
4483 set dummy $ac_cv_prog_BUILD_CXX
4485 if test $# != 0; then
4486 # We chose a different compiler from the bogus one.
4487 # However, it has the same basename, so the bogon will be chosen
4488 # first if we set BUILD_CXX to just the basename; use the full file name.
4490 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4495 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4496 if test -n "$BUILD_CXX"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4498 echo "${ECHO_T}$BUILD_CXX" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4508 LLVM_CROSS_COMPILING=0
4512 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4523 # Check whether --enable-libcpp was given.
4524 if test "${enable_libcpp+set}" = set; then
4525 enableval=$enable_libcpp;
4530 case "$enableval" in
4531 yes) ENABLE_LIBCPP=1
4535 default) ENABLE_LIBCPP=0
4537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4538 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4539 { (exit 1); exit 1; }; } ;;
4542 # Check whether --enable-compiler-version-checks was given.
4543 if test "${enable_compiler_version_checks+set}" = set; then
4544 enableval=$enable_compiler_version_checks;
4549 case "$enableval" in
4554 ac_cpp='$CXXCPP $CPPFLAGS'
4555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559 case "$llvm_cv_cxx_compiler" in
4561 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4562 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4570 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4571 #error This version of Clang is too old to build LLVM
4575 rm -f conftest.$ac_objext
4576 if { (ac_try="$ac_compile"
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_compile") 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_try") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 { echo "$as_me:$LINENO: result: yes" >&5
4610 echo "${ECHO_T}yes" >&6; }
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 { { echo "$as_me:$LINENO: error:
4618 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4619 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4620 bypass these sanity checks." >&5
4621 echo "$as_me: error:
4622 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4623 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4624 bypass these sanity checks." >&2;}
4625 { (exit 1); exit 1; }; }
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 if test "$ENABLE_LIBCPP" -eq 0 ; then
4631 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4632 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4633 llvm_cv_old_cxxflags="$CXXFLAGS"
4634 CXXFLAGS="$CXXFLAGS -std=c++0x"
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4643 std::atomic<float> x(0.0f);
4644 int main() { return (float)x; }
4647 rm -f conftest.$ac_objext conftest$ac_exeext
4648 if { (ac_try="$ac_link"
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_link") 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4662 { (case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_try") 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_try") 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 { { echo "$as_me:$LINENO: error:
4690 We detected a missing feature in the standard C++ library that was known to be
4691 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4692 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4693 than 4.7. You will need to update your system and ensure Clang uses the newer
4696 If this error is incorrect or you need to force things to work, you may pass
4697 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4698 echo "$as_me: error:
4699 We detected a missing feature in the standard C++ library that was known to be
4700 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702 than 4.7. You will need to update your system and ensure Clang uses the newer
4705 If this error is incorrect or you need to force things to work, you may pass
4706 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4707 { (exit 1); exit 1; }; }
4710 rm -f core conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 CXXFLAGS="$llvm_cv_old_cxxflags"
4716 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4717 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4725 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4726 #error This version of GCC is too old to build LLVM
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4745 { (case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_try") 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_try") 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 { echo "$as_me:$LINENO: result: yes" >&5
4765 echo "${ECHO_T}yes" >&6; }
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 { { echo "$as_me:$LINENO: error:
4773 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4774 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4775 bypass these sanity checks." >&5
4776 echo "$as_me: error:
4777 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4778 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4779 bypass these sanity checks." >&2;}
4780 { (exit 1); exit 1; }; }
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4797 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4798 { (exit 1); exit 1; }; }
4802 # Check whether --enable-cxx1y was given.
4803 if test "${enable_cxx1y+set}" = set; then
4804 enableval=$enable_cxx1y;
4809 case "$enableval" in
4814 default) ENABLE_CXX1Y=0
4816 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4817 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4821 # Check whether --enable-split-dwarf was given.
4822 if test "${enable_split_dwarf+set}" = set; then
4823 enableval=$enable_split_dwarf;
4828 case "$enableval" in
4829 yes) ENABLE_SPLIT_DWARF=1
4831 no) ENABLE_SPLIT_DWARF=0
4833 default) ENABLE_SPLIT_DWARF=0
4835 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4836 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4837 { (exit 1); exit 1; }; } ;;
4841 # Check whether --enable-clang-arcmt was given.
4842 if test "${enable_clang_arcmt+set}" = set; then
4843 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4848 case "$enableval" in
4849 yes) ENABLE_CLANG_ARCMT=1
4851 no) ENABLE_CLANG_ARCMT=0
4853 default) ENABLE_CLANG_ARCMT=1
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4860 clang_plugin_support="yes"
4861 # Check whether --enable-clang-plugin-support was given.
4862 if test "${enable_clang_plugin_support+set}" = set; then
4863 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4868 case "$enableval" in
4869 yes) CLANG_PLUGIN_SUPPORT=1
4871 no) CLANG_PLUGIN_SUPPORT=0
4873 default) CLANG_PLUGIN_SUPPORT=1
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4880 clang_static_analyzer="yes"
4881 # Check whether --enable-clang-static-analyzer was given.
4882 if test "${enable_clang_static_analyzer+set}" = set; then
4883 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4888 case "$enableval" in
4889 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4892 if test ${clang_arcmt} != "no" ; then
4893 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4894 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4895 { (exit 1); exit 1; }; }
4897 ENABLE_CLANG_STATIC_ANALYZER=0
4900 default) ENABLE_CLANG_STATIC_ANALYZER=1
4902 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4903 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4907 # Check whether --enable-optimized was given.
4908 if test "${enable_optimized+set}" = set; then
4909 enableval=$enable_optimized;
4914 if test ${enableval} = "no" ; then
4918 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4922 # Check whether --enable-profiling was given.
4923 if test "${enable_profiling+set}" = set; then
4924 enableval=$enable_profiling;
4929 if test ${enableval} = "no" ; then
4933 ENABLE_PROFILING=ENABLE_PROFILING=1
4937 # Check whether --enable-assertions was given.
4938 if test "${enable_assertions+set}" = set; then
4939 enableval=$enable_assertions;
4944 if test ${enableval} = "yes" ; then
4948 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4952 # Check whether --enable-werror was given.
4953 if test "${enable_werror+set}" = set; then
4954 enableval=$enable_werror;
4959 case "$enableval" in
4960 yes) ENABLE_WERROR=1
4964 default) ENABLE_WERROR=0
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4971 # Check whether --enable-expensive-checks was given.
4972 if test "${enable_expensive_checks+set}" = set; then
4973 enableval=$enable_expensive_checks;
4978 if test ${enableval} = "yes" ; then
4979 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981 EXPENSIVE_CHECKS=yes
4984 ENABLE_EXPENSIVE_CHECKS=
4990 # Check whether --enable-debug-runtime was given.
4991 if test "${enable_debug_runtime+set}" = set; then
4992 enableval=$enable_debug_runtime;
4997 if test ${enableval} = "no" ; then
5001 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5005 # Check whether --enable-debug-symbols was given.
5006 if test "${enable_debug_symbols+set}" = set; then
5007 enableval=$enable_debug_symbols;
5012 if test ${enableval} = "no" ; then
5016 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5020 # Check whether --enable-keep-symbols was given.
5021 if test "${enable_keep_symbols+set}" = set; then
5022 enableval=$enable_keep_symbols;
5027 if test ${enableval} = "no" ; then
5031 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5035 # Check whether --enable-jit was given.
5036 if test "${enable_jit+set}" = set; then
5037 enableval=$enable_jit;
5042 if test ${enableval} = "no"
5047 case "$llvm_cv_target_arch" in
5048 x86) TARGET_HAS_JIT=1
5050 Sparc) TARGET_HAS_JIT=0
5052 PowerPC) TARGET_HAS_JIT=1
5054 x86_64) TARGET_HAS_JIT=1
5056 ARM) TARGET_HAS_JIT=1
5058 Mips) TARGET_HAS_JIT=1
5060 XCore) TARGET_HAS_JIT=0
5062 MSP430) TARGET_HAS_JIT=0
5064 Hexagon) TARGET_HAS_JIT=0
5066 NVPTX) TARGET_HAS_JIT=0
5068 SystemZ) TARGET_HAS_JIT=1
5075 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5076 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5079 # Check whether --enable-docs was given.
5080 if test "${enable_docs+set}" = set; then
5081 enableval=$enable_docs;
5086 case "$enableval" in
5091 default) ENABLE_DOCS=1
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5098 # Check whether --enable-doxygen was given.
5099 if test "${enable_doxygen+set}" = set; then
5100 enableval=$enable_doxygen;
5105 case "$enableval" in
5106 yes) ENABLE_DOXYGEN=1
5108 no) ENABLE_DOXYGEN=0
5110 default) ENABLE_DOXYGEN=0
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-threads was given.
5118 if test "${enable_threads+set}" = set; then
5119 enableval=$enable_threads;
5124 case "$enableval" in
5125 yes) LLVM_ENABLE_THREADS=1
5127 no) LLVM_ENABLE_THREADS=0
5129 default) LLVM_ENABLE_THREADS=1
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5141 # Check whether --enable-pthreads was given.
5142 if test "${enable_pthreads+set}" = set; then
5143 enableval=$enable_pthreads;
5148 case "$enableval" in
5149 yes) ENABLE_PTHREADS=1
5151 no) ENABLE_PTHREADS=0
5153 default) ENABLE_PTHREADS=1
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5160 # Check whether --enable-zlib was given.
5161 if test "${enable_zlib+set}" = set; then
5162 enableval=$enable_zlib;
5167 case "$enableval" in
5168 yes) LLVM_ENABLE_ZLIB=1
5170 no) LLVM_ENABLE_ZLIB=0
5172 default) LLVM_ENABLE_ZLIB=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5184 # Check whether --enable-pic was given.
5185 if test "${enable_pic+set}" = set; then
5186 enableval=$enable_pic;
5191 case "$enableval" in
5196 default) ENABLE_PIC=1
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 cat >>confdefs.h <<_ACEOF
5204 #define ENABLE_PIC $ENABLE_PIC
5208 # Check whether --enable-shared was given.
5209 if test "${enable_shared+set}" = set; then
5210 enableval=$enable_shared;
5215 case "$enableval" in
5216 yes) ENABLE_SHARED=1
5220 default) ENABLE_SHARED=0
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 # Check whether --enable-embed-stdcxx was given.
5228 if test "${enable_embed_stdcxx+set}" = set; then
5229 enableval=$enable_embed_stdcxx;
5234 case "$enableval" in
5235 yes) ENABLE_EMBED_STDCXX=1
5237 no) ENABLE_EMBED_STDCXX=0
5239 default) ENABLE_EMBED_STDCXX=0
5241 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5246 # Check whether --enable-timestamps was given.
5247 if test "${enable_timestamps+set}" = set; then
5248 enableval=$enable_timestamps;
5253 case "$enableval" in
5254 yes) ENABLE_TIMESTAMPS=1
5256 no) ENABLE_TIMESTAMPS=0
5258 default) ENABLE_TIMESTAMPS=1
5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5265 cat >>confdefs.h <<_ACEOF
5266 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5270 # Check whether --enable-backtraces was given.
5271 if test "${enable_backtraces+set}" = set; then
5272 enableval=$enable_backtraces; case "$enableval" in
5273 yes) llvm_cv_enable_backtraces="yes" ;;
5274 no) llvm_cv_enable_backtraces="no" ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 llvm_cv_enable_backtraces="yes"
5283 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5285 cat >>confdefs.h <<\_ACEOF
5286 #define ENABLE_BACKTRACES 1
5291 # Check whether --enable-crash-overrides was given.
5292 if test "${enable_crash_overrides+set}" = set; then
5293 enableval=$enable_crash_overrides; case "$enableval" in
5294 yes) llvm_cv_enable_crash_overrides="yes" ;;
5295 no) llvm_cv_enable_crash_overrides="no" ;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 llvm_cv_enable_crash_overrides="yes"
5304 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_CRASH_OVERRIDES 1
5312 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5313 ALL_TARGETS=$ALL_TARGETS
5317 # Check whether --enable-targets was given.
5318 if test "${enable_targets+set}" = set; then
5319 enableval=$enable_targets;
5324 if test "$enableval" = host-only ; then
5327 case "$enableval" in
5328 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5329 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5331 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5334 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5335 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5336 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5337 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5343 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5344 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5345 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5347 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5348 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5349 host) case "$llvm_cv_target_arch" in
5350 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5354 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5355 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5358 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5359 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5360 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5361 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5362 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363 echo "$as_me: error: Can not set target to build" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5366 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5374 # Check whether --enable-experimental-targets was given.
5375 if test "${enable_experimental_targets+set}" = set; then
5376 enableval=$enable_experimental_targets;
5382 if test ${enableval} != "disable"
5384 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5387 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5390 for a_target in $TARGETS_TO_BUILD; do
5391 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5397 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5398 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5399 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5400 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5402 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5404 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5405 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5427 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5434 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5444 LLVM_ENUM_TARGETS=""
5445 LLVM_ENUM_ASM_PRINTERS=""
5446 LLVM_ENUM_ASM_PARSERS=""
5447 LLVM_ENUM_DISASSEMBLERS=""
5448 for target_to_build in $TARGETS_TO_BUILD; do
5449 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5451 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5453 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5454 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5456 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5457 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5466 # Check whether --with-optimize-option was given.
5467 if test "${with_optimize_option+set}" = set; then
5468 withval=$with_optimize_option;
5473 { echo "$as_me:$LINENO: checking optimization flags" >&5
5474 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5477 case "$llvm_cv_os_type" in
5478 FreeBSD) optimize_option=-O2 ;;
5479 MingW) optimize_option=-O2 ;;
5480 *) optimize_option=-O3 ;;
5482 *) optimize_option="$withval" ;;
5484 OPTIMIZE_OPTION=$optimize_option
5486 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5487 echo "${ECHO_T}$optimize_option" >&6; }
5490 # Check whether --with-extra-options was given.
5491 if test "${with_extra_options+set}" = set; then
5492 withval=$with_extra_options;
5498 default) EXTRA_OPTIONS= ;;
5499 *) EXTRA_OPTIONS=$withval ;;
5501 EXTRA_OPTIONS=$EXTRA_OPTIONS
5505 # Check whether --with-extra-ld-options was given.
5506 if test "${with_extra_ld_options+set}" = set; then
5507 withval=$with_extra_ld_options;
5513 default) EXTRA_LD_OPTIONS= ;;
5514 *) EXTRA_LD_OPTIONS=$withval ;;
5516 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5519 # Check whether --enable-bindings was given.
5520 if test "${enable_bindings+set}" = set; then
5521 enableval=$enable_bindings;
5526 BINDINGS_TO_BUILD=""
5527 case "$enableval" in
5528 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5529 all ) BINDINGS_TO_BUILD="ocaml" ;;
5530 none | no) BINDINGS_TO_BUILD="" ;;
5531 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5532 case "$a_binding" in
5533 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5534 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5535 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5543 # Check whether --with-ocaml-libdir was given.
5544 if test "${with_ocaml_libdir+set}" = set; then
5545 withval=$with_ocaml_libdir;
5551 auto) with_ocaml_libdir="$withval" ;;
5552 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5553 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5554 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5555 { (exit 1); exit 1; }; } ;;
5559 # Check whether --with-clang-srcdir was given.
5560 if test "${with_clang_srcdir+set}" = set; then
5561 withval=$with_clang_srcdir;
5567 -) clang_src_root="" ;;
5568 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5569 *) clang_src_root="$ac_pwd/$withval" ;;
5571 CLANG_SRC_ROOT=$clang_src_root
5575 # Check whether --with-clang-resource-dir was given.
5576 if test "${with_clang_resource_dir+set}" = set; then
5577 withval=$with_clang_resource_dir;
5583 cat >>confdefs.h <<_ACEOF
5584 #define CLANG_RESOURCE_DIR "$withval"
5589 # Check whether --with-c-include-dirs was given.
5590 if test "${with_c_include_dirs+set}" = set; then
5591 withval=$with_c_include_dirs;
5597 cat >>confdefs.h <<_ACEOF
5598 #define C_INCLUDE_DIRS "$withval"
5602 # Clang normally uses the system c++ headers and libraries. With this option,
5603 # clang will use the ones provided by a gcc installation instead. This option should
5604 # be passed the same value that was used with --prefix when configuring gcc.
5606 # Check whether --with-gcc-toolchain was given.
5607 if test "${with_gcc_toolchain+set}" = set; then
5608 withval=$with_gcc_toolchain;
5614 cat >>confdefs.h <<_ACEOF
5615 #define GCC_INSTALL_PREFIX "$withval"
5620 # Check whether --with-default-sysroot was given.
5621 if test "${with_default_sysroot+set}" = set; then
5622 withval=$with_default_sysroot;
5628 cat >>confdefs.h <<_ACEOF
5629 #define DEFAULT_SYSROOT "$withval"
5634 # Check whether --with-binutils-include was given.
5635 if test "${with_binutils_include+set}" = set; then
5636 withval=$with_binutils_include;
5642 default) WITH_BINUTILS_INCDIR=default ;;
5643 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5645 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5646 { (exit 1); exit 1; }; } ;;
5648 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5649 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5651 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5652 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5653 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5654 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5655 { (exit 1); exit 1; }; };
5660 # Check whether --with-bug-report-url was given.
5661 if test "${with_bug_report_url+set}" = set; then
5662 withval=$with_bug_report_url;
5664 withval="http://llvm.org/bugs/"
5668 cat >>confdefs.h <<_ACEOF
5669 #define BUG_REPORT_URL "$withval"
5673 # Check whether --enable-terminfo was given.
5674 if test "${enable_terminfo+set}" = set; then
5675 enableval=$enable_terminfo; case "$enableval" in
5676 yes) llvm_cv_enable_terminfo="yes" ;;
5677 no) llvm_cv_enable_terminfo="no" ;;
5678 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5679 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5683 llvm_cv_enable_terminfo="yes"
5686 case "$llvm_cv_enable_terminfo" in
5687 yes) ENABLE_TERMINFO=1
5689 no) ENABLE_TERMINFO=0
5693 # Check whether --enable-libedit was given.
5694 if test "${enable_libedit+set}" = set; then
5695 enableval=$enable_libedit; case "$enableval" in
5696 yes) llvm_cv_enable_libedit="yes" ;;
5697 no) llvm_cv_enable_libedit="no" ;;
5698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5699 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5700 { (exit 1); exit 1; }; } ;;
5703 llvm_cv_enable_libedit="yes"
5707 # Check whether --enable-libffi was given.
5708 if test "${enable_libffi+set}" = set; then
5709 enableval=$enable_libffi; case "$enableval" in
5710 yes) llvm_cv_enable_libffi="yes" ;;
5711 no) llvm_cv_enable_libffi="no" ;;
5712 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5713 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5714 { (exit 1); exit 1; }; } ;;
5717 llvm_cv_enable_libffi=no
5722 # Check whether --with-internal-prefix was given.
5723 if test "${with_internal_prefix+set}" = set; then
5724 withval=$with_internal_prefix;
5729 INTERNAL_PREFIX=$withval
5733 { echo "$as_me:$LINENO: checking for GNU make" >&5
5734 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5735 if test "${llvm_cv_gnu_make_command+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 llvm_cv_gnu_make_command=''
5739 for a in "$MAKE" make gmake gnumake ; do
5740 if test -z "$a" ; then continue ; fi ;
5741 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5743 llvm_cv_gnu_make_command=$a ;
5748 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5749 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5750 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5754 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5755 echo "${ECHO_T}\"Not found\"" >&6; };
5759 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5760 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5762 if test "$LN_S" = "ln -s"; then
5763 { echo "$as_me:$LINENO: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6; }
5766 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5767 echo "${ECHO_T}no, using $LN_S" >&6; }
5770 # Extract the first word of "nm", so it can be a program name with args.
5771 set dummy nm; ac_word=$2
5772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774 if test "${ac_cv_path_NM+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5802 if test -n "$NM"; then
5803 { echo "$as_me:$LINENO: result: $NM" >&5
5804 echo "${ECHO_T}$NM" >&6; }
5806 { echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6; }
5811 # Extract the first word of "cmp", so it can be a program name with args.
5812 set dummy cmp; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_path_CMP+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5843 if test -n "$CMP"; then
5844 { echo "$as_me:$LINENO: result: $CMP" >&5
5845 echo "${ECHO_T}$CMP" >&6; }
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5852 # Extract the first word of "cp", so it can be a program name with args.
5853 set dummy cp; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_CP+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5884 if test -n "$CP"; then
5885 { echo "$as_me:$LINENO: result: $CP" >&5
5886 echo "${ECHO_T}$CP" >&6; }
5888 { echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6; }
5893 # Extract the first word of "date", so it can be a program name with args.
5894 set dummy date; ac_word=$2
5895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_DATE+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5924 DATE=$ac_cv_path_DATE
5925 if test -n "$DATE"; then
5926 { echo "$as_me:$LINENO: result: $DATE" >&5
5927 echo "${ECHO_T}$DATE" >&6; }
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5934 # Extract the first word of "find", so it can be a program name with args.
5935 set dummy find; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_path_FIND+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5965 FIND=$ac_cv_path_FIND
5966 if test -n "$FIND"; then
5967 { echo "$as_me:$LINENO: result: $FIND" >&5
5968 echo "${ECHO_T}$FIND" >&6; }
5970 { echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6; }
5975 # Extract the first word of "grep", so it can be a program name with args.
5976 set dummy grep; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_path_GREP+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6006 GREP=$ac_cv_path_GREP
6007 if test -n "$GREP"; then
6008 { echo "$as_me:$LINENO: result: $GREP" >&5
6009 echo "${ECHO_T}$GREP" >&6; }
6011 { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6016 # Extract the first word of "mkdir", so it can be a program name with args.
6017 set dummy mkdir; ac_word=$2
6018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020 if test "${ac_cv_path_MKDIR+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6047 MKDIR=$ac_cv_path_MKDIR
6048 if test -n "$MKDIR"; then
6049 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6050 echo "${ECHO_T}$MKDIR" >&6; }
6052 { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6057 # Extract the first word of "mv", so it can be a program name with args.
6058 set dummy mv; ac_word=$2
6059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061 if test "${ac_cv_path_MV+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6089 if test -n "$MV"; then
6090 { echo "$as_me:$LINENO: result: $MV" >&5
6091 echo "${ECHO_T}$MV" >&6; }
6093 { echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6; }
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_prog_RANLIB+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 if test -n "$RANLIB"; then
6107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 RANLIB=$ac_cv_prog_RANLIB
6127 if test -n "$RANLIB"; then
6128 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6129 echo "${ECHO_T}$RANLIB" >&6; }
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6137 if test -z "$ac_cv_prog_RANLIB"; then
6138 ac_ct_RANLIB=$RANLIB
6139 # Extract the first word of "ranlib", so it can be a program name with args.
6140 set dummy ranlib; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 if test -n "$ac_ct_RANLIB"; then
6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_RANLIB="ranlib"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167 if test -n "$ac_ct_RANLIB"; then
6168 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6175 if test "x$ac_ct_RANLIB" = x; then
6178 case $cross_compiling:$ac_tool_warned in
6180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&5
6183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184 whose name does not start with the host triplet. If you think this
6185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6186 ac_tool_warned=yes ;;
6188 RANLIB=$ac_ct_RANLIB
6191 RANLIB="$ac_cv_prog_RANLIB"
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ar; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_AR+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 if test -n "$AR"; then
6203 ac_cv_prog_AR="$AR" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_AR="${ac_tool_prefix}ar"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 if test -n "$AR"; then
6224 { echo "$as_me:$LINENO: result: $AR" >&5
6225 echo "${ECHO_T}$AR" >&6; }
6227 { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6233 if test -z "$ac_cv_prog_AR"; then
6235 # Extract the first word of "ar", so it can be a program name with args.
6236 set dummy ar; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 if test -n "$ac_ct_AR"; then
6243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_AR="ar"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6263 if test -n "$ac_ct_AR"; then
6264 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6265 echo "${ECHO_T}$ac_ct_AR" >&6; }
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6271 if test "x$ac_ct_AR" = x; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet. If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned=yes ;;
6290 # Extract the first word of "rm", so it can be a program name with args.
6291 set dummy rm; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_path_RM+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6322 if test -n "$RM"; then
6323 { echo "$as_me:$LINENO: result: $RM" >&5
6324 echo "${ECHO_T}$RM" >&6; }
6326 { echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6; }
6331 # Extract the first word of "sed", so it can be a program name with args.
6332 set dummy sed; ac_word=$2
6333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6335 if test "${ac_cv_path_SED+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6363 if test -n "$SED"; then
6364 { echo "$as_me:$LINENO: result: $SED" >&5
6365 echo "${ECHO_T}$SED" >&6; }
6367 { echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6; }
6372 # Extract the first word of "tar", so it can be a program name with args.
6373 set dummy tar; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_path_TAR+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6404 if test -n "$TAR"; then
6405 { echo "$as_me:$LINENO: result: $TAR" >&5
6406 echo "${ECHO_T}$TAR" >&6; }
6408 { echo "$as_me:$LINENO: result: no" >&5
6409 echo "${ECHO_T}no" >&6; }
6413 # Extract the first word of "pwd", so it can be a program name with args.
6414 set dummy pwd; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_path_BINPWD+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6444 BINPWD=$ac_cv_path_BINPWD
6445 if test -n "$BINPWD"; then
6446 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6447 echo "${ECHO_T}$BINPWD" >&6; }
6449 { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6455 # Extract the first word of "dot", so it can be a program name with args.
6456 set dummy dot; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_path_DOT+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6487 if test -n "$DOT"; then
6488 { echo "$as_me:$LINENO: result: $DOT" >&5
6489 echo "${ECHO_T}$DOT" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6496 if test "$DOT" != "echo dot" ; then
6498 cat >>confdefs.h <<\_ACEOF
6502 if test "$llvm_cv_os_type" = "MingW" ; then
6503 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6506 cat >>confdefs.h <<_ACEOF
6507 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6512 # Find a good install program. We prefer a C program (faster),
6513 # so one script is as good as another. But avoid the broken or
6514 # incompatible versions:
6515 # SysV /etc/install, /usr/sbin/install
6516 # SunOS /usr/etc/install
6517 # IRIX /sbin/install
6519 # AmigaOS /C/install, which installs bootblocks on floppy discs
6520 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6523 # OS/2's system install, which has a completely different semantic
6524 # ./install, which can be erroneously created by make from ./install.sh.
6525 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6526 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6527 if test -z "$INSTALL"; then
6528 if test "${ac_cv_path_install+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 # Account for people who put trailing slashes in PATH elements.
6538 ./ | .// | /cC/* | \
6539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6540 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6543 # OSF1 and SCO ODT 3.0 have their own names for install.
6544 # Don't use installbsd from OSF since it installs stuff as root
6546 for ac_prog in ginstall scoinst install; do
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6549 if test $ac_prog = install &&
6550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6551 # AIX install. It has an incompatible calling convention.
6553 elif test $ac_prog = install &&
6554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6555 # program-specific install script used by HP pwplus--don't use.
6558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6571 if test "${ac_cv_path_install+set}" = set; then
6572 INSTALL=$ac_cv_path_install
6574 # As a last resort, use the slow shell script. Don't cache a
6575 # value for INSTALL within a source directory, because that will
6576 # break other packages using the cache if that directory is
6577 # removed, or if the value is a relative name.
6578 INSTALL=$ac_install_sh
6581 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6582 echo "${ECHO_T}$INSTALL" >&6; }
6584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6585 # It thinks the first close brace ends the variable substitution.
6586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6593 [\\/$]* | ?:[\\/]* ) ;;
6594 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6597 # Extract the first word of "bzip2", so it can be a program name with args.
6598 set dummy bzip2; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_BZIP2+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 BZIP2=$ac_cv_path_BZIP2
6628 if test -n "$BZIP2"; then
6629 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6630 echo "${ECHO_T}$BZIP2" >&6; }
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6637 # Extract the first word of "cat", so it can be a program name with args.
6638 set dummy cat; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_CAT+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 if test -n "$CAT"; then
6669 { echo "$as_me:$LINENO: result: $CAT" >&5
6670 echo "${ECHO_T}$CAT" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 # Extract the first word of "doxygen", so it can be a program name with args.
6678 set dummy doxygen; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 DOXYGEN=$ac_cv_path_DOXYGEN
6708 if test -n "$DOXYGEN"; then
6709 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6710 echo "${ECHO_T}$DOXYGEN" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6717 # Extract the first word of "groff", so it can be a program name with args.
6718 set dummy groff; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_path_GROFF+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 GROFF=$ac_cv_path_GROFF
6748 if test -n "$GROFF"; then
6749 { echo "$as_me:$LINENO: result: $GROFF" >&5
6750 echo "${ECHO_T}$GROFF" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 # Extract the first word of "gzip", so it can be a program name with args.
6758 set dummy gzip; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 GZIPBIN=$ac_cv_path_GZIPBIN
6788 if test -n "$GZIPBIN"; then
6789 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6790 echo "${ECHO_T}$GZIPBIN" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6797 # Extract the first word of "pdfroff", so it can be a program name with args.
6798 set dummy pdfroff; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_PDFROFF+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 PDFROFF=$ac_cv_path_PDFROFF
6828 if test -n "$PDFROFF"; then
6829 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6830 echo "${ECHO_T}$PDFROFF" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "zip", so it can be a program name with args.
6838 set dummy zip; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_ZIP+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 if test -n "$ZIP"; then
6869 { echo "$as_me:$LINENO: result: $ZIP" >&5
6870 echo "${ECHO_T}$ZIP" >&6; }
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6877 # Extract the first word of "go", so it can be a program name with args.
6878 set dummy go; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_GO+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 if test -n "$GO"; then
6909 { echo "$as_me:$LINENO: result: $GO" >&5
6910 echo "${ECHO_T}$GO" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 for ac_prog in ocamlfind
6919 # Extract the first word of "$ac_prog", so it can be a program name with args.
6920 set dummy $ac_prog; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 OCAMLFIND=$ac_cv_path_OCAMLFIND
6950 if test -n "$OCAMLFIND"; then
6951 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6952 echo "${ECHO_T}$OCAMLFIND" >&6; }
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6959 test -n "$OCAMLFIND" && break
6962 for ac_prog in gas as
6964 # Extract the first word of "$ac_prog", so it can be a program name with args.
6965 set dummy $ac_prog; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_GAS+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 if test -n "$GAS"; then
6996 { echo "$as_me:$LINENO: result: $GAS" >&5
6997 echo "${ECHO_T}$GAS" >&6; }
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7004 test -n "$GAS" && break
7008 { echo "$as_me:$LINENO: checking for linker version" >&5
7009 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7010 if test "${llvm_cv_link_version+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7017 if (echo "$version_string" | grep -q "ld64"); then
7018 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7020 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7024 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7025 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7027 cat >>confdefs.h <<_ACEOF
7028 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7034 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7035 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7036 if test "${llvm_cv_link_use_r+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_cpp='$CPP $CPPFLAGS'
7041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046 CFLAGS="$CFLAGS -Wl,-R."
7047 cat >conftest.$ac_ext <<_ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (ac_try="$ac_link"
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_link") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7077 { (case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_try") 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_try") 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 llvm_cv_link_use_r=yes
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 llvm_cv_link_use_r=no
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7116 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7117 if test "$llvm_cv_link_use_r" = yes ; then
7119 cat >>confdefs.h <<\_ACEOF
7120 #define HAVE_LINK_R 1
7126 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7127 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7128 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 CFLAGS="$CFLAGS -rdynamic"
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169 { (case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_try") 2>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_try") 2>&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 llvm_cv_link_use_export_dynamic=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 llvm_cv_link_use_export_dynamic=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7208 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7209 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_LINK_EXPORT_DYNAMIC 1
7218 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7219 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7220 if test "${llvm_cv_link_use_version_script+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 # The following code is from the autoconf manual,
7232 # "11.13: Limitations of Usual Tools".
7233 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7234 # Use mktemp if possible; otherwise fall back on mkdir,
7235 # with $RANDOM to make collisions less likely.
7239 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7241 test -n "$tmp" && test -d "$tmp"
7243 tmp=$TMPDIR/foo$$-$RANDOM
7244 (umask 077 && mkdir "$tmp")
7247 echo "{" > "$tmp/export.map"
7248 echo " global: main;" >> "$tmp/export.map"
7249 echo " local: *;" >> "$tmp/export.map"
7250 echo "};" >> "$tmp/export.map"
7252 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7283 { (case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_try") 2>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_try") 2>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 llvm_cv_link_use_version_script=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 llvm_cv_link_use_version_script=no
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 rm "$tmp/export.map"
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7324 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7325 if test "$llvm_cv_link_use_version_script" = yes ; then
7326 HAVE_LINK_VERSION_SCRIPT=1
7332 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7333 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_GREP+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 # Extract the first word of "grep ggrep" to use in msg output
7338 if test -z "$GREP"; then
7339 set dummy grep ggrep; ac_prog_name=$2
7340 if test "${ac_cv_path_GREP+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 ac_path_GREP_found=false
7344 # Loop through the user's path and test for each of PROGNAME-LIST
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7349 test -z "$as_dir" && as_dir=.
7350 for ac_prog in grep ggrep; do
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7353 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7354 # Check for GNU ac_path_GREP and select it if it is found.
7355 # Check for GNU $ac_path_GREP
7356 case `"$ac_path_GREP" --version 2>&1` in
7358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7361 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7364 cat "conftest.in" "conftest.in" >"conftest.tmp"
7365 mv "conftest.tmp" "conftest.in"
7366 cp "conftest.in" "conftest.nl"
7367 echo 'GREP' >> "conftest.nl"
7368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7370 ac_count=`expr $ac_count + 1`
7371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7372 # Best one so far, save it but keep looking for a better one
7373 ac_cv_path_GREP="$ac_path_GREP"
7374 ac_path_GREP_max=$ac_count
7376 # 10*(2^10) chars as input seems more than enough
7377 test $ac_count -gt 10 && break
7379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7383 $ac_path_GREP_found && break 3
7393 GREP="$ac_cv_path_GREP"
7394 if test -z "$GREP"; then
7395 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7396 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7397 { (exit 1); exit 1; }; }
7401 ac_cv_path_GREP=$GREP
7406 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7407 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7408 GREP="$ac_cv_path_GREP"
7411 { echo "$as_me:$LINENO: checking for egrep" >&5
7412 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_EGREP+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7417 then ac_cv_path_EGREP="$GREP -E"
7419 # Extract the first word of "egrep" to use in msg output
7420 if test -z "$EGREP"; then
7421 set dummy egrep; ac_prog_name=$2
7422 if test "${ac_cv_path_EGREP+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_path_EGREP_found=false
7426 # Loop through the user's path and test for each of PROGNAME-LIST
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7431 test -z "$as_dir" && as_dir=.
7432 for ac_prog in egrep; do
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7435 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7436 # Check for GNU ac_path_EGREP and select it if it is found.
7437 # Check for GNU $ac_path_EGREP
7438 case `"$ac_path_EGREP" --version 2>&1` in
7440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7443 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7446 cat "conftest.in" "conftest.in" >"conftest.tmp"
7447 mv "conftest.tmp" "conftest.in"
7448 cp "conftest.in" "conftest.nl"
7449 echo 'EGREP' >> "conftest.nl"
7450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7452 ac_count=`expr $ac_count + 1`
7453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7454 # Best one so far, save it but keep looking for a better one
7455 ac_cv_path_EGREP="$ac_path_EGREP"
7456 ac_path_EGREP_max=$ac_count
7458 # 10*(2^10) chars as input seems more than enough
7459 test $ac_count -gt 10 && break
7461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7465 $ac_path_EGREP_found && break 3
7475 EGREP="$ac_cv_path_EGREP"
7476 if test -z "$EGREP"; then
7477 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7478 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7479 { (exit 1); exit 1; }; }
7483 ac_cv_path_EGREP=$EGREP
7489 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7490 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7491 EGREP="$ac_cv_path_EGREP"
7494 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7496 if test "${ac_cv_header_stdc+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7533 { (case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_try") 2>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_try") 2>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_header_stdc=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_cv_header_stdc=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 if test $ac_cv_header_stdc = yes; then
7563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574 $EGREP "memchr" >/dev/null 2>&1; then
7577 ac_cv_header_stdc=no
7583 if test $ac_cv_header_stdc = yes; then
7584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7595 $EGREP "free" >/dev/null 2>&1; then
7598 ac_cv_header_stdc=no
7604 if test $ac_cv_header_stdc = yes; then
7605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7606 if test "$cross_compiling" = yes; then
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7617 #if ((' ' & 0x0FF) == 0x020)
7618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7621 # define ISLOWER(c) \
7622 (('a' <= (c) && (c) <= 'i') \
7623 || ('j' <= (c) && (c) <= 'r') \
7624 || ('s' <= (c) && (c) <= 'z'))
7625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7633 for (i = 0; i < 256; i++)
7634 if (XOR (islower (i), ISLOWER (i))
7635 || toupper (i) != TOUPPER (i))
7640 rm -f conftest$ac_exeext
7641 if { (ac_try="$ac_link"
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_link") 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7651 { (case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_try") 2>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7662 echo "$as_me: program exited with status $ac_status" >&5
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7667 ac_cv_header_stdc=no
7669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7675 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7676 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7677 if test $ac_cv_header_stdc = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define STDC_HEADERS 1
7685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7696 inttypes.h stdint.h unistd.h
7698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 cat >conftest.$ac_ext <<_ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 $ac_includes_default
7712 #include <$ac_header>
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_try") 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_try") 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 eval "$as_ac_Header=yes"
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 eval "$as_ac_Header=no"
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 ac_res=`eval echo '${'$as_ac_Header'}'`
7759 { echo "$as_me:$LINENO: result: $ac_res" >&5
7760 echo "${ECHO_T}$ac_res" >&6; }
7761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7762 cat >>confdefs.h <<_ACEOF
7763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 for ac_header in errno.h
7774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_res=`eval echo '${'$as_ac_Header'}'`
7782 { echo "$as_me:$LINENO: result: $ac_res" >&5
7783 echo "${ECHO_T}$ac_res" >&6; }
7785 # Is the header compilable?
7786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #include <$ac_header>
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7806 grep -v '^ *+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7812 { (case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_try") 2>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_try") 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_header_compiler=yes
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_header_compiler=no
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6; }
7843 # Is the header present?
7844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 #include <$ac_header>
7854 if { (ac_try="$ac_cpp conftest.$ac_ext"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } >/dev/null; then
7867 if test -s conftest.err; then
7868 ac_cpp_err=$ac_c_preproc_warn_flag
7869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7876 if test -z "$ac_cpp_err"; then
7877 ac_header_preproc=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_header_preproc=no
7885 rm -f conftest.err conftest.$ac_ext
7886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7887 echo "${ECHO_T}$ac_header_preproc" >&6; }
7889 # So? What about this header?
7890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7896 ac_header_preproc=yes
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7912 ## ------------------------------------ ##
7913 ## Report this to http://llvm.org/bugs/ ##
7914 ## ------------------------------------ ##
7916 ) | sed "s/^/$as_me: WARNING: /" >&2
7919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 eval "$as_ac_Header=\$ac_header_preproc"
7926 ac_res=`eval echo '${'$as_ac_Header'}'`
7927 { echo "$as_me:$LINENO: result: $ac_res" >&5
7928 echo "${ECHO_T}$ac_res" >&6; }
7931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 cat >>confdefs.h <<_ACEOF
7933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7941 case "$llvm_cv_os_type" in
7942 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7943 Darwin) llvm_shlib_ext=.dylib ;;
7944 *) llvm_shlib_ext=.so ;;
7948 cat >>confdefs.h <<_ACEOF
7949 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7953 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7954 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7967 if test "$GCC" != "yes" && test "$ICC" != "yes"
7969 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7970 echo "$as_me: error: gcc|icc required but not found" >&2;}
7971 { (exit 1); exit 1; }; }
7974 if test "$GXX" != "yes" && test "$IXX" != "yes"
7976 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7977 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7978 { (exit 1); exit 1; }; }
7981 if test "$GCC" = "yes"
7983 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 #if !defined(__GNUC__) || __GNUC__ < 3
7992 #error Unsupported GCC version
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_try") 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8037 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8038 { (exit 1); exit 1; }; }
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 if test -z "$llvm_cv_gnu_make_command"
8046 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8047 echo "$as_me: error: GNU Make required but not found" >&2;}
8048 { (exit 1); exit 1; }; }
8051 { echo "$as_me:$LINENO: result: ok" >&5
8052 echo "${ECHO_T}ok" >&6; }
8054 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8055 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8056 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8058 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8060 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8064 NO_MAYBE_UNINITIALIZED=
8065 if test "$GXX" = "yes"
8067 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8069 if test -z "$NO_MAYBE_UNINITIALIZED"
8071 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8077 llvm_cv_old_cxxflags="$CXXFLAGS"
8078 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8079 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8088 int main() { return 0; }
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_try") 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8127 no_comment=-Wno-comment
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 NO_COMMENT=$no_comment
8139 CXXFLAGS="$llvm_cv_old_cxxflags"
8141 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8142 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8145 # Check whether --with-python was given.
8146 if test "${with_python+set}" = set; then
8147 withval=$with_python; PYTHON="$withval"
8151 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8152 { echo "$as_me:$LINENO: checking for python" >&5
8153 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8154 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8155 echo "${ECHO_T}user defined: $with_python" >&6; }
8157 if test -n "$PYTHON" ; then
8158 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8159 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8162 # Extract the first word of "python python2 python27", so it can be a program name with args.
8163 set dummy python python2 python27; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_path_PYTHON+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8190 echo "${ECHO_T}not found" >&6; }
8191 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8192 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8193 { (exit 1); exit 1; }; }"
8197 PYTHON=$ac_cv_path_PYTHON
8198 if test -n "$PYTHON"; then
8199 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8200 echo "${ECHO_T}$PYTHON" >&6; }
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8209 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8210 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8211 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8212 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8213 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8214 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8215 if test "$ac_python_version_major" -gt "2" || \
8216 (test "$ac_python_version_major" -eq "2" && \
8217 test "$ac_python_version_minor" -ge "7") ; then
8218 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8219 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8221 { echo "$as_me:$LINENO: result: not found" >&5
8222 echo "${ECHO_T}not found" >&6; }
8223 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8226 See \`config.log' for more details." >&2;}
8227 { (exit 1); exit 1; }; }
8232 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8233 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8234 if test "${ac_cv_lib_m_sin+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_check_lib_save_LIBS=$LIBS
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8307 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8308 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8309 if test $ac_cv_lib_m_sin = yes; then
8310 cat >>confdefs.h <<_ACEOF
8318 if test "$llvm_cv_os_type" = "MingW" ; then
8320 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8321 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8322 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-limagehlp $LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_link") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_imagehlp_main=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_imagehlp_main=no
8385 rm -f core conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8389 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8390 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8391 if test $ac_cv_lib_imagehlp_main = yes; then
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_LIBIMAGEHLP 1
8396 LIBS="-limagehlp $LIBS"
8401 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8402 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8403 if test "${ac_cv_lib_psapi_main+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 ac_check_lib_save_LIBS=$LIBS
8407 LIBS="-lpsapi $LIBS"
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (ac_try="$ac_link"
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_link") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_lib_psapi_main=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_lib_psapi_main=no
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8471 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8472 if test $ac_cv_lib_psapi_main = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_LIBPSAPI 1
8477 LIBS="-lpsapi $LIBS"
8482 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8483 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8484 if test "${ac_cv_lib_shell32_main+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lshell32 $LIBS"
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (ac_try="$ac_link"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_link") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8520 { (case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_try") 2>&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_try") 2>&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_lib_shell32_main=yes
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_cv_lib_shell32_main=no
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 LIBS=$ac_check_lib_save_LIBS
8551 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8552 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8553 if test $ac_cv_lib_shell32_main = yes; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_LIBSHELL32 1
8558 LIBS="-lshell32 $LIBS"
8564 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8565 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8566 if test "${ac_cv_search_dlopen+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 ac_func_search_save_LIBS=$LIBS
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 /* Override any GCC internal prototype to avoid an error.
8578 Use char because int might match the return type of a GCC
8579 builtin and then its argument prototype would still apply. */
8592 for ac_lib in '' dl; do
8593 if test -z "$ac_lib"; then
8594 ac_res="none required"
8597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_link") 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_try") 2>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_try") 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_search_dlopen=$ac_res
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f core conftest.err conftest.$ac_objext \
8643 if test "${ac_cv_search_dlopen+set}" = set; then
8647 if test "${ac_cv_search_dlopen+set}" = set; then
8650 ac_cv_search_dlopen=no
8653 LIBS=$ac_func_search_save_LIBS
8655 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8656 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8657 ac_res=$ac_cv_search_dlopen
8658 if test "$ac_res" != no; then
8659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_DLOPEN 1
8670 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8671 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8675 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8676 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8677 if test "${ac_cv_search_clock_gettime+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_func_search_save_LIBS=$LIBS
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 /* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
8694 char clock_gettime ();
8698 return clock_gettime ();
8703 for ac_lib in '' rt; do
8704 if test -z "$ac_lib"; then
8705 ac_res="none required"
8708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725 { (case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_try") 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_search_clock_gettime=$ac_res
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8752 rm -f core conftest.err conftest.$ac_objext \
8754 if test "${ac_cv_search_clock_gettime+set}" = set; then
8758 if test "${ac_cv_search_clock_gettime+set}" = set; then
8761 ac_cv_search_clock_gettime=no
8764 LIBS=$ac_func_search_save_LIBS
8766 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8767 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8768 ac_res=$ac_cv_search_clock_gettime
8769 if test "$ac_res" != no; then
8770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8776 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8777 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8778 if test "${ac_cv_search_setupterm+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 ac_func_search_save_LIBS=$LIBS
8782 cat >conftest.$ac_ext <<_ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8789 /* Override any GCC internal prototype to avoid an error.
8790 Use char because int might match the return type of a GCC
8791 builtin and then its argument prototype would still apply. */
8799 return setupterm ();
8804 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8805 if test -z "$ac_lib"; then
8806 ac_res="none required"
8809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (ac_try="$ac_link"
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_link") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_try") 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_search_setupterm=$ac_res
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext \
8855 if test "${ac_cv_search_setupterm+set}" = set; then
8859 if test "${ac_cv_search_setupterm+set}" = set; then
8862 ac_cv_search_setupterm=no
8865 LIBS=$ac_func_search_save_LIBS
8867 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8868 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8869 ac_res=$ac_cv_search_setupterm
8870 if test "$ac_res" != no; then
8871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_TERMINFO 1
8885 if test "$llvm_cv_enable_libedit" = "yes" ; then
8886 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8887 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8888 if test "${ac_cv_search_el_init+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 ac_func_search_save_LIBS=$LIBS
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8914 for ac_lib in '' edit; do
8915 if test -z "$ac_lib"; then
8916 ac_res="none required"
8919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (ac_try="$ac_link"
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_link") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8936 { (case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_try") 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest$ac_exeext'
8946 { (case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_try") 2>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_search_el_init=$ac_res
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8963 rm -f core conftest.err conftest.$ac_objext \
8965 if test "${ac_cv_search_el_init+set}" = set; then
8969 if test "${ac_cv_search_el_init+set}" = set; then
8972 ac_cv_search_el_init=no
8975 LIBS=$ac_func_search_save_LIBS
8977 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8978 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8979 ac_res=$ac_cv_search_el_init
8980 if test "$ac_res" != no; then
8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_LIBEDIT 1
8991 if test "$llvm_cv_enable_libffi" = "yes" ; then
8992 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8993 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8994 if test "${ac_cv_search_ffi_call+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 ac_func_search_save_LIBS=$LIBS
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9005 /* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
9020 for ac_lib in '' ffi; do
9021 if test -z "$ac_lib"; then
9022 ac_res="none required"
9025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_search_ffi_call=$ac_res
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -f core conftest.err conftest.$ac_objext \
9071 if test "${ac_cv_search_ffi_call+set}" = set; then
9075 if test "${ac_cv_search_ffi_call+set}" = set; then
9078 ac_cv_search_ffi_call=no
9081 LIBS=$ac_func_search_save_LIBS
9083 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9084 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9085 ac_res=$ac_cv_search_ffi_call
9086 if test "$ac_res" != no; then
9087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_FFI_CALL 1
9094 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9095 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9096 { (exit 1); exit 1; }; }
9101 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9102 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9103 if test "${ac_cv_search_mallinfo+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 ac_func_search_save_LIBS=$LIBS
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9129 for ac_lib in '' malloc; do
9130 if test -z "$ac_lib"; then
9131 ac_res="none required"
9134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_search_mallinfo=$ac_res
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9178 rm -f core conftest.err conftest.$ac_objext \
9180 if test "${ac_cv_search_mallinfo+set}" = set; then
9184 if test "${ac_cv_search_mallinfo+set}" = set; then
9187 ac_cv_search_mallinfo=no
9190 LIBS=$ac_func_search_save_LIBS
9192 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9193 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9194 ac_res=$ac_cv_search_mallinfo
9195 if test "$ac_res" != no; then
9196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_MALLINFO 1
9205 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9207 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9208 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9209 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lpthread $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9227 char pthread_mutex_init ();
9231 return pthread_mutex_init ();
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_link") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest$ac_exeext'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_lib_pthread_pthread_mutex_init=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_lib_pthread_pthread_mutex_init=no
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9283 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9284 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_LIBPTHREAD 1
9289 LIBS="-lpthread $LIBS"
9293 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9294 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9295 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 ac_func_search_save_LIBS=$LIBS
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9312 char pthread_mutex_lock ();
9316 return pthread_mutex_lock ();
9321 for ac_lib in '' pthread; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (ac_try="$ac_link"
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_link") 2>conftest.er1
9337 grep -v '^ *+' conftest.er1 >conftest.err
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343 { (case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_try") 2>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_try") 2>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_search_pthread_mutex_lock=$ac_res
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9370 rm -f core conftest.err conftest.$ac_objext \
9372 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9376 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9379 ac_cv_search_pthread_mutex_lock=no
9382 LIBS=$ac_func_search_save_LIBS
9384 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9385 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9386 ac_res=$ac_cv_search_pthread_mutex_lock
9387 if test "$ac_res" != no; then
9388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_PTHREAD_MUTEX_LOCK 1
9396 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9397 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9398 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 ac_func_search_save_LIBS=$LIBS
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9415 char pthread_rwlock_init ();
9419 return pthread_rwlock_init ();
9424 for ac_lib in '' pthread; do
9425 if test -z "$ac_lib"; then
9426 ac_res="none required"
9429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (ac_try="$ac_link"
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_link") 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9446 { (case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_try") 2>&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_try") 2>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_search_pthread_rwlock_init=$ac_res
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -f core conftest.err conftest.$ac_objext \
9475 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9479 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9482 ac_cv_search_pthread_rwlock_init=no
9485 LIBS=$ac_func_search_save_LIBS
9487 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9488 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9489 ac_res=$ac_cv_search_pthread_rwlock_init
9490 if test "$ac_res" != no; then
9491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9493 cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_PTHREAD_RWLOCK_INIT 1
9499 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9500 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9501 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 ac_func_search_save_LIBS=$LIBS
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9518 char pthread_getspecific ();
9522 return pthread_getspecific ();
9527 for ac_lib in '' pthread; do
9528 if test -z "$ac_lib"; then
9529 ac_res="none required"
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_search_pthread_getspecific=$ac_res
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9576 rm -f core conftest.err conftest.$ac_objext \
9578 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9582 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9585 ac_cv_search_pthread_getspecific=no
9588 LIBS=$ac_func_search_save_LIBS
9590 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9591 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9592 ac_res=$ac_cv_search_pthread_getspecific
9593 if test "$ac_res" != no; then
9594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_PTHREAD_GETSPECIFIC 1
9604 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9606 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9607 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_z_compress2+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 ac_check_lib_save_LIBS=$LIBS
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9630 return compress2 ();
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_z_compress2=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_lib_z_compress2=no
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9681 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9682 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9683 if test $ac_cv_lib_z_compress2 = yes; then
9684 cat >>confdefs.h <<_ACEOF
9695 # Check whether --with-oprofile was given.
9696 if test "${with_oprofile+set}" = set; then
9697 withval=$with_oprofile;
9701 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9705 *) llvm_cv_oppath="${withval}/lib/oprofile"
9706 CPPFLAGS="-I${withval}/include";;
9708 case $llvm_cv_os_type in
9710 if test -n "$llvm_cv_oppath" ; then
9711 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9712 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9713 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9714 if test "${ac_cv_search_bfd_init+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 ac_func_search_save_LIBS=$LIBS
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
9740 for ac_lib in '' bfd; do
9741 if test -z "$ac_lib"; then
9742 ac_res="none required"
9745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_search_bfd_init=$ac_res
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9789 rm -f core conftest.err conftest.$ac_objext \
9791 if test "${ac_cv_search_bfd_init+set}" = set; then
9795 if test "${ac_cv_search_bfd_init+set}" = set; then
9798 ac_cv_search_bfd_init=no
9801 LIBS=$ac_func_search_save_LIBS
9803 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9804 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9805 ac_res=$ac_cv_search_bfd_init
9806 if test "$ac_res" != no; then
9807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9811 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9812 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9813 if test "${ac_cv_search_op_open_agent+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 ac_func_search_save_LIBS=$LIBS
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9830 char op_open_agent ();
9834 return op_open_agent ();
9839 for ac_lib in '' opagent; do
9840 if test -z "$ac_lib"; then
9841 ac_res="none required"
9844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_op_open_agent=$ac_res
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9888 rm -f core conftest.err conftest.$ac_objext \
9890 if test "${ac_cv_search_op_open_agent+set}" = set; then
9894 if test "${ac_cv_search_op_open_agent+set}" = set; then
9897 ac_cv_search_op_open_agent=no
9900 LIBS=$ac_func_search_save_LIBS
9902 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9903 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9904 ac_res=$ac_cv_search_op_open_agent
9905 if test "$ac_res" != no; then
9906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9910 echo "Error! You need to have libopagent around."
9915 if test "${ac_cv_header_opagent_h+set}" = set; then
9916 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9917 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9918 if test "${ac_cv_header_opagent_h+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9922 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9924 # Is the header compilable?
9925 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9926 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 $ac_includes_default
9934 #include <opagent.h>
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_try") 2>&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest.$ac_objext'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_header_compiler=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_header_compiler=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 echo "${ECHO_T}$ac_header_compiler" >&6; }
9982 # Is the header present?
9983 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9984 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <opagent.h>
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } >/dev/null; then
10006 if test -s conftest.err; then
10007 ac_cpp_err=$ac_c_preproc_warn_flag
10008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10015 if test -z "$ac_cpp_err"; then
10016 ac_header_preproc=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_header_preproc=no
10024 rm -f conftest.err conftest.$ac_ext
10025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10026 echo "${ECHO_T}$ac_header_preproc" >&6; }
10028 # So? What about this header?
10029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10031 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10032 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10034 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10035 ac_header_preproc=yes
10038 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10039 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10041 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10043 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10045 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10049 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10051 ## ------------------------------------ ##
10052 ## Report this to http://llvm.org/bugs/ ##
10053 ## ------------------------------------ ##
10055 ) | sed "s/^/$as_me: WARNING: /" >&2
10058 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10059 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10060 if test "${ac_cv_header_opagent_h+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_cv_header_opagent_h=$ac_header_preproc
10065 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10069 if test $ac_cv_header_opagent_h = yes; then
10073 echo "Error! You need to have opagent.h around."
10081 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10082 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10083 { (exit 1); exit 1; }; } ;;
10094 cat >>confdefs.h <<_ACEOF
10095 #define LLVM_USE_OPROFILE $USE_OPROFILE
10100 # Check whether --with-intel-jitevents was given.
10101 if test "${with_intel_jitevents+set}" = set; then
10102 withval=$with_intel_jitevents;
10104 yes) USE_INTEL_JITEVENTS=1
10106 no) USE_INTEL_JITEVENTS=0
10108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10109 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10110 { (exit 1); exit 1; }; };;
10113 case $llvm_cv_os_type in
10114 Linux|Win32|Cygwin|MingW) ;;
10115 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10116 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10117 { (exit 1); exit 1; }; };;
10120 case "$llvm_cv_target_arch" in
10122 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10123 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10124 { (exit 1); exit 1; }; };;
10129 USE_INTEL_JITEVENTS=0
10135 cat >>confdefs.h <<_ACEOF
10136 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10140 for ac_prog in xml2-config
10142 # Extract the first word of "$ac_prog", so it can be a program name with args.
10143 set dummy $ac_prog; ac_word=$2
10144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10146 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 if test -n "$XML2CONFIG"; then
10150 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_prog_XML2CONFIG="$ac_prog"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10170 if test -n "$XML2CONFIG"; then
10171 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10172 echo "${ECHO_T}$XML2CONFIG" >&6; }
10174 { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10179 test -n "$XML2CONFIG" && break
10183 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10184 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10185 if test "x$XML2CONFIG" = "x"; then
10186 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10187 echo "${ECHO_T}xml2-config not found" >&6; }
10189 LIBXML2_INC=`$XML2CONFIG --cflags`
10190 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10191 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10192 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10193 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10194 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-lxml2 $LIBS"
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10212 char xmlReadFile ();
10216 return xmlReadFile ();
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_xml2_xmlReadFile=yes
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_cv_lib_xml2_xmlReadFile=no
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10268 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10269 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define CLANG_HAVE_LIBXML 1
10275 LIBXML2_LIBS="-lxml2"
10288 ac_header_dirent=no
10289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <sys/types.h>
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_compile") 2>conftest.er1
10323 grep -v '^ *+' conftest.er1 >conftest.err
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest.$ac_objext'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 eval "$as_ac_Header=yes"
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 eval "$as_ac_Header=no"
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 ac_res=`eval echo '${'$as_ac_Header'}'`
10359 { echo "$as_me:$LINENO: result: $ac_res" >&5
10360 echo "${ECHO_T}$ac_res" >&6; }
10361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10366 ac_header_dirent=$ac_hdr; break
10370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10371 if test $ac_header_dirent = dirent.h; then
10372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10374 if test "${ac_cv_search_opendir+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_func_search_save_LIBS=$LIBS
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10400 for ac_lib in '' dir; do
10401 if test -z "$ac_lib"; then
10402 ac_res="none required"
10405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } &&
10431 { ac_try='test -s conftest$ac_exeext'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_search_opendir=$ac_res
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10449 rm -f core conftest.err conftest.$ac_objext \
10451 if test "${ac_cv_search_opendir+set}" = set; then
10455 if test "${ac_cv_search_opendir+set}" = set; then
10458 ac_cv_search_opendir=no
10460 rm conftest.$ac_ext
10461 LIBS=$ac_func_search_save_LIBS
10463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10465 ac_res=$ac_cv_search_opendir
10466 if test "$ac_res" != no; then
10467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10472 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10474 if test "${ac_cv_search_opendir+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 ac_func_search_save_LIBS=$LIBS
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10500 for ac_lib in '' x; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_search_opendir=$ac_res
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10549 rm -f core conftest.err conftest.$ac_objext \
10551 if test "${ac_cv_search_opendir+set}" = set; then
10555 if test "${ac_cv_search_opendir+set}" = set; then
10558 ac_cv_search_opendir=no
10560 rm conftest.$ac_ext
10561 LIBS=$ac_func_search_save_LIBS
10563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10565 ac_res=$ac_cv_search_opendir
10566 if test "$ac_res" != no; then
10567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10573 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10574 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10575 if test "${ac_cv_header_mmap_anon+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 ac_cpp='$CPP $CPPFLAGS'
10580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <sys/mman.h>
10591 #include <unistd.h>
10596 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_header_mmap_anon=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_header_mmap_anon=no
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 ac_cpp='$CPP $CPPFLAGS'
10646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10652 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10653 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10654 if test "$ac_cv_header_mmap_anon" = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_MMAP_ANONYMOUS 1
10662 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10663 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10664 if test "${ac_cv_header_stat_broken+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #include <sys/types.h>
10674 #include <sys/stat.h>
10676 #if defined S_ISBLK && defined S_IFDIR
10677 # if S_ISBLK (S_IFDIR)
10682 #if defined S_ISBLK && defined S_IFCHR
10683 # if S_ISBLK (S_IFCHR)
10688 #if defined S_ISLNK && defined S_IFREG
10689 # if S_ISLNK (S_IFREG)
10694 #if defined S_ISSOCK && defined S_IFREG
10695 # if S_ISSOCK (S_IFREG)
10701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10702 $EGREP "You lose" >/dev/null 2>&1; then
10703 ac_cv_header_stat_broken=yes
10705 ac_cv_header_stat_broken=no
10710 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10711 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10712 if test $ac_cv_header_stat_broken = yes; then
10714 cat >>confdefs.h <<\_ACEOF
10715 #define STAT_MACROS_BROKEN 1
10720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 #include <sys/types.h>
10732 #include <sys/wait.h>
10733 #ifndef WEXITSTATUS
10734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10750 rm -f conftest.$ac_objext
10751 if { (ac_try="$ac_compile"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_compile") 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_header_sys_wait_h=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_header_sys_wait_h=no
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10796 if test $ac_cv_header_sys_wait_h = yes; then
10798 cat >>confdefs.h <<\_ACEOF
10799 #define HAVE_SYS_WAIT_H 1
10804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10806 if test "${ac_cv_header_time+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <sys/types.h>
10816 #include <sys/time.h>
10822 if ((struct tm *) 0)
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_compile") 2>conftest.er1
10837 grep -v '^ *+' conftest.er1 >conftest.err
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_try") 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_header_time=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_cv_header_time=no
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10874 if test $ac_cv_header_time = yes; then
10876 cat >>confdefs.h <<\_ACEOF
10877 #define TIME_WITH_SYS_TIME 1
10884 ac_cpp='$CXXCPP $CPPFLAGS'
10885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10890 for ac_header in cxxabi.h
10892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <stddef.h>
10907 #include <$ac_header>
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 eval "$as_ac_Header=yes"
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 eval "$as_ac_Header=no"
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953 ac_res=`eval echo '${'$as_ac_Header'}'`
10954 { echo "$as_me:$LINENO: result: $ac_res" >&5
10955 echo "${ECHO_T}$ac_res" >&6; }
10956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10966 ac_cpp='$CPP $CPPFLAGS'
10967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10977 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10990 # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 $ac_includes_default
11000 #include <$ac_header>
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_header_compiler=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_compiler=no
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <$ac_header>
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11067 grep -v '^ *+' conftest.er1 >conftest.err
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } >/dev/null; then
11072 if test -s conftest.err; then
11073 ac_cpp_err=$ac_c_preproc_warn_flag
11074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_header_preproc=no
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11094 # So? What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101 ac_header_preproc=yes
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11121 ) | sed "s/^/$as_me: WARNING: /" >&2
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 eval "$as_ac_Header=\$ac_header_preproc"
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11151 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 ac_res=`eval echo '${'$as_ac_Header'}'`
11161 { echo "$as_me:$LINENO: result: $ac_res" >&5
11162 echo "${ECHO_T}$ac_res" >&6; }
11164 # Is the header compilable?
11165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11174 #include <$ac_header>
11176 rm -f conftest.$ac_objext
11177 if { (ac_try="$ac_compile"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_header_compiler=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_header_compiler=no
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 echo "${ECHO_T}$ac_header_compiler" >&6; }
11222 # Is the header present?
11223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <$ac_header>
11233 if { (ac_try="$ac_cpp conftest.$ac_ext"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } >/dev/null; then
11246 if test -s conftest.err; then
11247 ac_cpp_err=$ac_c_preproc_warn_flag
11248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11255 if test -z "$ac_cpp_err"; then
11256 ac_header_preproc=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_preproc=no
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ## ------------------------------------ ##
11292 ## Report this to http://llvm.org/bugs/ ##
11293 ## ------------------------------------ ##
11295 ) | sed "s/^/$as_me: WARNING: /" >&2
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 eval "$as_ac_Header=\$ac_header_preproc"
11305 ac_res=`eval echo '${'$as_ac_Header'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11320 for ac_header in utime.h
11322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 ac_res=`eval echo '${'$as_ac_Header'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11333 # Is the header compilable?
11334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 $ac_includes_default
11343 #include <$ac_header>
11345 rm -f conftest.$ac_objext
11346 if { (ac_try="$ac_compile"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_compile") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_try") 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_header_compiler=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_compiler=no
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 echo "${ECHO_T}$ac_header_compiler" >&6; }
11391 # Is the header present?
11392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <$ac_header>
11402 if { (ac_try="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } >/dev/null; then
11415 if test -s conftest.err; then
11416 ac_cpp_err=$ac_c_preproc_warn_flag
11417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11424 if test -z "$ac_cpp_err"; then
11425 ac_header_preproc=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_header_preproc=no
11433 rm -f conftest.err conftest.$ac_ext
11434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11435 echo "${ECHO_T}$ac_header_preproc" >&6; }
11437 # So? What about this header?
11438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11444 ac_header_preproc=yes
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11460 ## ------------------------------------ ##
11461 ## Report this to http://llvm.org/bugs/ ##
11462 ## ------------------------------------ ##
11464 ) | sed "s/^/$as_me: WARNING: /" >&2
11467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 eval "$as_ac_Header=\$ac_header_preproc"
11474 ac_res=`eval echo '${'$as_ac_Header'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_header_compiler=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_header_compiler=no
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <$ac_header>
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 ## ------------------------------------ ##
11634 ## Report this to http://llvm.org/bugs/ ##
11635 ## ------------------------------------ ##
11637 ) | sed "s/^/$as_me: WARNING: /" >&2
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 eval "$as_ac_Header=\$ac_header_preproc"
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 ac_res=`eval echo '${'$as_ac_Header'}'`
11674 { echo "$as_me:$LINENO: result: $ac_res" >&5
11675 echo "${ECHO_T}$ac_res" >&6; }
11677 # Is the header compilable?
11678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #include <$ac_header>
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest.$ac_objext'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_header_compiler=yes
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 ac_header_compiler=no
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11733 echo "${ECHO_T}$ac_header_compiler" >&6; }
11735 # Is the header present?
11736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <$ac_header>
11746 if { (ac_try="$ac_cpp conftest.$ac_ext"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } >/dev/null; then
11759 if test -s conftest.err; then
11760 ac_cpp_err=$ac_c_preproc_warn_flag
11761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11768 if test -z "$ac_cpp_err"; then
11769 ac_header_preproc=yes
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_preproc=no
11777 rm -f conftest.err conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11779 echo "${ECHO_T}$ac_header_preproc" >&6; }
11781 # So? What about this header?
11782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11788 ac_header_preproc=yes
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11804 ## ------------------------------------ ##
11805 ## Report this to http://llvm.org/bugs/ ##
11806 ## ------------------------------------ ##
11808 ) | sed "s/^/$as_me: WARNING: /" >&2
11811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 eval "$as_ac_Header=\$ac_header_preproc"
11818 ac_res=`eval echo '${'$as_ac_Header'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11833 for ac_header in valgrind/valgrind.h
11835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 ac_res=`eval echo '${'$as_ac_Header'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11846 # Is the header compilable?
11847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11856 #include <$ac_header>
11858 rm -f conftest.$ac_objext
11859 if { (ac_try="$ac_compile"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_compile") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_header_compiler=yes
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_header_compiler=no
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902 echo "${ECHO_T}$ac_header_compiler" >&6; }
11904 # Is the header present?
11905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <$ac_header>
11915 if { (ac_try="$ac_cpp conftest.$ac_ext"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } >/dev/null; then
11928 if test -s conftest.err; then
11929 ac_cpp_err=$ac_c_preproc_warn_flag
11930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11937 if test -z "$ac_cpp_err"; then
11938 ac_header_preproc=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_header_preproc=no
11946 rm -f conftest.err conftest.$ac_ext
11947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11948 echo "${ECHO_T}$ac_header_preproc" >&6; }
11950 # So? What about this header?
11951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11957 ac_header_preproc=yes
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11973 ## ------------------------------------ ##
11974 ## Report this to http://llvm.org/bugs/ ##
11975 ## ------------------------------------ ##
11977 ) | sed "s/^/$as_me: WARNING: /" >&2
11980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 eval "$as_ac_Header=\$ac_header_preproc"
11987 ac_res=`eval echo '${'$as_ac_Header'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12002 for ac_header in fenv.h
12004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12015 # Is the header compilable?
12016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_compile") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042 { (case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_try") 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_header_compiler=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_header_compiler=no
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6; }
12073 # Is the header present?
12074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <$ac_header>
12084 if { (ac_try="$ac_cpp conftest.$ac_ext"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12106 if test -z "$ac_cpp_err"; then
12107 ac_header_preproc=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_header_preproc=no
12115 rm -f conftest.err conftest.$ac_ext
12116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119 # So? What about this header?
12120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12126 ac_header_preproc=yes
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12142 ## ------------------------------------ ##
12143 ## Report this to http://llvm.org/bugs/ ##
12144 ## ------------------------------------ ##
12146 ) | sed "s/^/$as_me: WARNING: /" >&2
12149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 eval "$as_ac_Header=\$ac_header_preproc"
12156 ac_res=`eval echo '${'$as_ac_Header'}'`
12157 { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12170 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12171 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12172 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12186 #ifndef FE_ALL_EXCEPT
12187 char *p = (char *) FE_ALL_EXCEPT;
12195 rm -f conftest.$ac_objext
12196 if { (ac_try="$ac_compile"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_have_decl_FE_ALL_EXCEPT=no
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12240 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12241 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_DECL_FE_ALL_EXCEPT 1
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_DECL_FE_ALL_EXCEPT 0
12255 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12256 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12257 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12272 char *p = (char *) FE_INEXACT;
12280 rm -f conftest.$ac_objext
12281 if { (ac_try="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_cv_have_decl_FE_INEXACT=yes
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_cv_have_decl_FE_INEXACT=no
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12325 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12326 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_DECL_FE_INEXACT 1
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_DECL_FE_INEXACT 0
12342 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12344 for ac_header in pthread.h
12346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 ac_res=`eval echo '${'$as_ac_Header'}'`
12354 { echo "$as_me:$LINENO: result: $ac_res" >&5
12355 echo "${ECHO_T}$ac_res" >&6; }
12357 # Is the header compilable?
12358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12360 cat >conftest.$ac_ext <<_ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 $ac_includes_default
12367 #include <$ac_header>
12369 rm -f conftest.$ac_objext
12370 if { (ac_try="$ac_compile"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_compile") 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_header_compiler=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_header_compiler=no
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12413 echo "${ECHO_T}$ac_header_compiler" >&6; }
12415 # Is the header present?
12416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 #include <$ac_header>
12426 if { (ac_try="$ac_cpp conftest.$ac_ext"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev/null; then
12439 if test -s conftest.err; then
12440 ac_cpp_err=$ac_c_preproc_warn_flag
12441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12448 if test -z "$ac_cpp_err"; then
12449 ac_header_preproc=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_header_preproc=no
12457 rm -f conftest.err conftest.$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 echo "${ECHO_T}$ac_header_preproc" >&6; }
12461 # So? What about this header?
12462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12468 ac_header_preproc=yes
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12484 ## ------------------------------------ ##
12485 ## Report this to http://llvm.org/bugs/ ##
12486 ## ------------------------------------ ##
12488 ) | sed "s/^/$as_me: WARNING: /" >&2
12491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 eval "$as_ac_Header=\$ac_header_preproc"
12498 ac_res=`eval echo '${'$as_ac_Header'}'`
12499 { echo "$as_me:$LINENO: result: $ac_res" >&5
12500 echo "${ECHO_T}$ac_res" >&6; }
12503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12504 cat >>confdefs.h <<_ACEOF
12505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12522 for ac_header in zlib.h
12524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 ac_res=`eval echo '${'$as_ac_Header'}'`
12532 { echo "$as_me:$LINENO: result: $ac_res" >&5
12533 echo "${ECHO_T}$ac_res" >&6; }
12535 # Is the header compilable?
12536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12538 cat >conftest.$ac_ext <<_ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12545 #include <$ac_header>
12547 rm -f conftest.$ac_objext
12548 if { (ac_try="$ac_compile"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_header_compiler=yes
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_header_compiler=no
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12591 echo "${ECHO_T}$ac_header_compiler" >&6; }
12593 # Is the header present?
12594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include <$ac_header>
12604 if { (ac_try="$ac_cpp conftest.$ac_ext"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } >/dev/null; then
12617 if test -s conftest.err; then
12618 ac_cpp_err=$ac_c_preproc_warn_flag
12619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12626 if test -z "$ac_cpp_err"; then
12627 ac_header_preproc=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_header_preproc=no
12635 rm -f conftest.err conftest.$ac_ext
12636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12637 echo "${ECHO_T}$ac_header_preproc" >&6; }
12639 # So? What about this header?
12640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12646 ac_header_preproc=yes
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12662 ## ------------------------------------ ##
12663 ## Report this to http://llvm.org/bugs/ ##
12664 ## ------------------------------------ ##
12666 ) | sed "s/^/$as_me: WARNING: /" >&2
12669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 eval "$as_ac_Header=\$ac_header_preproc"
12676 ac_res=`eval echo '${'$as_ac_Header'}'`
12677 { echo "$as_me:$LINENO: result: $ac_res" >&5
12678 echo "${ECHO_T}$ac_res" >&6; }
12681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12682 cat >>confdefs.h <<_ACEOF
12683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12699 if test "$llvm_cv_enable_libffi" = "yes" ; then
12702 for ac_header in ffi.h ffi/ffi.h
12704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 ac_res=`eval echo '${'$as_ac_Header'}'`
12712 { echo "$as_me:$LINENO: result: $ac_res" >&5
12713 echo "${ECHO_T}$ac_res" >&6; }
12715 # Is the header compilable?
12716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <$ac_header>
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_header_compiler=yes
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 ac_header_compiler=no
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12771 echo "${ECHO_T}$ac_header_compiler" >&6; }
12773 # Is the header present?
12774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 #include <$ac_header>
12784 if { (ac_try="$ac_cpp conftest.$ac_ext"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
12799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12806 if test -z "$ac_cpp_err"; then
12807 ac_header_preproc=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_header_preproc=no
12815 rm -f conftest.err conftest.$ac_ext
12816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12817 echo "${ECHO_T}$ac_header_preproc" >&6; }
12819 # So? What about this header?
12820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12826 ac_header_preproc=yes
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12842 ## ------------------------------------ ##
12843 ## Report this to http://llvm.org/bugs/ ##
12844 ## ------------------------------------ ##
12846 ) | sed "s/^/$as_me: WARNING: /" >&2
12849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 eval "$as_ac_Header=\$ac_header_preproc"
12856 ac_res=`eval echo '${'$as_ac_Header'}'`
12857 { echo "$as_me:$LINENO: result: $ac_res" >&5
12858 echo "${ECHO_T}$ac_res" >&6; }
12861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12873 for ac_header in CrashReporterClient.h
12875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 ac_res=`eval echo '${'$as_ac_Header'}'`
12883 { echo "$as_me:$LINENO: result: $ac_res" >&5
12884 echo "${ECHO_T}$ac_res" >&6; }
12886 # Is the header compilable?
12887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 $ac_includes_default
12896 #include <$ac_header>
12898 rm -f conftest.$ac_objext
12899 if { (ac_try="$ac_compile"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_compile") 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_header_compiler=yes
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_header_compiler=no
12940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12942 echo "${ECHO_T}$ac_header_compiler" >&6; }
12944 # Is the header present?
12945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <$ac_header>
12955 if { (ac_try="$ac_cpp conftest.$ac_ext"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } >/dev/null; then
12968 if test -s conftest.err; then
12969 ac_cpp_err=$ac_c_preproc_warn_flag
12970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12977 if test -z "$ac_cpp_err"; then
12978 ac_header_preproc=yes
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_header_preproc=no
12986 rm -f conftest.err conftest.$ac_ext
12987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12988 echo "${ECHO_T}$ac_header_preproc" >&6; }
12990 # So? What about this header?
12991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12997 ac_header_preproc=yes
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13013 ## ------------------------------------ ##
13014 ## Report this to http://llvm.org/bugs/ ##
13015 ## ------------------------------------ ##
13017 ) | sed "s/^/$as_me: WARNING: /" >&2
13020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 eval "$as_ac_Header=\$ac_header_preproc"
13027 ac_res=`eval echo '${'$as_ac_Header'}'`
13028 { echo "$as_me:$LINENO: result: $ac_res" >&5
13029 echo "${ECHO_T}$ac_res" >&6; }
13032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13033 cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13042 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13043 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13044 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13052 extern const char *__crashreporter_info__;
13054 __crashreporter_info__ = "test";
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_CRASHREPORTER_INFO 1
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13108 { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_CRASHREPORTER_INFO 0
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13123 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13124 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13125 if test "${ac_cv_huge_val_sanity+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 ac_cpp='$CXXCPP $CPPFLAGS'
13131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13135 ac_save_CXXFLAGS=$CXXFLAGS
13136 CXXFLAGS="$CXXFLAGS -pedantic"
13137 if test "$cross_compiling" = yes; then
13138 ac_cv_huge_val_sanity=yes
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13150 double x = HUGE_VAL; return x != x;
13155 rm -f conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_huge_val_sanity=yes
13177 echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ( exit $ac_status )
13182 ac_cv_huge_val_sanity=no
13184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13188 CXXFLAGS=$ac_save_CXXFLAGS
13190 ac_cpp='$CPP $CPPFLAGS'
13191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13198 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13199 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13202 { echo "$as_me:$LINENO: checking for pid_t" >&5
13203 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13204 if test "${ac_cv_type_pid_t+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 typedef pid_t ac__type_new_;
13218 if ((ac__type_new_ *) 0)
13220 if (sizeof (ac__type_new_))
13226 rm -f conftest.$ac_objext
13227 if { (ac_try="$ac_compile"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_type_pid_t=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_type_pid_t=no
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13271 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13272 if test $ac_cv_type_pid_t = yes; then
13276 cat >>confdefs.h <<_ACEOF
13282 { echo "$as_me:$LINENO: checking for size_t" >&5
13283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13284 if test "${ac_cv_type_size_t+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 $ac_includes_default
13294 typedef size_t ac__type_new_;
13298 if ((ac__type_new_ *) 0)
13300 if (sizeof (ac__type_new_))
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13315 grep -v '^ *+' conftest.er1 >conftest.err
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_type_size_t=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_type_size_t=no
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13351 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13352 if test $ac_cv_type_size_t = yes; then
13356 cat >>confdefs.h <<_ACEOF
13357 #define size_t unsigned int
13363 cat >>confdefs.h <<_ACEOF
13364 #define RETSIGTYPE void
13367 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13368 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13369 if test "${ac_cv_struct_tm+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 cat >conftest.$ac_ext <<_ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 #include <sys/types.h>
13384 struct tm *tp; tp->tm_sec;
13389 rm -f conftest.$ac_objext
13390 if { (ac_try="$ac_compile"
13391 case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_compile") 2>conftest.er1
13398 grep -v '^ *+' conftest.er1 >conftest.err
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_struct_tm=time.h
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 ac_cv_struct_tm=sys/time.h
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13434 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13435 if test $ac_cv_struct_tm = sys/time.h; then
13437 cat >>confdefs.h <<\_ACEOF
13438 #define TM_IN_SYS_TIME 1
13443 { echo "$as_me:$LINENO: checking for int64_t" >&5
13444 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13445 if test "${ac_cv_type_int64_t+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 $ac_includes_default
13455 typedef int64_t ac__type_new_;
13459 if ((ac__type_new_ *) 0)
13461 if (sizeof (ac__type_new_))
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_compile") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_type_int64_t=yes
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_type_int64_t=no
13509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13512 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13513 if test $ac_cv_type_int64_t = yes; then
13515 cat >>confdefs.h <<_ACEOF
13516 #define HAVE_INT64_T 1
13521 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13522 echo "$as_me: error: Type int64_t required but not found" >&2;}
13523 { (exit 1); exit 1; }; }
13526 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13527 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13528 if test "${ac_cv_type_uint64_t+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 cat >conftest.$ac_ext <<_ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 typedef uint64_t ac__type_new_;
13542 if ((ac__type_new_ *) 0)
13544 if (sizeof (ac__type_new_))
13550 rm -f conftest.$ac_objext
13551 if { (ac_try="$ac_compile"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_compile") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_type_uint64_t=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_type_uint64_t=no
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13595 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13596 if test $ac_cv_type_uint64_t = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_UINT64_T 1
13604 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13605 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13606 if test "${ac_cv_type_u_int64_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13616 typedef u_int64_t ac__type_new_;
13620 if ((ac__type_new_ *) 0)
13622 if (sizeof (ac__type_new_))
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13643 { (case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_try") 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_type_u_int64_t=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_type_u_int64_t=no
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13674 if test $ac_cv_type_u_int64_t = yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_U_INT64_T 1
13682 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13683 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13684 { (exit 1); exit 1; }; }
13698 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13714 #define $ac_func innocuous_$ac_func
13716 /* System header to define __stub macros and hopefully few prototypes,
13717 which can conflict with char $ac_func (); below.
13718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13719 <limits.h> exists even on freestanding compilers. */
13722 # include <limits.h>
13724 # include <assert.h>
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13736 /* The GNU C library defines this for functions which it implements
13737 to always fail with ENOSYS. Some functions are actually named
13738 something starting with __ and the normal name is an alias. */
13739 #if defined __stub_$ac_func || defined __stub___$ac_func
13746 return $ac_func ();
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (ac_try="$ac_link"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
13760 grep -v '^ *+' conftest.er1 >conftest.err
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13793 rm -f core conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13796 ac_res=`eval echo '${'$as_ac_var'}'`
13797 { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13799 if test `eval echo '${'$as_ac_var'}'` = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13811 for ac_func in powf fmodf strtof round
13813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13827 #define $ac_func innocuous_$ac_func
13829 /* System header to define __stub macros and hopefully few prototypes,
13830 which can conflict with char $ac_func (); below.
13831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832 <limits.h> exists even on freestanding compilers. */
13835 # include <limits.h>
13837 # include <assert.h>
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13849 /* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852 #if defined __stub_$ac_func || defined __stub___$ac_func
13859 return $ac_func ();
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_try") 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 eval "$as_ac_var=no"
13906 rm -f core conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13909 ac_res=`eval echo '${'$as_ac_var'}'`
13910 { echo "$as_me:$LINENO: result: $ac_res" >&5
13911 echo "${ECHO_T}$ac_res" >&6; }
13912 if test `eval echo '${'$as_ac_var'}'` = yes; then
13913 cat >>confdefs.h <<_ACEOF
13914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13925 for ac_func in log log2 log10 exp exp2
13927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13941 #define $ac_func innocuous_$ac_func
13943 /* System header to define __stub macros and hopefully few prototypes,
13944 which can conflict with char $ac_func (); below.
13945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13946 <limits.h> exists even on freestanding compilers. */
13949 # include <limits.h>
13951 # include <assert.h>
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13963 /* The GNU C library defines this for functions which it implements
13964 to always fail with ENOSYS. Some functions are actually named
13965 something starting with __ and the normal name is an alias. */
13966 #if defined __stub_$ac_func || defined __stub___$ac_func
13973 return $ac_func ();
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (ac_try="$ac_link"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_link") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993 { (case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_try") 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest$ac_exeext'
14003 { (case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_try") 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 eval "$as_ac_var=yes"
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 eval "$as_ac_var=no"
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14023 ac_res=`eval echo '${'$as_ac_var'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14026 if test `eval echo '${'$as_ac_var'}'` = yes; then
14027 cat >>confdefs.h <<_ACEOF
14028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14039 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14055 #define $ac_func innocuous_$ac_func
14057 /* System header to define __stub macros and hopefully few prototypes,
14058 which can conflict with char $ac_func (); below.
14059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14060 <limits.h> exists even on freestanding compilers. */
14063 # include <limits.h>
14065 # include <assert.h>
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14077 /* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080 #if defined __stub_$ac_func || defined __stub___$ac_func
14087 return $ac_func ();
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 eval "$as_ac_var=yes"
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 eval "$as_ac_var=no"
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14137 ac_res=`eval echo '${'$as_ac_var'}'`
14138 { echo "$as_me:$LINENO: result: $ac_res" >&5
14139 echo "${ECHO_T}$ac_res" >&6; }
14140 if test `eval echo '${'$as_ac_var'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14151 for ac_func in isatty mkdtemp mkstemp
14153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14167 #define $ac_func innocuous_$ac_func
14169 /* System header to define __stub macros and hopefully few prototypes,
14170 which can conflict with char $ac_func (); below.
14171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14172 <limits.h> exists even on freestanding compilers. */
14175 # include <limits.h>
14177 # include <assert.h>
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14189 /* The GNU C library defines this for functions which it implements
14190 to always fail with ENOSYS. Some functions are actually named
14191 something starting with __ and the normal name is an alias. */
14192 #if defined __stub_$ac_func || defined __stub___$ac_func
14199 return $ac_func ();
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1 >conftest.err
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 eval "$as_ac_var=yes"
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_var=no"
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 ac_res=`eval echo '${'$as_ac_var'}'`
14250 { echo "$as_me:$LINENO: result: $ac_res" >&5
14251 echo "${ECHO_T}$ac_res" >&6; }
14252 if test `eval echo '${'$as_ac_var'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14266 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14282 #define $ac_func innocuous_$ac_func
14284 /* System header to define __stub macros and hopefully few prototypes,
14285 which can conflict with char $ac_func (); below.
14286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287 <limits.h> exists even on freestanding compilers. */
14290 # include <limits.h>
14292 # include <assert.h>
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14304 /* The GNU C library defines this for functions which it implements
14305 to always fail with ENOSYS. Some functions are actually named
14306 something starting with __ and the normal name is an alias. */
14307 #if defined __stub_$ac_func || defined __stub___$ac_func
14314 return $ac_func ();
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (ac_try="$ac_link"
14321 case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_link") 2>conftest.er1
14328 grep -v '^ *+' conftest.er1 >conftest.err
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 eval "$as_ac_var=yes"
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 eval "$as_ac_var=no"
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14364 ac_res=`eval echo '${'$as_ac_var'}'`
14365 { echo "$as_me:$LINENO: result: $ac_res" >&5
14366 echo "${ECHO_T}$ac_res" >&6; }
14367 if test `eval echo '${'$as_ac_var'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14378 for ac_func in strerror strerror_r setenv
14380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14394 #define $ac_func innocuous_$ac_func
14396 /* System header to define __stub macros and hopefully few prototypes,
14397 which can conflict with char $ac_func (); below.
14398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14399 <limits.h> exists even on freestanding compilers. */
14402 # include <limits.h>
14404 # include <assert.h>
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined __stub_$ac_func || defined __stub___$ac_func
14426 return $ac_func ();
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; } &&
14455 { ac_try='test -s conftest$ac_exeext'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 eval "$as_ac_var=yes"
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 eval "$as_ac_var=no"
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14476 ac_res=`eval echo '${'$as_ac_var'}'`
14477 { echo "$as_me:$LINENO: result: $ac_res" >&5
14478 echo "${ECHO_T}$ac_res" >&6; }
14479 if test `eval echo '${'$as_ac_var'}'` = yes; then
14480 cat >>confdefs.h <<_ACEOF
14481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14491 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 cat >conftest.$ac_ext <<_ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14507 #define $ac_func innocuous_$ac_func
14509 /* System header to define __stub macros and hopefully few prototypes,
14510 which can conflict with char $ac_func (); below.
14511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512 <limits.h> exists even on freestanding compilers. */
14515 # include <limits.h>
14517 # include <assert.h>
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14529 /* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined __stub_$ac_func || defined __stub___$ac_func
14539 return $ac_func ();
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 eval "$as_ac_var=yes"
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 eval "$as_ac_var=no"
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14589 ac_res=`eval echo '${'$as_ac_var'}'`
14590 { echo "$as_me:$LINENO: result: $ac_res" >&5
14591 echo "${ECHO_T}$ac_res" >&6; }
14592 if test `eval echo '${'$as_ac_var'}'` = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14621 #define $ac_func innocuous_$ac_func
14623 /* System header to define __stub macros and hopefully few prototypes,
14624 which can conflict with char $ac_func (); below.
14625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14626 <limits.h> exists even on freestanding compilers. */
14629 # include <limits.h>
14631 # include <assert.h>
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14643 /* The GNU C library defines this for functions which it implements
14644 to always fail with ENOSYS. Some functions are actually named
14645 something starting with __ and the normal name is an alias. */
14646 #if defined __stub_$ac_func || defined __stub___$ac_func
14653 return $ac_func ();
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (ac_try="$ac_link"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_link") 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14673 { (case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_try") 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_try") 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14692 eval "$as_ac_var=yes"
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 eval "$as_ac_var=no"
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14703 ac_res=`eval echo '${'$as_ac_var'}'`
14704 { echo "$as_me:$LINENO: result: $ac_res" >&5
14705 echo "${ECHO_T}$ac_res" >&6; }
14706 if test `eval echo '${'$as_ac_var'}'` = yes; then
14707 cat >>confdefs.h <<_ACEOF
14708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14716 for ac_func in futimes futimens
14718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14732 #define $ac_func innocuous_$ac_func
14734 /* System header to define __stub macros and hopefully few prototypes,
14735 which can conflict with char $ac_func (); below.
14736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14737 <limits.h> exists even on freestanding compilers. */
14740 # include <limits.h>
14742 # include <assert.h>
14747 /* Override any GCC internal prototype to avoid an error.
14748 Use char because int might match the return type of a GCC
14749 builtin and then its argument prototype would still apply. */
14754 /* The GNU C library defines this for functions which it implements
14755 to always fail with ENOSYS. Some functions are actually named
14756 something starting with __ and the normal name is an alias. */
14757 #if defined __stub_$ac_func || defined __stub___$ac_func
14764 return $ac_func ();
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (ac_try="$ac_link"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_link") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14784 { (case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_try") 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; } &&
14793 { ac_try='test -s conftest$ac_exeext'
14794 { (case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_try") 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 eval "$as_ac_var=yes"
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 eval "$as_ac_var=no"
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14814 ac_res=`eval echo '${'$as_ac_var'}'`
14815 { echo "$as_me:$LINENO: result: $ac_res" >&5
14816 echo "${ECHO_T}$ac_res" >&6; }
14817 if test `eval echo '${'$as_ac_var'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14825 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14826 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14827 if test "${llvm_cv_c_printf_a+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 ac_cpp='$CPP $CPPFLAGS'
14832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836 if test "$cross_compiling" = yes; then
14837 llvmac_cv_c_printf_a=no
14839 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14848 #include <stdlib.h>
14854 volatile double A, B;
14858 sprintf(Buffer, "%a", A);
14862 if (A != 0x1.999999999999ap-4)
14869 rm -f conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 llvm_cv_c_printf_a=yes
14891 echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ( exit $ac_status )
14896 llvmac_cv_c_printf_a=no
14898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903 ac_cpp='$CPP $CPPFLAGS'
14904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14909 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14910 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14911 if test "$llvm_cv_c_printf_a" = "yes"; then
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_PRINTF_A 1
14921 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14922 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14923 if test "${ac_cv_func_rand48+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 ac_cpp='$CXXCPP $CPPFLAGS'
14929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #include <stdlib.h>
14943 srand48(0);lrand48();drand48();
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_func_rand48=yes
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ac_cv_func_rand48=no
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14999 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15000 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15002 if test "$ac_cv_func_rand48" = "yes" ; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_RAND48 1
15011 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15012 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15013 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 $ac_includes_default
15027 char *p = (char *) arc4random;
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050 { (case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_try") 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 ac_cv_have_decl_arc4random=yes
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_cv_have_decl_arc4random=no
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15080 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15081 if test $ac_cv_have_decl_arc4random = yes; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define HAVE_DECL_ARC4RANDOM 1
15089 cat >>confdefs.h <<_ACEOF
15090 #define HAVE_DECL_ARC4RANDOM 0
15098 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15099 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15100 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 $ac_includes_default
15114 char *p = (char *) strerror_s;
15122 rm -f conftest.$ac_objext
15123 if { (ac_try="$ac_compile"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_compile") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_cv_have_decl_strerror_s=yes
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_have_decl_strerror_s=no
15164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15167 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15168 if test $ac_cv_have_decl_strerror_s = yes; then
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_DECL_STRERROR_S 1
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_DECL_STRERROR_S 0
15185 if test "$llvm_cv_os_type" = "MingW" ; then
15186 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15187 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15188 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_check_lib_save_LIBS=$LIBS
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (ac_try="$ac_link"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_link") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_lib_gcc__alloca=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_lib_gcc__alloca=no
15257 rm -f core conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15259 LIBS=$ac_check_lib_save_LIBS
15261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15262 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15263 if test $ac_cv_lib_gcc__alloca = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE__ALLOCA 1
15271 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15272 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 ac_check_lib_save_LIBS=$LIBS
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15295 return __alloca ();
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_lib_gcc___alloca=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_gcc___alloca=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15347 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15348 if test $ac_cv_lib_gcc___alloca = yes; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE___ALLOCA 1
15356 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15357 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15358 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 ac_check_lib_save_LIBS=$LIBS
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 /* Override any GCC internal prototype to avoid an error.
15371 Use char because int might match the return type of a GCC
15372 builtin and then its argument prototype would still apply. */
15380 return __chkstk ();
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_link") 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_lib_gcc___chkstk=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_lib_gcc___chkstk=no
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15432 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15433 if test $ac_cv_lib_gcc___chkstk = yes; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE___CHKSTK 1
15441 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15442 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 ac_check_lib_save_LIBS=$LIBS
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15465 return ___chkstk ();
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_lib_gcc____chkstk=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_lib_gcc____chkstk=no
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15517 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15518 if test $ac_cv_lib_gcc____chkstk = yes; then
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE____CHKSTK 1
15527 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15528 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15529 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 ac_check_lib_save_LIBS=$LIBS
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any GCC internal prototype to avoid an error.
15542 Use char because int might match the return type of a GCC
15543 builtin and then its argument prototype would still apply. */
15551 return __ashldi3 ();
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_gcc___ashldi3=yes
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_gcc___ashldi3=no
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15603 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15604 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15606 cat >>confdefs.h <<\_ACEOF
15607 #define HAVE___ASHLDI3 1
15612 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15613 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15614 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 ac_check_lib_save_LIBS=$LIBS
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15636 return __ashrdi3 ();
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_gcc___ashrdi3=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_gcc___ashrdi3=no
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15688 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15689 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15691 cat >>confdefs.h <<\_ACEOF
15692 #define HAVE___ASHRDI3 1
15697 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15698 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15699 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 ac_check_lib_save_LIBS=$LIBS
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15711 /* Override any GCC internal prototype to avoid an error.
15712 Use char because int might match the return type of a GCC
15713 builtin and then its argument prototype would still apply. */
15721 return __divdi3 ();
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15741 { (case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_try") 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
15750 { ac_try='test -s conftest$ac_exeext'
15751 { (case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_try") 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_lib_gcc___divdi3=yes
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_cv_lib_gcc___divdi3=no
15768 rm -f core conftest.err conftest.$ac_objext \
15769 conftest$ac_exeext conftest.$ac_ext
15770 LIBS=$ac_check_lib_save_LIBS
15772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15773 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15774 if test $ac_cv_lib_gcc___divdi3 = yes; then
15776 cat >>confdefs.h <<\_ACEOF
15777 #define HAVE___DIVDI3 1
15782 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15783 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_check_lib_save_LIBS=$LIBS
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15806 return __fixdfdi ();
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_link") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest$ac_exeext'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_lib_gcc___fixdfdi=yes
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_cv_lib_gcc___fixdfdi=no
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15858 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15859 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE___FIXDFDI 1
15867 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15868 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15869 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 ac_check_lib_save_LIBS=$LIBS
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15891 return __fixsfdi ();
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_link") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest$ac_exeext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_cv_lib_gcc___fixsfdi=yes
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_cv_lib_gcc___fixsfdi=no
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15943 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15944 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE___FIXSFDI 1
15952 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15953 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15954 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 ac_check_lib_save_LIBS=$LIBS
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 /* Override any GCC internal prototype to avoid an error.
15967 Use char because int might match the return type of a GCC
15968 builtin and then its argument prototype would still apply. */
15972 char __floatdidf ();
15976 return __floatdidf ();
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (ac_try="$ac_link"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_link") 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15996 { (case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_try") 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest$ac_exeext'
16006 { (case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_try") 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_lib_gcc___floatdidf=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_lib_gcc___floatdidf=no
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16028 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16029 if test $ac_cv_lib_gcc___floatdidf = yes; then
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE___FLOATDIDF 1
16037 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16038 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16039 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 ac_check_lib_save_LIBS=$LIBS
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16051 /* Override any GCC internal prototype to avoid an error.
16052 Use char because int might match the return type of a GCC
16053 builtin and then its argument prototype would still apply. */
16061 return __lshrdi3 ();
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_link") 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest$ac_exeext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_lib_gcc___lshrdi3=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_cv_lib_gcc___lshrdi3=no
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16113 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16114 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE___LSHRDI3 1
16122 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16123 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16124 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 ac_check_lib_save_LIBS=$LIBS
16129 cat >conftest.$ac_ext <<_ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16146 return __moddi3 ();
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_lib_gcc___moddi3=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_lib_gcc___moddi3=no
16193 rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16198 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16199 if test $ac_cv_lib_gcc___moddi3 = yes; then
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE___MODDI3 1
16207 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16208 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 ac_check_lib_save_LIBS=$LIBS
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16231 return __udivdi3 ();
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_gcc___udivdi3=yes
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_cv_lib_gcc___udivdi3=no
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16283 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16284 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE___UDIVDI3 1
16292 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16293 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16294 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 ac_check_lib_save_LIBS=$LIBS
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 /* Override any GCC internal prototype to avoid an error.
16307 Use char because int might match the return type of a GCC
16308 builtin and then its argument prototype would still apply. */
16316 return __umoddi3 ();
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_link") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_lib_gcc___umoddi3=yes
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_lib_gcc___umoddi3=no
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16368 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16369 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE___UMODDI3 1
16378 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16379 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16380 if test "${ac_cv_lib_gcc___main+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 ac_check_lib_save_LIBS=$LIBS
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422 { (case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_try") 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_cv_lib_gcc___main=yes
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_cv_lib_gcc___main=no
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 LIBS=$ac_check_lib_save_LIBS
16453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16454 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16455 if test $ac_cv_lib_gcc___main = yes; then
16457 cat >>confdefs.h <<\_ACEOF
16458 #define HAVE___MAIN 1
16463 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16464 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16465 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 ac_check_lib_save_LIBS=$LIBS
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16487 return __cmpdi2 ();
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_link") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_lib_gcc___cmpdi2=yes
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_cv_lib_gcc___cmpdi2=no
16534 rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
16536 LIBS=$ac_check_lib_save_LIBS
16538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16539 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16540 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define HAVE___CMPDI2 1
16550 if test "$llvm_cv_os_type" = "MingW" ; then
16551 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16552 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16553 cat >conftest.$ac_ext <<_ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16561 #include <windows.h>
16562 #include <imagehlp.h>
16563 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16564 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_compile") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16603 { echo "$as_me:$LINENO: result: yes" >&5
16604 echo "${ECHO_T}yes" >&6; }
16605 llvm_cv_win32_elmcb_pcstr="PCSTR"
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16612 { echo "$as_me:$LINENO: result: no" >&5
16613 echo "${ECHO_T}no" >&6; }
16614 llvm_cv_win32_elmcb_pcstr="PSTR"
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 cat >>confdefs.h <<_ACEOF
16621 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16628 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16629 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16630 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 ac_cpp='$CXXCPP $CPPFLAGS'
16636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16655 rm -f conftest.$ac_objext
16656 if { (ac_try="$ac_compile"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_func_isnan_in_math_h=yes
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_cv_func_isnan_in_math_h=no
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 ac_cpp='$CPP $CPPFLAGS'
16700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16706 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16707 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16710 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE_ISNAN_IN_MATH_H 1
16719 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16720 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16721 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 ac_cpp='$CXXCPP $CPPFLAGS'
16727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_func_isnan_in_cmath=yes
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_func_isnan_in_cmath=no
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16797 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16798 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16800 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE_ISNAN_IN_CMATH 1
16809 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16810 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16811 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 ac_cpp='$CXXCPP $CPPFLAGS'
16817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16831 float f; std::isnan(f);
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_cv_func_std_isnan_in_cmath=yes
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ac_cv_func_std_isnan_in_cmath=no
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 ac_cpp='$CPP $CPPFLAGS'
16881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16887 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16888 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16890 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_STD_ISNAN_IN_CMATH 1
16901 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16902 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16903 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 ac_cpp='$CXXCPP $CPPFLAGS'
16909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16913 cat >conftest.$ac_ext <<_ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16928 rm -f conftest.$ac_objext
16929 if { (ac_try="$ac_compile"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_compile") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_func_isinf_in_math_h=yes
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_cv_func_isinf_in_math_h=no
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 ac_cpp='$CPP $CPPFLAGS'
16973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16979 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16980 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16982 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16984 cat >>confdefs.h <<\_ACEOF
16985 #define HAVE_ISINF_IN_MATH_H 1
16991 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16992 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16993 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 ac_cpp='$CXXCPP $CPPFLAGS'
16999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17018 rm -f conftest.$ac_objext
17019 if { (ac_try="$ac_compile"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_compile") 2>conftest.er1
17027 grep -v '^ *+' conftest.er1 >conftest.err
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_func_isinf_in_cmath=yes
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_func_isinf_in_cmath=no
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17069 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17070 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17072 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17074 cat >>confdefs.h <<\_ACEOF
17075 #define HAVE_ISINF_IN_CMATH 1
17081 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17082 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17083 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 ac_cpp='$CXXCPP $CPPFLAGS'
17089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17103 float f; std::isinf(f);
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_func_std_isinf_in_cmath=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_func_std_isinf_in_cmath=no
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 ac_cpp='$CPP $CPPFLAGS'
17153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17159 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17160 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17162 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_STD_ISINF_IN_CMATH 1
17171 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17172 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17173 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 ac_cpp='$CXXCPP $CPPFLAGS'
17179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 #include <ieeefp.h>
17193 float f; finite(f);
17198 rm -f conftest.$ac_objext
17199 if { (ac_try="$ac_compile"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_compile") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_func_finite_in_ieeefp_h=yes
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ac_cv_func_finite_in_ieeefp_h=no
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17242 ac_cpp='$CPP $CPPFLAGS'
17243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17249 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17250 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17252 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_FINITE_IN_IEEEFP_H 1
17262 if test "$llvm_cv_platform_type" = "Unix" ; then
17265 for ac_header in stdlib.h unistd.h
17267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 ac_res=`eval echo '${'$as_ac_Header'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17278 # Is the header compilable?
17279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 $ac_includes_default
17288 #include <$ac_header>
17290 rm -f conftest.$ac_objext
17291 if { (ac_try="$ac_compile"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_compile") 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_header_compiler=yes
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_header_compiler=no
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17334 echo "${ECHO_T}$ac_header_compiler" >&6; }
17336 # Is the header present?
17337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 #include <$ac_header>
17347 if { (ac_try="$ac_cpp conftest.$ac_ext"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } >/dev/null; then
17360 if test -s conftest.err; then
17361 ac_cpp_err=$ac_c_preproc_warn_flag
17362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17369 if test -z "$ac_cpp_err"; then
17370 ac_header_preproc=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_header_preproc=no
17378 rm -f conftest.err conftest.$ac_ext
17379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17380 echo "${ECHO_T}$ac_header_preproc" >&6; }
17382 # So? What about this header?
17383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17389 ac_header_preproc=yes
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17405 ## ------------------------------------ ##
17406 ## Report this to http://llvm.org/bugs/ ##
17407 ## ------------------------------------ ##
17409 ) | sed "s/^/$as_me: WARNING: /" >&2
17412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 eval "$as_ac_Header=\$ac_header_preproc"
17419 ac_res=`eval echo '${'$as_ac_Header'}'`
17420 { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17434 for ac_func in getpagesize
17436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17450 #define $ac_func innocuous_$ac_func
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17458 # include <limits.h>
17460 # include <assert.h>
17465 /* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply. */
17472 /* The GNU C library defines this for functions which it implements
17473 to always fail with ENOSYS. Some functions are actually named
17474 something starting with __ and the normal name is an alias. */
17475 #if defined __stub_$ac_func || defined __stub___$ac_func
17482 return $ac_func ();
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 eval "$as_ac_var=no"
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17532 ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 if test `eval echo '${'$as_ac_var'}'` = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17543 { echo "$as_me:$LINENO: checking for working mmap" >&5
17544 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17545 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 if test "$cross_compiling" = yes; then
17549 ac_cv_func_mmap_fixed_mapped=no
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 /* malloc might have been renamed as rpl_malloc. */
17561 /* Thanks to Mike Haertel and Jim Avera for this test.
17562 Here is a matrix of mmap possibilities:
17563 mmap private not fixed
17564 mmap private fixed at somewhere currently unmapped
17565 mmap private fixed at somewhere already mapped
17566 mmap shared not fixed
17567 mmap shared fixed at somewhere currently unmapped
17568 mmap shared fixed at somewhere already mapped
17569 For private mappings, we should verify that changes cannot be read()
17570 back from the file, nor mmap's back from the file at a different
17571 address. (There have been systems where private was not correctly
17572 implemented like the infamous i386 svr4.0, and systems where the
17573 VM page cache was not coherent with the file system buffer cache
17574 like early versions of FreeBSD and possibly contemporary NetBSD.)
17575 For shared mappings, we should conversely verify that changes get
17576 propagated back to all the places they're supposed to be.
17578 Grep wants private fixed already mapped.
17579 The main things grep needs to know about mmap are:
17580 * does it exist and is it safe to write into the mmap'd area
17581 * how to use it (BSD variants) */
17584 #include <sys/mman.h>
17586 #if !STDC_HEADERS && !HAVE_STDLIB_H
17590 /* This mess was copied from the GNU getpagesize.h. */
17591 #if !HAVE_GETPAGESIZE
17592 /* Assume that all systems that can run configure have sys/param.h. */
17593 # if !HAVE_SYS_PARAM_H
17594 # define HAVE_SYS_PARAM_H 1
17597 # ifdef _SC_PAGESIZE
17598 # define getpagesize() sysconf(_SC_PAGESIZE)
17599 # else /* no _SC_PAGESIZE */
17600 # if HAVE_SYS_PARAM_H
17601 # include <sys/param.h>
17602 # ifdef EXEC_PAGESIZE
17603 # define getpagesize() EXEC_PAGESIZE
17604 # else /* no EXEC_PAGESIZE */
17606 # define getpagesize() NBPG * CLSIZE
17609 # endif /* no CLSIZE */
17610 # else /* no NBPG */
17612 # define getpagesize() NBPC
17613 # else /* no NBPC */
17615 # define getpagesize() PAGESIZE
17616 # endif /* PAGESIZE */
17617 # endif /* no NBPC */
17618 # endif /* no NBPG */
17619 # endif /* no EXEC_PAGESIZE */
17620 # else /* no HAVE_SYS_PARAM_H */
17621 # define getpagesize() 8192 /* punt totally */
17622 # endif /* no HAVE_SYS_PARAM_H */
17623 # endif /* no _SC_PAGESIZE */
17625 #endif /* no HAVE_GETPAGESIZE */
17630 char *data, *data2, *data3;
17634 pagesize = getpagesize ();
17636 /* First, make a file with some known garbage in it. */
17637 data = (char *) malloc (pagesize);
17640 for (i = 0; i < pagesize; ++i)
17641 *(data + i) = rand ();
17643 fd = creat ("conftest.mmap", 0600);
17646 if (write (fd, data, pagesize) != pagesize)
17650 /* Next, try to mmap the file at a fixed address which already has
17651 something else allocated at it. If we can, also make sure that
17652 we see the same garbage. */
17653 fd = open ("conftest.mmap", O_RDWR);
17656 data2 = (char *) malloc (2 * pagesize);
17659 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17660 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17661 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17663 for (i = 0; i < pagesize; ++i)
17664 if (*(data + i) != *(data2 + i))
17667 /* Finally, make sure that changes to the mapped area do not
17668 percolate back to the file as seen by read(). (This is a bug on
17669 some variants of i386 svr4.0.) */
17670 for (i = 0; i < pagesize; ++i)
17671 *(data2 + i) = *(data2 + i) + 1;
17672 data3 = (char *) malloc (pagesize);
17675 if (read (fd, data3, pagesize) != pagesize)
17677 for (i = 0; i < pagesize; ++i)
17678 if (*(data + i) != *(data3 + i))
17684 rm -f conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_link") 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17695 { (case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_try") 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_cv_func_mmap_fixed_mapped=yes
17706 echo "$as_me: program exited with status $ac_status" >&5
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ( exit $ac_status )
17711 ac_cv_func_mmap_fixed_mapped=no
17713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17718 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_MMAP 1
17727 rm -f conftest.mmap
17729 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17730 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17731 if test "${ac_cv_func_mmap_file+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_cpp='$CPP $CPPFLAGS'
17736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17740 if test "$cross_compiling" = yes; then
17741 ac_cv_func_mmap_file=no
17743 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 #include <sys/types.h>
17752 #include <sys/mman.h>
17760 fd = creat ("foo",0777);
17761 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17763 return (fd != (int) MAP_FAILED);
17768 rm -f conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_link") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17779 { (case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_try") 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_func_mmap_file=yes
17790 echo "$as_me: program exited with status $ac_status" >&5
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ( exit $ac_status )
17795 ac_cv_func_mmap_file=no
17797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17802 ac_cpp='$CPP $CPPFLAGS'
17803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17809 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17810 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17811 if test "$ac_cv_func_mmap_file" = yes; then
17813 cat >>confdefs.h <<\_ACEOF
17814 #define HAVE_MMAP_FILE
17821 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17822 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17823 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 if test "$llvm_cv_os_type" = "Interix" ; then
17827 ac_cv_need_dev_zero_for_mmap=yes
17829 ac_cv_need_dev_zero_for_mmap=no
17833 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17834 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17835 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17837 cat >>confdefs.h <<\_ACEOF
17838 #define NEED_DEV_ZERO_FOR_MMAP 1
17843 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17845 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17846 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17848 if test "$ac_cv_func_mmap_file" = "no"
17850 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17851 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17855 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17856 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17858 ac_cpp='$CXXCPP $CPPFLAGS'
17859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17863 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17872 volatile unsigned long val = 1;
17873 __sync_synchronize();
17874 __sync_val_compare_and_swap(&val, 1, 0);
17875 __sync_add_and_fetch(&val, 1);
17876 __sync_sub_and_fetch(&val, 1);
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17917 { echo "$as_me:$LINENO: result: yes" >&5
17918 echo "${ECHO_T}yes" >&6; }
17920 cat >>confdefs.h <<\_ACEOF
17921 #define LLVM_HAS_ATOMICS 1
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17930 { echo "$as_me:$LINENO: result: no" >&5
17931 echo "${ECHO_T}no" >&6; }
17933 cat >>confdefs.h <<\_ACEOF
17934 #define LLVM_HAS_ATOMICS 0
17937 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17938 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17953 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17954 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17955 if test "${llvm_cv_linux_mixed+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 ac_cpp='$CPP $CPPFLAGS'
17960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17971 error: Not x86-64 even if uname says so!
17982 rm -f conftest.$ac_objext
17983 if { (ac_try="$ac_compile"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_compile") 2>conftest.er1
17991 grep -v '^ *+' conftest.er1 >conftest.err
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 llvm_cv_linux_mixed=no
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 llvm_cv_linux_mixed=yes
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18034 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18036 if test "$llvm_cv_linux_mixed" = "yes"; then
18037 llvm_cv_target_arch="x86"
18043 for ac_func in __dso_handle
18045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18059 #define $ac_func innocuous_$ac_func
18061 /* System header to define __stub macros and hopefully few prototypes,
18062 which can conflict with char $ac_func (); below.
18063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18064 <limits.h> exists even on freestanding compilers. */
18067 # include <limits.h>
18069 # include <assert.h>
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18081 /* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084 #if defined __stub_$ac_func || defined __stub___$ac_func
18091 return $ac_func ();
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 eval "$as_ac_var=yes"
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 eval "$as_ac_var=no"
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18141 ac_res=`eval echo '${'$as_ac_var'}'`
18142 { echo "$as_me:$LINENO: result: $ac_res" >&5
18143 echo "${ECHO_T}$ac_res" >&6; }
18144 if test `eval echo '${'$as_ac_var'}'` = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18153 SHLIBEXT=$llvm_shlib_ext
18156 if test "${prefix}" = "NONE" ; then
18157 prefix="/usr/local"
18159 eval LLVM_PREFIX="${prefix}";
18160 eval LLVM_BINDIR="${prefix}/bin";
18161 eval LLVM_DATADIR="${prefix}/share/llvm";
18162 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18163 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18164 eval LLVM_INCLUDEDIR="${prefix}/include";
18165 eval LLVM_INFODIR="${prefix}/info";
18166 eval LLVM_MANDIR="${prefix}/man";
18167 LLVM_CONFIGTIME=`date`
18178 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18179 LLVM_CONFIGTIME="(timestamp not enabled)"
18183 cat >>confdefs.h <<_ACEOF
18184 #define LLVM_PREFIX "$LLVM_PREFIX"
18188 cat >>confdefs.h <<_ACEOF
18189 #define LLVM_BINDIR "$LLVM_BINDIR"
18193 cat >>confdefs.h <<_ACEOF
18194 #define LLVM_DATADIR "$LLVM_DATADIR"
18198 cat >>confdefs.h <<_ACEOF
18199 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18203 cat >>confdefs.h <<_ACEOF
18204 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18208 cat >>confdefs.h <<_ACEOF
18209 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18213 cat >>confdefs.h <<_ACEOF
18214 #define LLVM_INFODIR "$LLVM_INFODIR"
18218 cat >>confdefs.h <<_ACEOF
18219 #define LLVM_MANDIR "$LLVM_MANDIR"
18223 cat >>confdefs.h <<_ACEOF
18224 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18228 cat >>confdefs.h <<_ACEOF
18229 #define LLVM_HOST_TRIPLE "$host"
18233 cat >>confdefs.h <<_ACEOF
18234 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18238 if test "$BINDINGS_TO_BUILD" = auto ; then
18239 BINDINGS_TO_BUILD=""
18240 if test "x$OCAMLFIND" != x ; then
18241 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18243 if test "x$GO" != x ; then
18244 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18245 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18249 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18252 binding_prereqs_failed=0
18253 for a_binding in $BINDINGS_TO_BUILD ; do
18254 case "$a_binding" in
18256 if test "x$OCAMLFIND" = x ; then
18257 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18258 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18259 binding_prereqs_failed=1
18262 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18269 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18270 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18271 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18272 binding_prereqs_failed=1
18275 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18279 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18280 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18284 if test "x$with_ocaml_libdir" != xauto ; then
18285 OCAML_LIBDIR=$with_ocaml_libdir
18288 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18289 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18291 # ocaml stdlib is beneath our prefix; use stdlib
18292 OCAML_LIBDIR=$ocaml_stdlib
18295 # ocaml stdlib is outside our prefix; use libdir/ocaml
18296 OCAML_LIBDIR=${prefix}/lib/ocaml
18302 if test "x$GO" = x ; then
18303 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18304 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18305 binding_prereqs_failed=1
18307 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18310 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18311 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18312 binding_prereqs_failed=1
18318 if test "$binding_prereqs_failed" = 1 ; then
18319 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18320 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18321 { (exit 1); exit 1; }; }
18324 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18325 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18326 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_cpp='$CXXCPP $CPPFLAGS'
18331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335 oldcxxflags="$CXXFLAGS"
18336 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_compile") 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 llvm_cv_cxx_visibility_inlines_hidden=yes
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 llvm_cv_cxx_visibility_inlines_hidden=no
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 CXXFLAGS="$oldcxxflags"
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18405 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18406 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18407 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18410 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18415 if test "$llvm_cv_link_use_r" = "yes" ; then
18422 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18423 RDYNAMIC="-rdynamic"
18430 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18437 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18439 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18441 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18443 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18445 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18448 ac_config_files="$ac_config_files Makefile.config"
18451 ac_config_files="$ac_config_files llvm.spec"
18454 ac_config_files="$ac_config_files docs/doxygen.cfg"
18457 if test "${clang_src_root}" = ""; then
18458 clang_src_root="$srcdir/tools/clang"
18460 if test -f ${clang_src_root}/README.txt; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define CLANG_LIBDIR_SUFFIX ""
18467 configh="include/clang/Config/config.h"
18468 doxy="docs/doxygen.cfg"
18469 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18471 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18475 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18478 test "x$program_prefix" = "xNONE" && program_prefix=""
18482 ac_config_commands="$ac_config_commands setup"
18484 ac_config_commands="$ac_config_commands Makefile"
18487 ac_config_commands="$ac_config_commands Makefile.common"
18490 ac_config_commands="$ac_config_commands examples/Makefile"
18493 ac_config_commands="$ac_config_commands lib/Makefile"
18496 ac_config_commands="$ac_config_commands test/Makefile"
18499 ac_config_commands="$ac_config_commands test/Makefile.tests"
18502 ac_config_commands="$ac_config_commands unittests/Makefile"
18505 ac_config_commands="$ac_config_commands tools/Makefile"
18508 ac_config_commands="$ac_config_commands utils/Makefile"
18511 ac_config_commands="$ac_config_commands projects/Makefile"
18514 ac_config_commands="$ac_config_commands bindings/Makefile"
18517 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18521 cat >confcache <<\_ACEOF
18522 # This file is a shell script that caches the results of configure
18523 # tests run on this system so they can be shared between configure
18524 # scripts and configure runs, see configure's option --config-cache.
18525 # It is not useful on other systems. If it contains results you don't
18526 # want to keep, you may remove or edit it.
18528 # config.status only pays attention to the cache file if you give it
18529 # the --recheck option to rerun configure.
18531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18533 # following values.
18537 # The following way of writing the cache mishandles newlines in values,
18538 # but we know of no workaround that is simple, portable, and efficient.
18539 # So, we kill variables containing newlines.
18540 # Ultrix sh set writes to stderr and can't be redirected directly,
18541 # and sets the high bit in the cache file unless we assign to the vars.
18543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18544 eval ac_val=\$$ac_var
18548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18552 _ | IFS | as_nl) ;; #(
18553 *) $as_unset $ac_var ;;
18559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18560 *${as_nl}ac_space=\ *)
18561 # `set' does not quote correctly, so add quotes (double-quote
18562 # substitution turns \\\\ into \\, and sed turns \\ into \).
18565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18568 # `set' quotes correctly as required by POSIX, so do not add quotes.
18569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18583 if test -w "$cache_file"; then
18584 test "x$cache_file" != "x/dev/null" &&
18585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18586 echo "$as_me: updating cache $cache_file" >&6;}
18587 cat confcache >$cache_file
18589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18596 # Let make expand exec_prefix.
18597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18599 DEFS=-DHAVE_CONFIG_H
18603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18604 # 1. Remove the extension, and $U if already installed.
18605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18606 ac_i=`echo "$ac_i" | sed "$ac_script"`
18607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18608 # will be set to the directory where LIBOBJS objects are built.
18609 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18610 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18612 LIBOBJS=$ac_libobjs
18614 LTLIBOBJS=$ac_ltlibobjs
18618 : ${CONFIG_STATUS=./config.status}
18619 ac_clean_files_save=$ac_clean_files
18620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18623 cat >$CONFIG_STATUS <<_ACEOF
18625 # Generated by $as_me.
18626 # Run this file to recreate the current configuration.
18627 # Compiler output produced by configure, useful for debugging
18628 # configure, is in config.log if it exists.
18631 ac_cs_recheck=false
18633 SHELL=\${CONFIG_SHELL-$SHELL}
18636 cat >>$CONFIG_STATUS <<\_ACEOF
18637 ## --------------------- ##
18638 ## M4sh Initialization. ##
18639 ## --------------------- ##
18641 # Be Bourne compatible
18642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18646 # is contrary to our usage. Disable this feature.
18647 alias -g '${1+"$@"}'='"$@"'
18648 setopt NO_GLOB_SUBST
18650 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18652 BIN_SH=xpg4; export BIN_SH # for Tru64
18653 DUALCASE=1; export DUALCASE # for MKS sh
18657 # Avoid depending upon Character Ranges.
18658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18661 as_cr_digits='0123456789'
18662 as_cr_alnum=$as_cr_Letters$as_cr_digits
18664 # The user is always right.
18665 if test "${PATH_SEPARATOR+set}" != set; then
18666 echo "#! /bin/sh" >conf$$.sh
18667 echo "exit 0" >>conf$$.sh
18669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18677 # Support unset when possible.
18678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18686 # We need space, tab and new line, in precisely that order. Quoting is
18687 # there to prevent editors from complaining about space-tab.
18688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18689 # splitting by setting IFS to empty value.)
18694 # Find who we are. Look in the path if we contain no directory separator.
18696 *[\\/]* ) as_myself=$0 ;;
18697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18698 for as_dir in $PATH
18701 test -z "$as_dir" && as_dir=.
18702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18708 # We did not find ourselves, most probably we were run as `sh COMMAND'
18709 # in which case we are not to be found in the path.
18710 if test "x$as_myself" = x; then
18713 if test ! -f "$as_myself"; then
18714 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18715 { (exit 1); exit 1; }
18718 # Work around bugs in pre-3.0 UWIN ksh.
18719 for as_var in ENV MAIL MAILPATH
18720 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18730 LC_TELEPHONE LC_TIME
18732 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18733 eval $as_var=C; export $as_var
18735 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18739 # Required to use basename.
18740 if expr a : '\(a\)' >/dev/null 2>&1 &&
18741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18748 as_basename=basename
18754 # Name of the executable.
18755 as_me=`$as_basename -- "$0" ||
18756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18757 X"$0" : 'X\(//\)$' \| \
18758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18760 sed '/^.*\/\([^/][^/]*\)\/*$/{
18779 as_lineno_1=$LINENO
18780 as_lineno_2=$LINENO
18781 test "x$as_lineno_1" != "x$as_lineno_2" &&
18782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18785 # uniformly replaced by the line number. The first 'sed' inserts a
18786 # line-number line after each line using $LINENO; the second 'sed'
18787 # does the real work. The second script uses 'N' to pair each
18788 # line-number line with the line containing $LINENO, and appends
18789 # trailing '-' during substitution so that $LINENO is not a special
18790 # case at line end.
18791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18792 # scripts with optimization help from Paolo Bonzini. Blame Lee
18793 # E. McMahon (1931-1989) for sed's syntax. :-)
18805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18808 ' >$as_me.lineno &&
18809 chmod +x "$as_me.lineno" ||
18810 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18811 { (exit 1); exit 1; }; }
18813 # Don't try to exec as it changes $[0], causing all sort of problems
18814 # (the dirname of $[0] is not the place where we might find the
18815 # original and so on. Autoconf is especially sensitive to this).
18816 . "./$as_me.lineno"
18817 # Exit status is that of the last command.
18822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18828 ECHO_C= ECHO_N= ECHO_T=
18829 case `echo -n x` in
18831 case `echo 'x\c'` in
18832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18839 if expr a : '\(a\)' >/dev/null 2>&1 &&
18840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18846 rm -f conf$$ conf$$.exe conf$$.file
18847 if test -d conf$$.dir; then
18848 rm -f conf$$.dir/conf$$.file
18854 if ln -s conf$$.file conf$$ 2>/dev/null; then
18856 # ... but there are two gotchas:
18857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18859 # In both cases, we have to default to `cp -p'.
18860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18862 elif ln conf$$.file conf$$ 2>/dev/null; then
18867 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18868 rmdir conf$$.dir 2>/dev/null
18870 if mkdir -p . 2>/dev/null; then
18873 test -d ./-p && rmdir ./-p
18877 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18878 # systems may use methods other than mode bits to determine executability.
18879 cat >conf$$.file <<_ASEOF
18883 chmod +x conf$$.file
18884 if test -x conf$$.file >/dev/null 2>&1; then
18885 as_executable_p="test -x"
18891 # Sed expression to map a string onto a valid CPP name.
18892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18894 # Sed expression to map a string onto a valid variable name.
18895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18900 # Save the log message, to keep $[0] and so on meaningful, and to
18901 # report actual input values of CONFIG_FILES etc. instead of their
18902 # values after options handling.
18904 This file was extended by LLVM $as_me 3.6.0svn, which was
18905 generated by GNU Autoconf 2.60. Invocation command line was
18907 CONFIG_FILES = $CONFIG_FILES
18908 CONFIG_HEADERS = $CONFIG_HEADERS
18909 CONFIG_LINKS = $CONFIG_LINKS
18910 CONFIG_COMMANDS = $CONFIG_COMMANDS
18913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18918 cat >>$CONFIG_STATUS <<_ACEOF
18919 # Files that config.status was made for.
18920 config_files="$ac_config_files"
18921 config_headers="$ac_config_headers"
18922 config_commands="$ac_config_commands"
18926 cat >>$CONFIG_STATUS <<\_ACEOF
18928 \`$as_me' instantiates files from templates according to the
18929 current configuration.
18931 Usage: $0 [OPTIONS] [FILE]...
18933 -h, --help print this help, then exit
18934 -V, --version print version number, then exit
18935 -q, --quiet do not print progress messages
18936 -d, --debug don't remove temporary files
18937 --recheck update $as_me by reconfiguring in the same conditions
18938 --file=FILE[:TEMPLATE]
18939 instantiate the configuration file FILE
18940 --header=FILE[:TEMPLATE]
18941 instantiate the configuration header FILE
18943 Configuration files:
18946 Configuration headers:
18949 Configuration commands:
18952 Report bugs to <bug-autoconf@gnu.org>."
18955 cat >>$CONFIG_STATUS <<_ACEOF
18957 LLVM config.status 3.6.0svn
18958 configured by $0, generated by GNU Autoconf 2.60,
18959 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18961 Copyright (C) 2006 Free Software Foundation, Inc.
18962 This config.status script is free software; the Free Software Foundation
18963 gives unlimited permission to copy, distribute and modify it."
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18971 # If no file are specified by the user, then we need to provide default
18972 # value. By we need to know if files were specified by the user.
18978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18990 # Handling of the options.
18991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18994 echo "$ac_cs_version"; exit ;;
18995 --debug | --debu | --deb | --de | --d | -d )
18997 --file | --fil | --fi | --f )
18999 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19000 ac_need_defaults=false;;
19001 --header | --heade | --head | --hea )
19003 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19004 ac_need_defaults=false;;
19006 # Conflict between --help and --header
19007 { echo "$as_me: error: ambiguous option: $1
19008 Try \`$0 --help' for more information." >&2
19009 { (exit 1); exit 1; }; };;
19010 --help | --hel | -h )
19011 echo "$ac_cs_usage"; exit ;;
19012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19016 # This is an error.
19017 -*) { echo "$as_me: error: unrecognized option: $1
19018 Try \`$0 --help' for more information." >&2
19019 { (exit 1); exit 1; }; } ;;
19021 *) ac_config_targets="$ac_config_targets $1"
19022 ac_need_defaults=false ;;
19028 ac_configure_extra_args=
19030 if $ac_cs_silent; then
19032 ac_configure_extra_args="$ac_configure_extra_args --silent"
19036 cat >>$CONFIG_STATUS <<_ACEOF
19037 if \$ac_cs_recheck; then
19038 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19039 CONFIG_SHELL=$SHELL
19040 export CONFIG_SHELL
19041 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19045 cat >>$CONFIG_STATUS <<\_ACEOF
19049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19050 ## Running $as_me. ##
19056 cat >>$CONFIG_STATUS <<_ACEOF
19060 llvm_src="${srcdir}"
19064 cat >>$CONFIG_STATUS <<\_ACEOF
19066 # Handling of arguments.
19067 for ac_config_target in $ac_config_targets
19069 case $ac_config_target in
19070 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19071 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19072 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19073 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19074 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19075 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19076 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19077 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19078 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19079 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19080 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19081 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19082 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19083 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19084 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19085 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19086 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19087 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19088 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19089 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19090 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19091 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19092 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19093 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19094 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19095 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19099 { (exit 1); exit 1; }; };;
19104 # If the user did not use the arguments to specify the items to instantiate,
19105 # then the envvar interface is used. Set only those that are not.
19106 # We use the long form for the default assignment because of an extremely
19107 # bizarre bug on SunOS 4.1.3.
19108 if $ac_need_defaults; then
19109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19114 # Have a temporary directory for convenience. Make it in the build tree
19115 # simply because there is no reason against having it here, and in addition,
19116 # creating and moving files from /tmp can sometimes cause problems.
19117 # Hook for its removal unless debugging.
19118 # Note that there is a small window in which the directory will not be cleaned:
19119 # after its creation but before its name has been assigned to `$tmp'.
19123 trap 'exit_status=$?
19124 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19126 trap '{ (exit 1); exit 1; }' 1 2 13 15
19128 # Create a (secure) tmp directory for tmp files.
19131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19132 test -n "$tmp" && test -d "$tmp"
19135 tmp=./conf$$-$RANDOM
19136 (umask 077 && mkdir "$tmp")
19139 echo "$me: cannot create a temporary directory in ." >&2
19140 { (exit 1); exit 1; }
19144 # Set up the sed scripts for CONFIG_FILES section.
19147 # No need to generate the scripts if there are no CONFIG_FILES.
19148 # This happens for instance when ./config.status config.h
19149 if test -n "$CONFIG_FILES"; then
19156 for ac_last_try in false false false false false :; do
19157 cat >conf$$subs.sed <<_ACEOF
19158 SHELL!$SHELL$ac_delim
19159 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19160 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19161 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19162 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19163 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19164 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19165 exec_prefix!$exec_prefix$ac_delim
19166 prefix!$prefix$ac_delim
19167 program_transform_name!$program_transform_name$ac_delim
19168 bindir!$bindir$ac_delim
19169 sbindir!$sbindir$ac_delim
19170 libexecdir!$libexecdir$ac_delim
19171 datarootdir!$datarootdir$ac_delim
19172 datadir!$datadir$ac_delim
19173 sysconfdir!$sysconfdir$ac_delim
19174 sharedstatedir!$sharedstatedir$ac_delim
19175 localstatedir!$localstatedir$ac_delim
19176 includedir!$includedir$ac_delim
19177 oldincludedir!$oldincludedir$ac_delim
19178 docdir!$docdir$ac_delim
19179 infodir!$infodir$ac_delim
19180 htmldir!$htmldir$ac_delim
19181 dvidir!$dvidir$ac_delim
19182 pdfdir!$pdfdir$ac_delim
19183 psdir!$psdir$ac_delim
19184 libdir!$libdir$ac_delim
19185 localedir!$localedir$ac_delim
19186 mandir!$mandir$ac_delim
19187 DEFS!$DEFS$ac_delim
19188 ECHO_C!$ECHO_C$ac_delim
19189 ECHO_N!$ECHO_N$ac_delim
19190 ECHO_T!$ECHO_T$ac_delim
19191 LIBS!$LIBS$ac_delim
19192 build_alias!$build_alias$ac_delim
19193 host_alias!$host_alias$ac_delim
19194 target_alias!$target_alias$ac_delim
19195 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19196 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19197 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19198 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19199 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19201 CFLAGS!$CFLAGS$ac_delim
19202 LDFLAGS!$LDFLAGS$ac_delim
19203 CPPFLAGS!$CPPFLAGS$ac_delim
19204 ac_ct_CC!$ac_ct_CC$ac_delim
19205 EXEEXT!$EXEEXT$ac_delim
19206 OBJEXT!$OBJEXT$ac_delim
19208 CXXFLAGS!$CXXFLAGS$ac_delim
19209 ac_ct_CXX!$ac_ct_CXX$ac_delim
19211 subdirs!$subdirs$ac_delim
19212 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19213 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19214 build!$build$ac_delim
19215 build_cpu!$build_cpu$ac_delim
19216 build_vendor!$build_vendor$ac_delim
19217 build_os!$build_os$ac_delim
19218 host!$host$ac_delim
19219 host_cpu!$host_cpu$ac_delim
19220 host_vendor!$host_vendor$ac_delim
19221 host_os!$host_os$ac_delim
19222 target!$target$ac_delim
19223 target_cpu!$target_cpu$ac_delim
19224 target_vendor!$target_vendor$ac_delim
19225 target_os!$target_os$ac_delim
19227 HOST_OS!$HOST_OS$ac_delim
19228 TARGET_OS!$TARGET_OS$ac_delim
19229 LINKALL!$LINKALL$ac_delim
19230 NOLINKALL!$NOLINKALL$ac_delim
19231 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19232 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19233 ARCH!$ARCH$ac_delim
19234 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19235 HOST_ARCH!$HOST_ARCH$ac_delim
19236 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19237 BUILD_CC!$BUILD_CC$ac_delim
19238 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19239 BUILD_CXX!$BUILD_CXX$ac_delim
19240 CVSBUILD!$CVSBUILD$ac_delim
19241 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19242 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19243 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19244 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19245 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19246 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19247 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19248 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19249 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19250 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19251 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19252 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19253 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19254 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19259 elif $ac_last_try; then
19260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19262 { (exit 1); exit 1; }; }
19264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19269 if test -n "$ac_eof"; then
19270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19271 ac_eof=`expr $ac_eof + 1`
19274 cat >>$CONFIG_STATUS <<_ACEOF
19275 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19280 s/^/s,@/; s/!/@,|#_!!_#|/
19283 s/'"$ac_delim"'$/,g/; t
19285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19286 ' >>$CONFIG_STATUS <conf$$subs.sed
19287 rm -f conf$$subs.sed
19288 cat >>$CONFIG_STATUS <<_ACEOF
19294 for ac_last_try in false false false false false :; do
19295 cat >conf$$subs.sed <<_ACEOF
19296 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19298 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19299 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19300 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19301 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19302 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19303 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19304 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19305 ENABLE_PIC!$ENABLE_PIC$ac_delim
19306 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19307 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19308 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19309 ALL_TARGETS!$ALL_TARGETS$ac_delim
19310 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19311 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19312 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19313 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19314 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19315 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19316 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19317 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19318 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19319 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19320 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19321 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19322 ifGNUmake!$ifGNUmake$ac_delim
19323 LN_S!$LN_S$ac_delim
19327 DATE!$DATE$ac_delim
19328 FIND!$FIND$ac_delim
19329 GREP!$GREP$ac_delim
19330 MKDIR!$MKDIR$ac_delim
19332 RANLIB!$RANLIB$ac_delim
19337 BINPWD!$BINPWD$ac_delim
19339 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19340 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19341 INSTALL_DATA!$INSTALL_DATA$ac_delim
19342 BZIP2!$BZIP2$ac_delim
19344 DOXYGEN!$DOXYGEN$ac_delim
19345 GROFF!$GROFF$ac_delim
19346 GZIPBIN!$GZIPBIN$ac_delim
19347 PDFROFF!$PDFROFF$ac_delim
19350 OCAMLFIND!$OCAMLFIND$ac_delim
19352 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19353 EGREP!$EGREP$ac_delim
19354 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19355 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19356 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19357 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19358 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19359 NO_COMMENT!$NO_COMMENT$ac_delim
19360 PYTHON!$PYTHON$ac_delim
19361 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19362 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19363 USE_OPROFILE!$USE_OPROFILE$ac_delim
19364 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19365 XML2CONFIG!$XML2CONFIG$ac_delim
19366 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19367 LIBXML2_INC!$LIBXML2_INC$ac_delim
19368 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19369 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19370 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19371 MMAP_FILE!$MMAP_FILE$ac_delim
19372 SHLIBEXT!$SHLIBEXT$ac_delim
19373 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19374 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19375 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19376 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19377 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19378 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19379 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19380 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19381 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19382 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19383 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19384 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19385 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19386 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19387 RPATH!$RPATH$ac_delim
19388 RDYNAMIC!$RDYNAMIC$ac_delim
19389 program_prefix!$program_prefix$ac_delim
19390 LIBOBJS!$LIBOBJS$ac_delim
19391 LTLIBOBJS!$LTLIBOBJS$ac_delim
19394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19396 elif $ac_last_try; then
19397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19399 { (exit 1); exit 1; }; }
19401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19406 if test -n "$ac_eof"; then
19407 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19408 ac_eof=`expr $ac_eof + 1`
19411 cat >>$CONFIG_STATUS <<_ACEOF
19412 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19417 s/^/s,@/; s/!/@,|#_!!_#|/
19420 s/'"$ac_delim"'$/,g/; t
19422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19423 ' >>$CONFIG_STATUS <conf$$subs.sed
19424 rm -f conf$$subs.sed
19425 cat >>$CONFIG_STATUS <<_ACEOF
19430 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19432 # trailing colons and then remove the whole line if VPATH becomes empty
19433 # (actually we leave an empty line to preserve line numbers).
19434 if test "x$srcdir" = x.; then
19435 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19436 s/:*\$(srcdir):*/:/
19437 s/:*\${srcdir}:*/:/
19439 s/^\([^=]*=[ ]*\):*/\1/
19445 cat >>$CONFIG_STATUS <<\_ACEOF
19446 fi # test -n "$CONFIG_FILES"
19449 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19452 :[FHLC]) ac_mode=$ac_tag; continue;;
19454 case $ac_mode$ac_tag in
19456 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19457 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19458 { (exit 1); exit 1; }; };;
19459 :[FH]-) ac_tag=-:-;;
19460 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19477 -) ac_f="$tmp/stdin";;
19478 *) # Look for the file first in the build tree, then in the source tree
19479 # (if the path is not absolute). The absolute path cannot be DOS-style,
19480 # because $ac_f cannot contain `:'.
19484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19486 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19487 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19488 { (exit 1); exit 1; }; };;
19490 ac_file_inputs="$ac_file_inputs $ac_f"
19493 # Let's still pretend it is `configure' which instantiates (i.e., don't
19494 # use $as_me), people would be surprised to read:
19495 # /* config.h. Generated by config.status. */
19496 configure_input="Generated from "`IFS=:
19497 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19498 if test x"$ac_file" != x-; then
19499 configure_input="$ac_file. $configure_input"
19500 { echo "$as_me:$LINENO: creating $ac_file" >&5
19501 echo "$as_me: creating $ac_file" >&6;}
19505 *:-:* | *:-) cat >"$tmp/stdin";;
19510 ac_dir=`$as_dirname -- "$ac_file" ||
19511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512 X"$ac_file" : 'X\(//\)[^/]' \| \
19513 X"$ac_file" : 'X\(//\)$' \| \
19514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19520 /^X\(\/\/\)[^/].*/{
19535 -*) as_dir=./$as_dir;;
19537 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19541 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19542 *) as_qdir=$as_dir;;
19544 as_dirs="'$as_qdir' $as_dirs"
19545 as_dir=`$as_dirname -- "$as_dir" ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547 X"$as_dir" : 'X\(//\)[^/]' \| \
19548 X"$as_dir" : 'X\(//\)$' \| \
19549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19555 /^X\(\/\/\)[^/].*/{
19568 test -d "$as_dir" && break
19570 test -z "$as_dirs" || eval "mkdir $as_dirs"
19571 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19572 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19573 { (exit 1); exit 1; }; }; }
19577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19580 # A ".." for each directory in $ac_dir_suffix.
19581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19582 case $ac_top_builddir_sub in
19583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19587 ac_abs_top_builddir=$ac_pwd
19588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19589 # for backward compatibility:
19590 ac_top_builddir=$ac_top_build_prefix
19593 .) # We are building in place.
19595 ac_top_srcdir=$ac_top_builddir_sub
19596 ac_abs_top_srcdir=$ac_pwd ;;
19597 [\\/]* | ?:[\\/]* ) # Absolute name.
19598 ac_srcdir=$srcdir$ac_dir_suffix;
19599 ac_top_srcdir=$srcdir
19600 ac_abs_top_srcdir=$srcdir ;;
19601 *) # Relative name.
19602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19603 ac_top_srcdir=$ac_top_build_prefix$srcdir
19604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622 # If the template does not know about datarootdir, expand it.
19623 # FIXME: This hack should be removed a few years after 2.60.
19624 ac_datarootdir_hack=; ac_datarootdir_seen=
19626 case `sed -n '/datarootdir/ {
19635 ' $ac_file_inputs` in
19636 *datarootdir*) ac_datarootdir_seen=yes;;
19637 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19638 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19639 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19641 cat >>$CONFIG_STATUS <<_ACEOF
19642 ac_datarootdir_hack='
19643 s&@datadir@&$datadir&g
19644 s&@docdir@&$docdir&g
19645 s&@infodir@&$infodir&g
19646 s&@localedir@&$localedir&g
19647 s&@mandir@&$mandir&g
19648 s&\\\${datarootdir}&$datarootdir&g' ;;
19652 # Neutralize VPATH when `$srcdir' = `.'.
19653 # Shell code in configure.ac might set extrasub.
19654 # FIXME: do we really want to maintain this feature?
19655 cat >>$CONFIG_STATUS <<_ACEOF
19659 cat >>$CONFIG_STATUS <<\_ACEOF
19661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19662 s&@configure_input@&$configure_input&;t t
19663 s&@top_builddir@&$ac_top_builddir_sub&;t t
19664 s&@srcdir@&$ac_srcdir&;t t
19665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19666 s&@top_srcdir@&$ac_top_srcdir&;t t
19667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19668 s&@builddir@&$ac_builddir&;t t
19669 s&@abs_builddir@&$ac_abs_builddir&;t t
19670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19671 s&@INSTALL@&$ac_INSTALL&;t t
19672 $ac_datarootdir_hack
19673 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19676 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19677 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19678 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19679 which seems to be undefined. Please make sure it is defined." >&5
19680 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19681 which seems to be undefined. Please make sure it is defined." >&2;}
19685 -) cat "$tmp/out"; rm -f "$tmp/out";;
19686 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19695 # Transform confdefs.h into a sed script `conftest.defines', that
19696 # substitutes the proper values into config.h.in to produce config.h.
19697 rm -f conftest.defines conftest.tail
19698 # First, append a space to every undef/define line, to ease matching.
19699 echo 's/$/ /' >conftest.defines
19700 # Then, protect against being on the right side of a sed subst, or in
19701 # an unquoted here document, in config.status. If some macros were
19702 # called several times there might be several #defines for the same
19703 # symbol, which is useless. But do not sort them, since the last
19704 # AC_DEFINE must be honored.
19705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19706 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19707 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19708 # PARAMS is the parameter list in the macro definition--in most cases, it's
19709 # just an empty string.
19710 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19711 ac_dB='\\)[ (].*,\\1define\\2'
19719 s/^[ ]*#[ ]*define[ ][ ]*//
19724 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19725 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19726 ' >>conftest.defines
19728 # Remove the space that was appended to ease matching.
19729 # Then replace #undef with comments. This is necessary, for
19730 # example, in the case of _POSIX_SOURCE, which is predefined and required
19731 # on some systems where configure will not decide to define it.
19732 # (The regexp can be short, since the line contains either #define or #undef.)
19734 s,^[ #]*u.*,/* & */,' >>conftest.defines
19736 # Break up conftest.defines:
19737 ac_max_sed_lines=50
19739 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19740 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19741 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19743 ac_in='$ac_file_inputs'
19744 ac_out='"$tmp/out1"'
19745 ac_nxt='"$tmp/out2"'
19749 # Write a here document:
19750 cat >>$CONFIG_STATUS <<_ACEOF
19751 # First, check the format of the line:
19752 cat >"\$tmp/defines.sed" <<\\CEOF
19753 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19754 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19758 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19760 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19761 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19762 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19763 grep . conftest.tail >/dev/null || break
19764 rm -f conftest.defines
19765 mv conftest.tail conftest.defines
19767 rm -f conftest.defines conftest.tail
19769 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19771 if test x"$ac_file" != x-; then
19772 echo "/* $configure_input */" >"$tmp/config.h"
19773 cat "$ac_result" >>"$tmp/config.h"
19774 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19775 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19776 echo "$as_me: $ac_file is unchanged" >&6;}
19779 mv "$tmp/config.h" $ac_file
19782 echo "/* $configure_input */"
19788 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19789 echo "$as_me: executing $ac_file commands" >&6;}
19794 case $ac_file$ac_mode in
19795 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19796 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19797 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19798 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19799 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19800 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19801 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19802 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19803 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19804 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19805 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19806 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19807 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19808 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19809 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19810 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19811 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19812 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19813 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19814 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19815 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19816 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19817 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19818 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19824 { (exit 0); exit 0; }
19826 chmod +x $CONFIG_STATUS
19827 ac_clean_files=$ac_clean_files_save
19830 # configure is writing to config.log, and then calls config.status.
19831 # config.status does its own redirection, appending to config.log.
19832 # Unfortunately, on DOS this fails, as config.log is still kept open
19833 # by configure, so config.status won't be able to write to it; its
19834 # output is simply discarded. So we exec the FD to /dev/null,
19835 # effectively closing config.log, so it can be properly (re)opened and
19836 # appended to by config.status. When coming back to configure, we
19837 # need to make the FD available again.
19838 if test "$no_create" != yes; then
19840 ac_config_status_args=
19841 test "$silent" = yes &&
19842 ac_config_status_args="$ac_config_status_args --quiet"
19844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19847 # would make configure fail if this is the last instruction.
19848 $ac_cs_success || { (exit 1); exit 1; }
19852 # CONFIG_SUBDIRS section.
19854 if test "$no_recursion" != yes; then
19856 # Remove --cache-file and --srcdir arguments so they do not pile up.
19857 ac_sub_configure_args=
19859 eval "set x $ac_configure_args"
19863 if test -n "$ac_prev"; then
19868 -cache-file | --cache-file | --cache-fil | --cache-fi \
19869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19870 ac_prev=cache_file ;;
19871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19875 --config-cache | -C)
19877 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19879 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19881 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19883 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19887 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19889 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19893 # Always prepend --prefix to ensure using the same prefix
19894 # in subdir configurations.
19895 ac_arg="--prefix=$prefix"
19897 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19899 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19902 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19904 # Do not complain, so a configure script can configure whichever
19905 # parts of a large source tree are present.
19906 test -d "$srcdir/$ac_dir" || continue
19908 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19909 echo "$as_me:$LINENO: $ac_msg" >&5
19913 -*) as_dir=./$as_dir;;
19915 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19919 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19920 *) as_qdir=$as_dir;;
19922 as_dirs="'$as_qdir' $as_dirs"
19923 as_dir=`$as_dirname -- "$as_dir" ||
19924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19925 X"$as_dir" : 'X\(//\)[^/]' \| \
19926 X"$as_dir" : 'X\(//\)$' \| \
19927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19933 /^X\(\/\/\)[^/].*/{
19946 test -d "$as_dir" && break
19948 test -z "$as_dirs" || eval "mkdir $as_dirs"
19949 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19951 { (exit 1); exit 1; }; }; }
19955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19958 # A ".." for each directory in $ac_dir_suffix.
19959 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19960 case $ac_top_builddir_sub in
19961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19965 ac_abs_top_builddir=$ac_pwd
19966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19967 # for backward compatibility:
19968 ac_top_builddir=$ac_top_build_prefix
19971 .) # We are building in place.
19973 ac_top_srcdir=$ac_top_builddir_sub
19974 ac_abs_top_srcdir=$ac_pwd ;;
19975 [\\/]* | ?:[\\/]* ) # Absolute name.
19976 ac_srcdir=$srcdir$ac_dir_suffix;
19977 ac_top_srcdir=$srcdir
19978 ac_abs_top_srcdir=$srcdir ;;
19979 *) # Relative name.
19980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19981 ac_top_srcdir=$ac_top_build_prefix$srcdir
19982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19989 # Check for guested configure; otherwise get Cygnus style configure.
19990 if test -f "$ac_srcdir/configure.gnu"; then
19991 ac_sub_configure=$ac_srcdir/configure.gnu
19992 elif test -f "$ac_srcdir/configure"; then
19993 ac_sub_configure=$ac_srcdir/configure
19994 elif test -f "$ac_srcdir/configure.in"; then
19995 # This should be Cygnus configure.
19996 ac_sub_configure=$ac_aux_dir/configure
19998 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20003 # The recursion is here.
20004 if test -n "$ac_sub_configure"; then
20005 # Make the cache file name correct relative to the subdirectory.
20006 case $cache_file in
20007 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20008 *) # Relative name.
20009 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20012 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20013 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20014 # The eval makes quoting arguments work.
20015 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20016 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20017 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20018 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20019 { (exit 1); exit 1; }; }