2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.8.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-2015 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.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.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
694 ENABLE_CLANG_STATIC_ANALYZER
699 ENABLE_EXPENSIVE_CHECKS
701 ENABLE_ABI_BREAKING_CHECKS
711 enable_external_search
712 enable_server_based_search
714 extra_search_mappings
716 llvm_doxygen_generate_qhp
717 llvm_doxygen_qch_filename
718 llvm_doxygen_qhp_namespace
719 llvm_doxygen_qhelpgenerator_path
720 llvm_doxygen_qhp_cust_filter_name
721 llvm_doxygen_qhp_cust_filter_attrs
722 clang_doxygen_generate_qhp
723 clang_doxygen_qch_filename
724 clang_doxygen_qhp_namespace
725 clang_doxygen_qhelpgenerator_path
726 clang_doxygen_qhp_cust_filter_name
727 clang_doxygen_qhp_cust_filter_attrs
738 LLVM_ENUM_ASM_PRINTERS
739 LLVM_ENUM_ASM_PARSERS
740 LLVM_ENUM_DISASSEMBLERS
778 HAVE_LINK_VERSION_SCRIPT
781 MISSING_FIELD_INITIALIZERS
782 COVERED_SWITCH_DEFAULT
783 NO_MAYBE_UNINITIALIZED
812 ENABLE_VISIBILITY_INLINES_HIDDEN
819 ac_precious_vars='build_alias
830 ac_subdirs_all='projects/test-suite
833 projects/llvm-poolalloc
837 # Initialize some variables set by options.
839 ac_init_version=false
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 -enable-* | --enable-*)
957 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
960 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961 { (exit 1); exit 1; }; }
962 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
963 eval enable_$ac_feature=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid package name: $ac_package" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_package=`echo $ac_package| sed 's/-/_/g'`
1160 eval with_$ac_package=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid package name: $ac_package" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_package=`echo $ac_package | sed 's/-/_/g'`
1169 eval with_$ac_package=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) { echo "$as_me: error: unrecognized option: $ac_option
1190 Try \`$0 --help' for more information." >&2
1191 { (exit 1); exit 1; }; }
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199 { (exit 1); exit 1; }; }
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 { echo "$as_me: error: missing argument to $ac_option" >&2
1217 { (exit 1); exit 1; }; }
1220 # Be sure to have absolute directory names.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1232 { (exit 1); exit 1; }; }
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used." >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256 test "$silent" = yes && exec 6>/dev/null
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 { echo "$as_me: error: Working directory cannot be determined" >&2
1263 { (exit 1); exit 1; }; }
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 { echo "$as_me: error: pwd does not report name of working directory" >&2
1266 { (exit 1); exit 1; }; }
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$0" ||
1274 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$0" : 'X\(//\)[^/]' \| \
1276 X"$0" : 'X\(//\)$' \| \
1277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1306 { (exit 1); exit 1; }; }
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1311 { (exit 1); exit 1; }; }
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of LLVM 3.8.0svn:";;
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-polly Use polly if available (default is YES)
1411 --enable-libcpp Use libc++ if available (default is NO)
1412 --enable-compiler-version-checks
1413 Check the version of the host compiler (default is
1415 --enable-cxx1y Use c++1y if available (default is NO)
1416 --enable-split-dwarf Use split-dwarf if available (default is NO)
1417 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1418 --enable-clang-plugin-support
1419 Enable plugin support in clang (default is YES)
1420 --enable-clang-static-analyzer
1421 Enable building of clang Static Analyzer (default is
1423 --enable-optimized Compile with optimizations enabled (default is NO)
1424 --enable-profiling Compile with profiling enabled (default is NO)
1425 --enable-assertions Compile with assertion checks enabled (default is
1427 --enable-werror Compile with -Werror enabled (default is NO)
1428 --enable-expensive-checks
1429 Compile with expensive debug checks enabled (default
1431 --enable-abi-breaking-checks
1432 Compile with abi-breaking asserts support (default
1434 --enable-debug-runtime Build runtime libs with debug symbols (default is
1436 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1437 optimization is on and YES if it's off)
1438 --enable-keep-symbols Do not strip installed executables)
1439 --enable-jit Enable Just In Time Compiling (default is YES)
1440 --enable-docs Build documents (default is YES)
1441 --enable-doxygen Build doxygen documentation (default is NO)
1442 --enable-doxygen-search Enable doxygen search support (default is NO)
1443 --enable-doxygen-external-search
1444 Enable doxygen exteranl search (default is NO)
1445 --enable-doxygen-qt-help
1446 Build Qt help files (default is NO)
1447 --enable-threads Use threads if available (default is YES)
1448 --enable-pthreads Use pthreads if available (default is YES)
1449 --enable-zlib Use zlib for compression/decompression if available
1451 --enable-pic Build LLVM with Position Independent Code (default
1453 --enable-shared Build a shared library and link tools against it
1455 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1456 Win32 DLL (default is NO)
1457 --enable-timestamps Enable embedding timestamp information in build
1459 --enable-backtraces Enable embedding backtraces on crash (default is
1461 --enable-crash-overrides
1462 Enable crash handling overrides (default is YES)
1463 --enable-targets Build specific host targets: all or
1464 target1,target2,... Valid targets are: host, x86,
1465 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1466 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1467 wasm, and cpp (default=all)
1468 --enable-experimental-targets
1469 Build experimental host targets: disable or
1470 target1,target2,... (default=disable)
1471 --enable-bindings Build specific language bindings:
1472 all,auto,none,{binding-name} (default=auto)
1473 --enable-terminfo Query the terminfo database if available (default is
1475 --enable-libedit Use libedit if available (default is YES)
1476 --enable-libffi Check for the presence of libffi (default is NO)
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-doxygen-search-engine-url
1482 Specify the external search engine for doxygen
1483 --with-doxygen-search-mappings
1484 Specify the extra search mapping for doxygen
1485 --with-optimize-option Select the compiler options to use for optimized
1487 --with-extra-options Specify additional options to compile LLVM with
1488 --with-extra-ld-options Specify additional options to link LLVM with
1489 --with-ocaml-libdir Specify install location for ocaml bindings (default
1491 --with-clang-srcdir Directory to the out-of-tree Clang source
1492 --with-clang-resource-dir
1493 Relative directory from the Clang binary for
1495 --with-c-include-dirs Colon separated list of directories clang will
1497 --with-gcc-toolchain Directory where gcc is installed.
1498 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1499 --with-clang-default-openmp-runtime
1500 The default OpenMP runtime for Clang.
1501 --with-binutils-include Specify path to binutils/include/ containing
1502 plugin-api.h file for gold plugin.
1503 --with-bug-report-url Specify the URL where bug reports should be
1504 submitted (default=http://llvm.org/bugs/)
1505 --with-internal-prefix Installation directory for internal files
1506 --with-python path to python
1507 --with-oprofile=<prefix>
1508 Tell OProfile >= 0.9.4 how to symbolize JIT output
1509 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <http://llvm.org/bugs/>.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" || continue
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1554 .) # We are building in place.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1587 LLVM configure 3.8.0svn
1588 generated by GNU Autoconf 2.60
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1595 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by LLVM $as_me 3.8.0svn, which was
1604 generated by GNU Autoconf 2.60. Invocation command line was
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 echo "PATH: $as_dir"
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_must_keep_next=false
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 -* ) ac_must_keep_next=true ;;
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 _ | IFS | as_nl) ;; #(
1732 *) $as_unset $ac_var ;;
1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738 *${as_nl}ac_space=\ *)
1740 "s/'\''/'\''\\\\'\'''\''/g;
1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1757 for ac_var in $ac_subst_vars
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1767 if test -n "$ac_subst_files"; then
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1774 for ac_var in $ac_subst_files
1776 eval ac_val=\$$ac_var
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 echo "$ac_var='\''$ac_val'\''"
1785 if test -s confdefs.h; then
1795 test "$ac_signal" != 0 &&
1796 echo "$as_me: caught signal $ac_signal"
1797 echo "$as_me: exit $exit_status"
1799 rm -f core *.core core.conftest.* &&
1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803 for ac_signal in 1 2 13 15; do
1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1811 # Predefined preprocessor variables.
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 set x "$ac_default_prefix/share/config.site" \
1846 "$ac_default_prefix/etc/config.site"
1851 if test -r "$ac_site_file"; then
1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854 sed 's/^/| /' "$ac_site_file" >&5
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special
1861 # files actually), so we avoid doing that.
1862 if test -f "$cache_file"; then
1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1899 echo "$as_me: former value: $ac_old_val" >&2;}
1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1901 echo "$as_me: current value: $ac_new_val" >&2;}
1902 ac_cache_corrupted=:
1905 # Pass precious variables to config.status.
1906 if test "$ac_new_set" = set; then
1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 *) ac_arg=$ac_var=$ac_new_val ;;
1911 case " $ac_configure_args " in
1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917 if $ac_cache_corrupted; then
1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922 { (exit 1); exit 1; }; }
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 LLVM_VERSION_MAJOR=3
1958 LLVM_VERSION_MINOR=8
1959 LLVM_VERSION_PATCH=0
1960 LLVM_VERSION_SUFFIX=svn
1963 cat >>confdefs.h <<_ACEOF
1964 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1968 cat >>confdefs.h <<_ACEOF
1969 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1973 cat >>confdefs.h <<_ACEOF
1974 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1978 cat >>confdefs.h <<_ACEOF
1979 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1988 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1997 for ac_dir in autoconf "$srcdir"/autoconf; do
1998 if test -f "$ac_dir/install-sh"; then
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 elif test -f "$ac_dir/install.sh"; then
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 elif test -f "$ac_dir/shtool"; then
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2028 if test ${srcdir} != "." ; then
2029 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2030 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2031 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2032 { (exit 1); exit 1; }; }
2036 if test ${srcdir} = "." ; then
2037 { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2038 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2039 { (exit 1); exit 1; }; }
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051 for ac_prog in clang gcc
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test -n "$CC"; then
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2090 test -n "$CC" && break
2093 if test -z "$CC"; then
2095 for ac_prog in clang gcc
2097 # Extract the first word of "$ac_prog", so it can be a program name with args.
2098 set dummy $ac_prog; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test -n "$ac_ct_CC"; then
2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_prog_ac_ct_CC="$ac_prog"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125 if test -n "$ac_ct_CC"; then
2126 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127 echo "${ECHO_T}$ac_ct_CC" >&6; }
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2134 test -n "$ac_ct_CC" && break
2137 if test "x$ac_ct_CC" = x; then
2140 case $cross_compiling:$ac_tool_warned in
2142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2143 whose name does not start with the host triplet. If you think this
2144 configuration is useful to you, please write to autoconf@gnu.org." >&5
2145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2146 whose name does not start with the host triplet. If you think this
2147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2148 ac_tool_warned=yes ;;
2155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&2;}
2159 { (exit 1); exit 1; }; }
2161 # Provide some information about the compiler.
2162 echo "$as_me:$LINENO: checking for C compiler version" >&5
2163 ac_compiler=`set X $ac_compile; echo $2`
2164 { (ac_try="$ac_compiler --version >&5"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compiler --version >&5") 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }
2174 { (ac_try="$ac_compiler -v >&5"
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180 (eval "$ac_compiler -v >&5") 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2184 { (ac_try="$ac_compiler -V >&5"
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2190 (eval "$ac_compiler -V >&5") 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2195 cat >conftest.$ac_ext <<_ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2210 ac_clean_files_save=$ac_clean_files
2211 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2212 # Try to create an executable without -o first, disregard a.out.
2213 # It will help us diagnose broken compilers, and finding out an intuition
2215 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2216 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2217 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2219 # List of possible output files, starting from the most likely.
2220 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2221 # only as a last resort. b.out is created by i960 compilers.
2222 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2224 # The IRIX 6 linker writes into existing files which may not be
2225 # executable, retaining their permissions. Remove them first so a
2226 # subsequent execution test works.
2228 for ac_file in $ac_files
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2237 if { (ac_try="$ac_link_default"
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_link_default") 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2250 # so that the user can short-circuit this test for compilers unknown to
2252 for ac_file in $ac_files
2254 test -f "$ac_file" || continue
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2259 # We found the default executable, but exeext='' is most
2263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 # We set ac_cv_exeext here because the later test for it is not
2268 # safe: cross compilers may not add the suffix if given an `-o'
2269 # argument, so we may need to know it at that point already.
2270 # Even if this section looks crufty: it has the advantage of
2277 test "$ac_cv_exeext" = no && ac_cv_exeext=
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: C compiler cannot create executables
2286 See \`config.log' for more details." >&2;}
2287 { (exit 77); exit 77; }; }
2290 ac_exeext=$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_file" >&5
2292 echo "${ECHO_T}$ac_file" >&6; }
2294 # Check that the compiler produces executables we can run. If not, either
2295 # the compiler is broken, or we cross compile.
2296 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2297 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2298 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2299 # If not cross compiling, check that we can run a simple program.
2300 if test "$cross_compiling" != yes; then
2301 if { ac_try='./$ac_file'
2302 { (case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2307 (eval "$ac_try") 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2313 if test "$cross_compiling" = maybe; then
2316 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2317 If you meant to cross compile, use \`--host'.
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2326 { echo "$as_me:$LINENO: result: yes" >&5
2327 echo "${ECHO_T}yes" >&6; }
2329 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2330 ac_clean_files=$ac_clean_files_save
2331 # Check that the compiler produces executables we can run. If not, either
2332 # the compiler is broken, or we cross compile.
2333 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2335 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336 echo "${ECHO_T}$cross_compiling" >&6; }
2338 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2340 if { (ac_try="$ac_link"
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_link") 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2352 # work properly (i.e., refer to `conftest.exe'), while it won't with
2354 for ac_file in conftest.exe conftest conftest.*; do
2355 test -f "$ac_file" || continue
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2371 rm -f conftest$ac_cv_exeext
2372 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2373 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2375 rm -f conftest.$ac_ext
2376 EXEEXT=$ac_cv_exeext
2378 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2379 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2380 if test "${ac_cv_objext+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 cat >conftest.$ac_ext <<_ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2398 rm -f conftest.o conftest.obj
2399 if { (ac_try="$ac_compile"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compile") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; then
2409 for ac_file in conftest.o conftest.obj conftest.*; do
2410 test -f "$ac_file" || continue;
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2413 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }
2428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2431 echo "${ECHO_T}$ac_cv_objext" >&6; }
2432 OBJEXT=$ac_cv_objext
2434 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2435 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2503 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2505 GCC=`test $ac_compiler_gnu = yes && echo yes`
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 ac_save_c_werror_flag=$ac_c_werror_flag
2514 ac_c_werror_flag=yes
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547 { (case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_try") 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 cat >conftest.$ac_ext <<_ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>conftest.er1
2596 grep -v '^ *+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_try") 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (ac_try="$ac_compile"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compile") 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2658 { (case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_try") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_try") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 ac_c_werror_flag=$ac_save_c_werror_flag
2694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2696 if test "$ac_test_CFLAGS" = set; then
2697 CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699 if test "$GCC" = yes; then
2705 if test "$GCC" = yes; then
2711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_cc_c89+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 ac_cv_prog_cc_c89=no
2718 cat >conftest.$ac_ext <<_ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2742 s = g (p, va_arg (v,int));
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not '\xHH' hex character constants.
2749 These don't provoke an error unfortunately, instead are silently treated
2750 as 'x'. The following induces an error, until -std is added to get
2751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2752 array size at least. It's necessary to write '\x00'==0 to get something
2753 that's true only with -std. */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757 inside strings and character constants. */
2759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 CC="$ac_save_CC $ac_arg"
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 ac_cv_prog_cc_c89=$ac_arg
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f core conftest.err conftest.$ac_objext
2822 test "x$ac_cv_prog_cc_c89" != "xno" && break
2824 rm -f conftest.$ac_ext
2829 case "x$ac_cv_prog_cc_c89" in
2831 { echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6; } ;;
2834 { echo "$as_me:$LINENO: result: unsupported" >&5
2835 echo "${ECHO_T}unsupported" >&6; } ;;
2837 CC="$CC $ac_cv_prog_cc_c89"
2838 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 ac_cpp='$CXXCPP $CPPFLAGS'
2851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2854 if test -z "$CXX"; then
2855 if test -n "$CCC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 for ac_prog in clang++ g++
2861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CXX+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 if test -n "$CXX"; then
2869 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CXX"; then
2890 { echo "$as_me:$LINENO: result: $CXX" >&5
2891 echo "${ECHO_T}$CXX" >&6; }
2893 { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2898 test -n "$CXX" && break
2901 if test -z "$CXX"; then
2903 for ac_prog in clang++ g++
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$ac_ct_CXX"; then
2913 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_ac_ct_CXX="$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2933 if test -n "$ac_ct_CXX"; then
2934 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2935 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$ac_ct_CXX" && break
2945 if test "x$ac_ct_CXX" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet. If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&5
2953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2956 ac_tool_warned=yes ;;
2964 # Provide some information about the compiler.
2965 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2966 ac_compiler=`set X $ac_compile; echo $2`
2967 { (ac_try="$ac_compiler --version >&5"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compiler --version >&5") 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }
2977 { (ac_try="$ac_compiler -v >&5"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compiler -v >&5") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987 { (ac_try="$ac_compiler -V >&5"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compiler -V >&5") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2998 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2999 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3000 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3069 GXX=`test $ac_compiler_gnu = yes && echo yes`
3070 ac_test_CXXFLAGS=${CXXFLAGS+set}
3071 ac_save_CXXFLAGS=$CXXFLAGS
3072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cxx_g+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3078 ac_cxx_werror_flag=yes
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 ac_cv_prog_cxx_g=yes
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cxx_g=yes
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3260 if test "$ac_test_CXXFLAGS" = set; then
3261 CXXFLAGS=$ac_save_CXXFLAGS
3262 elif test $ac_cv_prog_cxx_g = yes; then
3263 if test "$GXX" = yes; then
3269 if test "$GXX" = yes; then
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3288 # On Suns, sometimes $CPP names a directory.
3289 if test -n "$CPP" && test -d "$CPP"; then
3292 if test -z "$CPP"; then
3293 if test "${ac_cv_prog_CPP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 # Double quotes because CPP needs to be expanded
3297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3300 for ac_c_preproc_warn_flag in '' yes
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3315 # include <limits.h>
3317 # include <assert.h>
3321 if { (ac_try="$ac_cpp conftest.$ac_ext"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_c_preproc_warn_flag
3336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3343 if test -z "$ac_cpp_err"; then
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Broken: fails on valid input.
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether nonexistent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Passes both tests.
3399 rm -f conftest.err conftest.$ac_ext
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3416 { echo "$as_me:$LINENO: result: $CPP" >&5
3417 echo "${ECHO_T}$CPP" >&6; }
3419 for ac_c_preproc_warn_flag in '' yes
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3434 # include <limits.h>
3436 # include <assert.h>
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 if test -z "$ac_cpp_err"; then
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Broken: fails on valid input.
3472 rm -f conftest.err conftest.$ac_ext
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null; then
3497 if test -s conftest.err; then
3498 ac_cpp_err=$ac_c_preproc_warn_flag
3499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506 if test -z "$ac_cpp_err"; then
3507 # Broken: success on invalid input.
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 # Passes both tests.
3518 rm -f conftest.err conftest.$ac_ext
3521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522 rm -f conftest.err conftest.$ac_ext
3523 if $ac_preproc_ok; then
3526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details." >&5
3528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3529 See \`config.log' for more details." >&2;}
3530 { (exit 1); exit 1; }; }
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 if test "$CXX" = "clang++" ; then
3541 { echo "$as_me:$LINENO: checking whether clang works" >&5
3542 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3544 ac_cpp='$CXXCPP $CPPFLAGS'
3545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 #if __has_include (<cxxabi.h>)
3560 #if __has_include (<unwind.h>)
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3587 { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3607 { echo "$as_me:$LINENO: result: yes" >&5
3608 echo "${ECHO_T}yes" >&6; }
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3615 { echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6; }
3617 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3618 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3619 { (exit 1); exit 1; }; }
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3633 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3635 ac_cpp='$CXXCPP $CPPFLAGS'
3636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3640 llvm_cv_cxx_compiler=unknown
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_compile") 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3667 { (case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_try") 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3686 llvm_cv_cxx_compiler=clang
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732 (eval "$ac_try") 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 llvm_cv_cxx_compiler=gcc
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3755 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3756 CXX_COMPILER=$llvm_cv_cxx_compiler
3761 if test -d ${srcdir}/projects/test-suite ; then
3762 subdirs="$subdirs projects/test-suite"
3766 if test -d ${srcdir}/projects/llvm-test ; then
3767 subdirs="$subdirs projects/llvm-test"
3771 if test -d ${srcdir}/projects/poolalloc ; then
3772 subdirs="$subdirs projects/poolalloc"
3776 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3777 subdirs="$subdirs projects/llvm-poolalloc"
3781 for i in `ls ${srcdir}/projects`
3783 if test -d ${srcdir}/projects/${i} ; then
3785 safecode) subdirs="$subdirs projects/safecode"
3793 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3794 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3800 # Check whether --enable-polly was given.
3801 if test "${enable_polly+set}" = set; then
3802 enableval=$enable_polly;
3807 case "$enableval" in
3812 default) ENABLE_POLLY=1
3814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3815 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3816 { (exit 1); exit 1; }; } ;;
3820 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3823 subdirs="$subdirs tools/polly"
3828 # Make sure we can run config.sub.
3829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3830 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3831 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3832 { (exit 1); exit 1; }; }
3834 { echo "$as_me:$LINENO: checking build system type" >&5
3835 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3836 if test "${ac_cv_build+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_build_alias=$build_alias
3840 test "x$ac_build_alias" = x &&
3841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3842 test "x$ac_build_alias" = x &&
3843 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3844 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3845 { (exit 1); exit 1; }; }
3846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3849 { (exit 1); exit 1; }; }
3852 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3853 echo "${ECHO_T}$ac_cv_build" >&6; }
3854 case $ac_cv_build in
3856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3857 echo "$as_me: error: invalid value of canonical build" >&2;}
3858 { (exit 1); exit 1; }; };;
3861 ac_save_IFS=$IFS; IFS='-'
3867 # Remember, the first character of IFS is used to create $*,
3868 # except with old shells:
3871 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3874 { echo "$as_me:$LINENO: checking host system type" >&5
3875 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3876 if test "${ac_cv_host+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if test "x$host_alias" = x; then
3880 ac_cv_host=$ac_cv_build
3882 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3885 { (exit 1); exit 1; }; }
3889 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3890 echo "${ECHO_T}$ac_cv_host" >&6; }
3893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3894 echo "$as_me: error: invalid value of canonical host" >&2;}
3895 { (exit 1); exit 1; }; };;
3898 ac_save_IFS=$IFS; IFS='-'
3904 # Remember, the first character of IFS is used to create $*,
3905 # except with old shells:
3908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3911 { echo "$as_me:$LINENO: checking target system type" >&5
3912 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3913 if test "${ac_cv_target+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if test "x$target_alias" = x; then
3917 ac_cv_target=$ac_cv_host
3919 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3920 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3921 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3922 { (exit 1); exit 1; }; }
3926 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3927 echo "${ECHO_T}$ac_cv_target" >&6; }
3928 case $ac_cv_target in
3930 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3931 echo "$as_me: error: invalid value of canonical target" >&2;}
3932 { (exit 1); exit 1; }; };;
3934 target=$ac_cv_target
3935 ac_save_IFS=$IFS; IFS='-'
3941 # Remember, the first character of IFS is used to create $*,
3942 # except with old shells:
3945 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3948 # The aliases save the names the user supplied, while $host etc.
3949 # will get canonicalized.
3950 test -n "$target_alias" &&
3951 test "$program_prefix$program_suffix$program_transform_name" = \
3953 program_prefix=${target_alias}-
3955 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3956 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3957 if test "${llvm_cv_os_type+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 llvm_cv_link_all_option="-Wl,--whole-archive"
3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964 llvm_cv_os_type="AIX"
3965 llvm_cv_platform_type="Unix" ;;
3967 llvm_cv_link_all_option="-Wl,--whole-archive"
3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969 llvm_cv_os_type="IRIX"
3970 llvm_cv_platform_type="Unix" ;;
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="Cygwin"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,-all_load"
3978 llvm_cv_no_link_all_option="-Wl,-noall_load"
3979 llvm_cv_os_type="Darwin"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,-all_load"
3983 llvm_cv_no_link_all_option="-Wl,-noall_load"
3984 llvm_cv_os_type="Minix"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="FreeBSD"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="GNU/kFreeBSD"
3995 llvm_cv_platform_type="Unix" ;;
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="OpenBSD"
4000 llvm_cv_platform_type="Unix" ;;
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="NetBSD"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="DragonFly"
4010 llvm_cv_platform_type="Unix" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="Bitrig"
4015 llvm_cv_platform_type="Unix" ;;
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="HP-UX"
4020 llvm_cv_platform_type="Unix" ;;
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Interix"
4025 llvm_cv_platform_type="Unix" ;;
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Linux"
4030 llvm_cv_platform_type="Unix" ;;
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="GNU"
4035 llvm_cv_platform_type="Unix" ;;
4037 llvm_cv_link_all_option="-Wl,-z,allextract"
4038 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4039 llvm_cv_os_type="SunOS"
4040 llvm_cv_platform_type="Unix" ;;
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="Win32"
4045 llvm_cv_platform_type="Win32" ;;
4047 llvm_cv_link_all_option="-Wl,--whole-archive"
4048 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4049 llvm_cv_os_type="MingW"
4050 llvm_cv_platform_type="Win32" ;;
4052 llvm_cv_link_all_option="-Wl,--whole-archive"
4053 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054 llvm_cv_os_type="Haiku"
4055 llvm_cv_platform_type="Unix" ;;
4057 llvm_cv_link_all_option="-Wl,--whole-archive"
4058 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059 llvm_cv_os_type="Freestanding"
4060 llvm_cv_platform_type="Unix" ;;
4062 llvm_cv_link_all_option="-Wl,--whole-archive"
4063 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4064 llvm_cv_os_type="Freestanding"
4065 llvm_cv_platform_type="Unix" ;;
4067 llvm_cv_link_all_option=""
4068 llvm_cv_no_link_all_option=""
4069 llvm_cv_os_type="Unknown"
4070 llvm_cv_platform_type="Unknown" ;;
4073 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4074 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4076 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4077 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4078 if test "${llvm_cv_target_os_type+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 llvm_cv_target_os_type="AIX" ;;
4085 llvm_cv_target_os_type="IRIX" ;;
4087 llvm_cv_target_os_type="Cygwin" ;;
4089 llvm_cv_target_os_type="Darwin" ;;
4091 llvm_cv_target_os_type="Minix" ;;
4093 llvm_cv_target_os_type="FreeBSD" ;;
4095 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4097 llvm_cv_target_os_type="OpenBSD" ;;
4099 llvm_cv_target_os_type="NetBSD" ;;
4101 llvm_cv_target_os_type="DragonFly" ;;
4103 llvm_cv_target_os_type="Bitrig" ;;
4105 llvm_cv_target_os_type="HP-UX" ;;
4107 llvm_cv_target_os_type="Interix" ;;
4109 llvm_cv_target_os_type="Linux" ;;
4111 llvm_cv_target_os_type="GNU" ;;
4113 llvm_cv_target_os_type="SunOS" ;;
4115 llvm_cv_target_os_type="Win32" ;;
4117 llvm_cv_target_os_type="MingW" ;;
4119 llvm_cv_target_os_type="Haiku" ;;
4121 llvm_cv_target_os_type="RTEMS" ;;
4123 llvm_cv_target_os_type="NativeClient" ;;
4125 llvm_cv_target_os_type="Freestanding" ;;
4127 llvm_cv_target_os_type="PS4" ;;
4129 llvm_cv_target_os_type="Unknown" ;;
4132 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4133 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4135 if test "$llvm_cv_os_type" = "Unknown" ; then
4136 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4137 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4138 { (exit 1); exit 1; }; }
4143 HOST_OS=$llvm_cv_os_type
4145 TARGET_OS=$llvm_cv_target_os_type
4148 LINKALL=$llvm_cv_link_all_option
4150 NOLINKALL=$llvm_cv_no_link_all_option
4153 case $llvm_cv_platform_type in
4156 cat >>confdefs.h <<\_ACEOF
4157 #define LLVM_ON_UNIX 1
4167 cat >>confdefs.h <<\_ACEOF
4168 #define LLVM_ON_WIN32 1
4178 { echo "$as_me:$LINENO: checking target architecture" >&5
4179 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4180 if test "${llvm_cv_target_arch+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 i?86-*) llvm_cv_target_arch="x86" ;;
4185 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4186 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4187 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4188 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4189 arm*-*) llvm_cv_target_arch="ARM" ;;
4190 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4191 avr-*) llvm_cv_target_arch="AVR" ;;
4192 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4193 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4194 xcore-*) llvm_cv_target_arch="XCore" ;;
4195 msp430-*) llvm_cv_target_arch="MSP430" ;;
4196 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4197 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4198 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4199 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4200 *) llvm_cv_target_arch="Unknown" ;;
4203 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4204 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4206 if test "$llvm_cv_target_arch" = "Unknown" ; then
4207 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4208 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4211 case "$llvm_cv_target_arch" in
4212 x86) LLVM_NATIVE_ARCH="X86" ;;
4213 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4214 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4217 ARCH=$llvm_cv_target_arch
4219 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4223 i?86-*) host_arch="x86" ;;
4224 amd64-* | x86_64-*) host_arch="x86_64" ;;
4225 sparc*-*) host_arch="Sparc" ;;
4226 powerpc*-*) host_arch="PowerPC" ;;
4227 arm64*-*) host_arch="AArch64" ;;
4228 arm*-*) host_arch="ARM" ;;
4229 aarch64*-*) host_arch="AArch64" ;;
4230 avr-*) host_arch="AVR" ;;
4231 mips-* | mips64-*) host_arch="Mips" ;;
4232 mipsel-* | mips64el-*) host_arch="Mips" ;;
4233 xcore-*) host_arch="XCore" ;;
4234 msp430-*) host_arch="MSP430" ;;
4235 hexagon-*) host_arch="Hexagon" ;;
4236 s390x-*) host_arch="SystemZ" ;;
4237 wasm*-*) host_arch="WebAssembly" ;;
4238 *) host_arch="Unknown" ;;
4241 if test "$host_arch" = "Unknown" ; then
4242 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4243 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4246 HOST_ARCH=$host_arch
4249 if test "$cross_compiling" = yes; then
4250 LLVM_CROSS_COMPILING=1
4253 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4254 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4255 if test "${ac_cv_build_exeext+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4259 ac_cv_build_exeext=.exe
4261 ac_build_prefix=${build_alias}-
4263 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4264 set dummy ${ac_build_prefix}gcc; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$BUILD_CC"; then
4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 BUILD_CC=$ac_cv_prog_BUILD_CC
4291 if test -n "$BUILD_CC"; then
4292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293 echo "${ECHO_T}$BUILD_CC" >&6; }
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4300 if test -z "$BUILD_CC"; then
4301 # Extract the first word of "gcc", so it can be a program name with args.
4302 set dummy gcc; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$BUILD_CC"; then
4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_BUILD_CC="gcc"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
4338 if test -z "$BUILD_CC"; then
4339 # Extract the first word of "cc", so it can be a program name with args.
4340 set dummy cc; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$BUILD_CC"; then
4347 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4358 ac_prog_rejected=yes
4361 ac_cv_prog_BUILD_CC="cc"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 if test $ac_prog_rejected = yes; then
4370 # We found a bogon in the path, so make sure we never use it.
4371 set dummy $ac_cv_prog_BUILD_CC
4373 if test $# != 0; then
4374 # We chose a different compiler from the bogus one.
4375 # However, it has the same basename, so the bogon will be chosen
4376 # first if we set BUILD_CC to just the basename; use the full file name.
4378 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4383 BUILD_CC=$ac_cv_prog_BUILD_CC
4384 if test -n "$BUILD_CC"; then
4385 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4386 echo "${ECHO_T}$BUILD_CC" >&6; }
4388 { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4395 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4396 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4397 { (exit 1); exit 1; }; }
4398 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4400 echo 'int main () { return 0; }' > conftest.$ac_ext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4403 (eval $ac_build_link) 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; then
4407 for file in conftest.*; do
4409 *.c | *.o | *.obj | *.dSYM) ;;
4410 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4414 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4415 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4416 { (exit 1); exit 1; }; }
4419 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4424 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4425 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4426 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4427 ac_build_exeext=$BUILD_EXEEXT
4429 ac_build_prefix=${build_alias}-
4430 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4431 set dummy ${ac_build_prefix}g++; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CXX"; then
4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458 if test -n "$BUILD_CXX"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460 echo "${ECHO_T}$BUILD_CXX" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CXX"; then
4468 # Extract the first word of "g++", so it can be a program name with args.
4469 set dummy g++; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CXX"; then
4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_BUILD_CXX="g++"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
4505 if test -z "$BUILD_CXX"; then
4506 # Extract the first word of "c++", so it can be a program name with args.
4507 set dummy c++; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$BUILD_CXX"; then
4514 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4525 ac_prog_rejected=yes
4528 ac_cv_prog_BUILD_CXX="c++"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CXX
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CXX to just the basename; use the full file name.
4545 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4550 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4551 if test -n "$BUILD_CXX"; then
4552 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4553 echo "${ECHO_T}$BUILD_CXX" >&6; }
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4563 LLVM_CROSS_COMPILING=0
4567 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4578 # Check whether --enable-libcpp was given.
4579 if test "${enable_libcpp+set}" = set; then
4580 enableval=$enable_libcpp;
4585 case "$enableval" in
4586 yes) ENABLE_LIBCPP=1
4590 default) ENABLE_LIBCPP=0
4592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4593 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4597 # Check whether --enable-compiler-version-checks was given.
4598 if test "${enable_compiler_version_checks+set}" = set; then
4599 enableval=$enable_compiler_version_checks;
4604 case "$enableval" in
4609 ac_cpp='$CXXCPP $CPPFLAGS'
4610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4614 case "$llvm_cv_cxx_compiler" in
4616 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4617 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4625 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4626 #error This version of Clang is too old to build LLVM
4630 rm -f conftest.$ac_objext
4631 if { (ac_try="$ac_compile"
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4645 { (case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_try") 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_try") 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 { echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6; }
4672 { { echo "$as_me:$LINENO: error:
4673 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4674 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4675 bypass these sanity checks." >&5
4676 echo "$as_me: error:
4677 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4678 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4679 bypass these sanity checks." >&2;}
4680 { (exit 1); exit 1; }; }
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 if test "$ENABLE_LIBCPP" -eq 0 ; then
4686 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4687 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4688 llvm_cv_old_cxxflags="$CXXFLAGS"
4689 CXXFLAGS="$CXXFLAGS -std=c++0x"
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4698 std::atomic<float> x(0.0f);
4699 int main() { return (float)x; }
4702 rm -f conftest.$ac_objext conftest$ac_exeext
4703 if { (ac_try="$ac_link"
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_link") 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4717 { (case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_try") 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_try") 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 { echo "$as_me:$LINENO: result: yes" >&5
4737 echo "${ECHO_T}yes" >&6; }
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 { { echo "$as_me:$LINENO: error:
4745 We detected a missing feature in the standard C++ library that was known to be
4746 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4747 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4748 than 4.7. You will need to update your system and ensure Clang uses the newer
4751 If this error is incorrect or you need to force things to work, you may pass
4752 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4753 echo "$as_me: error:
4754 We detected a missing feature in the standard C++ library that was known to be
4755 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4756 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4757 than 4.7. You will need to update your system and ensure Clang uses the newer
4760 If this error is incorrect or you need to force things to work, you may pass
4761 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4762 { (exit 1); exit 1; }; }
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 CXXFLAGS="$llvm_cv_old_cxxflags"
4771 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4772 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4781 #error This version of GCC is too old to build LLVM
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4800 { (case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_try") 2>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_try") 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 { echo "$as_me:$LINENO: result: yes" >&5
4820 echo "${ECHO_T}yes" >&6; }
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4827 { { echo "$as_me:$LINENO: error:
4828 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4829 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4830 bypass these sanity checks." >&5
4831 echo "$as_me: error:
4832 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4833 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4834 bypass these sanity checks." >&2;}
4835 { (exit 1); exit 1; }; }
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; }
4857 # Check whether --enable-cxx1y was given.
4858 if test "${enable_cxx1y+set}" = set; then
4859 enableval=$enable_cxx1y;
4864 case "$enableval" in
4869 default) ENABLE_CXX1Y=0
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4876 # Check whether --enable-split-dwarf was given.
4877 if test "${enable_split_dwarf+set}" = set; then
4878 enableval=$enable_split_dwarf;
4883 case "$enableval" in
4884 yes) ENABLE_SPLIT_DWARF=1
4886 no) ENABLE_SPLIT_DWARF=0
4888 default) ENABLE_SPLIT_DWARF=0
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4896 # Check whether --enable-clang-arcmt was given.
4897 if test "${enable_clang_arcmt+set}" = set; then
4898 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4903 case "$enableval" in
4904 yes) ENABLE_CLANG_ARCMT=1
4906 no) ENABLE_CLANG_ARCMT=0
4908 default) ENABLE_CLANG_ARCMT=1
4910 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4911 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4912 { (exit 1); exit 1; }; } ;;
4915 clang_plugin_support="yes"
4916 # Check whether --enable-clang-plugin-support was given.
4917 if test "${enable_clang_plugin_support+set}" = set; then
4918 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4923 case "$enableval" in
4924 yes) CLANG_PLUGIN_SUPPORT=1
4926 no) CLANG_PLUGIN_SUPPORT=0
4928 default) CLANG_PLUGIN_SUPPORT=1
4930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4931 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4932 { (exit 1); exit 1; }; } ;;
4935 clang_static_analyzer="yes"
4936 # Check whether --enable-clang-static-analyzer was given.
4937 if test "${enable_clang_static_analyzer+set}" = set; then
4938 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4943 case "$enableval" in
4944 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4947 if test ${clang_arcmt} != "no" ; then
4948 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4949 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4950 { (exit 1); exit 1; }; }
4952 ENABLE_CLANG_STATIC_ANALYZER=0
4955 default) ENABLE_CLANG_STATIC_ANALYZER=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 # Check whether --enable-optimized was given.
4963 if test "${enable_optimized+set}" = set; then
4964 enableval=$enable_optimized;
4969 if test ${enableval} = "no" ; then
4973 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4977 # Check whether --enable-profiling was given.
4978 if test "${enable_profiling+set}" = set; then
4979 enableval=$enable_profiling;
4984 if test ${enableval} = "no" ; then
4988 ENABLE_PROFILING=ENABLE_PROFILING=1
4992 # Check whether --enable-assertions was given.
4993 if test "${enable_assertions+set}" = set; then
4994 enableval=$enable_assertions;
4999 if test ${enableval} = "yes" ; then
5002 assertions_enabled="yes"
5004 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5006 assertions_enabled="no"
5009 # Check whether --enable-werror was given.
5010 if test "${enable_werror+set}" = set; then
5011 enableval=$enable_werror;
5016 case "$enableval" in
5017 yes) ENABLE_WERROR=1
5021 default) ENABLE_WERROR=0
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5028 # Check whether --enable-expensive-checks was given.
5029 if test "${enable_expensive_checks+set}" = set; then
5030 enableval=$enable_expensive_checks;
5035 if test ${enableval} = "yes" ; then
5036 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5038 EXPENSIVE_CHECKS=yes
5041 ENABLE_EXPENSIVE_CHECKS=
5047 # Check whether --enable-abi-breaking-checks was given.
5048 if test "${enable_abi_breaking_checks+set}" = set; then
5049 enableval=$enable_abi_breaking_checks;
5051 enableval="with-asserts"
5054 case "$enableval" in
5055 with-asserts) if test ${assertions_enabled} = "yes" ; then
5057 cat >>confdefs.h <<\_ACEOF
5058 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5061 ENABLE_ABI_BREAKING_CHECKS=1
5064 ENABLE_ABI_BREAKING_CHECKS=0
5069 cat >>confdefs.h <<\_ACEOF
5070 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5073 ENABLE_ABI_BREAKING_CHECKS=1
5077 ENABLE_ABI_BREAKING_CHECKS=0
5080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5081 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5082 { (exit 1); exit 1; }; }
5085 # Check whether --enable-debug-runtime was given.
5086 if test "${enable_debug_runtime+set}" = set; then
5087 enableval=$enable_debug_runtime;
5092 if test ${enableval} = "no" ; then
5096 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5100 # Check whether --enable-debug-symbols was given.
5101 if test "${enable_debug_symbols+set}" = set; then
5102 enableval=$enable_debug_symbols;
5107 if test ${enableval} = "no" ; then
5111 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5115 # Check whether --enable-keep-symbols was given.
5116 if test "${enable_keep_symbols+set}" = set; then
5117 enableval=$enable_keep_symbols;
5122 if test ${enableval} = "no" ; then
5126 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5130 # Check whether --enable-jit was given.
5131 if test "${enable_jit+set}" = set; then
5132 enableval=$enable_jit;
5137 if test ${enableval} = "no"
5142 case "$llvm_cv_target_arch" in
5143 x86) TARGET_HAS_JIT=1
5145 Sparc) TARGET_HAS_JIT=0
5147 PowerPC) TARGET_HAS_JIT=1
5149 x86_64) TARGET_HAS_JIT=1
5151 ARM) TARGET_HAS_JIT=1
5153 AVR) TARGET_HAS_JIT=0
5155 Mips) TARGET_HAS_JIT=1
5157 XCore) TARGET_HAS_JIT=0
5159 MSP430) TARGET_HAS_JIT=0
5161 Hexagon) TARGET_HAS_JIT=0
5163 NVPTX) TARGET_HAS_JIT=0
5165 SystemZ) TARGET_HAS_JIT=1
5167 WebAssembly) TARGET_HAS_JIT=0
5174 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5175 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5178 # Check whether --enable-docs was given.
5179 if test "${enable_docs+set}" = set; then
5180 enableval=$enable_docs;
5185 case "$enableval" in
5190 default) ENABLE_DOCS=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-doxygen was given.
5198 if test "${enable_doxygen+set}" = set; then
5199 enableval=$enable_doxygen;
5204 case "$enableval" in
5205 yes) ENABLE_DOXYGEN=1
5207 no|default) ENABLE_DOXYGEN=0
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 # Check whether --enable-doxygen-search was given.
5215 if test "${enable_doxygen_search+set}" = set; then
5216 enableval=$enable_doxygen_search;
5221 ENABLE_DOXYGEN_SEARCH="$enableval"
5223 case "$enableval" in
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5230 # Check whether --enable-doxygen-external-search was given.
5231 if test "${enable_doxygen_external_search+set}" = set; then
5232 enableval=$enable_doxygen_external_search;
5237 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5239 case "$enableval" in
5241 case "$ENABLE_DOXYGEN_SEARCH" in
5242 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5243 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5244 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
5255 # Check whether --with-doxygen-search-engine-url was given.
5256 if test "${with_doxygen_search_engine_url+set}" = set; then
5257 withval=$with_doxygen_search_engine_url;
5260 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5263 # Check whether --with-doxygen-search-mappings was given.
5264 if test "${with_doxygen_search_mappings+set}" = set; then
5265 withval=$with_doxygen_search_mappings;
5268 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5270 case "$ENABLE_DOXYGEN_SEARCH" in
5272 if test "$ENABLE_DOXYGEN" = "0" ; then
5273 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5274 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5275 { (exit 1); exit 1; }; }
5278 enable_searchengine=YES
5281 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5283 enable_external_search=YES
5285 enable_server_based_search=YES
5287 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5289 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5294 enable_external_search=NO
5296 enable_server_based_search=NO
5305 enable_searchengine=NO
5308 enable_server_based_search=NO
5310 enable_external_search=NO
5316 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5317 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5318 { (exit 1); exit 1; }; }
5322 # Check whether --enable-doxygen-qt-help was given.
5323 if test "${enable_doxygen_qt_help+set}" = set; then
5324 enableval=$enable_doxygen_qt_help;
5329 case "$enableval" in
5331 if test "$ENABLE_DOXYGEN" = "0" ; then
5332 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5333 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5334 { (exit 1); exit 1; }; }
5337 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5338 set dummy qhelpgenerator; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 case $QHELPGENERATOR in
5346 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5368 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5369 if test -n "$QHELPGENERATOR"; then
5370 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5371 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5373 { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5379 llvm_doxygen_generate_qhp=YES
5381 llvm_doxygen_qch_filename=org.llvm.qch
5383 llvm_doxygen_qhp_namespace=org.llvm
5385 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5387 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5389 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5392 clang_doxygen_generate_qhp=YES
5394 clang_doxygen_qch_filename=org.llvm.clang.qch
5396 clang_doxygen_qhp_namespace=org.llvm.clang
5398 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5400 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5402 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5407 llvm_doxygen_generate_qhp=NO
5415 clang_doxygen_generate_qhp=NO
5420 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5422 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5427 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5428 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5429 { (exit 1); exit 1; }; } ;;
5432 # Check whether --enable-threads was given.
5433 if test "${enable_threads+set}" = set; then
5434 enableval=$enable_threads;
5439 case "$enableval" in
5440 yes) LLVM_ENABLE_THREADS=1
5442 no) LLVM_ENABLE_THREADS=0
5444 default) LLVM_ENABLE_THREADS=1
5446 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5447 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5448 { (exit 1); exit 1; }; } ;;
5451 cat >>confdefs.h <<_ACEOF
5452 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5456 # Check whether --enable-pthreads was given.
5457 if test "${enable_pthreads+set}" = set; then
5458 enableval=$enable_pthreads;
5463 case "$enableval" in
5464 yes) ENABLE_PTHREADS=1
5466 no) ENABLE_PTHREADS=0
5468 default) ENABLE_PTHREADS=1
5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5471 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5475 # Check whether --enable-zlib was given.
5476 if test "${enable_zlib+set}" = set; then
5477 enableval=$enable_zlib;
5482 case "$enableval" in
5483 yes) LLVM_ENABLE_ZLIB=1
5485 no) LLVM_ENABLE_ZLIB=0
5487 default) LLVM_ENABLE_ZLIB=1
5489 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5490 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5499 # Check whether --enable-pic was given.
5500 if test "${enable_pic+set}" = set; then
5501 enableval=$enable_pic;
5506 case "$enableval" in
5511 default) ENABLE_PIC=1
5513 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5514 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5515 { (exit 1); exit 1; }; } ;;
5518 cat >>confdefs.h <<_ACEOF
5519 #define ENABLE_PIC $ENABLE_PIC
5523 # Check whether --enable-shared was given.
5524 if test "${enable_shared+set}" = set; then
5525 enableval=$enable_shared;
5530 case "$enableval" in
5531 yes) ENABLE_SHARED=1
5535 default) ENABLE_SHARED=0
5537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5538 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 # Check whether --enable-embed-stdcxx was given.
5543 if test "${enable_embed_stdcxx+set}" = set; then
5544 enableval=$enable_embed_stdcxx;
5549 case "$enableval" in
5550 yes) ENABLE_EMBED_STDCXX=1
5552 no) ENABLE_EMBED_STDCXX=0
5554 default) ENABLE_EMBED_STDCXX=0
5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5557 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5558 { (exit 1); exit 1; }; } ;;
5561 # Check whether --enable-timestamps was given.
5562 if test "${enable_timestamps+set}" = set; then
5563 enableval=$enable_timestamps;
5568 case "$enableval" in
5569 yes) ENABLE_TIMESTAMPS=1
5571 no) ENABLE_TIMESTAMPS=0
5573 default) ENABLE_TIMESTAMPS=1
5575 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5576 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5577 { (exit 1); exit 1; }; } ;;
5580 cat >>confdefs.h <<_ACEOF
5581 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5585 # Check whether --enable-backtraces was given.
5586 if test "${enable_backtraces+set}" = set; then
5587 enableval=$enable_backtraces; case "$enableval" in
5588 yes) llvm_cv_enable_backtraces="yes" ;;
5589 no) llvm_cv_enable_backtraces="no" ;;
5590 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5591 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5592 { (exit 1); exit 1; }; } ;;
5595 llvm_cv_enable_backtraces="yes"
5598 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5600 cat >>confdefs.h <<\_ACEOF
5601 #define ENABLE_BACKTRACES 1
5606 # Check whether --enable-crash-overrides was given.
5607 if test "${enable_crash_overrides+set}" = set; then
5608 enableval=$enable_crash_overrides; case "$enableval" in
5609 yes) llvm_cv_enable_crash_overrides="yes" ;;
5610 no) llvm_cv_enable_crash_overrides="no" ;;
5611 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5612 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5613 { (exit 1); exit 1; }; } ;;
5616 llvm_cv_enable_crash_overrides="yes"
5619 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define ENABLE_CRASH_OVERRIDES 1
5627 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5628 ALL_TARGETS=$ALL_TARGETS
5632 # Check whether --enable-targets was given.
5633 if test "${enable_targets+set}" = set; then
5634 enableval=$enable_targets;
5639 if test "$enableval" = host-only ; then
5642 case "$enableval" in
5643 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5644 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5646 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5647 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5648 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5649 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5650 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5651 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5652 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5653 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5654 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5655 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5656 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5657 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5658 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5659 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5660 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5661 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5662 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5663 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5664 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5665 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5666 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5667 host) case "$llvm_cv_target_arch" in
5668 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5671 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5672 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5673 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5674 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5676 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5677 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5678 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5679 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5680 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5681 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5682 echo "$as_me: error: Can not set target to build" >&2;}
5683 { (exit 1); exit 1; }; } ;;
5685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5687 { (exit 1); exit 1; }; } ;;
5693 # Check whether --enable-experimental-targets was given.
5694 if test "${enable_experimental_targets+set}" = set; then
5695 enableval=$enable_experimental_targets;
5701 if test ${enableval} != "disable"
5703 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5706 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5709 for a_target in $TARGETS_TO_BUILD; do
5710 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5712 cat >>confdefs.h <<_ACEOF
5713 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5716 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5717 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5718 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5719 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5720 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5721 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5724 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5732 cat >>confdefs.h <<_ACEOF
5733 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5737 cat >>confdefs.h <<_ACEOF
5738 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5753 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5763 LLVM_ENUM_TARGETS=""
5764 LLVM_ENUM_ASM_PRINTERS=""
5765 LLVM_ENUM_ASM_PARSERS=""
5766 LLVM_ENUM_DISASSEMBLERS=""
5767 for target_to_build in $TARGETS_TO_BUILD; do
5768 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5769 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5770 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5772 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5773 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5775 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5776 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5785 # Check whether --with-optimize-option was given.
5786 if test "${with_optimize_option+set}" = set; then
5787 withval=$with_optimize_option;
5792 { echo "$as_me:$LINENO: checking optimization flags" >&5
5793 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5796 case "$llvm_cv_os_type" in
5797 FreeBSD) optimize_option=-O2 ;;
5798 MingW) optimize_option=-O2 ;;
5799 *) optimize_option=-O3 ;;
5801 *) optimize_option="$withval" ;;
5803 OPTIMIZE_OPTION=$optimize_option
5805 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5806 echo "${ECHO_T}$optimize_option" >&6; }
5809 # Check whether --with-extra-options was given.
5810 if test "${with_extra_options+set}" = set; then
5811 withval=$with_extra_options;
5817 default) EXTRA_OPTIONS= ;;
5818 *) EXTRA_OPTIONS=$withval ;;
5820 EXTRA_OPTIONS=$EXTRA_OPTIONS
5824 # Check whether --with-extra-ld-options was given.
5825 if test "${with_extra_ld_options+set}" = set; then
5826 withval=$with_extra_ld_options;
5832 default) EXTRA_LD_OPTIONS= ;;
5833 *) EXTRA_LD_OPTIONS=$withval ;;
5835 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5838 # Check whether --enable-bindings was given.
5839 if test "${enable_bindings+set}" = set; then
5840 enableval=$enable_bindings;
5845 BINDINGS_TO_BUILD=""
5846 case "$enableval" in
5847 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5848 all ) BINDINGS_TO_BUILD="ocaml" ;;
5849 none | no) BINDINGS_TO_BUILD="" ;;
5850 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5851 case "$a_binding" in
5852 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5853 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5854 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5855 { (exit 1); exit 1; }; } ;;
5862 # Check whether --with-ocaml-libdir was given.
5863 if test "${with_ocaml_libdir+set}" = set; then
5864 withval=$with_ocaml_libdir;
5870 auto) with_ocaml_libdir="$withval" ;;
5871 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5872 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5873 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5874 { (exit 1); exit 1; }; } ;;
5878 # Check whether --with-clang-srcdir was given.
5879 if test "${with_clang_srcdir+set}" = set; then
5880 withval=$with_clang_srcdir;
5886 -) clang_src_root="" ;;
5887 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5888 *) clang_src_root="$ac_pwd/$withval" ;;
5890 CLANG_SRC_ROOT=$clang_src_root
5894 # Check whether --with-clang-resource-dir was given.
5895 if test "${with_clang_resource_dir+set}" = set; then
5896 withval=$with_clang_resource_dir;
5902 cat >>confdefs.h <<_ACEOF
5903 #define CLANG_RESOURCE_DIR "$withval"
5908 # Check whether --with-c-include-dirs was given.
5909 if test "${with_c_include_dirs+set}" = set; then
5910 withval=$with_c_include_dirs;
5916 cat >>confdefs.h <<_ACEOF
5917 #define C_INCLUDE_DIRS "$withval"
5921 # Clang normally uses the system c++ headers and libraries. With this option,
5922 # clang will use the ones provided by a gcc installation instead. This option should
5923 # be passed the same value that was used with --prefix when configuring gcc.
5925 # Check whether --with-gcc-toolchain was given.
5926 if test "${with_gcc_toolchain+set}" = set; then
5927 withval=$with_gcc_toolchain;
5933 cat >>confdefs.h <<_ACEOF
5934 #define GCC_INSTALL_PREFIX "$withval"
5939 # Check whether --with-default-sysroot was given.
5940 if test "${with_default_sysroot+set}" = set; then
5941 withval=$with_default_sysroot;
5947 cat >>confdefs.h <<_ACEOF
5948 #define DEFAULT_SYSROOT "$withval"
5953 # Check whether --with-clang-default-openmp-runtime was given.
5954 if test "${with_clang_default_openmp_runtime+set}" = set; then
5955 withval=$with_clang_default_openmp_runtime;
5961 cat >>confdefs.h <<_ACEOF
5962 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5967 # Check whether --with-binutils-include was given.
5968 if test "${with_binutils_include+set}" = set; then
5969 withval=$with_binutils_include;
5975 default) WITH_BINUTILS_INCDIR=default ;;
5976 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5977 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5978 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5979 { (exit 1); exit 1; }; } ;;
5981 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5982 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5984 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5985 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5986 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5987 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5988 { (exit 1); exit 1; }; };
5993 # Check whether --with-bug-report-url was given.
5994 if test "${with_bug_report_url+set}" = set; then
5995 withval=$with_bug_report_url;
5997 withval="http://llvm.org/bugs/"
6001 cat >>confdefs.h <<_ACEOF
6002 #define BUG_REPORT_URL "$withval"
6006 # Check whether --enable-terminfo was given.
6007 if test "${enable_terminfo+set}" = set; then
6008 enableval=$enable_terminfo; case "$enableval" in
6009 yes) llvm_cv_enable_terminfo="yes" ;;
6010 no) llvm_cv_enable_terminfo="no" ;;
6011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6012 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6013 { (exit 1); exit 1; }; } ;;
6016 llvm_cv_enable_terminfo="yes"
6019 case "$llvm_cv_enable_terminfo" in
6020 yes) ENABLE_TERMINFO=1
6022 no) ENABLE_TERMINFO=0
6026 # Check whether --enable-libedit was given.
6027 if test "${enable_libedit+set}" = set; then
6028 enableval=$enable_libedit; case "$enableval" in
6029 yes) llvm_cv_enable_libedit="yes" ;;
6030 no) llvm_cv_enable_libedit="no" ;;
6031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6032 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6033 { (exit 1); exit 1; }; } ;;
6036 llvm_cv_enable_libedit="yes"
6040 # Check whether --enable-libffi was given.
6041 if test "${enable_libffi+set}" = set; then
6042 enableval=$enable_libffi; case "$enableval" in
6043 yes) llvm_cv_enable_libffi="yes" ;;
6044 no) llvm_cv_enable_libffi="no" ;;
6045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6046 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6047 { (exit 1); exit 1; }; } ;;
6050 llvm_cv_enable_libffi=no
6055 # Check whether --with-internal-prefix was given.
6056 if test "${with_internal_prefix+set}" = set; then
6057 withval=$with_internal_prefix;
6062 INTERNAL_PREFIX=$withval
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 llvm_cv_gnu_make_command=''
6072 for a in "$MAKE" make gmake gnumake ; do
6073 if test -z "$a" ; then continue ; fi ;
6074 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076 llvm_cv_gnu_make_command=$a ;
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6087 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 if test "$LN_S" = "ln -s"; then
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 # Extract the first word of "nm", so it can be a program name with args.
6104 set dummy nm; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_NM+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6135 if test -n "$NM"; then
6136 { echo "$as_me:$LINENO: result: $NM" >&5
6137 echo "${ECHO_T}$NM" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6144 # Extract the first word of "cmp", so it can be a program name with args.
6145 set dummy cmp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CMP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6176 if test -n "$CMP"; then
6177 { echo "$as_me:$LINENO: result: $CMP" >&5
6178 echo "${ECHO_T}$CMP" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "cp", so it can be a program name with args.
6186 set dummy cp; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_CP+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6217 if test -n "$CP"; then
6218 { echo "$as_me:$LINENO: result: $CP" >&5
6219 echo "${ECHO_T}$CP" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "date", so it can be a program name with args.
6227 set dummy date; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_DATE+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6257 DATE=$ac_cv_path_DATE
6258 if test -n "$DATE"; then
6259 { echo "$as_me:$LINENO: result: $DATE" >&5
6260 echo "${ECHO_T}$DATE" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "find", so it can be a program name with args.
6268 set dummy find; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_FIND+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6298 FIND=$ac_cv_path_FIND
6299 if test -n "$FIND"; then
6300 { echo "$as_me:$LINENO: result: $FIND" >&5
6301 echo "${ECHO_T}$FIND" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 # Extract the first word of "grep", so it can be a program name with args.
6309 set dummy grep; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_GREP+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6339 GREP=$ac_cv_path_GREP
6340 if test -n "$GREP"; then
6341 { echo "$as_me:$LINENO: result: $GREP" >&5
6342 echo "${ECHO_T}$GREP" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "mkdir", so it can be a program name with args.
6350 set dummy mkdir; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MKDIR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6380 MKDIR=$ac_cv_path_MKDIR
6381 if test -n "$MKDIR"; then
6382 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6383 echo "${ECHO_T}$MKDIR" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 # Extract the first word of "mv", so it can be a program name with args.
6391 set dummy mv; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_path_MV+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6422 if test -n "$MV"; then
6423 { echo "$as_me:$LINENO: result: $MV" >&5
6424 echo "${ECHO_T}$MV" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_prog_RANLIB+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 if test -n "$RANLIB"; then
6440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6462 echo "${ECHO_T}$RANLIB" >&6; }
6464 { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471 ac_ct_RANLIB=$RANLIB
6472 # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 if test -n "$ac_ct_RANLIB"; then
6480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_RANLIB="ranlib"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6502 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6508 if test "x$ac_ct_RANLIB" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet. If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&5
6516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6519 ac_tool_warned=yes ;;
6521 RANLIB=$ac_ct_RANLIB
6524 RANLIB="$ac_cv_prog_RANLIB"
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_prog_AR+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 if test -n "$AR"; then
6557 { echo "$as_me:$LINENO: result: $AR" >&5
6558 echo "${ECHO_T}$AR" >&6; }
6560 { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6566 if test -z "$ac_cv_prog_AR"; then
6568 # Extract the first word of "ar", so it can be a program name with args.
6569 set dummy ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 if test -n "$ac_ct_AR"; then
6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_AR="ar"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596 if test -n "$ac_ct_AR"; then
6597 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6598 echo "${ECHO_T}$ac_ct_AR" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6604 if test "x$ac_ct_AR" = x; then
6607 case $cross_compiling:$ac_tool_warned in
6609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet. If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&5
6612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6615 ac_tool_warned=yes ;;
6623 # Extract the first word of "rm", so it can be a program name with args.
6624 set dummy rm; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_RM+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6655 if test -n "$RM"; then
6656 { echo "$as_me:$LINENO: result: $RM" >&5
6657 echo "${ECHO_T}$RM" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Extract the first word of "sed", so it can be a program name with args.
6665 set dummy sed; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_SED+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6696 if test -n "$SED"; then
6697 { echo "$as_me:$LINENO: result: $SED" >&5
6698 echo "${ECHO_T}$SED" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "tar", so it can be a program name with args.
6706 set dummy tar; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_TAR+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6737 if test -n "$TAR"; then
6738 { echo "$as_me:$LINENO: result: $TAR" >&5
6739 echo "${ECHO_T}$TAR" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6746 # Extract the first word of "pwd", so it can be a program name with args.
6747 set dummy pwd; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_BINPWD+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6777 BINPWD=$ac_cv_path_BINPWD
6778 if test -n "$BINPWD"; then
6779 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6780 echo "${ECHO_T}$BINPWD" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6788 # Extract the first word of "dot", so it can be a program name with args.
6789 set dummy dot; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_DOT+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6820 if test -n "$DOT"; then
6821 { echo "$as_me:$LINENO: result: $DOT" >&5
6822 echo "${ECHO_T}$DOT" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 if test "$DOT" != "echo dot" ; then
6831 cat >>confdefs.h <<\_ACEOF
6835 if test "$llvm_cv_os_type" = "MingW" ; then
6836 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6839 cat >>confdefs.h <<_ACEOF
6840 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6845 # Find a good install program. We prefer a C program (faster),
6846 # so one script is as good as another. But avoid the broken or
6847 # incompatible versions:
6848 # SysV /etc/install, /usr/sbin/install
6849 # SunOS /usr/etc/install
6850 # IRIX /sbin/install
6852 # AmigaOS /C/install, which installs bootblocks on floppy discs
6853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6856 # OS/2's system install, which has a completely different semantic
6857 # ./install, which can be erroneously created by make from ./install.sh.
6858 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6859 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6860 if test -z "$INSTALL"; then
6861 if test "${ac_cv_path_install+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 # Account for people who put trailing slashes in PATH elements.
6871 ./ | .// | /cC/* | \
6872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6876 # OSF1 and SCO ODT 3.0 have their own names for install.
6877 # Don't use installbsd from OSF since it installs stuff as root
6879 for ac_prog in ginstall scoinst install; do
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6882 if test $ac_prog = install &&
6883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # AIX install. It has an incompatible calling convention.
6886 elif test $ac_prog = install &&
6887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6888 # program-specific install script used by HP pwplus--don't use.
6891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6904 if test "${ac_cv_path_install+set}" = set; then
6905 INSTALL=$ac_cv_path_install
6907 # As a last resort, use the slow shell script. Don't cache a
6908 # value for INSTALL within a source directory, because that will
6909 # break other packages using the cache if that directory is
6910 # removed, or if the value is a relative name.
6911 INSTALL=$ac_install_sh
6914 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6915 echo "${ECHO_T}$INSTALL" >&6; }
6917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6918 # It thinks the first close brace ends the variable substitution.
6919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6926 [\\/$]* | ?:[\\/]* ) ;;
6927 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6930 # Extract the first word of "bzip2", so it can be a program name with args.
6931 set dummy bzip2; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_BZIP2+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 BZIP2=$ac_cv_path_BZIP2
6961 if test -n "$BZIP2"; then
6962 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6963 echo "${ECHO_T}$BZIP2" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "cat", so it can be a program name with args.
6971 set dummy cat; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_CAT+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 if test -n "$CAT"; then
7002 { echo "$as_me:$LINENO: result: $CAT" >&5
7003 echo "${ECHO_T}$CAT" >&6; }
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7010 # Extract the first word of "doxygen", so it can be a program name with args.
7011 set dummy doxygen; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 DOXYGEN=$ac_cv_path_DOXYGEN
7041 if test -n "$DOXYGEN"; then
7042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7043 echo "${ECHO_T}$DOXYGEN" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 # Extract the first word of "groff", so it can be a program name with args.
7051 set dummy groff; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_GROFF+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 GROFF=$ac_cv_path_GROFF
7081 if test -n "$GROFF"; then
7082 { echo "$as_me:$LINENO: result: $GROFF" >&5
7083 echo "${ECHO_T}$GROFF" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 # Extract the first word of "gzip", so it can be a program name with args.
7091 set dummy gzip; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 GZIPBIN=$ac_cv_path_GZIPBIN
7121 if test -n "$GZIPBIN"; then
7122 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7123 echo "${ECHO_T}$GZIPBIN" >&6; }
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7130 # Extract the first word of "pdfroff", so it can be a program name with args.
7131 set dummy pdfroff; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_PDFROFF+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 PDFROFF=$ac_cv_path_PDFROFF
7161 if test -n "$PDFROFF"; then
7162 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7163 echo "${ECHO_T}$PDFROFF" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 # Extract the first word of "zip", so it can be a program name with args.
7171 set dummy zip; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_ZIP+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 if test -n "$ZIP"; then
7202 { echo "$as_me:$LINENO: result: $ZIP" >&5
7203 echo "${ECHO_T}$ZIP" >&6; }
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7210 # Extract the first word of "go", so it can be a program name with args.
7211 set dummy go; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_GO+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 if test -n "$GO"; then
7242 { echo "$as_me:$LINENO: result: $GO" >&5
7243 echo "${ECHO_T}$GO" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7250 for ac_prog in ocamlfind
7252 # Extract the first word of "$ac_prog", so it can be a program name with args.
7253 set dummy $ac_prog; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 OCAMLFIND=$ac_cv_path_OCAMLFIND
7283 if test -n "$OCAMLFIND"; then
7284 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7285 echo "${ECHO_T}$OCAMLFIND" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7292 test -n "$OCAMLFIND" && break
7295 for ac_prog in gas as
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_GAS+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 if test -n "$GAS"; then
7329 { echo "$as_me:$LINENO: result: $GAS" >&5
7330 echo "${ECHO_T}$GAS" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 test -n "$GAS" && break
7341 { echo "$as_me:$LINENO: checking for linker version" >&5
7342 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7343 if test "${llvm_cv_link_version+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7350 if (echo "$version_string" | grep -q "ld64"); then
7351 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7353 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7357 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7358 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7360 cat >>confdefs.h <<_ACEOF
7361 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7367 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7368 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7369 if test "${llvm_cv_link_use_r+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 CFLAGS="$CFLAGS -Wl,-R."
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7410 { (case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_try") 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest$ac_exeext'
7420 { (case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_try") 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 llvm_cv_link_use_r=yes
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 llvm_cv_link_use_r=no
7437 rm -f core conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7449 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7450 if test "$llvm_cv_link_use_r" = yes ; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_LINK_R 1
7459 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7460 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7461 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 CFLAGS="$CFLAGS -rdynamic"
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7502 { (case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_try") 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; } &&
7511 { ac_try='test -s conftest$ac_exeext'
7512 { (case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_try") 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 llvm_cv_link_use_export_dynamic=yes
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 llvm_cv_link_use_export_dynamic=no
7529 rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7541 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7542 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_LINK_EXPORT_DYNAMIC 1
7551 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7552 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7553 if test "${llvm_cv_link_use_version_script+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cpp='$CPP $CPPFLAGS'
7558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564 # The following code is from the autoconf manual,
7565 # "11.13: Limitations of Usual Tools".
7566 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7567 # Use mktemp if possible; otherwise fall back on mkdir,
7568 # with $RANDOM to make collisions less likely.
7572 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7574 test -n "$tmp" && test -d "$tmp"
7576 tmp=$TMPDIR/foo$$-$RANDOM
7577 (umask 077 && mkdir "$tmp")
7580 echo "{" > "$tmp/export.map"
7581 echo " global: main;" >> "$tmp/export.map"
7582 echo " local: *;" >> "$tmp/export.map"
7583 echo "};" >> "$tmp/export.map"
7585 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_link") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7616 { (case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_try") 2>&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (case "(($ac_try" in
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631 (eval "$ac_try") 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 llvm_cv_link_use_version_script=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 llvm_cv_link_use_version_script=no
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 rm "$tmp/export.map"
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7657 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7658 if test "$llvm_cv_link_use_version_script" = yes ; then
7659 HAVE_LINK_VERSION_SCRIPT=1
7665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_GREP+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 # Extract the first word of "grep ggrep" to use in msg output
7671 if test -z "$GREP"; then
7672 set dummy grep ggrep; ac_prog_name=$2
7673 if test "${ac_cv_path_GREP+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_path_GREP_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7682 test -z "$as_dir" && as_dir=.
7683 for ac_prog in grep ggrep; do
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7687 # Check for GNU ac_path_GREP and select it if it is found.
7688 # Check for GNU $ac_path_GREP
7689 case `"$ac_path_GREP" --version 2>&1` in
7691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7697 cat "conftest.in" "conftest.in" >"conftest.tmp"
7698 mv "conftest.tmp" "conftest.in"
7699 cp "conftest.in" "conftest.nl"
7700 echo 'GREP' >> "conftest.nl"
7701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703 ac_count=`expr $ac_count + 1`
7704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7705 # Best one so far, save it but keep looking for a better one
7706 ac_cv_path_GREP="$ac_path_GREP"
7707 ac_path_GREP_max=$ac_count
7709 # 10*(2^10) chars as input seems more than enough
7710 test $ac_count -gt 10 && break
7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7716 $ac_path_GREP_found && break 3
7726 GREP="$ac_cv_path_GREP"
7727 if test -z "$GREP"; then
7728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7730 { (exit 1); exit 1; }; }
7734 ac_cv_path_GREP=$GREP
7739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7741 GREP="$ac_cv_path_GREP"
7744 { echo "$as_me:$LINENO: checking for egrep" >&5
7745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_EGREP+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7750 then ac_cv_path_EGREP="$GREP -E"
7752 # Extract the first word of "egrep" to use in msg output
7753 if test -z "$EGREP"; then
7754 set dummy egrep; ac_prog_name=$2
7755 if test "${ac_cv_path_EGREP+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_path_EGREP_found=false
7759 # Loop through the user's path and test for each of PROGNAME-LIST
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7764 test -z "$as_dir" && as_dir=.
7765 for ac_prog in egrep; do
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7769 # Check for GNU ac_path_EGREP and select it if it is found.
7770 # Check for GNU $ac_path_EGREP
7771 case `"$ac_path_EGREP" --version 2>&1` in
7773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7779 cat "conftest.in" "conftest.in" >"conftest.tmp"
7780 mv "conftest.tmp" "conftest.in"
7781 cp "conftest.in" "conftest.nl"
7782 echo 'EGREP' >> "conftest.nl"
7783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7785 ac_count=`expr $ac_count + 1`
7786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7787 # Best one so far, save it but keep looking for a better one
7788 ac_cv_path_EGREP="$ac_path_EGREP"
7789 ac_path_EGREP_max=$ac_count
7791 # 10*(2^10) chars as input seems more than enough
7792 test $ac_count -gt 10 && break
7794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7798 $ac_path_EGREP_found && break 3
7808 EGREP="$ac_cv_path_EGREP"
7809 if test -z "$EGREP"; then
7810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7812 { (exit 1); exit 1; }; }
7816 ac_cv_path_EGREP=$EGREP
7822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7824 EGREP="$ac_cv_path_EGREP"
7827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7829 if test "${ac_cv_header_stdc+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_header_stdc=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_header_stdc=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 if test $ac_cv_header_stdc = yes; then
7896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907 $EGREP "memchr" >/dev/null 2>&1; then
7910 ac_cv_header_stdc=no
7916 if test $ac_cv_header_stdc = yes; then
7917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928 $EGREP "free" >/dev/null 2>&1; then
7931 ac_cv_header_stdc=no
7937 if test $ac_cv_header_stdc = yes; then
7938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7939 if test "$cross_compiling" = yes; then
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7950 #if ((' ' & 0x0FF) == 0x020)
7951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7954 # define ISLOWER(c) \
7955 (('a' <= (c) && (c) <= 'i') \
7956 || ('j' <= (c) && (c) <= 'r') \
7957 || ('s' <= (c) && (c) <= 'z'))
7958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7966 for (i = 0; i < 256; i++)
7967 if (XOR (islower (i), ISLOWER (i))
7968 || toupper (i) != TOUPPER (i))
7973 rm -f conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7995 echo "$as_me: program exited with status $ac_status" >&5
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_header_stdc=no
8002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8010 if test $ac_cv_header_stdc = yes; then
8012 cat >>confdefs.h <<\_ACEOF
8013 #define STDC_HEADERS 1
8018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8029 inttypes.h stdint.h unistd.h
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8045 #include <$ac_header>
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_try") 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 eval "$as_ac_Header=yes"
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 eval "$as_ac_Header=no"
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 ac_res=`eval echo '${'$as_ac_Header'}'`
8092 { echo "$as_me:$LINENO: result: $ac_res" >&5
8093 echo "${ECHO_T}$ac_res" >&6; }
8094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8095 cat >>confdefs.h <<_ACEOF
8096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 for ac_header in errno.h
8107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 ac_res=`eval echo '${'$as_ac_Header'}'`
8115 { echo "$as_me:$LINENO: result: $ac_res" >&5
8116 echo "${ECHO_T}$ac_res" >&6; }
8118 # Is the header compilable?
8119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include <$ac_header>
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 ac_header_compiler=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_header_compiler=no
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6; }
8176 # Is the header present?
8177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <$ac_header>
8187 if { (ac_try="$ac_cpp conftest.$ac_ext"
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } >/dev/null; then
8200 if test -s conftest.err; then
8201 ac_cpp_err=$ac_c_preproc_warn_flag
8202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8209 if test -z "$ac_cpp_err"; then
8210 ac_header_preproc=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_header_preproc=no
8218 rm -f conftest.err conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8220 echo "${ECHO_T}$ac_header_preproc" >&6; }
8222 # So? What about this header?
8223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8229 ac_header_preproc=yes
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8245 ## ------------------------------------ ##
8246 ## Report this to http://llvm.org/bugs/ ##
8247 ## ------------------------------------ ##
8249 ) | sed "s/^/$as_me: WARNING: /" >&2
8252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 eval "$as_ac_Header=\$ac_header_preproc"
8259 ac_res=`eval echo '${'$as_ac_Header'}'`
8260 { echo "$as_me:$LINENO: result: $ac_res" >&5
8261 echo "${ECHO_T}$ac_res" >&6; }
8264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 case "$llvm_cv_os_type" in
8275 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8276 Darwin) llvm_shlib_ext=.dylib ;;
8277 *) llvm_shlib_ext=.so ;;
8281 cat >>confdefs.h <<_ACEOF
8282 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8286 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8287 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8300 if test "$GCC" != "yes" && test "$ICC" != "yes"
8302 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8303 echo "$as_me: error: gcc|icc required but not found" >&2;}
8304 { (exit 1); exit 1; }; }
8307 if test "$GXX" != "yes" && test "$IXX" != "yes"
8309 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8310 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8311 { (exit 1); exit 1; }; }
8314 if test "$GCC" = "yes"
8316 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 #if !defined(__GNUC__) || __GNUC__ < 3
8325 #error Unsupported GCC version
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (case "(($ac_try" in
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_try") 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8370 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8371 { (exit 1); exit 1; }; }
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 if test -z "$llvm_cv_gnu_make_command"
8379 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8380 echo "$as_me: error: GNU Make required but not found" >&2;}
8381 { (exit 1); exit 1; }; }
8384 { echo "$as_me:$LINENO: result: ok" >&5
8385 echo "${ECHO_T}ok" >&6; }
8387 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8388 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8389 case "$llvm_cv_cxx_compiler" in
8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8393 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8399 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8401 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8403 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8405 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8407 if test -z "$NO_MAYBE_UNINITIALIZED"
8409 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8418 llvm_cv_old_cxxflags="$CXXFLAGS"
8419 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8420 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8429 int main() { return 0; }
8433 rm -f conftest.$ac_objext
8434 if { (ac_try="$ac_compile"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_compile") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest.$ac_objext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8468 no_comment=-Wno-comment
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 NO_COMMENT=$no_comment
8480 CXXFLAGS="$llvm_cv_old_cxxflags"
8482 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8483 echo "${ECHO_T}$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8486 # Check whether --with-python was given.
8487 if test "${with_python+set}" = set; then
8488 withval=$with_python; PYTHON="$withval"
8492 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8493 { echo "$as_me:$LINENO: checking for python" >&5
8494 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8495 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8496 echo "${ECHO_T}user defined: $with_python" >&6; }
8498 if test -n "$PYTHON" ; then
8499 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8500 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8503 # Extract the first word of "python python2 python27", so it can be a program name with args.
8504 set dummy python python2 python27; ac_word=$2
8505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8507 if test "${ac_cv_path_PYTHON+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 test -z "$as_dir" && as_dir=.
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8522 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8531 echo "${ECHO_T}not found" >&6; }
8532 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8533 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8534 { (exit 1); exit 1; }; }"
8538 PYTHON=$ac_cv_path_PYTHON
8539 if test -n "$PYTHON"; then
8540 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8541 echo "${ECHO_T}$PYTHON" >&6; }
8543 { echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6; }
8550 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8551 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8552 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8553 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8554 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8555 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8556 if test "$ac_python_version_major" -gt "2" || \
8557 (test "$ac_python_version_major" -eq "2" && \
8558 test "$ac_python_version_minor" -ge "7") ; then
8559 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8560 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8562 { echo "$as_me:$LINENO: result: not found" >&5
8563 echo "${ECHO_T}not found" >&6; }
8564 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8565 See \`config.log' for more details." >&5
8566 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8567 See \`config.log' for more details." >&2;}
8568 { (exit 1); exit 1; }; }
8573 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8574 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8575 if test "${ac_cv_lib_m_sin+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_check_lib_save_LIBS=$LIBS
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any GCC internal prototype to avoid an error.
8588 Use char because int might match the return type of a GCC
8589 builtin and then its argument prototype would still apply. */
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_link") 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8644 rm -f core conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8649 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8650 if test $ac_cv_lib_m_sin = yes; then
8651 cat >>confdefs.h <<_ACEOF
8659 if test "$llvm_cv_os_type" = "MingW" ; then
8661 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8662 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8663 if test "${ac_cv_lib_ole32_main+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-lole32 $LIBS"
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (ac_try="$ac_link"
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_link") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_lib_ole32_main=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_lib_ole32_main=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8731 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8732 if test $ac_cv_lib_ole32_main = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_LIBOLE32 1
8737 LIBS="-lole32 $LIBS"
8742 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8743 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8744 if test "${ac_cv_lib_psapi_main+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 ac_check_lib_save_LIBS=$LIBS
8748 LIBS="-lpsapi $LIBS"
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_link") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8780 { (case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_try") 2>&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_try") 2>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_lib_psapi_main=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_lib_psapi_main=no
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8811 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8812 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8813 if test $ac_cv_lib_psapi_main = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_LIBPSAPI 1
8818 LIBS="-lpsapi $LIBS"
8823 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8824 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8825 if test "${ac_cv_lib_shell32_main+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-lshell32 $LIBS"
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_lib_shell32_main=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_cv_lib_shell32_main=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8892 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8893 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8894 if test $ac_cv_lib_shell32_main = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_LIBSHELL32 1
8899 LIBS="-lshell32 $LIBS"
8905 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8906 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8907 if test "${ac_cv_search_dlopen+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 ac_func_search_save_LIBS=$LIBS
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8918 /* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
8933 for ac_lib in '' dl; do
8934 if test -z "$ac_lib"; then
8935 ac_res="none required"
8938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_link") 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_search_dlopen=$ac_res
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8982 rm -f core conftest.err conftest.$ac_objext \
8984 if test "${ac_cv_search_dlopen+set}" = set; then
8988 if test "${ac_cv_search_dlopen+set}" = set; then
8991 ac_cv_search_dlopen=no
8994 LIBS=$ac_func_search_save_LIBS
8996 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8997 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8998 ac_res=$ac_cv_search_dlopen
8999 if test "$ac_res" != no; then
9000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9003 cat >>confdefs.h <<\_ACEOF
9004 #define HAVE_DLOPEN 1
9011 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9012 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9016 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9017 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9018 if test "${ac_cv_search_clock_gettime+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 ac_func_search_save_LIBS=$LIBS
9022 cat >conftest.$ac_ext <<_ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9035 char clock_gettime ();
9039 return clock_gettime ();
9044 for ac_lib in '' rt; do
9045 if test -z "$ac_lib"; then
9046 ac_res="none required"
9049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (ac_try="$ac_link"
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_link") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_try") 2>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_search_clock_gettime=$ac_res
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9093 rm -f core conftest.err conftest.$ac_objext \
9095 if test "${ac_cv_search_clock_gettime+set}" = set; then
9099 if test "${ac_cv_search_clock_gettime+set}" = set; then
9102 ac_cv_search_clock_gettime=no
9105 LIBS=$ac_func_search_save_LIBS
9107 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9108 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9109 ac_res=$ac_cv_search_clock_gettime
9110 if test "$ac_res" != no; then
9111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9116 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9117 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9118 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9119 if test "${ac_cv_search_setupterm+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 ac_func_search_save_LIBS=$LIBS
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9140 return setupterm ();
9145 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9146 if test -z "$ac_lib"; then
9147 ac_res="none required"
9150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (ac_try="$ac_link"
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_link") 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9167 { (case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_try") 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (case "(($ac_try" in
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_try") 2>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_cv_search_setupterm=$ac_res
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9194 rm -f core conftest.err conftest.$ac_objext \
9196 if test "${ac_cv_search_setupterm+set}" = set; then
9200 if test "${ac_cv_search_setupterm+set}" = set; then
9203 ac_cv_search_setupterm=no
9206 LIBS=$ac_func_search_save_LIBS
9208 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9209 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9210 ac_res=$ac_cv_search_setupterm
9211 if test "$ac_res" != no; then
9212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_TERMINFO 1
9226 if test "$llvm_cv_enable_libedit" = "yes" ; then
9227 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9228 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9229 if test "${ac_cv_search_el_init+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 ac_func_search_save_LIBS=$LIBS
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9240 /* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
9242 builtin and then its argument prototype would still apply. */
9255 for ac_lib in '' edit; do
9256 if test -z "$ac_lib"; then
9257 ac_res="none required"
9260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (ac_try="$ac_link"
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_link") 2>conftest.er1
9271 grep -v '^ *+' conftest.er1 >conftest.err
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277 { (case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_try") 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; } &&
9286 { ac_try='test -s conftest$ac_exeext'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_cv_search_el_init=$ac_res
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9304 rm -f core conftest.err conftest.$ac_objext \
9306 if test "${ac_cv_search_el_init+set}" = set; then
9310 if test "${ac_cv_search_el_init+set}" = set; then
9313 ac_cv_search_el_init=no
9316 LIBS=$ac_func_search_save_LIBS
9318 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9319 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9320 ac_res=$ac_cv_search_el_init
9321 if test "$ac_res" != no; then
9322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_LIBEDIT 1
9332 if test "$llvm_cv_enable_libffi" = "yes" ; then
9333 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9334 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9335 if test "${ac_cv_search_ffi_call+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 ac_func_search_save_LIBS=$LIBS
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9346 /* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9361 for ac_lib in '' ffi; do
9362 if test -z "$ac_lib"; then
9363 ac_res="none required"
9366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (ac_try="$ac_link"
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_link") 2>conftest.er1
9377 grep -v '^ *+' conftest.er1 >conftest.err
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9383 { (case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_try") 2>&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_search_ffi_call=$ac_res
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9410 rm -f core conftest.err conftest.$ac_objext \
9412 if test "${ac_cv_search_ffi_call+set}" = set; then
9416 if test "${ac_cv_search_ffi_call+set}" = set; then
9419 ac_cv_search_ffi_call=no
9422 LIBS=$ac_func_search_save_LIBS
9424 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9425 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9426 ac_res=$ac_cv_search_ffi_call
9427 if test "$ac_res" != no; then
9428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_FFI_CALL 1
9435 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9436 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9437 { (exit 1); exit 1; }; }
9442 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9443 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9444 if test "${ac_cv_search_mallinfo+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 ac_func_search_save_LIBS=$LIBS
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9470 for ac_lib in '' malloc; do
9471 if test -z "$ac_lib"; then
9472 ac_res="none required"
9475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (ac_try="$ac_link"
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9492 { (case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_try") 2>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_search_mallinfo=$ac_res
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9519 rm -f core conftest.err conftest.$ac_objext \
9521 if test "${ac_cv_search_mallinfo+set}" = set; then
9525 if test "${ac_cv_search_mallinfo+set}" = set; then
9528 ac_cv_search_mallinfo=no
9531 LIBS=$ac_func_search_save_LIBS
9533 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9534 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9535 ac_res=$ac_cv_search_mallinfo
9536 if test "$ac_res" != no; then
9537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_MALLINFO 1
9546 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9548 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9549 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9550 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-lpthread $LIBS"
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9568 char pthread_mutex_init ();
9572 return pthread_mutex_init ();
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_link") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9592 { (case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_try") 2>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_lib_pthread_pthread_mutex_init=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_lib_pthread_pthread_mutex_init=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9624 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9625 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define HAVE_LIBPTHREAD 1
9630 LIBS="-lpthread $LIBS"
9634 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9635 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9636 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 ac_func_search_save_LIBS=$LIBS
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9653 char pthread_mutex_lock ();
9657 return pthread_mutex_lock ();
9662 for ac_lib in '' pthread; do
9663 if test -z "$ac_lib"; then
9664 ac_res="none required"
9667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684 { (case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_try") 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_try") 2>&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_search_pthread_mutex_lock=$ac_res
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9711 rm -f core conftest.err conftest.$ac_objext \
9713 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9717 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9720 ac_cv_search_pthread_mutex_lock=no
9723 LIBS=$ac_func_search_save_LIBS
9725 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9726 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9727 ac_res=$ac_cv_search_pthread_mutex_lock
9728 if test "$ac_res" != no; then
9729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_PTHREAD_MUTEX_LOCK 1
9737 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9738 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9739 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 ac_func_search_save_LIBS=$LIBS
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9756 char pthread_rwlock_init ();
9760 return pthread_rwlock_init ();
9765 for ac_lib in '' pthread; do
9766 if test -z "$ac_lib"; then
9767 ac_res="none required"
9770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_search_pthread_rwlock_init=$ac_res
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9814 rm -f core conftest.err conftest.$ac_objext \
9816 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9820 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9823 ac_cv_search_pthread_rwlock_init=no
9826 LIBS=$ac_func_search_save_LIBS
9828 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9829 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9830 ac_res=$ac_cv_search_pthread_rwlock_init
9831 if test "$ac_res" != no; then
9832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_PTHREAD_RWLOCK_INIT 1
9840 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9841 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9842 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_func_search_save_LIBS=$LIBS
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9859 char pthread_getspecific ();
9863 return pthread_getspecific ();
9868 for ac_lib in '' pthread; do
9869 if test -z "$ac_lib"; then
9870 ac_res="none required"
9873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_search_pthread_getspecific=$ac_res
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9917 rm -f core conftest.err conftest.$ac_objext \
9919 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9923 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9926 ac_cv_search_pthread_getspecific=no
9929 LIBS=$ac_func_search_save_LIBS
9931 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9932 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9933 ac_res=$ac_cv_search_pthread_getspecific
9934 if test "$ac_res" != no; then
9935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_PTHREAD_GETSPECIFIC 1
9945 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9947 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9948 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9949 if test "${ac_cv_lib_z_compress2+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 ac_check_lib_save_LIBS=$LIBS
9954 cat >conftest.$ac_ext <<_ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9971 return compress2 ();
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_lib_z_compress2=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_lib_z_compress2=no
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10022 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10023 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10024 if test $ac_cv_lib_z_compress2 = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_LIBZ 1
10036 # Check whether --with-oprofile was given.
10037 if test "${with_oprofile+set}" = set; then
10038 withval=$with_oprofile;
10042 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10043 no) llvm_cv_oppath=
10046 *) llvm_cv_oppath="${withval}/lib/oprofile"
10047 CPPFLAGS="-I${withval}/include";;
10049 case $llvm_cv_os_type in
10051 if test -n "$llvm_cv_oppath" ; then
10052 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10053 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10054 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10055 if test "${ac_cv_search_bfd_init+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 ac_func_search_save_LIBS=$LIBS
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10076 return bfd_init ();
10081 for ac_lib in '' bfd; do
10082 if test -z "$ac_lib"; then
10083 ac_res="none required"
10086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (ac_try="$ac_link"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_link") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest$ac_exeext'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_search_bfd_init=$ac_res
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10130 rm -f core conftest.err conftest.$ac_objext \
10132 if test "${ac_cv_search_bfd_init+set}" = set; then
10136 if test "${ac_cv_search_bfd_init+set}" = set; then
10139 ac_cv_search_bfd_init=no
10141 rm conftest.$ac_ext
10142 LIBS=$ac_func_search_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10145 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10146 ac_res=$ac_cv_search_bfd_init
10147 if test "$ac_res" != no; then
10148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10152 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10153 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10154 if test "${ac_cv_search_op_open_agent+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_func_search_save_LIBS=$LIBS
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10171 char op_open_agent ();
10175 return op_open_agent ();
10180 for ac_lib in '' opagent; do
10181 if test -z "$ac_lib"; then
10182 ac_res="none required"
10185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_search_op_open_agent=$ac_res
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -f core conftest.err conftest.$ac_objext \
10231 if test "${ac_cv_search_op_open_agent+set}" = set; then
10235 if test "${ac_cv_search_op_open_agent+set}" = set; then
10238 ac_cv_search_op_open_agent=no
10240 rm conftest.$ac_ext
10241 LIBS=$ac_func_search_save_LIBS
10243 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10244 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10245 ac_res=$ac_cv_search_op_open_agent
10246 if test "$ac_res" != no; then
10247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10251 echo "Error! You need to have libopagent around."
10256 if test "${ac_cv_header_opagent_h+set}" = set; then
10257 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10258 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10259 if test "${ac_cv_header_opagent_h+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10263 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10265 # Is the header compilable?
10266 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10267 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 $ac_includes_default
10275 #include <opagent.h>
10277 rm -f conftest.$ac_objext
10278 if { (ac_try="$ac_compile"
10279 case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_compile") 2>conftest.er1
10286 grep -v '^ *+' conftest.er1 >conftest.err
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_try") 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_header_compiler=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_header_compiler=no
10319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10321 echo "${ECHO_T}$ac_header_compiler" >&6; }
10323 # Is the header present?
10324 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10325 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 #include <opagent.h>
10334 if { (ac_try="$ac_cpp conftest.$ac_ext"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10356 if test -z "$ac_cpp_err"; then
10357 ac_header_preproc=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_header_preproc=no
10365 rm -f conftest.err conftest.$ac_ext
10366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10367 echo "${ECHO_T}$ac_header_preproc" >&6; }
10369 # So? What about this header?
10370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10373 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10375 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10376 ac_header_preproc=yes
10379 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10380 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10382 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10384 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10386 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10388 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10390 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10392 ## ------------------------------------ ##
10393 ## Report this to http://llvm.org/bugs/ ##
10394 ## ------------------------------------ ##
10396 ) | sed "s/^/$as_me: WARNING: /" >&2
10399 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10400 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10401 if test "${ac_cv_header_opagent_h+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 ac_cv_header_opagent_h=$ac_header_preproc
10406 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10407 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10410 if test $ac_cv_header_opagent_h = yes; then
10414 echo "Error! You need to have opagent.h around."
10422 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10423 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10424 { (exit 1); exit 1; }; } ;;
10435 cat >>confdefs.h <<_ACEOF
10436 #define LLVM_USE_OPROFILE $USE_OPROFILE
10441 # Check whether --with-intel-jitevents was given.
10442 if test "${with_intel_jitevents+set}" = set; then
10443 withval=$with_intel_jitevents;
10445 yes) USE_INTEL_JITEVENTS=1
10447 no) USE_INTEL_JITEVENTS=0
10449 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10450 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10451 { (exit 1); exit 1; }; };;
10454 case $llvm_cv_os_type in
10455 Linux|Win32|Cygwin|MingW) ;;
10456 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10457 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10458 { (exit 1); exit 1; }; };;
10461 case "$llvm_cv_target_arch" in
10463 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10464 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10465 { (exit 1); exit 1; }; };;
10470 USE_INTEL_JITEVENTS=0
10476 cat >>confdefs.h <<_ACEOF
10477 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10481 for ac_prog in xml2-config
10483 # Extract the first word of "$ac_prog", so it can be a program name with args.
10484 set dummy $ac_prog; ac_word=$2
10485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10487 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 if test -n "$XML2CONFIG"; then
10491 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10500 ac_cv_prog_XML2CONFIG="$ac_prog"
10501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10511 if test -n "$XML2CONFIG"; then
10512 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10513 echo "${ECHO_T}$XML2CONFIG" >&6; }
10515 { echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6; }
10520 test -n "$XML2CONFIG" && break
10524 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10525 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10526 if test "x$XML2CONFIG" = "x"; then
10527 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10528 echo "${ECHO_T}xml2-config not found" >&6; }
10530 LIBXML2_INC=`$XML2CONFIG --cflags`
10531 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10532 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10533 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10534 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10535 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-lxml2 $LIBS"
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10547 /* Override any GCC internal prototype to avoid an error.
10548 Use char because int might match the return type of a GCC
10549 builtin and then its argument prototype would still apply. */
10553 char xmlReadFile ();
10557 return xmlReadFile ();
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (ac_try="$ac_link"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_link") 2>conftest.er1
10571 grep -v '^ *+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
10576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_cv_lib_xml2_xmlReadFile=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_cv_lib_xml2_xmlReadFile=no
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10608 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10609 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10610 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10612 cat >>confdefs.h <<\_ACEOF
10613 #define CLANG_HAVE_LIBXML 1
10616 LIBXML2_LIBS="-lxml2"
10629 ac_header_dirent=no
10630 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10631 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10632 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10633 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 #include <sys/types.h>
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest.$ac_objext'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 eval "$as_ac_Header=yes"
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 eval "$as_ac_Header=no"
10697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 ac_res=`eval echo '${'$as_ac_Header'}'`
10700 { echo "$as_me:$LINENO: result: $ac_res" >&5
10701 echo "${ECHO_T}$ac_res" >&6; }
10702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10703 cat >>confdefs.h <<_ACEOF
10704 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10707 ac_header_dirent=$ac_hdr; break
10711 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10712 if test $ac_header_dirent = dirent.h; then
10713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10715 if test "${ac_cv_search_opendir+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 ac_func_search_save_LIBS=$LIBS
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10741 for ac_lib in '' dir; do
10742 if test -z "$ac_lib"; then
10743 ac_res="none required"
10746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (ac_try="$ac_link"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_search_opendir=$ac_res
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10790 rm -f core conftest.err conftest.$ac_objext \
10792 if test "${ac_cv_search_opendir+set}" = set; then
10796 if test "${ac_cv_search_opendir+set}" = set; then
10799 ac_cv_search_opendir=no
10801 rm conftest.$ac_ext
10802 LIBS=$ac_func_search_save_LIBS
10804 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10805 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10806 ac_res=$ac_cv_search_opendir
10807 if test "$ac_res" != no; then
10808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10813 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10814 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10815 if test "${ac_cv_search_opendir+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 ac_func_search_save_LIBS=$LIBS
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10841 for ac_lib in '' x; do
10842 if test -z "$ac_lib"; then
10843 ac_res="none required"
10846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (ac_try="$ac_link"
10850 case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_link") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_search_opendir=$ac_res
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10890 rm -f core conftest.err conftest.$ac_objext \
10892 if test "${ac_cv_search_opendir+set}" = set; then
10896 if test "${ac_cv_search_opendir+set}" = set; then
10899 ac_cv_search_opendir=no
10901 rm conftest.$ac_ext
10902 LIBS=$ac_func_search_save_LIBS
10904 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10905 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10906 ac_res=$ac_cv_search_opendir
10907 if test "$ac_res" != no; then
10908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10914 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10915 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10916 if test "${ac_cv_header_mmap_anon+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 ac_cpp='$CPP $CPPFLAGS'
10921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <sys/mman.h>
10932 #include <unistd.h>
10937 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_try") 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_header_mmap_anon=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_header_mmap_anon=no
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10993 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10994 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10995 if test "$ac_cv_header_mmap_anon" = yes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_MMAP_ANONYMOUS 1
11003 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11004 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11005 if test "${ac_cv_header_stat_broken+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <sys/types.h>
11015 #include <sys/stat.h>
11017 #if defined S_ISBLK && defined S_IFDIR
11018 # if S_ISBLK (S_IFDIR)
11023 #if defined S_ISBLK && defined S_IFCHR
11024 # if S_ISBLK (S_IFCHR)
11029 #if defined S_ISLNK && defined S_IFREG
11030 # if S_ISLNK (S_IFREG)
11035 #if defined S_ISSOCK && defined S_IFREG
11036 # if S_ISSOCK (S_IFREG)
11042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11043 $EGREP "You lose" >/dev/null 2>&1; then
11044 ac_cv_header_stat_broken=yes
11046 ac_cv_header_stat_broken=no
11051 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11052 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11053 if test $ac_cv_header_stat_broken = yes; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define STAT_MACROS_BROKEN 1
11061 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11062 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11063 if test "${ac_cv_header_time+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <sys/types.h>
11073 #include <sys/time.h>
11079 if ((struct tm *) 0)
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_header_time=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_header_time=no
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11130 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11131 if test $ac_cv_header_time = yes; then
11133 cat >>confdefs.h <<\_ACEOF
11134 #define TIME_WITH_SYS_TIME 1
11141 ac_cpp='$CXXCPP $CPPFLAGS'
11142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11147 for ac_header in cxxabi.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <stddef.h>
11164 #include <$ac_header>
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11200 eval "$as_ac_Header=yes"
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 eval "$as_ac_Header=no"
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 ac_res=`eval echo '${'$as_ac_Header'}'`
11211 { echo "$as_me:$LINENO: result: $ac_res" >&5
11212 echo "${ECHO_T}$ac_res" >&6; }
11213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11214 cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11223 ac_cpp='$CPP $CPPFLAGS'
11224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11247 # Is the header compilable?
11248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11257 #include <$ac_header>
11259 rm -f conftest.$ac_objext
11260 if { (ac_try="$ac_compile"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_compile") 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_header_compiler=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_compiler=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11303 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305 # Is the header present?
11306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 #include <$ac_header>
11316 if { (ac_try="$ac_cpp conftest.$ac_ext"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11338 if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_preproc=no
11347 rm -f conftest.err conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11358 ac_header_preproc=yes
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374 ## ------------------------------------ ##
11375 ## Report this to http://llvm.org/bugs/ ##
11376 ## ------------------------------------ ##
11378 ) | sed "s/^/$as_me: WARNING: /" >&2
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11421 # Is the header compilable?
11422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11433 rm -f conftest.$ac_objext
11434 if { (ac_try="$ac_compile"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_compile") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_try") 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_header_compiler=yes
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 ac_header_compiler=no
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11477 echo "${ECHO_T}$ac_header_compiler" >&6; }
11479 # Is the header present?
11480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include <$ac_header>
11490 if { (ac_try="$ac_cpp conftest.$ac_ext"
11491 case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } >/dev/null; then
11503 if test -s conftest.err; then
11504 ac_cpp_err=$ac_c_preproc_warn_flag
11505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11512 if test -z "$ac_cpp_err"; then
11513 ac_header_preproc=yes
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_header_preproc=no
11521 rm -f conftest.err conftest.$ac_ext
11522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11523 echo "${ECHO_T}$ac_header_preproc" >&6; }
11525 # So? What about this header?
11526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11532 ac_header_preproc=yes
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11548 ## ------------------------------------ ##
11549 ## Report this to http://llvm.org/bugs/ ##
11550 ## ------------------------------------ ##
11552 ) | sed "s/^/$as_me: WARNING: /" >&2
11555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 eval "$as_ac_Header=\$ac_header_preproc"
11562 ac_res=`eval echo '${'$as_ac_Header'}'`
11563 { echo "$as_me:$LINENO: result: $ac_res" >&5
11564 echo "${ECHO_T}$ac_res" >&6; }
11567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11568 cat >>confdefs.h <<_ACEOF
11569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11594 # Is the header compilable?
11595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 #include <$ac_header>
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11615 grep -v '^ *+' conftest.er1 >conftest.err
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11621 { (case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_try") 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest.$ac_objext'
11631 { (case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_try") 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_header_compiler=no
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650 echo "${ECHO_T}$ac_header_compiler" >&6; }
11652 # Is the header present?
11653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <$ac_header>
11663 if { (ac_try="$ac_cpp conftest.$ac_ext"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } >/dev/null; then
11676 if test -s conftest.err; then
11677 ac_cpp_err=$ac_c_preproc_warn_flag
11678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11685 if test -z "$ac_cpp_err"; then
11686 ac_header_preproc=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_preproc=no
11694 rm -f conftest.err conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6; }
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11705 ac_header_preproc=yes
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11721 ## ------------------------------------ ##
11722 ## Report this to http://llvm.org/bugs/ ##
11723 ## ------------------------------------ ##
11725 ) | sed "s/^/$as_me: WARNING: /" >&2
11728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 eval "$as_ac_Header=\$ac_header_preproc"
11735 ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11752 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 ac_res=`eval echo '${'$as_ac_Header'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763 echo "${ECHO_T}$ac_res" >&6; }
11765 # Is the header compilable?
11766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 #include <$ac_header>
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_header_compiler=yes
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_header_compiler=no
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11821 echo "${ECHO_T}$ac_header_compiler" >&6; }
11823 # Is the header present?
11824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 #include <$ac_header>
11834 if { (ac_try="$ac_cpp conftest.$ac_ext"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } >/dev/null; then
11847 if test -s conftest.err; then
11848 ac_cpp_err=$ac_c_preproc_warn_flag
11849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11856 if test -z "$ac_cpp_err"; then
11857 ac_header_preproc=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_preproc=no
11865 rm -f conftest.err conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11867 echo "${ECHO_T}$ac_header_preproc" >&6; }
11869 # So? What about this header?
11870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11876 ac_header_preproc=yes
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11892 ## ------------------------------------ ##
11893 ## Report this to http://llvm.org/bugs/ ##
11894 ## ------------------------------------ ##
11896 ) | sed "s/^/$as_me: WARNING: /" >&2
11899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 eval "$as_ac_Header=\$ac_header_preproc"
11906 ac_res=`eval echo '${'$as_ac_Header'}'`
11907 { echo "$as_me:$LINENO: result: $ac_res" >&5
11908 echo "${ECHO_T}$ac_res" >&6; }
11911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11921 for ac_header in valgrind/valgrind.h
11923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 ac_res=`eval echo '${'$as_ac_Header'}'`
11931 { echo "$as_me:$LINENO: result: $ac_res" >&5
11932 echo "${ECHO_T}$ac_res" >&6; }
11934 # Is the header compilable?
11935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 $ac_includes_default
11944 #include <$ac_header>
11946 rm -f conftest.$ac_objext
11947 if { (ac_try="$ac_compile"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_compile") 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11961 { (case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_try") 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest.$ac_objext'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_header_compiler=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_header_compiler=no
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11990 echo "${ECHO_T}$ac_header_compiler" >&6; }
11992 # Is the header present?
11993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 #include <$ac_header>
12003 if { (ac_try="$ac_cpp conftest.$ac_ext"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev/null; then
12016 if test -s conftest.err; then
12017 ac_cpp_err=$ac_c_preproc_warn_flag
12018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12025 if test -z "$ac_cpp_err"; then
12026 ac_header_preproc=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_header_preproc=no
12034 rm -f conftest.err conftest.$ac_ext
12035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12036 echo "${ECHO_T}$ac_header_preproc" >&6; }
12038 # So? What about this header?
12039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12045 ac_header_preproc=yes
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12061 ## ------------------------------------ ##
12062 ## Report this to http://llvm.org/bugs/ ##
12063 ## ------------------------------------ ##
12065 ) | sed "s/^/$as_me: WARNING: /" >&2
12068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 eval "$as_ac_Header=\$ac_header_preproc"
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12090 for ac_header in fenv.h
12092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 ac_res=`eval echo '${'$as_ac_Header'}'`
12100 { echo "$as_me:$LINENO: result: $ac_res" >&5
12101 echo "${ECHO_T}$ac_res" >&6; }
12103 # Is the header compilable?
12104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12113 #include <$ac_header>
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_try") 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_header_compiler=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_header_compiler=no
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6; }
12161 # Is the header present?
12162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <$ac_header>
12172 if { (ac_try="$ac_cpp conftest.$ac_ext"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } >/dev/null; then
12185 if test -s conftest.err; then
12186 ac_cpp_err=$ac_c_preproc_warn_flag
12187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12194 if test -z "$ac_cpp_err"; then
12195 ac_header_preproc=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_preproc=no
12203 rm -f conftest.err conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205 echo "${ECHO_T}$ac_header_preproc" >&6; }
12207 # So? What about this header?
12208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12230 ## ------------------------------------ ##
12231 ## Report this to http://llvm.org/bugs/ ##
12232 ## ------------------------------------ ##
12234 ) | sed "s/^/$as_me: WARNING: /" >&2
12237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 eval "$as_ac_Header=\$ac_header_preproc"
12244 ac_res=`eval echo '${'$as_ac_Header'}'`
12245 { echo "$as_me:$LINENO: result: $ac_res" >&5
12246 echo "${ECHO_T}$ac_res" >&6; }
12249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12259 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12260 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12274 #ifndef FE_ALL_EXCEPT
12275 char *p = (char *) FE_ALL_EXCEPT;
12283 rm -f conftest.$ac_objext
12284 if { (ac_try="$ac_compile"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_compile") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_have_decl_FE_ALL_EXCEPT=no
12325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12328 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12329 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12331 cat >>confdefs.h <<_ACEOF
12332 #define HAVE_DECL_FE_ALL_EXCEPT 1
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_DECL_FE_ALL_EXCEPT 0
12343 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12344 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12345 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12360 char *p = (char *) FE_INEXACT;
12368 rm -f conftest.$ac_objext
12369 if { (ac_try="$ac_compile"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_compile") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_have_decl_FE_INEXACT=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_cv_have_decl_FE_INEXACT=no
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12413 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12414 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12416 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_DECL_FE_INEXACT 1
12422 cat >>confdefs.h <<_ACEOF
12423 #define HAVE_DECL_FE_INEXACT 0
12430 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12432 for ac_header in pthread.h
12434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 ac_res=`eval echo '${'$as_ac_Header'}'`
12442 { echo "$as_me:$LINENO: result: $ac_res" >&5
12443 echo "${ECHO_T}$ac_res" >&6; }
12445 # Is the header compilable?
12446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 $ac_includes_default
12455 #include <$ac_header>
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_header_compiler=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_header_compiler=no
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12501 echo "${ECHO_T}$ac_header_compiler" >&6; }
12503 # Is the header present?
12504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include <$ac_header>
12514 if { (ac_try="$ac_cpp conftest.$ac_ext"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } >/dev/null; then
12527 if test -s conftest.err; then
12528 ac_cpp_err=$ac_c_preproc_warn_flag
12529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12536 if test -z "$ac_cpp_err"; then
12537 ac_header_preproc=yes
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_header_preproc=no
12545 rm -f conftest.err conftest.$ac_ext
12546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12547 echo "${ECHO_T}$ac_header_preproc" >&6; }
12549 # So? What about this header?
12550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12556 ac_header_preproc=yes
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12572 ## ------------------------------------ ##
12573 ## Report this to http://llvm.org/bugs/ ##
12574 ## ------------------------------------ ##
12576 ) | sed "s/^/$as_me: WARNING: /" >&2
12579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 eval "$as_ac_Header=\$ac_header_preproc"
12586 ac_res=`eval echo '${'$as_ac_Header'}'`
12587 { echo "$as_me:$LINENO: result: $ac_res" >&5
12588 echo "${ECHO_T}$ac_res" >&6; }
12591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12592 cat >>confdefs.h <<_ACEOF
12593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12608 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12610 for ac_header in zlib.h
12612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 ac_res=`eval echo '${'$as_ac_Header'}'`
12620 { echo "$as_me:$LINENO: result: $ac_res" >&5
12621 echo "${ECHO_T}$ac_res" >&6; }
12623 # Is the header compilable?
12624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <$ac_header>
12635 rm -f conftest.$ac_objext
12636 if { (ac_try="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest.$ac_objext'
12660 { (case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_try") 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_header_compiler=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_header_compiler=no
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12679 echo "${ECHO_T}$ac_header_compiler" >&6; }
12681 # Is the header present?
12682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 #include <$ac_header>
12692 if { (ac_try="$ac_cpp conftest.$ac_ext"
12693 case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } >/dev/null; then
12705 if test -s conftest.err; then
12706 ac_cpp_err=$ac_c_preproc_warn_flag
12707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12714 if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_header_preproc=no
12723 rm -f conftest.err conftest.$ac_ext
12724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12725 echo "${ECHO_T}$ac_header_preproc" >&6; }
12727 # So? What about this header?
12728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12734 ac_header_preproc=yes
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12750 ## ------------------------------------ ##
12751 ## Report this to http://llvm.org/bugs/ ##
12752 ## ------------------------------------ ##
12754 ) | sed "s/^/$as_me: WARNING: /" >&2
12757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 eval "$as_ac_Header=\$ac_header_preproc"
12764 ac_res=`eval echo '${'$as_ac_Header'}'`
12765 { echo "$as_me:$LINENO: result: $ac_res" >&5
12766 echo "${ECHO_T}$ac_res" >&6; }
12769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12787 if test "$llvm_cv_enable_libffi" = "yes" ; then
12790 for ac_header in ffi.h ffi/ffi.h
12792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 ac_res=`eval echo '${'$as_ac_Header'}'`
12800 { echo "$as_me:$LINENO: result: $ac_res" >&5
12801 echo "${ECHO_T}$ac_res" >&6; }
12803 # Is the header compilable?
12804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <$ac_header>
12815 rm -f conftest.$ac_objext
12816 if { (ac_try="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12830 { (case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_try") 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; } &&
12839 { ac_try='test -s conftest.$ac_objext'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_header_compiler=yes
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_header_compiler=no
12857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859 echo "${ECHO_T}$ac_header_compiler" >&6; }
12861 # Is the header present?
12862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12864 cat >conftest.$ac_ext <<_ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 #include <$ac_header>
12872 if { (ac_try="$ac_cpp conftest.$ac_ext"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_c_preproc_warn_flag
12887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12894 if test -z "$ac_cpp_err"; then
12895 ac_header_preproc=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 ac_header_preproc=no
12903 rm -f conftest.err conftest.$ac_ext
12904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12905 echo "${ECHO_T}$ac_header_preproc" >&6; }
12907 # So? What about this header?
12908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12914 ac_header_preproc=yes
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12930 ## ------------------------------------ ##
12931 ## Report this to http://llvm.org/bugs/ ##
12932 ## ------------------------------------ ##
12934 ) | sed "s/^/$as_me: WARNING: /" >&2
12937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 eval "$as_ac_Header=\$ac_header_preproc"
12944 ac_res=`eval echo '${'$as_ac_Header'}'`
12945 { echo "$as_me:$LINENO: result: $ac_res" >&5
12946 echo "${ECHO_T}$ac_res" >&6; }
12949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12950 cat >>confdefs.h <<_ACEOF
12951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12961 for ac_header in CrashReporterClient.h
12963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 ac_res=`eval echo '${'$as_ac_Header'}'`
12971 { echo "$as_me:$LINENO: result: $ac_res" >&5
12972 echo "${ECHO_T}$ac_res" >&6; }
12974 # Is the header compilable?
12975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 $ac_includes_default
12984 #include <$ac_header>
12986 rm -f conftest.$ac_objext
12987 if { (ac_try="$ac_compile"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_compile") 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_try") 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_header_compiler=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_header_compiler=no
13028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13030 echo "${ECHO_T}$ac_header_compiler" >&6; }
13032 # Is the header present?
13033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <$ac_header>
13043 if { (ac_try="$ac_cpp conftest.$ac_ext"
13044 case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1 >conftest.err
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } >/dev/null; then
13056 if test -s conftest.err; then
13057 ac_cpp_err=$ac_c_preproc_warn_flag
13058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13065 if test -z "$ac_cpp_err"; then
13066 ac_header_preproc=yes
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_header_preproc=no
13074 rm -f conftest.err conftest.$ac_ext
13075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13076 echo "${ECHO_T}$ac_header_preproc" >&6; }
13078 # So? What about this header?
13079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13085 ac_header_preproc=yes
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13101 ## ------------------------------------ ##
13102 ## Report this to http://llvm.org/bugs/ ##
13103 ## ------------------------------------ ##
13105 ) | sed "s/^/$as_me: WARNING: /" >&2
13108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 eval "$as_ac_Header=\$ac_header_preproc"
13115 ac_res=`eval echo '${'$as_ac_Header'}'`
13116 { echo "$as_me:$LINENO: result: $ac_res" >&5
13117 echo "${ECHO_T}$ac_res" >&6; }
13120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13121 cat >>confdefs.h <<_ACEOF
13122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13130 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13131 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 extern const char *__crashreporter_info__;
13142 __crashreporter_info__ = "test";
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_link") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1 >conftest.err
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
13162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest$ac_exeext'
13173 { (case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_try") 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13183 { echo "$as_me:$LINENO: result: yes" >&5
13184 echo "${ECHO_T}yes" >&6; }
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_CRASHREPORTER_INFO 1
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13196 { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_CRASHREPORTER_INFO 0
13206 rm -f core conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13211 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13212 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13213 if test "${ac_cv_huge_val_sanity+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_cpp='$CXXCPP $CPPFLAGS'
13219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13223 ac_save_CXXFLAGS=$CXXFLAGS
13224 CXXFLAGS="$CXXFLAGS -pedantic"
13225 if test "$cross_compiling" = yes; then
13226 ac_cv_huge_val_sanity=yes
13228 cat >conftest.$ac_ext <<_ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13238 double x = HUGE_VAL; return x != x;
13243 rm -f conftest$ac_exeext
13244 if { (ac_try="$ac_link"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_link") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13254 { (case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_try") 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_cv_huge_val_sanity=yes
13265 echo "$as_me: program exited with status $ac_status" >&5
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ( exit $ac_status )
13270 ac_cv_huge_val_sanity=no
13272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13276 CXXFLAGS=$ac_save_CXXFLAGS
13278 ac_cpp='$CPP $CPPFLAGS'
13279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13286 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13287 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13290 { echo "$as_me:$LINENO: checking for pid_t" >&5
13291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13292 if test "${ac_cv_type_pid_t+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 typedef pid_t ac__type_new_;
13306 if ((ac__type_new_ *) 0)
13308 if (sizeof (ac__type_new_))
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compile") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_type_pid_t=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_cv_type_pid_t=no
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13359 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13360 if test $ac_cv_type_pid_t = yes; then
13364 cat >>confdefs.h <<_ACEOF
13370 { echo "$as_me:$LINENO: checking for size_t" >&5
13371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13372 if test "${ac_cv_type_size_t+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 typedef size_t ac__type_new_;
13386 if ((ac__type_new_ *) 0)
13388 if (sizeof (ac__type_new_))
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_cv_type_size_t=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ac_cv_type_size_t=no
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13439 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13440 if test $ac_cv_type_size_t = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define size_t unsigned int
13451 cat >>confdefs.h <<_ACEOF
13452 #define RETSIGTYPE void
13455 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13456 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13457 if test "${ac_cv_struct_tm+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 cat >conftest.$ac_ext <<_ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 #include <sys/types.h>
13472 struct tm *tp; tp->tm_sec;
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_compile") 2>conftest.er1
13486 grep -v '^ *+' conftest.er1 >conftest.err
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13501 { ac_try='test -s conftest.$ac_objext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_cv_struct_tm=time.h
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ac_cv_struct_tm=sys/time.h
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13522 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13523 if test $ac_cv_struct_tm = sys/time.h; then
13525 cat >>confdefs.h <<\_ACEOF
13526 #define TM_IN_SYS_TIME 1
13531 { echo "$as_me:$LINENO: checking for int64_t" >&5
13532 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13533 if test "${ac_cv_type_int64_t+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13543 typedef int64_t ac__type_new_;
13547 if ((ac__type_new_ *) 0)
13549 if (sizeof (ac__type_new_))
13555 rm -f conftest.$ac_objext
13556 if { (ac_try="$ac_compile"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_compile") 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_type_int64_t=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_type_int64_t=no
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13600 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13601 if test $ac_cv_type_int64_t = yes; then
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_INT64_T 1
13609 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13610 echo "$as_me: error: Type int64_t required but not found" >&2;}
13611 { (exit 1); exit 1; }; }
13614 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13615 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13616 if test "${ac_cv_type_uint64_t+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 typedef uint64_t ac__type_new_;
13630 if ((ac__type_new_ *) 0)
13632 if (sizeof (ac__type_new_))
13638 rm -f conftest.$ac_objext
13639 if { (ac_try="$ac_compile"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compile") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_try") 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_type_uint64_t=yes
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_cv_type_uint64_t=no
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13683 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13684 if test $ac_cv_type_uint64_t = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_UINT64_T 1
13692 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13693 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13694 if test "${ac_cv_type_u_int64_t+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 typedef u_int64_t ac__type_new_;
13708 if ((ac__type_new_ *) 0)
13710 if (sizeof (ac__type_new_))
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compile") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_try") 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_try") 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_type_u_int64_t=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_type_u_int64_t=no
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13761 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13762 if test $ac_cv_type_u_int64_t = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_U_INT64_T 1
13770 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13771 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13772 { (exit 1); exit 1; }; }
13781 for ac_func in backtrace getcwd
13783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 cat >conftest.$ac_ext <<_ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13797 #define $ac_func innocuous_$ac_func
13799 /* System header to define __stub macros and hopefully few prototypes,
13800 which can conflict with char $ac_func (); below.
13801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13802 <limits.h> exists even on freestanding compilers. */
13805 # include <limits.h>
13807 # include <assert.h>
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13819 /* The GNU C library defines this for functions which it implements
13820 to always fail with ENOSYS. Some functions are actually named
13821 something starting with __ and the normal name is an alias. */
13822 #if defined __stub_$ac_func || defined __stub___$ac_func
13829 return $ac_func ();
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13849 { (case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854 (eval "$ac_try") 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest$ac_exeext'
13859 { (case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_try") 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }; then
13868 eval "$as_ac_var=yes"
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 eval "$as_ac_var=no"
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13879 ac_res=`eval echo '${'$as_ac_var'}'`
13880 { echo "$as_me:$LINENO: result: $ac_res" >&5
13881 echo "${ECHO_T}$ac_res" >&6; }
13882 if test `eval echo '${'$as_ac_var'}'` = yes; then
13883 cat >>confdefs.h <<_ACEOF
13884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13895 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13911 #define $ac_func innocuous_$ac_func
13913 /* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func (); below.
13915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13916 <limits.h> exists even on freestanding compilers. */
13919 # include <limits.h>
13921 # include <assert.h>
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined __stub_$ac_func || defined __stub___$ac_func
13943 return $ac_func ();
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (ac_try="$ac_link"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_link") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 eval "$as_ac_var=yes"
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 eval "$as_ac_var=no"
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13993 ac_res=`eval echo '${'$as_ac_var'}'`
13994 { echo "$as_me:$LINENO: result: $ac_res" >&5
13995 echo "${ECHO_T}$ac_res" >&6; }
13996 if test `eval echo '${'$as_ac_var'}'` = yes; then
13997 cat >>confdefs.h <<_ACEOF
13998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007 for ac_func in isatty mkdtemp mkstemp
14009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14023 #define $ac_func innocuous_$ac_func
14025 /* System header to define __stub macros and hopefully few prototypes,
14026 which can conflict with char $ac_func (); below.
14027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14028 <limits.h> exists even on freestanding compilers. */
14031 # include <limits.h>
14033 # include <assert.h>
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14045 /* The GNU C library defines this for functions which it implements
14046 to always fail with ENOSYS. Some functions are actually named
14047 something starting with __ and the normal name is an alias. */
14048 #if defined __stub_$ac_func || defined __stub___$ac_func
14055 return $ac_func ();
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14069 grep -v '^ *+' conftest.er1 >conftest.err
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 eval "$as_ac_var=yes"
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 eval "$as_ac_var=no"
14102 rm -f core conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14105 ac_res=`eval echo '${'$as_ac_var'}'`
14106 { echo "$as_me:$LINENO: result: $ac_res" >&5
14107 echo "${ECHO_T}$ac_res" >&6; }
14108 if test `eval echo '${'$as_ac_var'}'` = yes; then
14109 cat >>confdefs.h <<_ACEOF
14110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14122 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14138 #define $ac_func innocuous_$ac_func
14140 /* System header to define __stub macros and hopefully few prototypes,
14141 which can conflict with char $ac_func (); below.
14142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14143 <limits.h> exists even on freestanding compilers. */
14146 # include <limits.h>
14148 # include <assert.h>
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14160 /* The GNU C library defines this for functions which it implements
14161 to always fail with ENOSYS. Some functions are actually named
14162 something starting with __ and the normal name is an alias. */
14163 #if defined __stub_$ac_func || defined __stub___$ac_func
14170 return $ac_func ();
14175 rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (ac_try="$ac_link"
14177 case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_link") 2>conftest.er1
14184 grep -v '^ *+' conftest.er1 >conftest.err
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest$ac_exeext'
14200 { (case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 eval "$as_ac_var=yes"
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 eval "$as_ac_var=no"
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14220 ac_res=`eval echo '${'$as_ac_var'}'`
14221 { echo "$as_me:$LINENO: result: $ac_res" >&5
14222 echo "${ECHO_T}$ac_res" >&6; }
14223 if test `eval echo '${'$as_ac_var'}'` = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14234 for ac_func in strerror strerror_r setenv
14236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 cat >conftest.$ac_ext <<_ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14250 #define $ac_func innocuous_$ac_func
14252 /* System header to define __stub macros and hopefully few prototypes,
14253 which can conflict with char $ac_func (); below.
14254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14255 <limits.h> exists even on freestanding compilers. */
14258 # include <limits.h>
14260 # include <assert.h>
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined __stub_$ac_func || defined __stub___$ac_func
14282 return $ac_func ();
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (ac_try="$ac_link"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest$ac_exeext'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 eval "$as_ac_var=yes"
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 eval "$as_ac_var=no"
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14332 ac_res=`eval echo '${'$as_ac_var'}'`
14333 { echo "$as_me:$LINENO: result: $ac_res" >&5
14334 echo "${ECHO_T}$ac_res" >&6; }
14335 if test `eval echo '${'$as_ac_var'}'` = yes; then
14336 cat >>confdefs.h <<_ACEOF
14337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14347 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14363 #define $ac_func innocuous_$ac_func
14365 /* System header to define __stub macros and hopefully few prototypes,
14366 which can conflict with char $ac_func (); below.
14367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14368 <limits.h> exists even on freestanding compilers. */
14371 # include <limits.h>
14373 # include <assert.h>
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14385 /* The GNU C library defines this for functions which it implements
14386 to always fail with ENOSYS. Some functions are actually named
14387 something starting with __ and the normal name is an alias. */
14388 #if defined __stub_$ac_func || defined __stub___$ac_func
14395 return $ac_func ();
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 eval "$as_ac_var=yes"
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 eval "$as_ac_var=no"
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14445 ac_res=`eval echo '${'$as_ac_var'}'`
14446 { echo "$as_me:$LINENO: result: $ac_res" >&5
14447 echo "${ECHO_T}$ac_res" >&6; }
14448 if test `eval echo '${'$as_ac_var'}'` = yes; then
14449 cat >>confdefs.h <<_ACEOF
14450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459 for ac_func in setjmp longjmp writev
14461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14475 #define $ac_func innocuous_$ac_func
14477 /* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func (); below.
14479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14480 <limits.h> exists even on freestanding compilers. */
14483 # include <limits.h>
14485 # include <assert.h>
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14497 /* The GNU C library defines this for functions which it implements
14498 to always fail with ENOSYS. Some functions are actually named
14499 something starting with __ and the normal name is an alias. */
14500 #if defined __stub_$ac_func || defined __stub___$ac_func
14507 return $ac_func ();
14512 rm -f conftest.$ac_objext conftest$ac_exeext
14513 if { (ac_try="$ac_link"
14514 case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_link") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14527 { (case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_try") 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try='test -s conftest$ac_exeext'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 eval "$as_ac_var=yes"
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 eval "$as_ac_var=no"
14554 rm -f core conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
14557 ac_res=`eval echo '${'$as_ac_var'}'`
14558 { echo "$as_me:$LINENO: result: $ac_res" >&5
14559 echo "${ECHO_T}$ac_res" >&6; }
14560 if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14570 for ac_func in futimes futimens
14572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 cat >conftest.$ac_ext <<_ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14586 #define $ac_func innocuous_$ac_func
14588 /* System header to define __stub macros and hopefully few prototypes,
14589 which can conflict with char $ac_func (); below.
14590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14591 <limits.h> exists even on freestanding compilers. */
14594 # include <limits.h>
14596 # include <assert.h>
14601 /* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
14608 /* The GNU C library defines this for functions which it implements
14609 to always fail with ENOSYS. Some functions are actually named
14610 something starting with __ and the normal name is an alias. */
14611 #if defined __stub_$ac_func || defined __stub___$ac_func
14618 return $ac_func ();
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (ac_try="$ac_link"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_link") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest$ac_exeext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 eval "$as_ac_var=yes"
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 eval "$as_ac_var=no"
14665 rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
14668 ac_res=`eval echo '${'$as_ac_var'}'`
14669 { echo "$as_me:$LINENO: result: $ac_res" >&5
14670 echo "${ECHO_T}$ac_res" >&6; }
14671 if test `eval echo '${'$as_ac_var'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14679 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14680 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14681 if test "${llvm_cv_c_printf_a+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 ac_cpp='$CPP $CPPFLAGS'
14686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14690 if test "$cross_compiling" = yes; then
14691 llvmac_cv_c_printf_a=no
14693 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14702 #include <stdlib.h>
14708 volatile double A, B;
14712 sprintf(Buffer, "%a", A);
14716 if (A != 0x1.999999999999ap-4)
14723 rm -f conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 llvm_cv_c_printf_a=yes
14745 echo "$as_me: program exited with status $ac_status" >&5
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14749 ( exit $ac_status )
14750 llvmac_cv_c_printf_a=no
14752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14757 ac_cpp='$CPP $CPPFLAGS'
14758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14763 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14764 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14765 if test "$llvm_cv_c_printf_a" = "yes"; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_PRINTF_A 1
14774 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14775 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14776 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14790 char *p = (char *) arc4random;
14798 rm -f conftest.$ac_objext
14799 if { (ac_try="$ac_compile"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_compile") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1 >conftest.err
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_have_decl_arc4random=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_cv_have_decl_arc4random=no
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14842 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14843 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14844 if test $ac_cv_have_decl_arc4random = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847 #define HAVE_DECL_ARC4RANDOM 1
14852 cat >>confdefs.h <<_ACEOF
14853 #define HAVE_DECL_ARC4RANDOM 0
14861 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14862 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14863 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14872 $ac_includes_default
14877 char *p = (char *) strerror_s;
14885 rm -f conftest.$ac_objext
14886 if { (ac_try="$ac_compile"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_compile") 2>conftest.er1
14894 grep -v '^ *+' conftest.er1 >conftest.err
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_try") 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_cv_have_decl_strerror_s=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_cv_have_decl_strerror_s=no
14927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14930 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14931 if test $ac_cv_have_decl_strerror_s = yes; then
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_DECL_STRERROR_S 1
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_DECL_STRERROR_S 0
14948 if test "$llvm_cv_os_type" = "MingW" ; then
14949 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14950 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14951 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 ac_check_lib_save_LIBS=$LIBS
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14963 /* Override any GCC internal prototype to avoid an error.
14964 Use char because int might match the return type of a GCC
14965 builtin and then its argument prototype would still apply. */
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_cv_lib_gcc__alloca=yes
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ac_cv_lib_gcc__alloca=no
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15024 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15025 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15026 if test $ac_cv_lib_gcc__alloca = yes; then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE__ALLOCA 1
15034 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15035 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15036 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 ac_check_lib_save_LIBS=$LIBS
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15058 return __alloca ();
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_link") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_cv_lib_gcc___alloca=yes
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_cv_lib_gcc___alloca=no
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15110 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15111 if test $ac_cv_lib_gcc___alloca = yes; then
15113 cat >>confdefs.h <<\_ACEOF
15114 #define HAVE___ALLOCA 1
15119 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15120 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15121 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 ac_check_lib_save_LIBS=$LIBS
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15133 /* Override any GCC internal prototype to avoid an error.
15134 Use char because int might match the return type of a GCC
15135 builtin and then its argument prototype would still apply. */
15143 return __chkstk ();
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (ac_try="$ac_link"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
15157 grep -v '^ *+' conftest.er1 >conftest.err
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15163 { (case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_try") 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest$ac_exeext'
15173 { (case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_try") 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 ac_cv_lib_gcc___chkstk=yes
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15187 ac_cv_lib_gcc___chkstk=no
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15195 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15196 if test $ac_cv_lib_gcc___chkstk = yes; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE___CHKSTK 1
15204 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15205 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15206 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 ac_check_lib_save_LIBS=$LIBS
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15218 /* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15224 char __chkstk_ms ();
15228 return __chkstk_ms ();
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_link") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_lib_gcc___chkstk_ms=yes
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_gcc___chkstk_ms=no
15275 rm -f core conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LIBS=$ac_check_lib_save_LIBS
15279 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15280 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15281 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15283 cat >>confdefs.h <<\_ACEOF
15284 #define HAVE___CHKSTK_MS 1
15289 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15290 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15291 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 ac_check_lib_save_LIBS=$LIBS
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15313 return ___chkstk ();
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (ac_try="$ac_link"
15320 case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_link") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest$ac_exeext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_cv_lib_gcc____chkstk=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_cv_lib_gcc____chkstk=no
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15365 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15366 if test $ac_cv_lib_gcc____chkstk = yes; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE____CHKSTK 1
15374 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15375 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15376 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 ac_check_lib_save_LIBS=$LIBS
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15388 /* Override any GCC internal prototype to avoid an error.
15389 Use char because int might match the return type of a GCC
15390 builtin and then its argument prototype would still apply. */
15394 char ___chkstk_ms ();
15398 return ___chkstk_ms ();
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (ac_try="$ac_link"
15405 case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_link") 2>conftest.er1
15412 grep -v '^ *+' conftest.er1 >conftest.err
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_try") 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_lib_gcc____chkstk_ms=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_cv_lib_gcc____chkstk_ms=no
15445 rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15450 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15451 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE____CHKSTK_MS 1
15460 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15461 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15462 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 ac_check_lib_save_LIBS=$LIBS
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15474 /* Override any GCC internal prototype to avoid an error.
15475 Use char because int might match the return type of a GCC
15476 builtin and then its argument prototype would still apply. */
15484 return __ashldi3 ();
15489 rm -f conftest.$ac_objext conftest$ac_exeext
15490 if { (ac_try="$ac_link"
15491 case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_link") 2>conftest.er1
15498 grep -v '^ *+' conftest.er1 >conftest.err
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest$ac_exeext'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_lib_gcc___ashldi3=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_cv_lib_gcc___ashldi3=no
15531 rm -f core conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15536 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15537 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15539 cat >>confdefs.h <<\_ACEOF
15540 #define HAVE___ASHLDI3 1
15545 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15546 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15547 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 ac_check_lib_save_LIBS=$LIBS
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15559 /* Override any GCC internal prototype to avoid an error.
15560 Use char because int might match the return type of a GCC
15561 builtin and then its argument prototype would still apply. */
15569 return __ashrdi3 ();
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_link") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_lib_gcc___ashrdi3=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_cv_lib_gcc___ashrdi3=no
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 LIBS=$ac_check_lib_save_LIBS
15620 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15621 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15622 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15624 cat >>confdefs.h <<\_ACEOF
15625 #define HAVE___ASHRDI3 1
15630 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15631 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15632 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 ac_check_lib_save_LIBS=$LIBS
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15644 /* Override any GCC internal prototype to avoid an error.
15645 Use char because int might match the return type of a GCC
15646 builtin and then its argument prototype would still apply. */
15654 return __divdi3 ();
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15674 { (case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_try") 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; } &&
15683 { ac_try='test -s conftest$ac_exeext'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 ac_cv_lib_gcc___divdi3=yes
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 ac_cv_lib_gcc___divdi3=no
15701 rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 LIBS=$ac_check_lib_save_LIBS
15705 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15706 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15707 if test $ac_cv_lib_gcc___divdi3 = yes; then
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE___DIVDI3 1
15715 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15716 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15717 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 ac_check_lib_save_LIBS=$LIBS
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15729 /* Override any GCC internal prototype to avoid an error.
15730 Use char because int might match the return type of a GCC
15731 builtin and then its argument prototype would still apply. */
15739 return __fixdfdi ();
15744 rm -f conftest.$ac_objext conftest$ac_exeext
15745 if { (ac_try="$ac_link"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_link") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest$ac_exeext'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_cv_lib_gcc___fixdfdi=yes
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_cv_lib_gcc___fixdfdi=no
15786 rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15788 LIBS=$ac_check_lib_save_LIBS
15790 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15791 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15792 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE___FIXDFDI 1
15800 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15801 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15802 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_check_lib_save_LIBS=$LIBS
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15824 return __fixsfdi ();
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_link") 2>conftest.er1
15838 grep -v '^ *+' conftest.er1 >conftest.err
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15844 { (case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_try") 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try='test -s conftest$ac_exeext'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_lib_gcc___fixsfdi=yes
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_lib_gcc___fixsfdi=no
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15876 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15877 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE___FIXSFDI 1
15885 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15886 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15887 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_check_lib_save_LIBS=$LIBS
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15899 /* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15905 char __floatdidf ();
15909 return __floatdidf ();
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest$ac_exeext'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_lib_gcc___floatdidf=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_cv_lib_gcc___floatdidf=no
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15961 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15962 if test $ac_cv_lib_gcc___floatdidf = yes; then
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE___FLOATDIDF 1
15970 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15971 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15972 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 ac_check_lib_save_LIBS=$LIBS
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15994 return __lshrdi3 ();
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_lib_gcc___lshrdi3=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_cv_lib_gcc___lshrdi3=no
16041 rm -f core conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
16043 LIBS=$ac_check_lib_save_LIBS
16045 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16046 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16047 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE___LSHRDI3 1
16055 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16056 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16057 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 ac_check_lib_save_LIBS=$LIBS
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16079 return __moddi3 ();
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_cv_lib_gcc___moddi3=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_cv_lib_gcc___moddi3=no
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16131 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16132 if test $ac_cv_lib_gcc___moddi3 = yes; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE___MODDI3 1
16140 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16141 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16142 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_check_lib_save_LIBS=$LIBS
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 /* Override any GCC internal prototype to avoid an error.
16155 Use char because int might match the return type of a GCC
16156 builtin and then its argument prototype would still apply. */
16164 return __udivdi3 ();
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_link") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_lib_gcc___udivdi3=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_cv_lib_gcc___udivdi3=no
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_check_lib_save_LIBS
16215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16216 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16217 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define HAVE___UDIVDI3 1
16225 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16226 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16227 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 ac_check_lib_save_LIBS=$LIBS
16232 cat >conftest.$ac_ext <<_ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16239 /* Override any GCC internal prototype to avoid an error.
16240 Use char because int might match the return type of a GCC
16241 builtin and then its argument prototype would still apply. */
16249 return __umoddi3 ();
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (ac_try="$ac_link"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_link") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest$ac_exeext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_lib_gcc___umoddi3=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_lib_gcc___umoddi3=no
16296 rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16300 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16301 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16302 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE___UMODDI3 1
16311 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16312 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16313 if test "${ac_cv_lib_gcc___main+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 ac_check_lib_save_LIBS=$LIBS
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16325 /* Override any GCC internal prototype to avoid an error.
16326 Use char because int might match the return type of a GCC
16327 builtin and then its argument prototype would still apply. */
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (ac_try="$ac_link"
16342 case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_link") 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } &&
16364 { ac_try='test -s conftest$ac_exeext'
16365 { (case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_try") 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_lib_gcc___main=yes
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16379 ac_cv_lib_gcc___main=no
16382 rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384 LIBS=$ac_check_lib_save_LIBS
16386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16387 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16388 if test $ac_cv_lib_gcc___main = yes; then
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE___MAIN 1
16396 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16397 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16398 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 ac_check_lib_save_LIBS=$LIBS
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16410 /* Override any GCC internal prototype to avoid an error.
16411 Use char because int might match the return type of a GCC
16412 builtin and then its argument prototype would still apply. */
16420 return __cmpdi2 ();
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_link") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest$ac_exeext'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_lib_gcc___cmpdi2=yes
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_cv_lib_gcc___cmpdi2=no
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 LIBS=$ac_check_lib_save_LIBS
16471 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16472 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16473 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE___CMPDI2 1
16483 if test "$llvm_cv_os_type" = "MingW" ; then
16484 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16485 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16486 cat >conftest.$ac_ext <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 #include <windows.h>
16495 #include <imagehlp.h>
16496 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16497 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16501 rm -f conftest.$ac_objext
16502 if { (ac_try="$ac_compile"
16503 case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_compile") 2>conftest.er1
16510 grep -v '^ *+' conftest.er1 >conftest.err
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest.$ac_objext'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16536 { echo "$as_me:$LINENO: result: yes" >&5
16537 echo "${ECHO_T}yes" >&6; }
16538 llvm_cv_win32_elmcb_pcstr="PCSTR"
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16547 llvm_cv_win32_elmcb_pcstr="PSTR"
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 cat >>confdefs.h <<_ACEOF
16554 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16559 if test "$llvm_cv_platform_type" = "Unix" ; then
16562 for ac_header in stdlib.h unistd.h
16564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 ac_res=`eval echo '${'$as_ac_Header'}'`
16572 { echo "$as_me:$LINENO: result: $ac_res" >&5
16573 echo "${ECHO_T}$ac_res" >&6; }
16575 # Is the header compilable?
16576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16578 cat >conftest.$ac_ext <<_ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 $ac_includes_default
16585 #include <$ac_header>
16587 rm -f conftest.$ac_objext
16588 if { (ac_try="$ac_compile"
16589 case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_compile") 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_header_compiler=yes
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 ac_header_compiler=no
16629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16631 echo "${ECHO_T}$ac_header_compiler" >&6; }
16633 # Is the header present?
16634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16636 cat >conftest.$ac_ext <<_ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 #include <$ac_header>
16644 if { (ac_try="$ac_cpp conftest.$ac_ext"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16652 grep -v '^ *+' conftest.er1 >conftest.err
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } >/dev/null; then
16657 if test -s conftest.err; then
16658 ac_cpp_err=$ac_c_preproc_warn_flag
16659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16666 if test -z "$ac_cpp_err"; then
16667 ac_header_preproc=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_header_preproc=no
16675 rm -f conftest.err conftest.$ac_ext
16676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16677 echo "${ECHO_T}$ac_header_preproc" >&6; }
16679 # So? What about this header?
16680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16686 ac_header_preproc=yes
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16702 ## ------------------------------------ ##
16703 ## Report this to http://llvm.org/bugs/ ##
16704 ## ------------------------------------ ##
16706 ) | sed "s/^/$as_me: WARNING: /" >&2
16709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 eval "$as_ac_Header=\$ac_header_preproc"
16716 ac_res=`eval echo '${'$as_ac_Header'}'`
16717 { echo "$as_me:$LINENO: result: $ac_res" >&5
16718 echo "${ECHO_T}$ac_res" >&6; }
16721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16722 cat >>confdefs.h <<_ACEOF
16723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16731 for ac_func in getpagesize
16733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16747 #define $ac_func innocuous_$ac_func
16749 /* System header to define __stub macros and hopefully few prototypes,
16750 which can conflict with char $ac_func (); below.
16751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16752 <limits.h> exists even on freestanding compilers. */
16755 # include <limits.h>
16757 # include <assert.h>
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16769 /* The GNU C library defines this for functions which it implements
16770 to always fail with ENOSYS. Some functions are actually named
16771 something starting with __ and the normal name is an alias. */
16772 #if defined __stub_$ac_func || defined __stub___$ac_func
16779 return $ac_func ();
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_try") 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 eval "$as_ac_var=yes"
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 eval "$as_ac_var=no"
16826 rm -f core conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16829 ac_res=`eval echo '${'$as_ac_var'}'`
16830 { echo "$as_me:$LINENO: result: $ac_res" >&5
16831 echo "${ECHO_T}$ac_res" >&6; }
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16840 { echo "$as_me:$LINENO: checking for working mmap" >&5
16841 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16842 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 if test "$cross_compiling" = yes; then
16846 ac_cv_func_mmap_fixed_mapped=no
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 $ac_includes_default
16855 /* malloc might have been renamed as rpl_malloc. */
16858 /* Thanks to Mike Haertel and Jim Avera for this test.
16859 Here is a matrix of mmap possibilities:
16860 mmap private not fixed
16861 mmap private fixed at somewhere currently unmapped
16862 mmap private fixed at somewhere already mapped
16863 mmap shared not fixed
16864 mmap shared fixed at somewhere currently unmapped
16865 mmap shared fixed at somewhere already mapped
16866 For private mappings, we should verify that changes cannot be read()
16867 back from the file, nor mmap's back from the file at a different
16868 address. (There have been systems where private was not correctly
16869 implemented like the infamous i386 svr4.0, and systems where the
16870 VM page cache was not coherent with the file system buffer cache
16871 like early versions of FreeBSD and possibly contemporary NetBSD.)
16872 For shared mappings, we should conversely verify that changes get
16873 propagated back to all the places they're supposed to be.
16875 Grep wants private fixed already mapped.
16876 The main things grep needs to know about mmap are:
16877 * does it exist and is it safe to write into the mmap'd area
16878 * how to use it (BSD variants) */
16881 #include <sys/mman.h>
16883 #if !STDC_HEADERS && !HAVE_STDLIB_H
16887 /* This mess was copied from the GNU getpagesize.h. */
16888 #if !HAVE_GETPAGESIZE
16889 /* Assume that all systems that can run configure have sys/param.h. */
16890 # if !HAVE_SYS_PARAM_H
16891 # define HAVE_SYS_PARAM_H 1
16894 # ifdef _SC_PAGESIZE
16895 # define getpagesize() sysconf(_SC_PAGESIZE)
16896 # else /* no _SC_PAGESIZE */
16897 # if HAVE_SYS_PARAM_H
16898 # include <sys/param.h>
16899 # ifdef EXEC_PAGESIZE
16900 # define getpagesize() EXEC_PAGESIZE
16901 # else /* no EXEC_PAGESIZE */
16903 # define getpagesize() NBPG * CLSIZE
16906 # endif /* no CLSIZE */
16907 # else /* no NBPG */
16909 # define getpagesize() NBPC
16910 # else /* no NBPC */
16912 # define getpagesize() PAGESIZE
16913 # endif /* PAGESIZE */
16914 # endif /* no NBPC */
16915 # endif /* no NBPG */
16916 # endif /* no EXEC_PAGESIZE */
16917 # else /* no HAVE_SYS_PARAM_H */
16918 # define getpagesize() 8192 /* punt totally */
16919 # endif /* no HAVE_SYS_PARAM_H */
16920 # endif /* no _SC_PAGESIZE */
16922 #endif /* no HAVE_GETPAGESIZE */
16927 char *data, *data2, *data3;
16931 pagesize = getpagesize ();
16933 /* First, make a file with some known garbage in it. */
16934 data = (char *) malloc (pagesize);
16937 for (i = 0; i < pagesize; ++i)
16938 *(data + i) = rand ();
16940 fd = creat ("conftest.mmap", 0600);
16943 if (write (fd, data, pagesize) != pagesize)
16947 /* Next, try to mmap the file at a fixed address which already has
16948 something else allocated at it. If we can, also make sure that
16949 we see the same garbage. */
16950 fd = open ("conftest.mmap", O_RDWR);
16953 data2 = (char *) malloc (2 * pagesize);
16956 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16957 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16958 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16960 for (i = 0; i < pagesize; ++i)
16961 if (*(data + i) != *(data2 + i))
16964 /* Finally, make sure that changes to the mapped area do not
16965 percolate back to the file as seen by read(). (This is a bug on
16966 some variants of i386 svr4.0.) */
16967 for (i = 0; i < pagesize; ++i)
16968 *(data2 + i) = *(data2 + i) + 1;
16969 data3 = (char *) malloc (pagesize);
16972 if (read (fd, data3, pagesize) != pagesize)
16974 for (i = 0; i < pagesize; ++i)
16975 if (*(data + i) != *(data3 + i))
16981 rm -f conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_cv_func_mmap_fixed_mapped=yes
17003 echo "$as_me: program exited with status $ac_status" >&5
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ( exit $ac_status )
17008 ac_cv_func_mmap_fixed_mapped=no
17010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17016 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17017 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17019 cat >>confdefs.h <<\_ACEOF
17020 #define HAVE_MMAP 1
17024 rm -f conftest.mmap
17026 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17027 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17028 if test "${ac_cv_func_mmap_file+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 ac_cpp='$CPP $CPPFLAGS'
17033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17037 if test "$cross_compiling" = yes; then
17038 ac_cv_func_mmap_file=no
17040 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17048 #include <sys/types.h>
17049 #include <sys/mman.h>
17057 fd = creat ("foo",0777);
17058 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17060 return (fd != (int) MAP_FAILED);
17065 rm -f conftest$ac_exeext
17066 if { (ac_try="$ac_link"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_link") 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_func_mmap_file=yes
17087 echo "$as_me: program exited with status $ac_status" >&5
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 ( exit $ac_status )
17092 ac_cv_func_mmap_file=no
17094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17099 ac_cpp='$CPP $CPPFLAGS'
17100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17107 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17108 if test "$ac_cv_func_mmap_file" = yes; then
17110 cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_MMAP_FILE
17118 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17119 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17120 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 if test "$llvm_cv_os_type" = "Interix" ; then
17124 ac_cv_need_dev_zero_for_mmap=yes
17126 ac_cv_need_dev_zero_for_mmap=no
17130 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17131 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17132 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17134 cat >>confdefs.h <<\_ACEOF
17135 #define NEED_DEV_ZERO_FOR_MMAP 1
17140 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17142 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17143 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17145 if test "$ac_cv_func_mmap_file" = "no"
17147 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17148 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17152 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17153 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17155 ac_cpp='$CXXCPP $CPPFLAGS'
17156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17160 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17169 volatile unsigned long val = 1;
17170 __sync_synchronize();
17171 __sync_val_compare_and_swap(&val, 1, 0);
17172 __sync_add_and_fetch(&val, 1);
17173 __sync_sub_and_fetch(&val, 1);
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1 >conftest.err
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17194 { (case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_try") 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17214 { echo "$as_me:$LINENO: result: yes" >&5
17215 echo "${ECHO_T}yes" >&6; }
17217 cat >>confdefs.h <<\_ACEOF
17218 #define LLVM_HAS_ATOMICS 1
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17227 { echo "$as_me:$LINENO: result: no" >&5
17228 echo "${ECHO_T}no" >&6; }
17230 cat >>confdefs.h <<\_ACEOF
17231 #define LLVM_HAS_ATOMICS 0
17234 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17235 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext 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 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17250 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17251 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17252 if test "${llvm_cv_linux_mixed+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17268 error: Not x86-64 even if uname says so!
17279 rm -f conftest.$ac_objext
17280 if { (ac_try="$ac_compile"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_compile") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
17304 { (case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_try") 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 llvm_cv_linux_mixed=no
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 llvm_cv_linux_mixed=yes
17321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323 ac_cpp='$CPP $CPPFLAGS'
17324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17330 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17331 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17333 if test "$llvm_cv_linux_mixed" = "yes"; then
17334 llvm_cv_target_arch="x86"
17340 for ac_func in __dso_handle
17342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_$ac_func || defined __stub___$ac_func
17388 return $ac_func ();
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 eval "$as_ac_var=yes"
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 eval "$as_ac_var=no"
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17438 ac_res=`eval echo '${'$as_ac_var'}'`
17439 { echo "$as_me:$LINENO: result: $ac_res" >&5
17440 echo "${ECHO_T}$ac_res" >&6; }
17441 if test `eval echo '${'$as_ac_var'}'` = yes; then
17442 cat >>confdefs.h <<_ACEOF
17443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 SHLIBEXT=$llvm_shlib_ext
17453 if test "${prefix}" = "NONE" ; then
17454 prefix="/usr/local"
17456 eval LLVM_PREFIX="${prefix}";
17457 eval LLVM_BINDIR="${prefix}/bin";
17458 eval LLVM_DATADIR="${prefix}/share/llvm";
17459 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17460 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17461 eval LLVM_INCLUDEDIR="${prefix}/include";
17462 eval LLVM_INFODIR="${prefix}/info";
17463 eval LLVM_MANDIR="${prefix}/man";
17464 LLVM_CONFIGTIME=`date`
17475 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17476 LLVM_CONFIGTIME="(timestamp not enabled)"
17480 cat >>confdefs.h <<_ACEOF
17481 #define LLVM_PREFIX "$LLVM_PREFIX"
17485 cat >>confdefs.h <<_ACEOF
17486 #define LLVM_BINDIR "$LLVM_BINDIR"
17490 cat >>confdefs.h <<_ACEOF
17491 #define LLVM_DATADIR "$LLVM_DATADIR"
17495 cat >>confdefs.h <<_ACEOF
17496 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17500 cat >>confdefs.h <<_ACEOF
17501 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17505 cat >>confdefs.h <<_ACEOF
17506 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17510 cat >>confdefs.h <<_ACEOF
17511 #define LLVM_INFODIR "$LLVM_INFODIR"
17515 cat >>confdefs.h <<_ACEOF
17516 #define LLVM_MANDIR "$LLVM_MANDIR"
17520 cat >>confdefs.h <<_ACEOF
17521 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17525 cat >>confdefs.h <<_ACEOF
17526 #define LLVM_HOST_TRIPLE "$host"
17530 cat >>confdefs.h <<_ACEOF
17531 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17535 if test "$BINDINGS_TO_BUILD" = auto ; then
17536 BINDINGS_TO_BUILD=""
17537 if test "x$OCAMLFIND" != x ; then
17538 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17540 if test "x$GO" != x ; then
17541 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17542 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17546 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17549 binding_prereqs_failed=0
17550 for a_binding in $BINDINGS_TO_BUILD ; do
17551 case "$a_binding" in
17553 if test "x$OCAMLFIND" = x ; then
17554 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17555 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17556 binding_prereqs_failed=1
17559 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17566 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17567 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17568 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17569 binding_prereqs_failed=1
17572 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17576 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17577 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17581 if test "x$with_ocaml_libdir" != xauto ; then
17582 OCAML_LIBDIR=$with_ocaml_libdir
17585 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17586 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17588 # ocaml stdlib is beneath our prefix; use stdlib
17589 OCAML_LIBDIR=$ocaml_stdlib
17592 # ocaml stdlib is outside our prefix; use libdir/ocaml
17593 OCAML_LIBDIR=${prefix}/lib/ocaml
17599 if test "x$GO" = x ; then
17600 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17601 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17602 binding_prereqs_failed=1
17604 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17607 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17608 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17609 binding_prereqs_failed=1
17615 if test "$binding_prereqs_failed" = 1 ; then
17616 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17617 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17618 { (exit 1); exit 1; }; }
17621 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17622 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17623 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 ac_cpp='$CXXCPP $CPPFLAGS'
17628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17632 oldcxxflags="$CXXFLAGS"
17633 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17664 { (case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_try") 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; }; then
17683 llvm_cv_cxx_visibility_inlines_hidden=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 llvm_cv_cxx_visibility_inlines_hidden=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 CXXFLAGS="$oldcxxflags"
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17702 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17703 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17704 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17707 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17712 if test "$llvm_cv_link_use_r" = "yes" ; then
17719 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17720 RDYNAMIC="-rdynamic"
17727 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17734 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17736 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17738 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17740 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17742 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
17745 ac_config_files="$ac_config_files Makefile.config"
17748 ac_config_files="$ac_config_files llvm.spec"
17751 ac_config_files="$ac_config_files docs/doxygen.cfg"
17754 if test "${clang_src_root}" = ""; then
17755 clang_src_root="$srcdir/tools/clang"
17757 if test -f ${clang_src_root}/README.txt; then
17759 cat >>confdefs.h <<_ACEOF
17760 #define CLANG_LIBDIR_SUFFIX ""
17764 configh="include/clang/Config/config.h"
17765 doxy="docs/doxygen.cfg"
17766 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
17768 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
17772 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
17775 test "x$program_prefix" = "xNONE" && program_prefix=""
17779 ac_config_commands="$ac_config_commands setup"
17781 ac_config_commands="$ac_config_commands Makefile"
17784 ac_config_commands="$ac_config_commands Makefile.common"
17787 ac_config_commands="$ac_config_commands examples/Makefile"
17790 ac_config_commands="$ac_config_commands lib/Makefile"
17793 ac_config_commands="$ac_config_commands test/Makefile"
17796 ac_config_commands="$ac_config_commands test/Makefile.tests"
17799 ac_config_commands="$ac_config_commands unittests/Makefile"
17802 ac_config_commands="$ac_config_commands tools/Makefile"
17805 ac_config_commands="$ac_config_commands utils/Makefile"
17808 ac_config_commands="$ac_config_commands projects/Makefile"
17811 ac_config_commands="$ac_config_commands bindings/Makefile"
17814 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17818 cat >confcache <<\_ACEOF
17819 # This file is a shell script that caches the results of configure
17820 # tests run on this system so they can be shared between configure
17821 # scripts and configure runs, see configure's option --config-cache.
17822 # It is not useful on other systems. If it contains results you don't
17823 # want to keep, you may remove or edit it.
17825 # config.status only pays attention to the cache file if you give it
17826 # the --recheck option to rerun configure.
17828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17830 # following values.
17834 # The following way of writing the cache mishandles newlines in values,
17835 # but we know of no workaround that is simple, portable, and efficient.
17836 # So, we kill variables containing newlines.
17837 # Ultrix sh set writes to stderr and can't be redirected directly,
17838 # and sets the high bit in the cache file unless we assign to the vars.
17840 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17841 eval ac_val=\$$ac_var
17845 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17846 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17849 _ | IFS | as_nl) ;; #(
17850 *) $as_unset $ac_var ;;
17856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17857 *${as_nl}ac_space=\ *)
17858 # `set' does not quote correctly, so add quotes (double-quote
17859 # substitution turns \\\\ into \\, and sed turns \\ into \).
17862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17865 # `set' quotes correctly as required by POSIX, so do not add quotes.
17866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17880 if test -w "$cache_file"; then
17881 test "x$cache_file" != "x/dev/null" &&
17882 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17883 echo "$as_me: updating cache $cache_file" >&6;}
17884 cat confcache >$cache_file
17886 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17887 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17893 # Let make expand exec_prefix.
17894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17896 DEFS=-DHAVE_CONFIG_H
17900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17901 # 1. Remove the extension, and $U if already installed.
17902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17903 ac_i=`echo "$ac_i" | sed "$ac_script"`
17904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17905 # will be set to the directory where LIBOBJS objects are built.
17906 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17907 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17909 LIBOBJS=$ac_libobjs
17911 LTLIBOBJS=$ac_ltlibobjs
17915 : ${CONFIG_STATUS=./config.status}
17916 ac_clean_files_save=$ac_clean_files
17917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17920 cat >$CONFIG_STATUS <<_ACEOF
17922 # Generated by $as_me.
17923 # Run this file to recreate the current configuration.
17924 # Compiler output produced by configure, useful for debugging
17925 # configure, is in config.log if it exists.
17928 ac_cs_recheck=false
17930 SHELL=\${CONFIG_SHELL-$SHELL}
17933 cat >>$CONFIG_STATUS <<\_ACEOF
17934 ## --------------------- ##
17935 ## M4sh Initialization. ##
17936 ## --------------------- ##
17938 # Be Bourne compatible
17939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17943 # is contrary to our usage. Disable this feature.
17944 alias -g '${1+"$@"}'='"$@"'
17945 setopt NO_GLOB_SUBST
17947 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17949 BIN_SH=xpg4; export BIN_SH # for Tru64
17950 DUALCASE=1; export DUALCASE # for MKS sh
17954 # Avoid depending upon Character Ranges.
17955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17958 as_cr_digits='0123456789'
17959 as_cr_alnum=$as_cr_Letters$as_cr_digits
17961 # The user is always right.
17962 if test "${PATH_SEPARATOR+set}" != set; then
17963 echo "#! /bin/sh" >conf$$.sh
17964 echo "exit 0" >>conf$$.sh
17966 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17974 # Support unset when possible.
17975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17983 # We need space, tab and new line, in precisely that order. Quoting is
17984 # there to prevent editors from complaining about space-tab.
17985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17986 # splitting by setting IFS to empty value.)
17991 # Find who we are. Look in the path if we contain no directory separator.
17993 *[\\/]* ) as_myself=$0 ;;
17994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17998 test -z "$as_dir" && as_dir=.
17999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18005 # We did not find ourselves, most probably we were run as `sh COMMAND'
18006 # in which case we are not to be found in the path.
18007 if test "x$as_myself" = x; then
18010 if test ! -f "$as_myself"; then
18011 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18012 { (exit 1); exit 1; }
18015 # Work around bugs in pre-3.0 UWIN ksh.
18016 for as_var in ENV MAIL MAILPATH
18017 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18025 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18026 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18027 LC_TELEPHONE LC_TIME
18029 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18030 eval $as_var=C; export $as_var
18032 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18036 # Required to use basename.
18037 if expr a : '\(a\)' >/dev/null 2>&1 &&
18038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18045 as_basename=basename
18051 # Name of the executable.
18052 as_me=`$as_basename -- "$0" ||
18053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18054 X"$0" : 'X\(//\)$' \| \
18055 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18057 sed '/^.*\/\([^/][^/]*\)\/*$/{
18076 as_lineno_1=$LINENO
18077 as_lineno_2=$LINENO
18078 test "x$as_lineno_1" != "x$as_lineno_2" &&
18079 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18081 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18082 # uniformly replaced by the line number. The first 'sed' inserts a
18083 # line-number line after each line using $LINENO; the second 'sed'
18084 # does the real work. The second script uses 'N' to pair each
18085 # line-number line with the line containing $LINENO, and appends
18086 # trailing '-' during substitution so that $LINENO is not a special
18087 # case at line end.
18088 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18089 # scripts with optimization help from Paolo Bonzini. Blame Lee
18090 # E. McMahon (1931-1989) for sed's syntax. :-)
18102 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18105 ' >$as_me.lineno &&
18106 chmod +x "$as_me.lineno" ||
18107 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18108 { (exit 1); exit 1; }; }
18110 # Don't try to exec as it changes $[0], causing all sort of problems
18111 # (the dirname of $[0] is not the place where we might find the
18112 # original and so on. Autoconf is especially sensitive to this).
18113 . "./$as_me.lineno"
18114 # Exit status is that of the last command.
18119 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18125 ECHO_C= ECHO_N= ECHO_T=
18126 case `echo -n x` in
18128 case `echo 'x\c'` in
18129 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18136 if expr a : '\(a\)' >/dev/null 2>&1 &&
18137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18143 rm -f conf$$ conf$$.exe conf$$.file
18144 if test -d conf$$.dir; then
18145 rm -f conf$$.dir/conf$$.file
18151 if ln -s conf$$.file conf$$ 2>/dev/null; then
18153 # ... but there are two gotchas:
18154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18156 # In both cases, we have to default to `cp -p'.
18157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18159 elif ln conf$$.file conf$$ 2>/dev/null; then
18164 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18165 rmdir conf$$.dir 2>/dev/null
18167 if mkdir -p . 2>/dev/null; then
18170 test -d ./-p && rmdir ./-p
18174 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18175 # systems may use methods other than mode bits to determine executability.
18176 cat >conf$$.file <<_ASEOF
18180 chmod +x conf$$.file
18181 if test -x conf$$.file >/dev/null 2>&1; then
18182 as_executable_p="test -x"
18188 # Sed expression to map a string onto a valid CPP name.
18189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18191 # Sed expression to map a string onto a valid variable name.
18192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18197 # Save the log message, to keep $[0] and so on meaningful, and to
18198 # report actual input values of CONFIG_FILES etc. instead of their
18199 # values after options handling.
18201 This file was extended by LLVM $as_me 3.8.0svn, which was
18202 generated by GNU Autoconf 2.60. Invocation command line was
18204 CONFIG_FILES = $CONFIG_FILES
18205 CONFIG_HEADERS = $CONFIG_HEADERS
18206 CONFIG_LINKS = $CONFIG_LINKS
18207 CONFIG_COMMANDS = $CONFIG_COMMANDS
18210 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18215 cat >>$CONFIG_STATUS <<_ACEOF
18216 # Files that config.status was made for.
18217 config_files="$ac_config_files"
18218 config_headers="$ac_config_headers"
18219 config_commands="$ac_config_commands"
18223 cat >>$CONFIG_STATUS <<\_ACEOF
18225 \`$as_me' instantiates files from templates according to the
18226 current configuration.
18228 Usage: $0 [OPTIONS] [FILE]...
18230 -h, --help print this help, then exit
18231 -V, --version print version number, then exit
18232 -q, --quiet do not print progress messages
18233 -d, --debug don't remove temporary files
18234 --recheck update $as_me by reconfiguring in the same conditions
18235 --file=FILE[:TEMPLATE]
18236 instantiate the configuration file FILE
18237 --header=FILE[:TEMPLATE]
18238 instantiate the configuration header FILE
18240 Configuration files:
18243 Configuration headers:
18246 Configuration commands:
18249 Report bugs to <bug-autoconf@gnu.org>."
18252 cat >>$CONFIG_STATUS <<_ACEOF
18254 LLVM config.status 3.8.0svn
18255 configured by $0, generated by GNU Autoconf 2.60,
18256 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18258 Copyright (C) 2006 Free Software Foundation, Inc.
18259 This config.status script is free software; the Free Software Foundation
18260 gives unlimited permission to copy, distribute and modify it."
18267 cat >>$CONFIG_STATUS <<\_ACEOF
18268 # If no file are specified by the user, then we need to provide default
18269 # value. By we need to know if files were specified by the user.
18275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18287 # Handling of the options.
18288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18291 echo "$ac_cs_version"; exit ;;
18292 --debug | --debu | --deb | --de | --d | -d )
18294 --file | --fil | --fi | --f )
18296 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18297 ac_need_defaults=false;;
18298 --header | --heade | --head | --hea )
18300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18301 ac_need_defaults=false;;
18303 # Conflict between --help and --header
18304 { echo "$as_me: error: ambiguous option: $1
18305 Try \`$0 --help' for more information." >&2
18306 { (exit 1); exit 1; }; };;
18307 --help | --hel | -h )
18308 echo "$ac_cs_usage"; exit ;;
18309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18313 # This is an error.
18314 -*) { echo "$as_me: error: unrecognized option: $1
18315 Try \`$0 --help' for more information." >&2
18316 { (exit 1); exit 1; }; } ;;
18318 *) ac_config_targets="$ac_config_targets $1"
18319 ac_need_defaults=false ;;
18325 ac_configure_extra_args=
18327 if $ac_cs_silent; then
18329 ac_configure_extra_args="$ac_configure_extra_args --silent"
18333 cat >>$CONFIG_STATUS <<_ACEOF
18334 if \$ac_cs_recheck; then
18335 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18336 CONFIG_SHELL=$SHELL
18337 export CONFIG_SHELL
18338 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18342 cat >>$CONFIG_STATUS <<\_ACEOF
18346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18347 ## Running $as_me. ##
18353 cat >>$CONFIG_STATUS <<_ACEOF
18357 llvm_src="${srcdir}"
18361 cat >>$CONFIG_STATUS <<\_ACEOF
18363 # Handling of arguments.
18364 for ac_config_target in $ac_config_targets
18366 case $ac_config_target in
18367 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18368 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18369 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18370 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18371 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18372 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18373 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18374 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18375 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18376 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18377 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18378 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18379 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18380 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18381 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18382 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18383 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18384 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18385 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18386 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18387 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18388 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18389 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18390 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18391 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18392 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18394 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18395 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18396 { (exit 1); exit 1; }; };;
18401 # If the user did not use the arguments to specify the items to instantiate,
18402 # then the envvar interface is used. Set only those that are not.
18403 # We use the long form for the default assignment because of an extremely
18404 # bizarre bug on SunOS 4.1.3.
18405 if $ac_need_defaults; then
18406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18411 # Have a temporary directory for convenience. Make it in the build tree
18412 # simply because there is no reason against having it here, and in addition,
18413 # creating and moving files from /tmp can sometimes cause problems.
18414 # Hook for its removal unless debugging.
18415 # Note that there is a small window in which the directory will not be cleaned:
18416 # after its creation but before its name has been assigned to `$tmp'.
18420 trap 'exit_status=$?
18421 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18423 trap '{ (exit 1); exit 1; }' 1 2 13 15
18425 # Create a (secure) tmp directory for tmp files.
18428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18429 test -n "$tmp" && test -d "$tmp"
18432 tmp=./conf$$-$RANDOM
18433 (umask 077 && mkdir "$tmp")
18436 echo "$me: cannot create a temporary directory in ." >&2
18437 { (exit 1); exit 1; }
18441 # Set up the sed scripts for CONFIG_FILES section.
18444 # No need to generate the scripts if there are no CONFIG_FILES.
18445 # This happens for instance when ./config.status config.h
18446 if test -n "$CONFIG_FILES"; then
18453 for ac_last_try in false false false false false :; do
18454 cat >conf$$subs.sed <<_ACEOF
18455 SHELL!$SHELL$ac_delim
18456 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18457 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18458 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18459 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18460 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18461 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18462 exec_prefix!$exec_prefix$ac_delim
18463 prefix!$prefix$ac_delim
18464 program_transform_name!$program_transform_name$ac_delim
18465 bindir!$bindir$ac_delim
18466 sbindir!$sbindir$ac_delim
18467 libexecdir!$libexecdir$ac_delim
18468 datarootdir!$datarootdir$ac_delim
18469 datadir!$datadir$ac_delim
18470 sysconfdir!$sysconfdir$ac_delim
18471 sharedstatedir!$sharedstatedir$ac_delim
18472 localstatedir!$localstatedir$ac_delim
18473 includedir!$includedir$ac_delim
18474 oldincludedir!$oldincludedir$ac_delim
18475 docdir!$docdir$ac_delim
18476 infodir!$infodir$ac_delim
18477 htmldir!$htmldir$ac_delim
18478 dvidir!$dvidir$ac_delim
18479 pdfdir!$pdfdir$ac_delim
18480 psdir!$psdir$ac_delim
18481 libdir!$libdir$ac_delim
18482 localedir!$localedir$ac_delim
18483 mandir!$mandir$ac_delim
18484 DEFS!$DEFS$ac_delim
18485 ECHO_C!$ECHO_C$ac_delim
18486 ECHO_N!$ECHO_N$ac_delim
18487 ECHO_T!$ECHO_T$ac_delim
18488 LIBS!$LIBS$ac_delim
18489 build_alias!$build_alias$ac_delim
18490 host_alias!$host_alias$ac_delim
18491 target_alias!$target_alias$ac_delim
18492 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18493 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18494 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18495 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18496 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18498 CFLAGS!$CFLAGS$ac_delim
18499 LDFLAGS!$LDFLAGS$ac_delim
18500 CPPFLAGS!$CPPFLAGS$ac_delim
18501 ac_ct_CC!$ac_ct_CC$ac_delim
18502 EXEEXT!$EXEEXT$ac_delim
18503 OBJEXT!$OBJEXT$ac_delim
18505 CXXFLAGS!$CXXFLAGS$ac_delim
18506 ac_ct_CXX!$ac_ct_CXX$ac_delim
18508 CXX_COMPILER!$CXX_COMPILER$ac_delim
18509 subdirs!$subdirs$ac_delim
18510 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18511 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18512 build!$build$ac_delim
18513 build_cpu!$build_cpu$ac_delim
18514 build_vendor!$build_vendor$ac_delim
18515 build_os!$build_os$ac_delim
18516 host!$host$ac_delim
18517 host_cpu!$host_cpu$ac_delim
18518 host_vendor!$host_vendor$ac_delim
18519 host_os!$host_os$ac_delim
18520 target!$target$ac_delim
18521 target_cpu!$target_cpu$ac_delim
18522 target_vendor!$target_vendor$ac_delim
18523 target_os!$target_os$ac_delim
18525 HOST_OS!$HOST_OS$ac_delim
18526 TARGET_OS!$TARGET_OS$ac_delim
18527 LINKALL!$LINKALL$ac_delim
18528 NOLINKALL!$NOLINKALL$ac_delim
18529 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18530 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18531 ARCH!$ARCH$ac_delim
18532 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18533 HOST_ARCH!$HOST_ARCH$ac_delim
18534 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18535 BUILD_CC!$BUILD_CC$ac_delim
18536 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18537 BUILD_CXX!$BUILD_CXX$ac_delim
18538 CVSBUILD!$CVSBUILD$ac_delim
18539 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18540 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18541 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18542 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18543 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18544 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18545 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18546 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18547 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18548 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18549 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18550 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18551 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18556 elif $ac_last_try; then
18557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18559 { (exit 1); exit 1; }; }
18561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18566 if test -n "$ac_eof"; then
18567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18568 ac_eof=`expr $ac_eof + 1`
18571 cat >>$CONFIG_STATUS <<_ACEOF
18572 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18577 s/^/s,@/; s/!/@,|#_!!_#|/
18580 s/'"$ac_delim"'$/,g/; t
18582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18583 ' >>$CONFIG_STATUS <conf$$subs.sed
18584 rm -f conf$$subs.sed
18585 cat >>$CONFIG_STATUS <<_ACEOF
18591 for ac_last_try in false false false false false :; do
18592 cat >conf$$subs.sed <<_ACEOF
18593 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18594 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18595 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18597 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18598 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18599 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18600 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18601 enable_searchengine!$enable_searchengine$ac_delim
18602 enable_external_search!$enable_external_search$ac_delim
18603 enable_server_based_search!$enable_server_based_search$ac_delim
18604 searchengine_url!$searchengine_url$ac_delim
18605 extra_search_mappings!$extra_search_mappings$ac_delim
18606 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18607 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18608 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18609 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18610 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18611 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18612 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18613 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18614 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18615 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18616 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18617 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18618 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18619 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18620 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18621 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18622 ENABLE_PIC!$ENABLE_PIC$ac_delim
18623 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18624 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18625 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18626 ALL_TARGETS!$ALL_TARGETS$ac_delim
18627 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18628 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18629 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18630 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18631 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18632 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18633 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18634 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18635 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18636 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18637 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18638 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18639 ifGNUmake!$ifGNUmake$ac_delim
18640 LN_S!$LN_S$ac_delim
18644 DATE!$DATE$ac_delim
18645 FIND!$FIND$ac_delim
18646 GREP!$GREP$ac_delim
18647 MKDIR!$MKDIR$ac_delim
18649 RANLIB!$RANLIB$ac_delim
18654 BINPWD!$BINPWD$ac_delim
18656 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18657 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18658 INSTALL_DATA!$INSTALL_DATA$ac_delim
18659 BZIP2!$BZIP2$ac_delim
18661 DOXYGEN!$DOXYGEN$ac_delim
18662 GROFF!$GROFF$ac_delim
18663 GZIPBIN!$GZIPBIN$ac_delim
18664 PDFROFF!$PDFROFF$ac_delim
18667 OCAMLFIND!$OCAMLFIND$ac_delim
18669 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18670 EGREP!$EGREP$ac_delim
18671 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18672 MISSING_FIELD_INITIALIZERS!$MISSING_FIELD_INITIALIZERS$ac_delim
18673 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18674 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18675 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18676 NO_COMMENT!$NO_COMMENT$ac_delim
18677 PYTHON!$PYTHON$ac_delim
18678 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18679 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18680 USE_OPROFILE!$USE_OPROFILE$ac_delim
18681 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18682 XML2CONFIG!$XML2CONFIG$ac_delim
18683 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18684 LIBXML2_INC!$LIBXML2_INC$ac_delim
18685 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18686 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18687 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18688 MMAP_FILE!$MMAP_FILE$ac_delim
18689 SHLIBEXT!$SHLIBEXT$ac_delim
18692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18694 elif $ac_last_try; then
18695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18697 { (exit 1); exit 1; }; }
18699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18704 if test -n "$ac_eof"; then
18705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18706 ac_eof=`expr $ac_eof + 1`
18709 cat >>$CONFIG_STATUS <<_ACEOF
18710 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18715 s/^/s,@/; s/!/@,|#_!!_#|/
18718 s/'"$ac_delim"'$/,g/; t
18720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18721 ' >>$CONFIG_STATUS <conf$$subs.sed
18722 rm -f conf$$subs.sed
18723 cat >>$CONFIG_STATUS <<_ACEOF
18729 for ac_last_try in false false false false false :; do
18730 cat >conf$$subs.sed <<_ACEOF
18731 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18732 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18733 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18734 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18735 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18736 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18737 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18738 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18739 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18740 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18741 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18742 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18743 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18744 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18745 RPATH!$RPATH$ac_delim
18746 RDYNAMIC!$RDYNAMIC$ac_delim
18747 program_prefix!$program_prefix$ac_delim
18748 LIBOBJS!$LIBOBJS$ac_delim
18749 LTLIBOBJS!$LTLIBOBJS$ac_delim
18752 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
18754 elif $ac_last_try; then
18755 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18756 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18757 { (exit 1); exit 1; }; }
18759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18763 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18764 if test -n "$ac_eof"; then
18765 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18766 ac_eof=`expr $ac_eof + 1`
18769 cat >>$CONFIG_STATUS <<_ACEOF
18770 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18774 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18775 s/^/s,@/; s/!/@,|#_!!_#|/
18778 s/'"$ac_delim"'$/,g/; t
18780 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18781 ' >>$CONFIG_STATUS <conf$$subs.sed
18782 rm -f conf$$subs.sed
18783 cat >>$CONFIG_STATUS <<_ACEOF
18790 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18791 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18792 # trailing colons and then remove the whole line if VPATH becomes empty
18793 # (actually we leave an empty line to preserve line numbers).
18794 if test "x$srcdir" = x.; then
18795 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18796 s/:*\$(srcdir):*/:/
18797 s/:*\${srcdir}:*/:/
18799 s/^\([^=]*=[ ]*\):*/\1/
18805 cat >>$CONFIG_STATUS <<\_ACEOF
18806 fi # test -n "$CONFIG_FILES"
18809 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18812 :[FHLC]) ac_mode=$ac_tag; continue;;
18814 case $ac_mode$ac_tag in
18816 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18817 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18818 { (exit 1); exit 1; }; };;
18819 :[FH]-) ac_tag=-:-;;
18820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18837 -) ac_f="$tmp/stdin";;
18838 *) # Look for the file first in the build tree, then in the source tree
18839 # (if the path is not absolute). The absolute path cannot be DOS-style,
18840 # because $ac_f cannot contain `:'.
18844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18846 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18847 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18848 { (exit 1); exit 1; }; };;
18850 ac_file_inputs="$ac_file_inputs $ac_f"
18853 # Let's still pretend it is `configure' which instantiates (i.e., don't
18854 # use $as_me), people would be surprised to read:
18855 # /* config.h. Generated by config.status. */
18856 configure_input="Generated from "`IFS=:
18857 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18858 if test x"$ac_file" != x-; then
18859 configure_input="$ac_file. $configure_input"
18860 { echo "$as_me:$LINENO: creating $ac_file" >&5
18861 echo "$as_me: creating $ac_file" >&6;}
18865 *:-:* | *:-) cat >"$tmp/stdin";;
18870 ac_dir=`$as_dirname -- "$ac_file" ||
18871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872 X"$ac_file" : 'X\(//\)[^/]' \| \
18873 X"$ac_file" : 'X\(//\)$' \| \
18874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18880 /^X\(\/\/\)[^/].*/{
18895 -*) as_dir=./$as_dir;;
18897 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18901 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18902 *) as_qdir=$as_dir;;
18904 as_dirs="'$as_qdir' $as_dirs"
18905 as_dir=`$as_dirname -- "$as_dir" ||
18906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18907 X"$as_dir" : 'X\(//\)[^/]' \| \
18908 X"$as_dir" : 'X\(//\)$' \| \
18909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18915 /^X\(\/\/\)[^/].*/{
18928 test -d "$as_dir" && break
18930 test -z "$as_dirs" || eval "mkdir $as_dirs"
18931 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18932 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18933 { (exit 1); exit 1; }; }; }
18937 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18940 # A ".." for each directory in $ac_dir_suffix.
18941 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18942 case $ac_top_builddir_sub in
18943 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18944 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18947 ac_abs_top_builddir=$ac_pwd
18948 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18949 # for backward compatibility:
18950 ac_top_builddir=$ac_top_build_prefix
18953 .) # We are building in place.
18955 ac_top_srcdir=$ac_top_builddir_sub
18956 ac_abs_top_srcdir=$ac_pwd ;;
18957 [\\/]* | ?:[\\/]* ) # Absolute name.
18958 ac_srcdir=$srcdir$ac_dir_suffix;
18959 ac_top_srcdir=$srcdir
18960 ac_abs_top_srcdir=$srcdir ;;
18961 *) # Relative name.
18962 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18963 ac_top_srcdir=$ac_top_build_prefix$srcdir
18964 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18966 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18976 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18977 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18981 cat >>$CONFIG_STATUS <<\_ACEOF
18982 # If the template does not know about datarootdir, expand it.
18983 # FIXME: This hack should be removed a few years after 2.60.
18984 ac_datarootdir_hack=; ac_datarootdir_seen=
18986 case `sed -n '/datarootdir/ {
18995 ' $ac_file_inputs` in
18996 *datarootdir*) ac_datarootdir_seen=yes;;
18997 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18998 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18999 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19001 cat >>$CONFIG_STATUS <<_ACEOF
19002 ac_datarootdir_hack='
19003 s&@datadir@&$datadir&g
19004 s&@docdir@&$docdir&g
19005 s&@infodir@&$infodir&g
19006 s&@localedir@&$localedir&g
19007 s&@mandir@&$mandir&g
19008 s&\\\${datarootdir}&$datarootdir&g' ;;
19012 # Neutralize VPATH when `$srcdir' = `.'.
19013 # Shell code in configure.ac might set extrasub.
19014 # FIXME: do we really want to maintain this feature?
19015 cat >>$CONFIG_STATUS <<_ACEOF
19019 cat >>$CONFIG_STATUS <<\_ACEOF
19021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19022 s&@configure_input@&$configure_input&;t t
19023 s&@top_builddir@&$ac_top_builddir_sub&;t t
19024 s&@srcdir@&$ac_srcdir&;t t
19025 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19026 s&@top_srcdir@&$ac_top_srcdir&;t t
19027 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19028 s&@builddir@&$ac_builddir&;t t
19029 s&@abs_builddir@&$ac_abs_builddir&;t t
19030 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19031 s&@INSTALL@&$ac_INSTALL&;t t
19032 $ac_datarootdir_hack
19033 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19036 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19038 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19039 which seems to be undefined. Please make sure it is defined." >&5
19040 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19041 which seems to be undefined. Please make sure it is defined." >&2;}
19045 -) cat "$tmp/out"; rm -f "$tmp/out";;
19046 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19055 # Transform confdefs.h into a sed script `conftest.defines', that
19056 # substitutes the proper values into config.h.in to produce config.h.
19057 rm -f conftest.defines conftest.tail
19058 # First, append a space to every undef/define line, to ease matching.
19059 echo 's/$/ /' >conftest.defines
19060 # Then, protect against being on the right side of a sed subst, or in
19061 # an unquoted here document, in config.status. If some macros were
19062 # called several times there might be several #defines for the same
19063 # symbol, which is useless. But do not sort them, since the last
19064 # AC_DEFINE must be honored.
19065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19066 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19067 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19068 # PARAMS is the parameter list in the macro definition--in most cases, it's
19069 # just an empty string.
19070 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19071 ac_dB='\\)[ (].*,\\1define\\2'
19079 s/^[ ]*#[ ]*define[ ][ ]*//
19084 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19085 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19086 ' >>conftest.defines
19088 # Remove the space that was appended to ease matching.
19089 # Then replace #undef with comments. This is necessary, for
19090 # example, in the case of _POSIX_SOURCE, which is predefined and required
19091 # on some systems where configure will not decide to define it.
19092 # (The regexp can be short, since the line contains either #define or #undef.)
19094 s,^[ #]*u.*,/* & */,' >>conftest.defines
19096 # Break up conftest.defines:
19097 ac_max_sed_lines=50
19099 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19100 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19101 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19103 ac_in='$ac_file_inputs'
19104 ac_out='"$tmp/out1"'
19105 ac_nxt='"$tmp/out2"'
19109 # Write a here document:
19110 cat >>$CONFIG_STATUS <<_ACEOF
19111 # First, check the format of the line:
19112 cat >"\$tmp/defines.sed" <<\\CEOF
19113 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19114 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19118 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19120 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19121 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19122 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19123 grep . conftest.tail >/dev/null || break
19124 rm -f conftest.defines
19125 mv conftest.tail conftest.defines
19127 rm -f conftest.defines conftest.tail
19129 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19130 cat >>$CONFIG_STATUS <<\_ACEOF
19131 if test x"$ac_file" != x-; then
19132 echo "/* $configure_input */" >"$tmp/config.h"
19133 cat "$ac_result" >>"$tmp/config.h"
19134 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19136 echo "$as_me: $ac_file is unchanged" >&6;}
19139 mv "$tmp/config.h" $ac_file
19142 echo "/* $configure_input */"
19148 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19149 echo "$as_me: executing $ac_file commands" >&6;}
19154 case $ac_file$ac_mode in
19155 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19156 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19157 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19158 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19159 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19160 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19161 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19162 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19163 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19164 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19165 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19166 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19167 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19168 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19169 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19171 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19173 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19175 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19177 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19184 { (exit 0); exit 0; }
19186 chmod +x $CONFIG_STATUS
19187 ac_clean_files=$ac_clean_files_save
19190 # configure is writing to config.log, and then calls config.status.
19191 # config.status does its own redirection, appending to config.log.
19192 # Unfortunately, on DOS this fails, as config.log is still kept open
19193 # by configure, so config.status won't be able to write to it; its
19194 # output is simply discarded. So we exec the FD to /dev/null,
19195 # effectively closing config.log, so it can be properly (re)opened and
19196 # appended to by config.status. When coming back to configure, we
19197 # need to make the FD available again.
19198 if test "$no_create" != yes; then
19200 ac_config_status_args=
19201 test "$silent" = yes &&
19202 ac_config_status_args="$ac_config_status_args --quiet"
19204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19207 # would make configure fail if this is the last instruction.
19208 $ac_cs_success || { (exit 1); exit 1; }
19212 # CONFIG_SUBDIRS section.
19214 if test "$no_recursion" != yes; then
19216 # Remove --cache-file and --srcdir arguments so they do not pile up.
19217 ac_sub_configure_args=
19219 eval "set x $ac_configure_args"
19223 if test -n "$ac_prev"; then
19228 -cache-file | --cache-file | --cache-fil | --cache-fi \
19229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19230 ac_prev=cache_file ;;
19231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19235 --config-cache | -C)
19237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19241 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19243 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19247 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19249 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19253 # Always prepend --prefix to ensure using the same prefix
19254 # in subdir configurations.
19255 ac_arg="--prefix=$prefix"
19257 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19259 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19262 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19264 # Do not complain, so a configure script can configure whichever
19265 # parts of a large source tree are present.
19266 test -d "$srcdir/$ac_dir" || continue
19268 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19269 echo "$as_me:$LINENO: $ac_msg" >&5
19273 -*) as_dir=./$as_dir;;
19275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19280 *) as_qdir=$as_dir;;
19282 as_dirs="'$as_qdir' $as_dirs"
19283 as_dir=`$as_dirname -- "$as_dir" ||
19284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19285 X"$as_dir" : 'X\(//\)[^/]' \| \
19286 X"$as_dir" : 'X\(//\)$' \| \
19287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19293 /^X\(\/\/\)[^/].*/{
19306 test -d "$as_dir" && break
19308 test -z "$as_dirs" || eval "mkdir $as_dirs"
19309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19311 { (exit 1); exit 1; }; }; }
19315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19318 # A ".." for each directory in $ac_dir_suffix.
19319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19320 case $ac_top_builddir_sub in
19321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19325 ac_abs_top_builddir=$ac_pwd
19326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19327 # for backward compatibility:
19328 ac_top_builddir=$ac_top_build_prefix
19331 .) # We are building in place.
19333 ac_top_srcdir=$ac_top_builddir_sub
19334 ac_abs_top_srcdir=$ac_pwd ;;
19335 [\\/]* | ?:[\\/]* ) # Absolute name.
19336 ac_srcdir=$srcdir$ac_dir_suffix;
19337 ac_top_srcdir=$srcdir
19338 ac_abs_top_srcdir=$srcdir ;;
19339 *) # Relative name.
19340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19341 ac_top_srcdir=$ac_top_build_prefix$srcdir
19342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19349 # Check for guested configure; otherwise get Cygnus style configure.
19350 if test -f "$ac_srcdir/configure.gnu"; then
19351 ac_sub_configure=$ac_srcdir/configure.gnu
19352 elif test -f "$ac_srcdir/configure"; then
19353 ac_sub_configure=$ac_srcdir/configure
19354 elif test -f "$ac_srcdir/configure.in"; then
19355 # This should be Cygnus configure.
19356 ac_sub_configure=$ac_aux_dir/configure
19358 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19363 # The recursion is here.
19364 if test -n "$ac_sub_configure"; then
19365 # Make the cache file name correct relative to the subdirectory.
19366 case $cache_file in
19367 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19368 *) # Relative name.
19369 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19372 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19373 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19374 # The eval makes quoting arguments work.
19375 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19376 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19377 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19378 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19379 { (exit 1); exit 1; }; }
19388 echo "################################################################################"
19389 echo "################################################################################"
19390 echo "The LLVM project has deprecated building with configure & make."
19391 echo "The autoconf-based makefile build system will be removed in the 3.9 release."
19393 echo "Please migrate to the CMake-based build system."
19394 echo "For more information see: http://llvm.org/docs/CMake.html"
19395 echo "################################################################################"
19396 echo "################################################################################"