2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466 wasm, and cpp (default=all)
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-clang-default-openmp-runtime
1499 The default OpenMP runtime for Clang.
1500 --with-binutils-include Specify path to binutils/include/ containing
1501 plugin-api.h file for gold plugin.
1502 --with-bug-report-url Specify the URL where bug reports should be
1503 submitted (default=http://llvm.org/bugs/)
1504 --with-internal-prefix Installation directory for internal files
1505 --with-python path to python
1506 --with-oprofile=<prefix>
1507 Tell OProfile >= 0.9.4 how to symbolize JIT output
1508 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://llvm.org/bugs/>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 if test ${srcdir} != "." ; then
2028 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031 { (exit 1); exit 1; }; }
2035 if test ${srcdir} == "." ; then
2036 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * *" >&5
2039 echo "$as_me: WARNING: * *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041 echo "$as_me: WARNING: * WARNING *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * *" >&5
2043 echo "$as_me: WARNING: * *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * *" >&5
2047 echo "$as_me: WARNING: * *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: * *" >&5
2051 echo "$as_me: WARNING: * *" >&2;}
2052 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in clang gcc
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler --version >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compiler -v >&5") 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler -V >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort. b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions. Remove them first so a
2240 # subsequent execution test works.
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_link_default") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2266 for ac_file in $ac_files
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 # We found the default executable, but exeext='' is most
2277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 # We set ac_cv_exeext here because the later test for it is not
2282 # safe: cross compilers may not add the suffix if given an `-o'
2283 # argument, so we may need to know it at that point already.
2284 # Even if this section looks crufty: it has the advantage of
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301 { (exit 77); exit 77; }; }
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2308 # Check that the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315 if { ac_try='./$ac_file'
2316 { (case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_try") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run. If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_link") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_try") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_c_werror_flag=$ac_save_c_werror_flag
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2719 if test "$GCC" = yes; then
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_prog_cc_c89=no
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std. */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771 inside strings and character constants. */
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_try") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in clang++ g++
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092 ac_cxx_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_prog_cxx_g=yes
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cxx_g=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3283 if test "$GXX" = yes; then
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3402 # Broken: success on invalid input.
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Passes both tests.
3413 rm -f conftest.err conftest.$ac_ext
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test "$CXX" = "clang++" ; then
3555 { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if __has_include (<cxxabi.h>)
3574 #if __has_include (<unwind.h>)
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631 { { 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
3632 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;}
3633 { (exit 1); exit 1; }; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=clang
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 llvm_cv_cxx_compiler=gcc
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3773 if test -d ${srcdir}/projects/test-suite ; then
3774 subdirs="$subdirs projects/test-suite"
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779 subdirs="$subdirs projects/llvm-test"
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784 subdirs="$subdirs projects/poolalloc"
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789 subdirs="$subdirs projects/llvm-poolalloc"
3793 for i in `ls ${srcdir}/projects`
3795 if test -d ${srcdir}/projects/${i} ; then
3797 safecode) subdirs="$subdirs projects/safecode"
3805 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814 enableval=$enable_polly;
3819 case "$enableval" in
3824 default) ENABLE_POLLY=1
3826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828 { (exit 1); exit 1; }; } ;;
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3835 subdirs="$subdirs tools/polly"
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861 { (exit 1); exit 1; }; }
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870 { (exit 1); exit 1; }; };;
3873 ac_save_IFS=$IFS; IFS='-'
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test "x$host_alias" = x; then
3892 ac_cv_host=$ac_cv_build
3894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897 { (exit 1); exit 1; }; }
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907 { (exit 1); exit 1; }; };;
3910 ac_save_IFS=$IFS; IFS='-'
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test "x$target_alias" = x; then
3929 ac_cv_target=$ac_cv_host
3931 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944 { (exit 1); exit 1; }; };;
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963 test "$program_prefix$program_suffix$program_transform_name" = \
3965 program_prefix=${target_alias}-
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="AIX"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="IRIX"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,--whole-archive"
3985 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986 llvm_cv_os_type="Cygwin"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,-all_load"
3990 llvm_cv_no_link_all_option="-Wl,-noall_load"
3991 llvm_cv_os_type="Darwin"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,-all_load"
3995 llvm_cv_no_link_all_option="-Wl,-noall_load"
3996 llvm_cv_os_type="Minix"
3997 llvm_cv_platform_type="Unix" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="FreeBSD"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="GNU/kFreeBSD"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="OpenBSD"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option="-Wl,--whole-archive"
4015 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016 llvm_cv_os_type="NetBSD"
4017 llvm_cv_platform_type="Unix" ;;
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="DragonFly"
4022 llvm_cv_platform_type="Unix" ;;
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="Bitrig"
4027 llvm_cv_platform_type="Unix" ;;
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="HP-UX"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,--whole-archive"
4035 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036 llvm_cv_os_type="Interix"
4037 llvm_cv_platform_type="Unix" ;;
4039 llvm_cv_link_all_option="-Wl,--whole-archive"
4040 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041 llvm_cv_os_type="Linux"
4042 llvm_cv_platform_type="Unix" ;;
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="GNU"
4047 llvm_cv_platform_type="Unix" ;;
4049 llvm_cv_link_all_option="-Wl,-z,allextract"
4050 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051 llvm_cv_os_type="SunOS"
4052 llvm_cv_platform_type="Unix" ;;
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="Win32"
4057 llvm_cv_platform_type="Win32" ;;
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="MingW"
4062 llvm_cv_platform_type="Win32" ;;
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="Haiku"
4067 llvm_cv_platform_type="Unix" ;;
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Freestanding"
4072 llvm_cv_platform_type="Unix" ;;
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="Freestanding"
4077 llvm_cv_platform_type="Unix" ;;
4079 llvm_cv_link_all_option=""
4080 llvm_cv_no_link_all_option=""
4081 llvm_cv_os_type="Unknown"
4082 llvm_cv_platform_type="Unknown" ;;
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 llvm_cv_target_os_type="AIX" ;;
4097 llvm_cv_target_os_type="IRIX" ;;
4099 llvm_cv_target_os_type="Cygwin" ;;
4101 llvm_cv_target_os_type="Darwin" ;;
4103 llvm_cv_target_os_type="Minix" ;;
4105 llvm_cv_target_os_type="FreeBSD" ;;
4107 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4109 llvm_cv_target_os_type="OpenBSD" ;;
4111 llvm_cv_target_os_type="NetBSD" ;;
4113 llvm_cv_target_os_type="DragonFly" ;;
4115 llvm_cv_target_os_type="Bitrig" ;;
4117 llvm_cv_target_os_type="HP-UX" ;;
4119 llvm_cv_target_os_type="Interix" ;;
4121 llvm_cv_target_os_type="Linux" ;;
4123 llvm_cv_target_os_type="GNU" ;;
4125 llvm_cv_target_os_type="SunOS" ;;
4127 llvm_cv_target_os_type="Win32" ;;
4129 llvm_cv_target_os_type="MingW" ;;
4131 llvm_cv_target_os_type="Haiku" ;;
4133 llvm_cv_target_os_type="RTEMS" ;;
4135 llvm_cv_target_os_type="NativeClient" ;;
4137 llvm_cv_target_os_type="Freestanding" ;;
4139 llvm_cv_target_os_type="PS4" ;;
4141 llvm_cv_target_os_type="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150 { (exit 1); exit 1; }; }
4155 HOST_OS=$llvm_cv_os_type
4157 TARGET_OS=$llvm_cv_target_os_type
4160 LINKALL=$llvm_cv_link_all_option
4162 NOLINKALL=$llvm_cv_no_link_all_option
4165 case $llvm_cv_platform_type in
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 i?86-*) llvm_cv_target_arch="x86" ;;
4197 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4198 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4199 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4200 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4201 arm*-*) llvm_cv_target_arch="ARM" ;;
4202 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4203 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4204 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4205 xcore-*) llvm_cv_target_arch="XCore" ;;
4206 msp430-*) llvm_cv_target_arch="MSP430" ;;
4207 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4208 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4209 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4210 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4211 *) llvm_cv_target_arch="Unknown" ;;
4214 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4215 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4217 if test "$llvm_cv_target_arch" = "Unknown" ; then
4218 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4219 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4222 case "$llvm_cv_target_arch" in
4223 x86) LLVM_NATIVE_ARCH="X86" ;;
4224 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4225 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4228 ARCH=$llvm_cv_target_arch
4230 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4234 i?86-*) host_arch="x86" ;;
4235 amd64-* | x86_64-*) host_arch="x86_64" ;;
4236 sparc*-*) host_arch="Sparc" ;;
4237 powerpc*-*) host_arch="PowerPC" ;;
4238 arm64*-*) host_arch="AArch64" ;;
4239 arm*-*) host_arch="ARM" ;;
4240 aarch64*-*) host_arch="AArch64" ;;
4241 mips-* | mips64-*) host_arch="Mips" ;;
4242 mipsel-* | mips64el-*) host_arch="Mips" ;;
4243 xcore-*) host_arch="XCore" ;;
4244 msp430-*) host_arch="MSP430" ;;
4245 hexagon-*) host_arch="Hexagon" ;;
4246 s390x-*) host_arch="SystemZ" ;;
4247 wasm*-*) host_arch="WebAssembly" ;;
4248 *) host_arch="Unknown" ;;
4251 if test "$host_arch" = "Unknown" ; then
4252 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4253 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4256 HOST_ARCH=$host_arch
4259 if test "$cross_compiling" = yes; then
4260 LLVM_CROSS_COMPILING=1
4263 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4264 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4265 if test "${ac_cv_build_exeext+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4269 ac_cv_build_exeext=.exe
4271 ac_build_prefix=${build_alias}-
4273 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4274 set dummy ${ac_build_prefix}gcc; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$BUILD_CC"; then
4281 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 BUILD_CC=$ac_cv_prog_BUILD_CC
4301 if test -n "$BUILD_CC"; then
4302 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4303 echo "${ECHO_T}$BUILD_CC" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4310 if test -z "$BUILD_CC"; then
4311 # Extract the first word of "gcc", so it can be a program name with args.
4312 set dummy gcc; ac_word=$2
4313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4315 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 if test -n "$BUILD_CC"; then
4319 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_BUILD_CC="gcc"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 BUILD_CC=$ac_cv_prog_BUILD_CC
4339 if test -n "$BUILD_CC"; then
4340 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4341 echo "${ECHO_T}$BUILD_CC" >&6; }
4343 { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4348 if test -z "$BUILD_CC"; then
4349 # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4353 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -n "$BUILD_CC"; then
4357 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4368 ac_prog_rejected=yes
4371 ac_cv_prog_BUILD_CC="cc"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 if test $ac_prog_rejected = yes; then
4380 # We found a bogon in the path, so make sure we never use it.
4381 set dummy $ac_cv_prog_BUILD_CC
4383 if test $# != 0; then
4384 # We chose a different compiler from the bogus one.
4385 # However, it has the same basename, so the bogon will be chosen
4386 # first if we set BUILD_CC to just the basename; use the full file name.
4388 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4393 BUILD_CC=$ac_cv_prog_BUILD_CC
4394 if test -n "$BUILD_CC"; then
4395 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4396 echo "${ECHO_T}$BUILD_CC" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4405 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4406 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4407 { (exit 1); exit 1; }; }
4408 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4410 echo 'int main () { return 0; }' > conftest.$ac_ext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4413 (eval $ac_build_link) 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; then
4417 for file in conftest.*; do
4419 *.c | *.o | *.obj | *.dSYM) ;;
4420 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4424 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4425 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4426 { (exit 1); exit 1; }; }
4429 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4434 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4435 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4436 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4437 ac_build_exeext=$BUILD_EXEEXT
4439 ac_build_prefix=${build_alias}-
4440 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4441 set dummy ${ac_build_prefix}g++; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 if test -n "$BUILD_CXX"; then
4448 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4468 if test -n "$BUILD_CXX"; then
4469 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4470 echo "${ECHO_T}$BUILD_CXX" >&6; }
4472 { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4477 if test -z "$BUILD_CXX"; then
4478 # Extract the first word of "g++", so it can be a program name with args.
4479 set dummy g++; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$BUILD_CXX"; then
4486 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_BUILD_CXX="g++"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4506 if test -n "$BUILD_CXX"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4508 echo "${ECHO_T}$BUILD_CXX" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4515 if test -z "$BUILD_CXX"; then
4516 # Extract the first word of "c++", so it can be a program name with args.
4517 set dummy c++; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test -n "$BUILD_CXX"; then
4524 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4535 ac_prog_rejected=yes
4538 ac_cv_prog_BUILD_CXX="c++"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 if test $ac_prog_rejected = yes; then
4547 # We found a bogon in the path, so make sure we never use it.
4548 set dummy $ac_cv_prog_BUILD_CXX
4550 if test $# != 0; then
4551 # We chose a different compiler from the bogus one.
4552 # However, it has the same basename, so the bogon will be chosen
4553 # first if we set BUILD_CXX to just the basename; use the full file name.
4555 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4560 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4561 if test -n "$BUILD_CXX"; then
4562 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4563 echo "${ECHO_T}$BUILD_CXX" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4573 LLVM_CROSS_COMPILING=0
4577 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4588 # Check whether --enable-libcpp was given.
4589 if test "${enable_libcpp+set}" = set; then
4590 enableval=$enable_libcpp;
4595 case "$enableval" in
4596 yes) ENABLE_LIBCPP=1
4600 default) ENABLE_LIBCPP=0
4602 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4603 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4604 { (exit 1); exit 1; }; } ;;
4607 # Check whether --enable-compiler-version-checks was given.
4608 if test "${enable_compiler_version_checks+set}" = set; then
4609 enableval=$enable_compiler_version_checks;
4614 case "$enableval" in
4619 ac_cpp='$CXXCPP $CPPFLAGS'
4620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4624 case "$llvm_cv_cxx_compiler" in
4626 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4627 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4635 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4636 #error This version of Clang is too old to build LLVM
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4664 { ac_try='test -s conftest.$ac_objext'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_try") 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682 { { echo "$as_me:$LINENO: error:
4683 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4684 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4685 bypass these sanity checks." >&5
4686 echo "$as_me: error:
4687 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4688 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4689 bypass these sanity checks." >&2;}
4690 { (exit 1); exit 1; }; }
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test "$ENABLE_LIBCPP" -eq 0 ; then
4696 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4697 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4698 llvm_cv_old_cxxflags="$CXXFLAGS"
4699 CXXFLAGS="$CXXFLAGS -std=c++0x"
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4708 std::atomic<float> x(0.0f);
4709 int main() { return (float)x; }
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (ac_try="$ac_link"
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_link") 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_try") 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 { { echo "$as_me:$LINENO: error:
4755 We detected a missing feature in the standard C++ library that was known to be
4756 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4757 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4758 than 4.7. You will need to update your system and ensure Clang uses the newer
4761 If this error is incorrect or you need to force things to work, you may pass
4762 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4763 echo "$as_me: error:
4764 We detected a missing feature in the standard C++ library that was known to be
4765 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4766 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4767 than 4.7. You will need to update your system and ensure Clang uses the newer
4770 If this error is incorrect or you need to force things to work, you may pass
4771 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4772 { (exit 1); exit 1; }; }
4775 rm -f core conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
4777 CXXFLAGS="$llvm_cv_old_cxxflags"
4781 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4782 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4783 cat >conftest.$ac_ext <<_ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4790 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4791 #error This version of GCC is too old to build LLVM
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_compile") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_try") 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 { echo "$as_me:$LINENO: result: yes" >&5
4830 echo "${ECHO_T}yes" >&6; }
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837 { { echo "$as_me:$LINENO: error:
4838 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4839 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4840 bypass these sanity checks." >&5
4841 echo "$as_me: error:
4842 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4843 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4844 bypass these sanity checks." >&2;}
4845 { (exit 1); exit 1; }; }
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4862 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4863 { (exit 1); exit 1; }; }
4867 # Check whether --enable-cxx1y was given.
4868 if test "${enable_cxx1y+set}" = set; then
4869 enableval=$enable_cxx1y;
4874 case "$enableval" in
4879 default) ENABLE_CXX1Y=0
4881 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4882 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4883 { (exit 1); exit 1; }; } ;;
4886 # Check whether --enable-split-dwarf was given.
4887 if test "${enable_split_dwarf+set}" = set; then
4888 enableval=$enable_split_dwarf;
4893 case "$enableval" in
4894 yes) ENABLE_SPLIT_DWARF=1
4896 no) ENABLE_SPLIT_DWARF=0
4898 default) ENABLE_SPLIT_DWARF=0
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4906 # Check whether --enable-clang-arcmt was given.
4907 if test "${enable_clang_arcmt+set}" = set; then
4908 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4913 case "$enableval" in
4914 yes) ENABLE_CLANG_ARCMT=1
4916 no) ENABLE_CLANG_ARCMT=0
4918 default) ENABLE_CLANG_ARCMT=1
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 clang_plugin_support="yes"
4926 # Check whether --enable-clang-plugin-support was given.
4927 if test "${enable_clang_plugin_support+set}" = set; then
4928 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4933 case "$enableval" in
4934 yes) CLANG_PLUGIN_SUPPORT=1
4936 no) CLANG_PLUGIN_SUPPORT=0
4938 default) CLANG_PLUGIN_SUPPORT=1
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4945 clang_static_analyzer="yes"
4946 # Check whether --enable-clang-static-analyzer was given.
4947 if test "${enable_clang_static_analyzer+set}" = set; then
4948 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4953 case "$enableval" in
4954 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4957 if test ${clang_arcmt} != "no" ; then
4958 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4959 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4960 { (exit 1); exit 1; }; }
4962 ENABLE_CLANG_STATIC_ANALYZER=0
4965 default) ENABLE_CLANG_STATIC_ANALYZER=1
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4972 # Check whether --enable-optimized was given.
4973 if test "${enable_optimized+set}" = set; then
4974 enableval=$enable_optimized;
4979 if test ${enableval} = "no" ; then
4983 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4987 # Check whether --enable-profiling was given.
4988 if test "${enable_profiling+set}" = set; then
4989 enableval=$enable_profiling;
4994 if test ${enableval} = "no" ; then
4998 ENABLE_PROFILING=ENABLE_PROFILING=1
5002 # Check whether --enable-assertions was given.
5003 if test "${enable_assertions+set}" = set; then
5004 enableval=$enable_assertions;
5009 if test ${enableval} = "yes" ; then
5012 assertions_enabled="yes"
5014 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5016 assertions_enabled="no"
5019 # Check whether --enable-werror was given.
5020 if test "${enable_werror+set}" = set; then
5021 enableval=$enable_werror;
5026 case "$enableval" in
5027 yes) ENABLE_WERROR=1
5031 default) ENABLE_WERROR=0
5033 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5034 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5035 { (exit 1); exit 1; }; } ;;
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040 enableval=$enable_expensive_checks;
5045 if test ${enableval} = "yes" ; then
5046 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048 EXPENSIVE_CHECKS=yes
5051 ENABLE_EXPENSIVE_CHECKS=
5057 # Check whether --enable-abi-breaking-checks was given.
5058 if test "${enable_abi_breaking_checks+set}" = set; then
5059 enableval=$enable_abi_breaking_checks;
5061 enableval="with-asserts"
5064 case "$enableval" in
5065 with-asserts) if test ${assertions_enabled} = "yes" ; then
5067 cat >>confdefs.h <<\_ACEOF
5068 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5071 ENABLE_ABI_BREAKING_CHECKS=1
5074 ENABLE_ABI_BREAKING_CHECKS=0
5079 cat >>confdefs.h <<\_ACEOF
5080 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5083 ENABLE_ABI_BREAKING_CHECKS=1
5087 ENABLE_ABI_BREAKING_CHECKS=0
5090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5091 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5092 { (exit 1); exit 1; }; }
5095 # Check whether --enable-debug-runtime was given.
5096 if test "${enable_debug_runtime+set}" = set; then
5097 enableval=$enable_debug_runtime;
5102 if test ${enableval} = "no" ; then
5106 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5110 # Check whether --enable-debug-symbols was given.
5111 if test "${enable_debug_symbols+set}" = set; then
5112 enableval=$enable_debug_symbols;
5117 if test ${enableval} = "no" ; then
5121 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5125 # Check whether --enable-keep-symbols was given.
5126 if test "${enable_keep_symbols+set}" = set; then
5127 enableval=$enable_keep_symbols;
5132 if test ${enableval} = "no" ; then
5136 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5140 # Check whether --enable-jit was given.
5141 if test "${enable_jit+set}" = set; then
5142 enableval=$enable_jit;
5147 if test ${enableval} = "no"
5152 case "$llvm_cv_target_arch" in
5153 x86) TARGET_HAS_JIT=1
5155 Sparc) TARGET_HAS_JIT=0
5157 PowerPC) TARGET_HAS_JIT=1
5159 x86_64) TARGET_HAS_JIT=1
5161 ARM) TARGET_HAS_JIT=1
5163 Mips) TARGET_HAS_JIT=1
5165 XCore) TARGET_HAS_JIT=0
5167 MSP430) TARGET_HAS_JIT=0
5169 Hexagon) TARGET_HAS_JIT=0
5171 NVPTX) TARGET_HAS_JIT=0
5173 SystemZ) TARGET_HAS_JIT=1
5175 WebAssembly) TARGET_HAS_JIT=0
5182 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5183 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5186 # Check whether --enable-docs was given.
5187 if test "${enable_docs+set}" = set; then
5188 enableval=$enable_docs;
5193 case "$enableval" in
5198 default) ENABLE_DOCS=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 # Check whether --enable-doxygen was given.
5206 if test "${enable_doxygen+set}" = set; then
5207 enableval=$enable_doxygen;
5212 case "$enableval" in
5213 yes) ENABLE_DOXYGEN=1
5215 no|default) ENABLE_DOXYGEN=0
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 # Check whether --enable-doxygen-search was given.
5223 if test "${enable_doxygen_search+set}" = set; then
5224 enableval=$enable_doxygen_search;
5229 ENABLE_DOXYGEN_SEARCH="$enableval"
5231 case "$enableval" in
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5238 # Check whether --enable-doxygen-external-search was given.
5239 if test "${enable_doxygen_external_search+set}" = set; then
5240 enableval=$enable_doxygen_external_search;
5245 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5247 case "$enableval" in
5249 case "$ENABLE_DOXYGEN_SEARCH" in
5250 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5251 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5252 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5257 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5258 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5263 # Check whether --with-doxygen-search-engine-url was given.
5264 if test "${with_doxygen_search_engine_url+set}" = set; then
5265 withval=$with_doxygen_search_engine_url;
5268 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5271 # Check whether --with-doxygen-search-mappings was given.
5272 if test "${with_doxygen_search_mappings+set}" = set; then
5273 withval=$with_doxygen_search_mappings;
5276 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5278 case "$ENABLE_DOXYGEN_SEARCH" in
5280 if test "$ENABLE_DOXYGEN" = "0" ; then
5281 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5282 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5283 { (exit 1); exit 1; }; }
5286 enable_searchengine=YES
5289 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5291 enable_external_search=YES
5293 enable_server_based_search=YES
5295 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5297 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5302 enable_external_search=NO
5304 enable_server_based_search=NO
5313 enable_searchengine=NO
5316 enable_server_based_search=NO
5318 enable_external_search=NO
5324 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5326 { (exit 1); exit 1; }; }
5330 # Check whether --enable-doxygen-qt-help was given.
5331 if test "${enable_doxygen_qt_help+set}" = set; then
5332 enableval=$enable_doxygen_qt_help;
5337 case "$enableval" in
5339 if test "$ENABLE_DOXYGEN" = "0" ; then
5340 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5341 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5342 { (exit 1); exit 1; }; }
5345 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5346 set dummy qhelpgenerator; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 case $QHELPGENERATOR in
5354 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5376 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5377 if test -n "$QHELPGENERATOR"; then
5378 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5379 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5387 llvm_doxygen_generate_qhp=YES
5389 llvm_doxygen_qch_filename=org.llvm.qch
5391 llvm_doxygen_qhp_namespace=org.llvm
5393 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5395 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5397 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5400 clang_doxygen_generate_qhp=YES
5402 clang_doxygen_qch_filename=org.llvm.clang.qch
5404 clang_doxygen_qhp_namespace=org.llvm.clang
5406 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5408 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5410 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5415 llvm_doxygen_generate_qhp=NO
5423 clang_doxygen_generate_qhp=NO
5428 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5430 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5435 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5436 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5437 { (exit 1); exit 1; }; } ;;
5440 # Check whether --enable-threads was given.
5441 if test "${enable_threads+set}" = set; then
5442 enableval=$enable_threads;
5447 case "$enableval" in
5448 yes) LLVM_ENABLE_THREADS=1
5450 no) LLVM_ENABLE_THREADS=0
5452 default) LLVM_ENABLE_THREADS=1
5454 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5455 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5459 cat >>confdefs.h <<_ACEOF
5460 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5464 # Check whether --enable-pthreads was given.
5465 if test "${enable_pthreads+set}" = set; then
5466 enableval=$enable_pthreads;
5471 case "$enableval" in
5472 yes) ENABLE_PTHREADS=1
5474 no) ENABLE_PTHREADS=0
5476 default) ENABLE_PTHREADS=1
5478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5479 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5480 { (exit 1); exit 1; }; } ;;
5483 # Check whether --enable-zlib was given.
5484 if test "${enable_zlib+set}" = set; then
5485 enableval=$enable_zlib;
5490 case "$enableval" in
5491 yes) LLVM_ENABLE_ZLIB=1
5493 no) LLVM_ENABLE_ZLIB=0
5495 default) LLVM_ENABLE_ZLIB=1
5497 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5498 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5499 { (exit 1); exit 1; }; } ;;
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5507 # Check whether --enable-pic was given.
5508 if test "${enable_pic+set}" = set; then
5509 enableval=$enable_pic;
5514 case "$enableval" in
5519 default) ENABLE_PIC=1
5521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5522 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5526 cat >>confdefs.h <<_ACEOF
5527 #define ENABLE_PIC $ENABLE_PIC
5531 # Check whether --enable-shared was given.
5532 if test "${enable_shared+set}" = set; then
5533 enableval=$enable_shared;
5538 case "$enableval" in
5539 yes) ENABLE_SHARED=1
5543 default) ENABLE_SHARED=0
5545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5546 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5547 { (exit 1); exit 1; }; } ;;
5550 # Check whether --enable-embed-stdcxx was given.
5551 if test "${enable_embed_stdcxx+set}" = set; then
5552 enableval=$enable_embed_stdcxx;
5557 case "$enableval" in
5558 yes) ENABLE_EMBED_STDCXX=1
5560 no) ENABLE_EMBED_STDCXX=0
5562 default) ENABLE_EMBED_STDCXX=0
5564 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5565 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5566 { (exit 1); exit 1; }; } ;;
5569 # Check whether --enable-timestamps was given.
5570 if test "${enable_timestamps+set}" = set; then
5571 enableval=$enable_timestamps;
5576 case "$enableval" in
5577 yes) ENABLE_TIMESTAMPS=1
5579 no) ENABLE_TIMESTAMPS=0
5581 default) ENABLE_TIMESTAMPS=1
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5588 cat >>confdefs.h <<_ACEOF
5589 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5593 # Check whether --enable-backtraces was given.
5594 if test "${enable_backtraces+set}" = set; then
5595 enableval=$enable_backtraces; case "$enableval" in
5596 yes) llvm_cv_enable_backtraces="yes" ;;
5597 no) llvm_cv_enable_backtraces="no" ;;
5598 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5599 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5600 { (exit 1); exit 1; }; } ;;
5603 llvm_cv_enable_backtraces="yes"
5606 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5608 cat >>confdefs.h <<\_ACEOF
5609 #define ENABLE_BACKTRACES 1
5614 # Check whether --enable-crash-overrides was given.
5615 if test "${enable_crash_overrides+set}" = set; then
5616 enableval=$enable_crash_overrides; case "$enableval" in
5617 yes) llvm_cv_enable_crash_overrides="yes" ;;
5618 no) llvm_cv_enable_crash_overrides="no" ;;
5619 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5620 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5621 { (exit 1); exit 1; }; } ;;
5624 llvm_cv_enable_crash_overrides="yes"
5627 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5629 cat >>confdefs.h <<\_ACEOF
5630 #define ENABLE_CRASH_OVERRIDES 1
5635 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5636 ALL_TARGETS=$ALL_TARGETS
5640 # Check whether --enable-targets was given.
5641 if test "${enable_targets+set}" = set; then
5642 enableval=$enable_targets;
5647 if test "$enableval" = host-only ; then
5650 case "$enableval" in
5651 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5652 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5654 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5655 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5656 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5657 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5658 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5659 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5660 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5661 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5662 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5663 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5664 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5665 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5666 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5667 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5668 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5669 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5670 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5671 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5672 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5673 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5674 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5675 host) case "$llvm_cv_target_arch" in
5676 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5677 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5678 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5679 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5680 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5681 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5682 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5684 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5685 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5686 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5687 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5688 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5689 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5690 echo "$as_me: error: Can not set target to build" >&2;}
5691 { (exit 1); exit 1; }; } ;;
5693 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5694 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5695 { (exit 1); exit 1; }; } ;;
5701 # Check whether --enable-experimental-targets was given.
5702 if test "${enable_experimental_targets+set}" = set; then
5703 enableval=$enable_experimental_targets;
5709 if test ${enableval} != "disable"
5711 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5714 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5717 for a_target in $TARGETS_TO_BUILD; do
5718 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5724 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5725 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5726 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5727 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5728 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5729 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5731 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5732 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5745 cat >>confdefs.h <<_ACEOF
5746 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5754 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5761 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5771 LLVM_ENUM_TARGETS=""
5772 LLVM_ENUM_ASM_PRINTERS=""
5773 LLVM_ENUM_ASM_PARSERS=""
5774 LLVM_ENUM_DISASSEMBLERS=""
5775 for target_to_build in $TARGETS_TO_BUILD; do
5776 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5777 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5778 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5780 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5781 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5783 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5784 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5793 # Check whether --with-optimize-option was given.
5794 if test "${with_optimize_option+set}" = set; then
5795 withval=$with_optimize_option;
5800 { echo "$as_me:$LINENO: checking optimization flags" >&5
5801 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5804 case "$llvm_cv_os_type" in
5805 FreeBSD) optimize_option=-O2 ;;
5806 MingW) optimize_option=-O2 ;;
5807 *) optimize_option=-O3 ;;
5809 *) optimize_option="$withval" ;;
5811 OPTIMIZE_OPTION=$optimize_option
5813 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5814 echo "${ECHO_T}$optimize_option" >&6; }
5817 # Check whether --with-extra-options was given.
5818 if test "${with_extra_options+set}" = set; then
5819 withval=$with_extra_options;
5825 default) EXTRA_OPTIONS= ;;
5826 *) EXTRA_OPTIONS=$withval ;;
5828 EXTRA_OPTIONS=$EXTRA_OPTIONS
5832 # Check whether --with-extra-ld-options was given.
5833 if test "${with_extra_ld_options+set}" = set; then
5834 withval=$with_extra_ld_options;
5840 default) EXTRA_LD_OPTIONS= ;;
5841 *) EXTRA_LD_OPTIONS=$withval ;;
5843 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5846 # Check whether --enable-bindings was given.
5847 if test "${enable_bindings+set}" = set; then
5848 enableval=$enable_bindings;
5853 BINDINGS_TO_BUILD=""
5854 case "$enableval" in
5855 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5856 all ) BINDINGS_TO_BUILD="ocaml" ;;
5857 none | no) BINDINGS_TO_BUILD="" ;;
5858 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5859 case "$a_binding" in
5860 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5861 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5862 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5863 { (exit 1); exit 1; }; } ;;
5870 # Check whether --with-ocaml-libdir was given.
5871 if test "${with_ocaml_libdir+set}" = set; then
5872 withval=$with_ocaml_libdir;
5878 auto) with_ocaml_libdir="$withval" ;;
5879 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5880 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5881 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5882 { (exit 1); exit 1; }; } ;;
5886 # Check whether --with-clang-srcdir was given.
5887 if test "${with_clang_srcdir+set}" = set; then
5888 withval=$with_clang_srcdir;
5894 -) clang_src_root="" ;;
5895 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5896 *) clang_src_root="$ac_pwd/$withval" ;;
5898 CLANG_SRC_ROOT=$clang_src_root
5902 # Check whether --with-clang-resource-dir was given.
5903 if test "${with_clang_resource_dir+set}" = set; then
5904 withval=$with_clang_resource_dir;
5910 cat >>confdefs.h <<_ACEOF
5911 #define CLANG_RESOURCE_DIR "$withval"
5916 # Check whether --with-c-include-dirs was given.
5917 if test "${with_c_include_dirs+set}" = set; then
5918 withval=$with_c_include_dirs;
5924 cat >>confdefs.h <<_ACEOF
5925 #define C_INCLUDE_DIRS "$withval"
5929 # Clang normally uses the system c++ headers and libraries. With this option,
5930 # clang will use the ones provided by a gcc installation instead. This option should
5931 # be passed the same value that was used with --prefix when configuring gcc.
5933 # Check whether --with-gcc-toolchain was given.
5934 if test "${with_gcc_toolchain+set}" = set; then
5935 withval=$with_gcc_toolchain;
5941 cat >>confdefs.h <<_ACEOF
5942 #define GCC_INSTALL_PREFIX "$withval"
5947 # Check whether --with-default-sysroot was given.
5948 if test "${with_default_sysroot+set}" = set; then
5949 withval=$with_default_sysroot;
5955 cat >>confdefs.h <<_ACEOF
5956 #define DEFAULT_SYSROOT "$withval"
5961 # Check whether --with-clang-default-openmp-runtime was given.
5962 if test "${with_clang_default_openmp_runtime+set}" = set; then
5963 withval=$with_clang_default_openmp_runtime;
5969 cat >>confdefs.h <<_ACEOF
5970 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5975 # Check whether --with-binutils-include was given.
5976 if test "${with_binutils_include+set}" = set; then
5977 withval=$with_binutils_include;
5983 default) WITH_BINUTILS_INCDIR=default ;;
5984 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5985 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5986 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5987 { (exit 1); exit 1; }; } ;;
5989 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5990 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5992 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5993 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5994 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5995 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5996 { (exit 1); exit 1; }; };
6001 # Check whether --with-bug-report-url was given.
6002 if test "${with_bug_report_url+set}" = set; then
6003 withval=$with_bug_report_url;
6005 withval="http://llvm.org/bugs/"
6009 cat >>confdefs.h <<_ACEOF
6010 #define BUG_REPORT_URL "$withval"
6014 # Check whether --enable-terminfo was given.
6015 if test "${enable_terminfo+set}" = set; then
6016 enableval=$enable_terminfo; case "$enableval" in
6017 yes) llvm_cv_enable_terminfo="yes" ;;
6018 no) llvm_cv_enable_terminfo="no" ;;
6019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6020 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6021 { (exit 1); exit 1; }; } ;;
6024 llvm_cv_enable_terminfo="yes"
6027 case "$llvm_cv_enable_terminfo" in
6028 yes) ENABLE_TERMINFO=1
6030 no) ENABLE_TERMINFO=0
6034 # Check whether --enable-libedit was given.
6035 if test "${enable_libedit+set}" = set; then
6036 enableval=$enable_libedit; case "$enableval" in
6037 yes) llvm_cv_enable_libedit="yes" ;;
6038 no) llvm_cv_enable_libedit="no" ;;
6039 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6040 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6041 { (exit 1); exit 1; }; } ;;
6044 llvm_cv_enable_libedit="yes"
6048 # Check whether --enable-libffi was given.
6049 if test "${enable_libffi+set}" = set; then
6050 enableval=$enable_libffi; case "$enableval" in
6051 yes) llvm_cv_enable_libffi="yes" ;;
6052 no) llvm_cv_enable_libffi="no" ;;
6053 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055 { (exit 1); exit 1; }; } ;;
6058 llvm_cv_enable_libffi=no
6063 # Check whether --with-internal-prefix was given.
6064 if test "${with_internal_prefix+set}" = set; then
6065 withval=$with_internal_prefix;
6070 INTERNAL_PREFIX=$withval
6074 { echo "$as_me:$LINENO: checking for GNU make" >&5
6075 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6076 if test "${llvm_cv_gnu_make_command+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 llvm_cv_gnu_make_command=''
6080 for a in "$MAKE" make gmake gnumake ; do
6081 if test -z "$a" ; then continue ; fi ;
6082 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6084 llvm_cv_gnu_make_command=$a ;
6089 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6090 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6091 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6095 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6096 echo "${ECHO_T}\"Not found\"" >&6; };
6100 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6101 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6103 if test "$LN_S" = "ln -s"; then
6104 { echo "$as_me:$LINENO: result: yes" >&5
6105 echo "${ECHO_T}yes" >&6; }
6107 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6108 echo "${ECHO_T}no, using $LN_S" >&6; }
6111 # Extract the first word of "nm", so it can be a program name with args.
6112 set dummy nm; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_NM+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6143 if test -n "$NM"; then
6144 { echo "$as_me:$LINENO: result: $NM" >&5
6145 echo "${ECHO_T}$NM" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6152 # Extract the first word of "cmp", so it can be a program name with args.
6153 set dummy cmp; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_path_CMP+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6184 if test -n "$CMP"; then
6185 { echo "$as_me:$LINENO: result: $CMP" >&5
6186 echo "${ECHO_T}$CMP" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6193 # Extract the first word of "cp", so it can be a program name with args.
6194 set dummy cp; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_path_CP+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6225 if test -n "$CP"; then
6226 { echo "$as_me:$LINENO: result: $CP" >&5
6227 echo "${ECHO_T}$CP" >&6; }
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6234 # Extract the first word of "date", so it can be a program name with args.
6235 set dummy date; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_path_DATE+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6265 DATE=$ac_cv_path_DATE
6266 if test -n "$DATE"; then
6267 { echo "$as_me:$LINENO: result: $DATE" >&5
6268 echo "${ECHO_T}$DATE" >&6; }
6270 { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6275 # Extract the first word of "find", so it can be a program name with args.
6276 set dummy find; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_path_FIND+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6306 FIND=$ac_cv_path_FIND
6307 if test -n "$FIND"; then
6308 { echo "$as_me:$LINENO: result: $FIND" >&5
6309 echo "${ECHO_T}$FIND" >&6; }
6311 { echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6; }
6316 # Extract the first word of "grep", so it can be a program name with args.
6317 set dummy grep; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_path_GREP+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6347 GREP=$ac_cv_path_GREP
6348 if test -n "$GREP"; then
6349 { echo "$as_me:$LINENO: result: $GREP" >&5
6350 echo "${ECHO_T}$GREP" >&6; }
6352 { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6357 # Extract the first word of "mkdir", so it can be a program name with args.
6358 set dummy mkdir; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_path_MKDIR+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6388 MKDIR=$ac_cv_path_MKDIR
6389 if test -n "$MKDIR"; then
6390 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6391 echo "${ECHO_T}$MKDIR" >&6; }
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6398 # Extract the first word of "mv", so it can be a program name with args.
6399 set dummy mv; ac_word=$2
6400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_MV+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6430 if test -n "$MV"; then
6431 { echo "$as_me:$LINENO: result: $MV" >&5
6432 echo "${ECHO_T}$MV" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_RANLIB+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 if test -n "$RANLIB"; then
6448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 RANLIB=$ac_cv_prog_RANLIB
6468 if test -n "$RANLIB"; then
6469 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6470 echo "${ECHO_T}$RANLIB" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6478 if test -z "$ac_cv_prog_RANLIB"; then
6479 ac_ct_RANLIB=$RANLIB
6480 # Extract the first word of "ranlib", so it can be a program name with args.
6481 set dummy ranlib; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 if test -n "$ac_ct_RANLIB"; then
6488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_RANLIB="ranlib"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6508 if test -n "$ac_ct_RANLIB"; then
6509 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6510 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6516 if test "x$ac_ct_RANLIB" = x; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6522 whose name does not start with the host triplet. If you think this
6523 configuration is useful to you, please write to autoconf@gnu.org." >&5
6524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6525 whose name does not start with the host triplet. If you think this
6526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6527 ac_tool_warned=yes ;;
6529 RANLIB=$ac_ct_RANLIB
6532 RANLIB="$ac_cv_prog_RANLIB"
6535 if test -n "$ac_tool_prefix"; then
6536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}ar; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_AR+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 if test -n "$AR"; then
6544 ac_cv_prog_AR="$AR" # Let the user override the test.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_AR="${ac_tool_prefix}ar"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 if test -n "$AR"; then
6565 { echo "$as_me:$LINENO: result: $AR" >&5
6566 echo "${ECHO_T}$AR" >&6; }
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6574 if test -z "$ac_cv_prog_AR"; then
6576 # Extract the first word of "ar", so it can be a program name with args.
6577 set dummy ar; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 if test -n "$ac_ct_AR"; then
6584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_ac_ct_AR="ar"
6594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6604 if test -n "$ac_ct_AR"; then
6605 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6606 echo "${ECHO_T}$ac_ct_AR" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6612 if test "x$ac_ct_AR" = x; then
6615 case $cross_compiling:$ac_tool_warned in
6617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6618 whose name does not start with the host triplet. If you think this
6619 configuration is useful to you, please write to autoconf@gnu.org." >&5
6620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6621 whose name does not start with the host triplet. If you think this
6622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6623 ac_tool_warned=yes ;;
6631 # Extract the first word of "rm", so it can be a program name with args.
6632 set dummy rm; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_RM+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6663 if test -n "$RM"; then
6664 { echo "$as_me:$LINENO: result: $RM" >&5
6665 echo "${ECHO_T}$RM" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6672 # Extract the first word of "sed", so it can be a program name with args.
6673 set dummy sed; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_SED+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6704 if test -n "$SED"; then
6705 { echo "$as_me:$LINENO: result: $SED" >&5
6706 echo "${ECHO_T}$SED" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6713 # Extract the first word of "tar", so it can be a program name with args.
6714 set dummy tar; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_TAR+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6745 if test -n "$TAR"; then
6746 { echo "$as_me:$LINENO: result: $TAR" >&5
6747 echo "${ECHO_T}$TAR" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6754 # Extract the first word of "pwd", so it can be a program name with args.
6755 set dummy pwd; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_BINPWD+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6785 BINPWD=$ac_cv_path_BINPWD
6786 if test -n "$BINPWD"; then
6787 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6788 echo "${ECHO_T}$BINPWD" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6796 # Extract the first word of "dot", so it can be a program name with args.
6797 set dummy dot; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_DOT+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6828 if test -n "$DOT"; then
6829 { echo "$as_me:$LINENO: result: $DOT" >&5
6830 echo "${ECHO_T}$DOT" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 if test "$DOT" != "echo dot" ; then
6839 cat >>confdefs.h <<\_ACEOF
6843 if test "$llvm_cv_os_type" = "MingW" ; then
6844 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6853 # Find a good install program. We prefer a C program (faster),
6854 # so one script is as good as another. But avoid the broken or
6855 # incompatible versions:
6856 # SysV /etc/install, /usr/sbin/install
6857 # SunOS /usr/etc/install
6858 # IRIX /sbin/install
6860 # AmigaOS /C/install, which installs bootblocks on floppy discs
6861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6864 # OS/2's system install, which has a completely different semantic
6865 # ./install, which can be erroneously created by make from ./install.sh.
6866 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6868 if test -z "$INSTALL"; then
6869 if test "${ac_cv_path_install+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 # Account for people who put trailing slashes in PATH elements.
6879 ./ | .// | /cC/* | \
6880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6884 # OSF1 and SCO ODT 3.0 have their own names for install.
6885 # Don't use installbsd from OSF since it installs stuff as root
6887 for ac_prog in ginstall scoinst install; do
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6890 if test $ac_prog = install &&
6891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6892 # AIX install. It has an incompatible calling convention.
6894 elif test $ac_prog = install &&
6895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6896 # program-specific install script used by HP pwplus--don't use.
6899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6912 if test "${ac_cv_path_install+set}" = set; then
6913 INSTALL=$ac_cv_path_install
6915 # As a last resort, use the slow shell script. Don't cache a
6916 # value for INSTALL within a source directory, because that will
6917 # break other packages using the cache if that directory is
6918 # removed, or if the value is a relative name.
6919 INSTALL=$ac_install_sh
6922 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 echo "${ECHO_T}$INSTALL" >&6; }
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6934 [\\/$]* | ?:[\\/]* ) ;;
6935 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6938 # Extract the first word of "bzip2", so it can be a program name with args.
6939 set dummy bzip2; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_path_BZIP2+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 BZIP2=$ac_cv_path_BZIP2
6969 if test -n "$BZIP2"; then
6970 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6971 echo "${ECHO_T}$BZIP2" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 # Extract the first word of "cat", so it can be a program name with args.
6979 set dummy cat; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_CAT+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 if test -n "$CAT"; then
7010 { echo "$as_me:$LINENO: result: $CAT" >&5
7011 echo "${ECHO_T}$CAT" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 # Extract the first word of "doxygen", so it can be a program name with args.
7019 set dummy doxygen; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 DOXYGEN=$ac_cv_path_DOXYGEN
7049 if test -n "$DOXYGEN"; then
7050 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7051 echo "${ECHO_T}$DOXYGEN" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "groff", so it can be a program name with args.
7059 set dummy groff; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_GROFF+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 GROFF=$ac_cv_path_GROFF
7089 if test -n "$GROFF"; then
7090 { echo "$as_me:$LINENO: result: $GROFF" >&5
7091 echo "${ECHO_T}$GROFF" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7098 # Extract the first word of "gzip", so it can be a program name with args.
7099 set dummy gzip; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 GZIPBIN=$ac_cv_path_GZIPBIN
7129 if test -n "$GZIPBIN"; then
7130 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7131 echo "${ECHO_T}$GZIPBIN" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 # Extract the first word of "pdfroff", so it can be a program name with args.
7139 set dummy pdfroff; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_PDFROFF+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 PDFROFF=$ac_cv_path_PDFROFF
7169 if test -n "$PDFROFF"; then
7170 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7171 echo "${ECHO_T}$PDFROFF" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "zip", so it can be a program name with args.
7179 set dummy zip; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_ZIP+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 if test -n "$ZIP"; then
7210 { echo "$as_me:$LINENO: result: $ZIP" >&5
7211 echo "${ECHO_T}$ZIP" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 # Extract the first word of "go", so it can be a program name with args.
7219 set dummy go; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_GO+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 if test -n "$GO"; then
7250 { echo "$as_me:$LINENO: result: $GO" >&5
7251 echo "${ECHO_T}$GO" >&6; }
7253 { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7258 for ac_prog in ocamlfind
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 OCAMLFIND=$ac_cv_path_OCAMLFIND
7291 if test -n "$OCAMLFIND"; then
7292 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7293 echo "${ECHO_T}$OCAMLFIND" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 test -n "$OCAMLFIND" && break
7303 for ac_prog in gas as
7305 # Extract the first word of "$ac_prog", so it can be a program name with args.
7306 set dummy $ac_prog; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_GAS+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 if test -n "$GAS"; then
7337 { echo "$as_me:$LINENO: result: $GAS" >&5
7338 echo "${ECHO_T}$GAS" >&6; }
7340 { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7345 test -n "$GAS" && break
7349 { echo "$as_me:$LINENO: checking for linker version" >&5
7350 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7351 if test "${llvm_cv_link_version+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7358 if (echo "$version_string" | grep -q "ld64"); then
7359 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7361 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7365 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7366 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7368 cat >>confdefs.h <<_ACEOF
7369 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7375 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7376 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7377 if test "${llvm_cv_link_use_r+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 ac_cpp='$CPP $CPPFLAGS'
7382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387 CFLAGS="$CFLAGS -Wl,-R."
7388 cat >conftest.$ac_ext <<_ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_link") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7418 { (case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_try") 2>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest$ac_exeext'
7428 { (case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_try") 2>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 llvm_cv_link_use_r=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 llvm_cv_link_use_r=no
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7457 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7458 if test "$llvm_cv_link_use_r" = yes ; then
7460 cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_LINK_R 1
7467 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7468 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7469 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479 CFLAGS="$CFLAGS -rdynamic"
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (ac_try="$ac_link"
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_link") 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7510 { (case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_try") 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_try") 2>&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 llvm_cv_link_use_export_dynamic=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 llvm_cv_link_use_export_dynamic=no
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7549 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7550 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7552 cat >>confdefs.h <<\_ACEOF
7553 #define HAVE_LINK_EXPORT_DYNAMIC 1
7559 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7560 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7561 if test "${llvm_cv_link_use_version_script+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572 # The following code is from the autoconf manual,
7573 # "11.13: Limitations of Usual Tools".
7574 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7575 # Use mktemp if possible; otherwise fall back on mkdir,
7576 # with $RANDOM to make collisions less likely.
7580 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7582 test -n "$tmp" && test -d "$tmp"
7584 tmp=$TMPDIR/foo$$-$RANDOM
7585 (umask 077 && mkdir "$tmp")
7588 echo "{" > "$tmp/export.map"
7589 echo " global: main;" >> "$tmp/export.map"
7590 echo " local: *;" >> "$tmp/export.map"
7591 echo "};" >> "$tmp/export.map"
7593 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (ac_try="$ac_link"
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_link") 2>conftest.er1
7618 grep -v '^ *+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7624 { (case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_try") 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_try") 2>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 llvm_cv_link_use_version_script=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 llvm_cv_link_use_version_script=no
7651 rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 rm "$tmp/export.map"
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7665 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7666 if test "$llvm_cv_link_use_version_script" = yes ; then
7667 HAVE_LINK_VERSION_SCRIPT=1
7673 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7674 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 # Extract the first word of "grep ggrep" to use in msg output
7679 if test -z "$GREP"; then
7680 set dummy grep ggrep; ac_prog_name=$2
7681 if test "${ac_cv_path_GREP+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_path_GREP_found=false
7685 # Loop through the user's path and test for each of PROGNAME-LIST
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7690 test -z "$as_dir" && as_dir=.
7691 for ac_prog in grep ggrep; do
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7694 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7695 # Check for GNU ac_path_GREP and select it if it is found.
7696 # Check for GNU $ac_path_GREP
7697 case `"$ac_path_GREP" --version 2>&1` in
7699 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7702 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7705 cat "conftest.in" "conftest.in" >"conftest.tmp"
7706 mv "conftest.tmp" "conftest.in"
7707 cp "conftest.in" "conftest.nl"
7708 echo 'GREP' >> "conftest.nl"
7709 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7711 ac_count=`expr $ac_count + 1`
7712 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7713 # Best one so far, save it but keep looking for a better one
7714 ac_cv_path_GREP="$ac_path_GREP"
7715 ac_path_GREP_max=$ac_count
7717 # 10*(2^10) chars as input seems more than enough
7718 test $ac_count -gt 10 && break
7720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7724 $ac_path_GREP_found && break 3
7734 GREP="$ac_cv_path_GREP"
7735 if test -z "$GREP"; then
7736 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7737 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7738 { (exit 1); exit 1; }; }
7742 ac_cv_path_GREP=$GREP
7747 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7748 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7749 GREP="$ac_cv_path_GREP"
7752 { echo "$as_me:$LINENO: checking for egrep" >&5
7753 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_EGREP+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7758 then ac_cv_path_EGREP="$GREP -E"
7760 # Extract the first word of "egrep" to use in msg output
7761 if test -z "$EGREP"; then
7762 set dummy egrep; ac_prog_name=$2
7763 if test "${ac_cv_path_EGREP+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_path_EGREP_found=false
7767 # Loop through the user's path and test for each of PROGNAME-LIST
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7772 test -z "$as_dir" && as_dir=.
7773 for ac_prog in egrep; do
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7776 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7777 # Check for GNU ac_path_EGREP and select it if it is found.
7778 # Check for GNU $ac_path_EGREP
7779 case `"$ac_path_EGREP" --version 2>&1` in
7781 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7784 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7787 cat "conftest.in" "conftest.in" >"conftest.tmp"
7788 mv "conftest.tmp" "conftest.in"
7789 cp "conftest.in" "conftest.nl"
7790 echo 'EGREP' >> "conftest.nl"
7791 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7793 ac_count=`expr $ac_count + 1`
7794 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7795 # Best one so far, save it but keep looking for a better one
7796 ac_cv_path_EGREP="$ac_path_EGREP"
7797 ac_path_EGREP_max=$ac_count
7799 # 10*(2^10) chars as input seems more than enough
7800 test $ac_count -gt 10 && break
7802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7806 $ac_path_EGREP_found && break 3
7816 EGREP="$ac_cv_path_EGREP"
7817 if test -z "$EGREP"; then
7818 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7819 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7820 { (exit 1); exit 1; }; }
7824 ac_cv_path_EGREP=$EGREP
7830 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7831 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7832 EGREP="$ac_cv_path_EGREP"
7835 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7837 if test "${ac_cv_header_stdc+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_header_stdc=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_header_stdc=no
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 if test $ac_cv_header_stdc = yes; then
7904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "memchr" >/dev/null 2>&1; then
7918 ac_cv_header_stdc=no
7924 if test $ac_cv_header_stdc = yes; then
7925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936 $EGREP "free" >/dev/null 2>&1; then
7939 ac_cv_header_stdc=no
7945 if test $ac_cv_header_stdc = yes; then
7946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7947 if test "$cross_compiling" = yes; then
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7958 #if ((' ' & 0x0FF) == 0x020)
7959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7962 # define ISLOWER(c) \
7963 (('a' <= (c) && (c) <= 'i') \
7964 || ('j' <= (c) && (c) <= 'r') \
7965 || ('s' <= (c) && (c) <= 'z'))
7966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7974 for (i = 0; i < 256; i++)
7975 if (XOR (islower (i), ISLOWER (i))
7976 || toupper (i) != TOUPPER (i))
7981 rm -f conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988 (eval "$ac_link") 2>&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8003 echo "$as_me: program exited with status $ac_status" >&5
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_cv_header_stdc=no
8010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8018 if test $ac_cv_header_stdc = yes; then
8020 cat >>confdefs.h <<\_ACEOF
8021 #define STDC_HEADERS 1
8026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037 inttypes.h stdint.h unistd.h
8039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8053 #include <$ac_header>
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_compile") 2>conftest.er1
8064 grep -v '^ *+' conftest.er1 >conftest.err
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest.$ac_objext'
8080 { (case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_try") 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 eval "$as_ac_Header=yes"
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 eval "$as_ac_Header=no"
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 ac_res=`eval echo '${'$as_ac_Header'}'`
8100 { echo "$as_me:$LINENO: result: $ac_res" >&5
8101 echo "${ECHO_T}$ac_res" >&6; }
8102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8103 cat >>confdefs.h <<_ACEOF
8104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 for ac_header in errno.h
8115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_res=`eval echo '${'$as_ac_Header'}'`
8123 { echo "$as_me:$LINENO: result: $ac_res" >&5
8124 echo "${ECHO_T}$ac_res" >&6; }
8126 # Is the header compilable?
8127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 $ac_includes_default
8136 #include <$ac_header>
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_header_compiler=yes
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_header_compiler=no
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8182 echo "${ECHO_T}$ac_header_compiler" >&6; }
8184 # Is the header present?
8185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #include <$ac_header>
8195 if { (ac_try="$ac_cpp conftest.$ac_ext"
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } >/dev/null; then
8208 if test -s conftest.err; then
8209 ac_cpp_err=$ac_c_preproc_warn_flag
8210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8217 if test -z "$ac_cpp_err"; then
8218 ac_header_preproc=yes
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_header_preproc=no
8226 rm -f conftest.err conftest.$ac_ext
8227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228 echo "${ECHO_T}$ac_header_preproc" >&6; }
8230 # So? What about this header?
8231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8237 ac_header_preproc=yes
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8253 ## ------------------------------------ ##
8254 ## Report this to http://llvm.org/bugs/ ##
8255 ## ------------------------------------ ##
8257 ) | sed "s/^/$as_me: WARNING: /" >&2
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 eval "$as_ac_Header=\$ac_header_preproc"
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268 { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 case "$llvm_cv_os_type" in
8283 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8284 Darwin) llvm_shlib_ext=.dylib ;;
8285 *) llvm_shlib_ext=.so ;;
8289 cat >>confdefs.h <<_ACEOF
8290 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8294 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8295 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8308 if test "$GCC" != "yes" && test "$ICC" != "yes"
8310 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8311 echo "$as_me: error: gcc|icc required but not found" >&2;}
8312 { (exit 1); exit 1; }; }
8315 if test "$GXX" != "yes" && test "$IXX" != "yes"
8317 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8318 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8319 { (exit 1); exit 1; }; }
8322 if test "$GCC" = "yes"
8324 cat >conftest.$ac_ext <<_ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8332 #if !defined(__GNUC__) || __GNUC__ < 3
8333 #error Unsupported GCC version
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8378 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8379 { (exit 1); exit 1; }; }
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 if test -z "$llvm_cv_gnu_make_command"
8387 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8388 echo "$as_me: error: GNU Make required but not found" >&2;}
8389 { (exit 1); exit 1; }; }
8392 { echo "$as_me:$LINENO: result: ok" >&5
8393 echo "${ECHO_T}ok" >&6; }
8395 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8396 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8397 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8399 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8401 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8405 NO_MAYBE_UNINITIALIZED=
8406 if test "$GXX" = "yes"
8408 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8410 if test -z "$NO_MAYBE_UNINITIALIZED"
8412 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 $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8483 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_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 -limagehlp" >&5
8662 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8663 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-limagehlp $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_imagehlp_main=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_lib_imagehlp_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_imagehlp_main" >&5
8731 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8732 if test $ac_cv_lib_imagehlp_main = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_LIBIMAGEHLP 1
8737 LIBS="-limagehlp $LIBS"
8742 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8743 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8744 if test "${ac_cv_lib_ole32_main+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 ac_check_lib_save_LIBS=$LIBS
8748 LIBS="-lole32 $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_ole32_main=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_lib_ole32_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_ole32_main" >&5
8812 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8813 if test $ac_cv_lib_ole32_main = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_LIBOLE32 1
8818 LIBS="-lole32 $LIBS"
8823 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8824 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8825 if test "${ac_cv_lib_psapi_main+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-lpsapi $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_psapi_main=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_cv_lib_psapi_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_psapi_main" >&5
8893 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8894 if test $ac_cv_lib_psapi_main = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_LIBPSAPI 1
8899 LIBS="-lpsapi $LIBS"
8904 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8905 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8906 if test "${ac_cv_lib_shell32_main+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 ac_check_lib_save_LIBS=$LIBS
8910 LIBS="-lshell32 $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (ac_try="$ac_link"
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_link") 2>conftest.er1
8936 grep -v '^ *+' conftest.er1 >conftest.err
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942 { (case "(($ac_try" in
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_try") 2>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_cv_lib_shell32_main=yes
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8966 ac_cv_lib_shell32_main=no
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8973 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8974 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8975 if test $ac_cv_lib_shell32_main = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_LIBSHELL32 1
8980 LIBS="-lshell32 $LIBS"
8986 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8987 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8988 if test "${ac_cv_search_dlopen+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 ac_func_search_save_LIBS=$LIBS
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8999 /* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
9014 for ac_lib in '' dl; do
9015 if test -z "$ac_lib"; then
9016 ac_res="none required"
9019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (ac_try="$ac_link"
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_link") 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_try") 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_try") 2>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_search_dlopen=$ac_res
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9063 rm -f core conftest.err conftest.$ac_objext \
9065 if test "${ac_cv_search_dlopen+set}" = set; then
9069 if test "${ac_cv_search_dlopen+set}" = set; then
9072 ac_cv_search_dlopen=no
9075 LIBS=$ac_func_search_save_LIBS
9077 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9079 ac_res=$ac_cv_search_dlopen
9080 if test "$ac_res" != no; then
9081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_DLOPEN 1
9092 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9093 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9097 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9098 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9099 if test "${ac_cv_search_clock_gettime+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_func_search_save_LIBS=$LIBS
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 /* Override any GCC internal prototype to avoid an error.
9111 Use char because int might match the return type of a GCC
9112 builtin and then its argument prototype would still apply. */
9116 char clock_gettime ();
9120 return clock_gettime ();
9125 for ac_lib in '' rt; do
9126 if test -z "$ac_lib"; then
9127 ac_res="none required"
9130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (ac_try="$ac_link"
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest$ac_exeext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_search_clock_gettime=$ac_res
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9174 rm -f core conftest.err conftest.$ac_objext \
9176 if test "${ac_cv_search_clock_gettime+set}" = set; then
9180 if test "${ac_cv_search_clock_gettime+set}" = set; then
9183 ac_cv_search_clock_gettime=no
9186 LIBS=$ac_func_search_save_LIBS
9188 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9189 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9190 ac_res=$ac_cv_search_clock_gettime
9191 if test "$ac_res" != no; then
9192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9197 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9198 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9199 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9200 if test "${ac_cv_search_setupterm+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 ac_func_search_save_LIBS=$LIBS
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9211 /* Override any GCC internal prototype to avoid an error.
9212 Use char because int might match the return type of a GCC
9213 builtin and then its argument prototype would still apply. */
9221 return setupterm ();
9226 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9227 if test -z "$ac_lib"; then
9228 ac_res="none required"
9231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9248 { (case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_try") 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (case "(($ac_try" in
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_try") 2>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_cv_search_setupterm=$ac_res
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9275 rm -f core conftest.err conftest.$ac_objext \
9277 if test "${ac_cv_search_setupterm+set}" = set; then
9281 if test "${ac_cv_search_setupterm+set}" = set; then
9284 ac_cv_search_setupterm=no
9287 LIBS=$ac_func_search_save_LIBS
9289 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9290 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9291 ac_res=$ac_cv_search_setupterm
9292 if test "$ac_res" != no; then
9293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9296 cat >>confdefs.h <<\_ACEOF
9297 #define HAVE_TERMINFO 1
9307 if test "$llvm_cv_enable_libedit" = "yes" ; then
9308 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9309 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9310 if test "${ac_cv_search_el_init+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 ac_func_search_save_LIBS=$LIBS
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9336 for ac_lib in '' edit; do
9337 if test -z "$ac_lib"; then
9338 ac_res="none required"
9341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_link") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358 { (case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_try") 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_try") 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_search_el_init=$ac_res
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9385 rm -f core conftest.err conftest.$ac_objext \
9387 if test "${ac_cv_search_el_init+set}" = set; then
9391 if test "${ac_cv_search_el_init+set}" = set; then
9394 ac_cv_search_el_init=no
9397 LIBS=$ac_func_search_save_LIBS
9399 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9400 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9401 ac_res=$ac_cv_search_el_init
9402 if test "$ac_res" != no; then
9403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_LIBEDIT 1
9413 if test "$llvm_cv_enable_libffi" = "yes" ; then
9414 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9415 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9416 if test "${ac_cv_search_ffi_call+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 ac_func_search_save_LIBS=$LIBS
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9442 for ac_lib in '' ffi; do
9443 if test -z "$ac_lib"; then
9444 ac_res="none required"
9447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456 (eval "$ac_link") 2>conftest.er1
9458 grep -v '^ *+' conftest.er1 >conftest.err
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9464 { (case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_try") 2>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_try") 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 ac_cv_search_ffi_call=$ac_res
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9491 rm -f core conftest.err conftest.$ac_objext \
9493 if test "${ac_cv_search_ffi_call+set}" = set; then
9497 if test "${ac_cv_search_ffi_call+set}" = set; then
9500 ac_cv_search_ffi_call=no
9503 LIBS=$ac_func_search_save_LIBS
9505 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9506 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9507 ac_res=$ac_cv_search_ffi_call
9508 if test "$ac_res" != no; then
9509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_FFI_CALL 1
9516 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9517 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9518 { (exit 1); exit 1; }; }
9523 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9524 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9525 if test "${ac_cv_search_mallinfo+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 ac_func_search_save_LIBS=$LIBS
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9551 for ac_lib in '' malloc; do
9552 if test -z "$ac_lib"; then
9553 ac_res="none required"
9556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_link") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_search_mallinfo=$ac_res
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9600 rm -f core conftest.err conftest.$ac_objext \
9602 if test "${ac_cv_search_mallinfo+set}" = set; then
9606 if test "${ac_cv_search_mallinfo+set}" = set; then
9609 ac_cv_search_mallinfo=no
9612 LIBS=$ac_func_search_save_LIBS
9614 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9615 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9616 ac_res=$ac_cv_search_mallinfo
9617 if test "$ac_res" != no; then
9618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_MALLINFO 1
9627 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9629 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9630 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lpthread $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9649 char pthread_mutex_init ();
9653 return pthread_mutex_init ();
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_pthread_pthread_mutex_init=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_pthread_pthread_mutex_init=no
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9705 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9706 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define HAVE_LIBPTHREAD 1
9711 LIBS="-lpthread $LIBS"
9715 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9716 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9717 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 ac_func_search_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9734 char pthread_mutex_lock ();
9738 return pthread_mutex_lock ();
9743 for ac_lib in '' pthread; do
9744 if test -z "$ac_lib"; then
9745 ac_res="none required"
9748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_link") 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9765 { (case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_try") 2>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_pthread_mutex_lock=$ac_res
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9792 rm -f core conftest.err conftest.$ac_objext \
9794 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9801 ac_cv_search_pthread_mutex_lock=no
9804 LIBS=$ac_func_search_save_LIBS
9806 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9807 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9808 ac_res=$ac_cv_search_pthread_mutex_lock
9809 if test "$ac_res" != no; then
9810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9812 cat >>confdefs.h <<\_ACEOF
9813 #define HAVE_PTHREAD_MUTEX_LOCK 1
9818 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9819 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9820 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ac_func_search_save_LIBS=$LIBS
9824 cat >conftest.$ac_ext <<_ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9837 char pthread_rwlock_init ();
9841 return pthread_rwlock_init ();
9846 for ac_lib in '' pthread; do
9847 if test -z "$ac_lib"; then
9848 ac_res="none required"
9851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_search_pthread_rwlock_init=$ac_res
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9895 rm -f core conftest.err conftest.$ac_objext \
9897 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9901 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9904 ac_cv_search_pthread_rwlock_init=no
9907 LIBS=$ac_func_search_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9910 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9911 ac_res=$ac_cv_search_pthread_rwlock_init
9912 if test "$ac_res" != no; then
9913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_PTHREAD_RWLOCK_INIT 1
9921 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9922 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9923 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 ac_func_search_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9940 char pthread_getspecific ();
9944 return pthread_getspecific ();
9949 for ac_lib in '' pthread; do
9950 if test -z "$ac_lib"; then
9951 ac_res="none required"
9954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_link") 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest$ac_exeext'
9981 { (case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_try") 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 ac_cv_search_pthread_getspecific=$ac_res
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9998 rm -f core conftest.err conftest.$ac_objext \
10000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10004 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10007 ac_cv_search_pthread_getspecific=no
10009 rm conftest.$ac_ext
10010 LIBS=$ac_func_search_save_LIBS
10012 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10013 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10014 ac_res=$ac_cv_search_pthread_getspecific
10015 if test "$ac_res" != no; then
10016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10018 cat >>confdefs.h <<\_ACEOF
10019 #define HAVE_PTHREAD_GETSPECIFIC 1
10026 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10028 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10029 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_z_compress2+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 ac_check_lib_save_LIBS=$LIBS
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10052 return compress2 ();
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_lib_z_compress2=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_lib_z_compress2=no
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10103 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10104 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10105 if test $ac_cv_lib_z_compress2 = yes; then
10106 cat >>confdefs.h <<_ACEOF
10107 #define HAVE_LIBZ 1
10117 # Check whether --with-oprofile was given.
10118 if test "${with_oprofile+set}" = set; then
10119 withval=$with_oprofile;
10123 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10124 no) llvm_cv_oppath=
10127 *) llvm_cv_oppath="${withval}/lib/oprofile"
10128 CPPFLAGS="-I${withval}/include";;
10130 case $llvm_cv_os_type in
10132 if test -n "$llvm_cv_oppath" ; then
10133 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10134 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10135 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10136 if test "${ac_cv_search_bfd_init+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 ac_func_search_save_LIBS=$LIBS
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10147 /* Override any GCC internal prototype to avoid an error.
10148 Use char because int might match the return type of a GCC
10149 builtin and then its argument prototype would still apply. */
10157 return bfd_init ();
10162 for ac_lib in '' bfd; do
10163 if test -z "$ac_lib"; then
10164 ac_res="none required"
10167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_link") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_search_bfd_init=$ac_res
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10211 rm -f core conftest.err conftest.$ac_objext \
10213 if test "${ac_cv_search_bfd_init+set}" = set; then
10217 if test "${ac_cv_search_bfd_init+set}" = set; then
10220 ac_cv_search_bfd_init=no
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10225 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10226 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10227 ac_res=$ac_cv_search_bfd_init
10228 if test "$ac_res" != no; then
10229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10233 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10234 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10235 if test "${ac_cv_search_op_open_agent+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 ac_func_search_save_LIBS=$LIBS
10239 cat >conftest.$ac_ext <<_ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10252 char op_open_agent ();
10256 return op_open_agent ();
10261 for ac_lib in '' opagent; do
10262 if test -z "$ac_lib"; then
10263 ac_res="none required"
10266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_search_op_open_agent=$ac_res
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10310 rm -f core conftest.err conftest.$ac_objext \
10312 if test "${ac_cv_search_op_open_agent+set}" = set; then
10316 if test "${ac_cv_search_op_open_agent+set}" = set; then
10319 ac_cv_search_op_open_agent=no
10321 rm conftest.$ac_ext
10322 LIBS=$ac_func_search_save_LIBS
10324 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10325 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10326 ac_res=$ac_cv_search_op_open_agent
10327 if test "$ac_res" != no; then
10328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10332 echo "Error! You need to have libopagent around."
10337 if test "${ac_cv_header_opagent_h+set}" = set; then
10338 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10339 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10340 if test "${ac_cv_header_opagent_h+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10344 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10346 # Is the header compilable?
10347 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10348 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10349 cat >conftest.$ac_ext <<_ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 $ac_includes_default
10356 #include <opagent.h>
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10373 { (case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_try") 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try='test -s conftest.$ac_objext'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_header_compiler=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_header_compiler=no
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10402 echo "${ECHO_T}$ac_header_compiler" >&6; }
10404 # Is the header present?
10405 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10406 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <opagent.h>
10415 if { (ac_try="$ac_cpp conftest.$ac_ext"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10423 grep -v '^ *+' conftest.er1 >conftest.err
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } >/dev/null; then
10428 if test -s conftest.err; then
10429 ac_cpp_err=$ac_c_preproc_warn_flag
10430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10437 if test -z "$ac_cpp_err"; then
10438 ac_header_preproc=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_header_preproc=no
10446 rm -f conftest.err conftest.$ac_ext
10447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 echo "${ECHO_T}$ac_header_preproc" >&6; }
10450 # So? What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10453 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10454 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10456 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10457 ac_header_preproc=yes
10460 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10461 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10463 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10465 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10467 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10469 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10471 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10473 ## ------------------------------------ ##
10474 ## Report this to http://llvm.org/bugs/ ##
10475 ## ------------------------------------ ##
10477 ) | sed "s/^/$as_me: WARNING: /" >&2
10480 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10481 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10482 if test "${ac_cv_header_opagent_h+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 ac_cv_header_opagent_h=$ac_header_preproc
10487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10491 if test $ac_cv_header_opagent_h = yes; then
10495 echo "Error! You need to have opagent.h around."
10503 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10504 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10505 { (exit 1); exit 1; }; } ;;
10516 cat >>confdefs.h <<_ACEOF
10517 #define LLVM_USE_OPROFILE $USE_OPROFILE
10522 # Check whether --with-intel-jitevents was given.
10523 if test "${with_intel_jitevents+set}" = set; then
10524 withval=$with_intel_jitevents;
10526 yes) USE_INTEL_JITEVENTS=1
10528 no) USE_INTEL_JITEVENTS=0
10530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10531 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10532 { (exit 1); exit 1; }; };;
10535 case $llvm_cv_os_type in
10536 Linux|Win32|Cygwin|MingW) ;;
10537 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10538 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10539 { (exit 1); exit 1; }; };;
10542 case "$llvm_cv_target_arch" in
10544 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10545 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10546 { (exit 1); exit 1; }; };;
10551 USE_INTEL_JITEVENTS=0
10557 cat >>confdefs.h <<_ACEOF
10558 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10562 for ac_prog in xml2-config
10564 # Extract the first word of "$ac_prog", so it can be a program name with args.
10565 set dummy $ac_prog; ac_word=$2
10566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10568 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 if test -n "$XML2CONFIG"; then
10572 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_XML2CONFIG="$ac_prog"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10592 if test -n "$XML2CONFIG"; then
10593 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10594 echo "${ECHO_T}$XML2CONFIG" >&6; }
10596 { echo "$as_me:$LINENO: result: no" >&5
10597 echo "${ECHO_T}no" >&6; }
10601 test -n "$XML2CONFIG" && break
10605 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10606 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10607 if test "x$XML2CONFIG" = "x"; then
10608 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10609 echo "${ECHO_T}xml2-config not found" >&6; }
10611 LIBXML2_INC=`$XML2CONFIG --cflags`
10612 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10613 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10614 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10615 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10616 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lxml2 $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10634 char xmlReadFile ();
10638 return xmlReadFile ();
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10658 { (case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_try") 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_try") 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_xml2_xmlReadFile=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_lib_xml2_xmlReadFile=no
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10690 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10691 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10693 cat >>confdefs.h <<\_ACEOF
10694 #define CLANG_HAVE_LIBXML 1
10697 LIBXML2_LIBS="-lxml2"
10710 ac_header_dirent=no
10711 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10712 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10713 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10714 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <sys/types.h>
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_compile") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_try") 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest.$ac_objext'
10761 { (case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_try") 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 eval "$as_ac_Header=yes"
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 eval "$as_ac_Header=no"
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 ac_res=`eval echo '${'$as_ac_Header'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10788 ac_header_dirent=$ac_hdr; break
10792 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10793 if test $ac_header_dirent = dirent.h; then
10794 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10795 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10796 if test "${ac_cv_search_opendir+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 ac_func_search_save_LIBS=$LIBS
10800 cat >conftest.$ac_ext <<_ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10807 /* Override any GCC internal prototype to avoid an error.
10808 Use char because int might match the return type of a GCC
10809 builtin and then its argument prototype would still apply. */
10822 for ac_lib in '' dir; do
10823 if test -z "$ac_lib"; then
10824 ac_res="none required"
10827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (ac_try="$ac_link"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_link") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_search_opendir=$ac_res
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10871 rm -f core conftest.err conftest.$ac_objext \
10873 if test "${ac_cv_search_opendir+set}" = set; then
10877 if test "${ac_cv_search_opendir+set}" = set; then
10880 ac_cv_search_opendir=no
10882 rm conftest.$ac_ext
10883 LIBS=$ac_func_search_save_LIBS
10885 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10886 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10887 ac_res=$ac_cv_search_opendir
10888 if test "$ac_res" != no; then
10889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10894 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10895 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10896 if test "${ac_cv_search_opendir+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 ac_func_search_save_LIBS=$LIBS
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10922 for ac_lib in '' x; do
10923 if test -z "$ac_lib"; then
10924 ac_res="none required"
10927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10929 rm -f conftest.$ac_objext conftest$ac_exeext
10930 if { (ac_try="$ac_link"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_link") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest$ac_exeext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_search_opendir=$ac_res
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10971 rm -f core conftest.err conftest.$ac_objext \
10973 if test "${ac_cv_search_opendir+set}" = set; then
10977 if test "${ac_cv_search_opendir+set}" = set; then
10980 ac_cv_search_opendir=no
10982 rm conftest.$ac_ext
10983 LIBS=$ac_func_search_save_LIBS
10985 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10986 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10987 ac_res=$ac_cv_search_opendir
10988 if test "$ac_res" != no; then
10989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10995 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10996 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10997 if test "${ac_cv_header_mmap_anon+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <sys/mman.h>
11013 #include <unistd.h>
11018 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_header_mmap_anon=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_header_mmap_anon=no
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cpp='$CPP $CPPFLAGS'
11068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11074 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11075 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11076 if test "$ac_cv_header_mmap_anon" = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_MMAP_ANONYMOUS 1
11084 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11085 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11086 if test "${ac_cv_header_stat_broken+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 #include <sys/types.h>
11096 #include <sys/stat.h>
11098 #if defined S_ISBLK && defined S_IFDIR
11099 # if S_ISBLK (S_IFDIR)
11104 #if defined S_ISBLK && defined S_IFCHR
11105 # if S_ISBLK (S_IFCHR)
11110 #if defined S_ISLNK && defined S_IFREG
11111 # if S_ISLNK (S_IFREG)
11116 #if defined S_ISSOCK && defined S_IFREG
11117 # if S_ISSOCK (S_IFREG)
11123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11124 $EGREP "You lose" >/dev/null 2>&1; then
11125 ac_cv_header_stat_broken=yes
11127 ac_cv_header_stat_broken=no
11132 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11133 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11134 if test $ac_cv_header_stat_broken = yes; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define STAT_MACROS_BROKEN 1
11142 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11143 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11144 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <sys/types.h>
11154 #include <sys/wait.h>
11155 #ifndef WEXITSTATUS
11156 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11159 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11167 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_try") 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_cv_header_sys_wait_h=yes
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_header_sys_wait_h=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11218 if test $ac_cv_header_sys_wait_h = yes; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define HAVE_SYS_WAIT_H 1
11226 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11227 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11228 if test "${ac_cv_header_time+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <sys/types.h>
11238 #include <sys/time.h>
11244 if ((struct tm *) 0)
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_header_time=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_header_time=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11295 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11296 if test $ac_cv_header_time = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define TIME_WITH_SYS_TIME 1
11306 ac_cpp='$CXXCPP $CPPFLAGS'
11307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11312 for ac_header in cxxabi.h
11314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <stddef.h>
11329 #include <$ac_header>
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11346 { (case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_try") 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
11356 { (case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_try") 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 eval "$as_ac_Header=yes"
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 eval "$as_ac_Header=no"
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11412 # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 #include <$ac_header>
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_header_compiler=yes
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ac_header_compiler=no
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include <$ac_header>
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503 if test -z "$ac_cpp_err"; then
11504 ac_header_preproc=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_preproc=no
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11516 # So? What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539 ## ------------------------------------ ##
11540 ## Report this to http://llvm.org/bugs/ ##
11541 ## ------------------------------------ ##
11543 ) | sed "s/^/$as_me: WARNING: /" >&2
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 eval "$as_ac_Header=\$ac_header_preproc"
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 ac_res=`eval echo '${'$as_ac_Header'}'`
11583 { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11586 # Is the header compilable?
11587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 $ac_includes_default
11596 #include <$ac_header>
11598 rm -f conftest.$ac_objext
11599 if { (ac_try="$ac_compile"
11600 case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_compile") 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest.$ac_objext'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_header_compiler=yes
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev/null; then
11668 if test -s conftest.err; then
11669 ac_cpp_err=$ac_c_preproc_warn_flag
11670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11677 if test -z "$ac_cpp_err"; then
11678 ac_header_preproc=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_header_preproc=no
11686 rm -f conftest.err conftest.$ac_ext
11687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11688 echo "${ECHO_T}$ac_header_preproc" >&6; }
11690 # So? What about this header?
11691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11697 ac_header_preproc=yes
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11713 ## ------------------------------------ ##
11714 ## Report this to http://llvm.org/bugs/ ##
11715 ## ------------------------------------ ##
11717 ) | sed "s/^/$as_me: WARNING: /" >&2
11720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 eval "$as_ac_Header=\$ac_header_preproc"
11727 ac_res=`eval echo '${'$as_ac_Header'}'`
11728 { echo "$as_me:$LINENO: result: $ac_res" >&5
11729 echo "${ECHO_T}$ac_res" >&6; }
11732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11733 cat >>confdefs.h <<_ACEOF
11734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742 for ac_header in utime.h
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11755 # Is the header compilable?
11756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 $ac_includes_default
11765 #include <$ac_header>
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_compile") 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782 { (case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_try") 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11801 ac_header_compiler=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <$ac_header>
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc=yes
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_header_preproc=no
11855 rm -f conftest.err conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6; }
11859 # So? What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11882 ## ------------------------------------ ##
11883 ## Report this to http://llvm.org/bugs/ ##
11884 ## ------------------------------------ ##
11886 ) | sed "s/^/$as_me: WARNING: /" >&2
11889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 eval "$as_ac_Header=\$ac_header_preproc"
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11915 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 ac_res=`eval echo '${'$as_ac_Header'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11928 # Is the header compilable?
11929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 $ac_includes_default
11938 #include <$ac_header>
11940 rm -f conftest.$ac_objext
11941 if { (ac_try="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11949 grep -v '^ *+' conftest.er1 >conftest.err
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
11954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11955 { (case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_try") 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest.$ac_objext'
11965 { (case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_try") 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_header_compiler=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_header_compiler=no
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11984 echo "${ECHO_T}$ac_header_compiler" >&6; }
11986 # Is the header present?
11987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <$ac_header>
11997 if { (ac_try="$ac_cpp conftest.$ac_ext"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } >/dev/null; then
12010 if test -s conftest.err; then
12011 ac_cpp_err=$ac_c_preproc_warn_flag
12012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12019 if test -z "$ac_cpp_err"; then
12020 ac_header_preproc=yes
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_header_preproc=no
12028 rm -f conftest.err conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12030 echo "${ECHO_T}$ac_header_preproc" >&6; }
12032 # So? What about this header?
12033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12039 ac_header_preproc=yes
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12055 ## ------------------------------------ ##
12056 ## Report this to http://llvm.org/bugs/ ##
12057 ## ------------------------------------ ##
12059 ) | sed "s/^/$as_me: WARNING: /" >&2
12062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 eval "$as_ac_Header=\$ac_header_preproc"
12069 ac_res=`eval echo '${'$as_ac_Header'}'`
12070 { echo "$as_me:$LINENO: result: $ac_res" >&5
12071 echo "${ECHO_T}$ac_res" >&6; }
12074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_res=`eval echo '${'$as_ac_Header'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12099 # Is the header compilable?
12100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12109 #include <$ac_header>
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_header_compiler=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_header_compiler=no
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155 echo "${ECHO_T}$ac_header_compiler" >&6; }
12157 # Is the header present?
12158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 #include <$ac_header>
12168 if { (ac_try="$ac_cpp conftest.$ac_ext"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12176 grep -v '^ *+' conftest.er1 >conftest.err
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } >/dev/null; then
12181 if test -s conftest.err; then
12182 ac_cpp_err=$ac_c_preproc_warn_flag
12183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12190 if test -z "$ac_cpp_err"; then
12191 ac_header_preproc=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_header_preproc=no
12199 rm -f conftest.err conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12201 echo "${ECHO_T}$ac_header_preproc" >&6; }
12203 # So? What about this header?
12204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12210 ac_header_preproc=yes
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226 ## ------------------------------------ ##
12227 ## Report this to http://llvm.org/bugs/ ##
12228 ## ------------------------------------ ##
12230 ) | sed "s/^/$as_me: WARNING: /" >&2
12233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 eval "$as_ac_Header=\$ac_header_preproc"
12240 ac_res=`eval echo '${'$as_ac_Header'}'`
12241 { echo "$as_me:$LINENO: result: $ac_res" >&5
12242 echo "${ECHO_T}$ac_res" >&6; }
12245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12255 for ac_header in valgrind/valgrind.h
12257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_res=`eval echo '${'$as_ac_Header'}'`
12265 { echo "$as_me:$LINENO: result: $ac_res" >&5
12266 echo "${ECHO_T}$ac_res" >&6; }
12268 # Is the header compilable?
12269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12278 #include <$ac_header>
12280 rm -f conftest.$ac_objext
12281 if { (ac_try="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_header_compiler=yes
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_header_compiler=no
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6; }
12326 # Is the header present?
12327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <$ac_header>
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } >/dev/null; then
12350 if test -s conftest.err; then
12351 ac_cpp_err=$ac_c_preproc_warn_flag
12352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12359 if test -z "$ac_cpp_err"; then
12360 ac_header_preproc=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_preproc=no
12368 rm -f conftest.err conftest.$ac_ext
12369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12370 echo "${ECHO_T}$ac_header_preproc" >&6; }
12372 # So? What about this header?
12373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12379 ac_header_preproc=yes
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12395 ## ------------------------------------ ##
12396 ## Report this to http://llvm.org/bugs/ ##
12397 ## ------------------------------------ ##
12399 ) | sed "s/^/$as_me: WARNING: /" >&2
12402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 eval "$as_ac_Header=\$ac_header_preproc"
12409 ac_res=`eval echo '${'$as_ac_Header'}'`
12410 { echo "$as_me:$LINENO: result: $ac_res" >&5
12411 echo "${ECHO_T}$ac_res" >&6; }
12414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12415 cat >>confdefs.h <<_ACEOF
12416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12424 for ac_header in fenv.h
12426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 ac_res=`eval echo '${'$as_ac_Header'}'`
12434 { echo "$as_me:$LINENO: result: $ac_res" >&5
12435 echo "${ECHO_T}$ac_res" >&6; }
12437 # Is the header compilable?
12438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12447 #include <$ac_header>
12449 rm -f conftest.$ac_objext
12450 if { (ac_try="$ac_compile"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_compile") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_header_compiler=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_compiler=no
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12493 echo "${ECHO_T}$ac_header_compiler" >&6; }
12495 # Is the header present?
12496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 #include <$ac_header>
12506 if { (ac_try="$ac_cpp conftest.$ac_ext"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } >/dev/null; then
12519 if test -s conftest.err; then
12520 ac_cpp_err=$ac_c_preproc_warn_flag
12521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12528 if test -z "$ac_cpp_err"; then
12529 ac_header_preproc=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ac_header_preproc=no
12537 rm -f conftest.err conftest.$ac_ext
12538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12539 echo "${ECHO_T}$ac_header_preproc" >&6; }
12541 # So? What about this header?
12542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12548 ac_header_preproc=yes
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12564 ## ------------------------------------ ##
12565 ## Report this to http://llvm.org/bugs/ ##
12566 ## ------------------------------------ ##
12568 ) | sed "s/^/$as_me: WARNING: /" >&2
12571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 eval "$as_ac_Header=\$ac_header_preproc"
12578 ac_res=`eval echo '${'$as_ac_Header'}'`
12579 { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12584 cat >>confdefs.h <<_ACEOF
12585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12592 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12593 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12594 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12608 #ifndef FE_ALL_EXCEPT
12609 char *p = (char *) FE_ALL_EXCEPT;
12617 rm -f conftest.$ac_objext
12618 if { (ac_try="$ac_compile"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_compile") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632 { (case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_try") 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_cv_have_decl_FE_ALL_EXCEPT=no
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12662 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12663 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_DECL_FE_ALL_EXCEPT 1
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_DECL_FE_ALL_EXCEPT 0
12677 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12678 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12679 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12694 char *p = (char *) FE_INEXACT;
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717 { (case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_try") 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_try") 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_have_decl_FE_INEXACT=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_cv_have_decl_FE_INEXACT=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12747 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12748 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL_FE_INEXACT 1
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_DECL_FE_INEXACT 0
12764 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12766 for ac_header in pthread.h
12768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_res=`eval echo '${'$as_ac_Header'}'`
12776 { echo "$as_me:$LINENO: result: $ac_res" >&5
12777 echo "${ECHO_T}$ac_res" >&6; }
12779 # Is the header compilable?
12780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12789 #include <$ac_header>
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_header_compiler=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_header_compiler=no
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835 echo "${ECHO_T}$ac_header_compiler" >&6; }
12837 # Is the header present?
12838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 #include <$ac_header>
12848 if { (ac_try="$ac_cpp conftest.$ac_ext"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
12863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12870 if test -z "$ac_cpp_err"; then
12871 ac_header_preproc=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_header_preproc=no
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12906 ## ------------------------------------ ##
12907 ## Report this to http://llvm.org/bugs/ ##
12908 ## ------------------------------------ ##
12910 ) | sed "s/^/$as_me: WARNING: /" >&2
12913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 eval "$as_ac_Header=\$ac_header_preproc"
12920 ac_res=`eval echo '${'$as_ac_Header'}'`
12921 { echo "$as_me:$LINENO: result: $ac_res" >&5
12922 echo "${ECHO_T}$ac_res" >&6; }
12925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12942 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12944 for ac_header in zlib.h
12946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_res=`eval echo '${'$as_ac_Header'}'`
12954 { echo "$as_me:$LINENO: result: $ac_res" >&5
12955 echo "${ECHO_T}$ac_res" >&6; }
12957 # Is the header compilable?
12958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12960 cat >conftest.$ac_ext <<_ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966 $ac_includes_default
12967 #include <$ac_header>
12969 rm -f conftest.$ac_objext
12970 if { (ac_try="$ac_compile"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_compile") 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_header_compiler=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ac_header_compiler=no
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013 echo "${ECHO_T}$ac_header_compiler" >&6; }
13015 # Is the header present?
13016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 #include <$ac_header>
13026 if { (ac_try="$ac_cpp conftest.$ac_ext"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1 >conftest.err
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } >/dev/null; then
13039 if test -s conftest.err; then
13040 ac_cpp_err=$ac_c_preproc_warn_flag
13041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13048 if test -z "$ac_cpp_err"; then
13049 ac_header_preproc=yes
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_header_preproc=no
13057 rm -f conftest.err conftest.$ac_ext
13058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13059 echo "${ECHO_T}$ac_header_preproc" >&6; }
13061 # So? What about this header?
13062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13068 ac_header_preproc=yes
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13084 ## ------------------------------------ ##
13085 ## Report this to http://llvm.org/bugs/ ##
13086 ## ------------------------------------ ##
13088 ) | sed "s/^/$as_me: WARNING: /" >&2
13091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 eval "$as_ac_Header=\$ac_header_preproc"
13098 ac_res=`eval echo '${'$as_ac_Header'}'`
13099 { echo "$as_me:$LINENO: result: $ac_res" >&5
13100 echo "${ECHO_T}$ac_res" >&6; }
13103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13104 cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13121 if test "$llvm_cv_enable_libffi" = "yes" ; then
13124 for ac_header in ffi.h ffi/ffi.h
13126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 ac_res=`eval echo '${'$as_ac_Header'}'`
13134 { echo "$as_me:$LINENO: result: $ac_res" >&5
13135 echo "${ECHO_T}$ac_res" >&6; }
13137 # Is the header compilable?
13138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 $ac_includes_default
13147 #include <$ac_header>
13149 rm -f conftest.$ac_objext
13150 if { (ac_try="$ac_compile"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compile") 2>conftest.er1
13158 grep -v '^ *+' conftest.er1 >conftest.err
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; } &&
13173 { ac_try='test -s conftest.$ac_objext'
13174 { (case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_try") 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_header_compiler=yes
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_header_compiler=no
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6; }
13195 # Is the header present?
13196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13198 cat >conftest.$ac_ext <<_ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #include <$ac_header>
13206 if { (ac_try="$ac_cpp conftest.$ac_ext"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } >/dev/null; then
13219 if test -s conftest.err; then
13220 ac_cpp_err=$ac_c_preproc_warn_flag
13221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13228 if test -z "$ac_cpp_err"; then
13229 ac_header_preproc=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_header_preproc=no
13237 rm -f conftest.err conftest.$ac_ext
13238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13239 echo "${ECHO_T}$ac_header_preproc" >&6; }
13241 # So? What about this header?
13242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13248 ac_header_preproc=yes
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13264 ## ------------------------------------ ##
13265 ## Report this to http://llvm.org/bugs/ ##
13266 ## ------------------------------------ ##
13268 ) | sed "s/^/$as_me: WARNING: /" >&2
13271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 eval "$as_ac_Header=\$ac_header_preproc"
13278 ac_res=`eval echo '${'$as_ac_Header'}'`
13279 { echo "$as_me:$LINENO: result: $ac_res" >&5
13280 echo "${ECHO_T}$ac_res" >&6; }
13283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13284 cat >>confdefs.h <<_ACEOF
13285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13295 for ac_header in CrashReporterClient.h
13297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 ac_res=`eval echo '${'$as_ac_Header'}'`
13305 { echo "$as_me:$LINENO: result: $ac_res" >&5
13306 echo "${ECHO_T}$ac_res" >&6; }
13308 # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13318 #include <$ac_header>
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_compile") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler=yes
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13359 ac_header_compiler=no
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13364 echo "${ECHO_T}$ac_header_compiler" >&6; }
13366 # Is the header present?
13367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <$ac_header>
13377 if { (ac_try="$ac_cpp conftest.$ac_ext"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_c_preproc_warn_flag
13392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13399 if test -z "$ac_cpp_err"; then
13400 ac_header_preproc=yes
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_header_preproc=no
13408 rm -f conftest.err conftest.$ac_ext
13409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13410 echo "${ECHO_T}$ac_header_preproc" >&6; }
13412 # So? What about this header?
13413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13419 ac_header_preproc=yes
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13435 ## ------------------------------------ ##
13436 ## Report this to http://llvm.org/bugs/ ##
13437 ## ------------------------------------ ##
13439 ) | sed "s/^/$as_me: WARNING: /" >&2
13442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 eval "$as_ac_Header=\$ac_header_preproc"
13449 ac_res=`eval echo '${'$as_ac_Header'}'`
13450 { echo "$as_me:$LINENO: result: $ac_res" >&5
13451 echo "${ECHO_T}$ac_res" >&6; }
13454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13455 cat >>confdefs.h <<_ACEOF
13456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13464 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13465 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13474 extern const char *__crashreporter_info__;
13476 __crashreporter_info__ = "test";
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_link") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_try") 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest$ac_exeext'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13517 { echo "$as_me:$LINENO: result: yes" >&5
13518 echo "${ECHO_T}yes" >&6; }
13520 cat >>confdefs.h <<\_ACEOF
13521 #define HAVE_CRASHREPORTER_INFO 1
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13530 { echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6; }
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_CRASHREPORTER_INFO 0
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13546 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13547 if test "${ac_cv_huge_val_sanity+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_cpp='$CXXCPP $CPPFLAGS'
13553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13557 ac_save_CXXFLAGS=$CXXFLAGS
13558 CXXFLAGS="$CXXFLAGS -pedantic"
13559 if test "$cross_compiling" = yes; then
13560 ac_cv_huge_val_sanity=yes
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13572 double x = HUGE_VAL; return x != x;
13577 rm -f conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_link") 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_huge_val_sanity=yes
13599 echo "$as_me: program exited with status $ac_status" >&5
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ( exit $ac_status )
13604 ac_cv_huge_val_sanity=no
13606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13610 CXXFLAGS=$ac_save_CXXFLAGS
13612 ac_cpp='$CPP $CPPFLAGS'
13613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13619 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13620 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13621 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13624 { echo "$as_me:$LINENO: checking for pid_t" >&5
13625 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13626 if test "${ac_cv_type_pid_t+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13636 typedef pid_t ac__type_new_;
13640 if ((ac__type_new_ *) 0)
13642 if (sizeof (ac__type_new_))
13648 rm -f conftest.$ac_objext
13649 if { (ac_try="$ac_compile"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_compile") 2>conftest.er1
13657 grep -v '^ *+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_try") 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 ac_cv_type_pid_t=yes
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_cv_type_pid_t=no
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13693 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13694 if test $ac_cv_type_pid_t = yes; then
13698 cat >>confdefs.h <<_ACEOF
13704 { echo "$as_me:$LINENO: checking for size_t" >&5
13705 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13706 if test "${ac_cv_type_size_t+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 typedef size_t ac__type_new_;
13720 if ((ac__type_new_ *) 0)
13722 if (sizeof (ac__type_new_))
13728 rm -f conftest.$ac_objext
13729 if { (ac_try="$ac_compile"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_compile") 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743 { (case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_try") 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_type_size_t=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_cv_type_size_t=no
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13773 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13774 if test $ac_cv_type_size_t = yes; then
13778 cat >>confdefs.h <<_ACEOF
13779 #define size_t unsigned int
13785 cat >>confdefs.h <<_ACEOF
13786 #define RETSIGTYPE void
13789 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13790 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_struct_tm+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <sys/types.h>
13806 struct tm *tp; tp->tm_sec;
13811 rm -f conftest.$ac_objext
13812 if { (ac_try="$ac_compile"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_compile") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_struct_tm=time.h
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_cv_struct_tm=sys/time.h
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13856 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13857 if test $ac_cv_struct_tm = sys/time.h; then
13859 cat >>confdefs.h <<\_ACEOF
13860 #define TM_IN_SYS_TIME 1
13865 { echo "$as_me:$LINENO: checking for int64_t" >&5
13866 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13867 if test "${ac_cv_type_int64_t+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 typedef int64_t ac__type_new_;
13881 if ((ac__type_new_ *) 0)
13883 if (sizeof (ac__type_new_))
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_compile") 2>conftest.er1
13898 grep -v '^ *+' conftest.er1 >conftest.err
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_type_int64_t=yes
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_cv_type_int64_t=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13934 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13935 if test $ac_cv_type_int64_t = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_INT64_T 1
13943 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13944 echo "$as_me: error: Type int64_t required but not found" >&2;}
13945 { (exit 1); exit 1; }; }
13948 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13949 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13950 if test "${ac_cv_type_uint64_t+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 $ac_includes_default
13960 typedef uint64_t ac__type_new_;
13964 if ((ac__type_new_ *) 0)
13966 if (sizeof (ac__type_new_))
13972 rm -f conftest.$ac_objext
13973 if { (ac_try="$ac_compile"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_compile") 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987 { (case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_try") 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest.$ac_objext'
13997 { (case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_try") 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 ac_cv_type_uint64_t=yes
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ac_cv_type_uint64_t=no
14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14017 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14018 if test $ac_cv_type_uint64_t = yes; then
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_UINT64_T 1
14026 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14027 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14028 if test "${ac_cv_type_u_int64_t+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 typedef u_int64_t ac__type_new_;
14042 if ((ac__type_new_ *) 0)
14044 if (sizeof (ac__type_new_))
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_compile") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14065 { (case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_try") 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14084 ac_cv_type_u_int64_t=yes
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_cv_type_u_int64_t=no
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14094 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14095 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14096 if test $ac_cv_type_u_int64_t = yes; then
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_U_INT64_T 1
14104 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14105 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14106 { (exit 1); exit 1; }; }
14115 for ac_func in backtrace getcwd
14117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14131 #define $ac_func innocuous_$ac_func
14133 /* System header to define __stub macros and hopefully few prototypes,
14134 which can conflict with char $ac_func (); below.
14135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136 <limits.h> exists even on freestanding compilers. */
14139 # include <limits.h>
14141 # include <assert.h>
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined __stub_$ac_func || defined __stub___$ac_func
14163 return $ac_func ();
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_link") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14183 { (case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_try") 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest$ac_exeext'
14193 { (case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_try") 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 eval "$as_ac_var=yes"
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 eval "$as_ac_var=no"
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14213 ac_res=`eval echo '${'$as_ac_var'}'`
14214 { echo "$as_me:$LINENO: result: $ac_res" >&5
14215 echo "${ECHO_T}$ac_res" >&6; }
14216 if test `eval echo '${'$as_ac_var'}'` = yes; then
14217 cat >>confdefs.h <<_ACEOF
14218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14229 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14253 # include <limits.h>
14255 # include <assert.h>
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14267 /* The GNU C library defines this for functions which it implements
14268 to always fail with ENOSYS. Some functions are actually named
14269 something starting with __ and the normal name is an alias. */
14270 #if defined __stub_$ac_func || defined __stub___$ac_func
14277 return $ac_func ();
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14291 grep -v '^ *+' conftest.er1 >conftest.err
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 eval "$as_ac_var=yes"
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 eval "$as_ac_var=no"
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14327 ac_res=`eval echo '${'$as_ac_var'}'`
14328 { echo "$as_me:$LINENO: result: $ac_res" >&5
14329 echo "${ECHO_T}$ac_res" >&6; }
14330 if test `eval echo '${'$as_ac_var'}'` = yes; then
14331 cat >>confdefs.h <<_ACEOF
14332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14341 for ac_func in isatty mkdtemp mkstemp
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357 #define $ac_func innocuous_$ac_func
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14365 # include <limits.h>
14367 # include <assert.h>
14372 /* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined __stub_$ac_func || defined __stub___$ac_func
14389 return $ac_func ();
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 eval "$as_ac_var=yes"
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 eval "$as_ac_var=no"
14436 rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14439 ac_res=`eval echo '${'$as_ac_var'}'`
14440 { echo "$as_me:$LINENO: result: $ac_res" >&5
14441 echo "${ECHO_T}$ac_res" >&6; }
14442 if test `eval echo '${'$as_ac_var'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14456 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14472 #define $ac_func innocuous_$ac_func
14474 /* System header to define __stub macros and hopefully few prototypes,
14475 which can conflict with char $ac_func (); below.
14476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477 <limits.h> exists even on freestanding compilers. */
14480 # include <limits.h>
14482 # include <assert.h>
14487 /* Override any GCC internal prototype to avoid an error.
14488 Use char because int might match the return type of a GCC
14489 builtin and then its argument prototype would still apply. */
14494 /* The GNU C library defines this for functions which it implements
14495 to always fail with ENOSYS. Some functions are actually named
14496 something starting with __ and the normal name is an alias. */
14497 #if defined __stub_$ac_func || defined __stub___$ac_func
14504 return $ac_func ();
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (ac_try="$ac_link"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_link") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest$ac_exeext'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$as_ac_var=yes"
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 eval "$as_ac_var=no"
14551 rm -f core conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14554 ac_res=`eval echo '${'$as_ac_var'}'`
14555 { echo "$as_me:$LINENO: result: $ac_res" >&5
14556 echo "${ECHO_T}$ac_res" >&6; }
14557 if test `eval echo '${'$as_ac_var'}'` = yes; then
14558 cat >>confdefs.h <<_ACEOF
14559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14568 for ac_func in strerror strerror_r setenv
14570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 cat >conftest.$ac_ext <<_ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14584 #define $ac_func innocuous_$ac_func
14586 /* System header to define __stub macros and hopefully few prototypes,
14587 which can conflict with char $ac_func (); below.
14588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 <limits.h> exists even on freestanding compilers. */
14592 # include <limits.h>
14594 # include <assert.h>
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14606 /* The GNU C library defines this for functions which it implements
14607 to always fail with ENOSYS. Some functions are actually named
14608 something starting with __ and the normal name is an alias. */
14609 #if defined __stub_$ac_func || defined __stub___$ac_func
14616 return $ac_func ();
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_link") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1 >conftest.err
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest$ac_exeext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 eval "$as_ac_var=yes"
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 eval "$as_ac_var=no"
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14666 ac_res=`eval echo '${'$as_ac_var'}'`
14667 { echo "$as_me:$LINENO: result: $ac_res" >&5
14668 echo "${ECHO_T}$ac_res" >&6; }
14669 if test `eval echo '${'$as_ac_var'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14697 #define $ac_func innocuous_$ac_func
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
14705 # include <limits.h>
14707 # include <assert.h>
14712 /* Override any GCC internal prototype to avoid an error.
14713 Use char because int might match the return type of a GCC
14714 builtin and then its argument prototype would still apply. */
14719 /* The GNU C library defines this for functions which it implements
14720 to always fail with ENOSYS. Some functions are actually named
14721 something starting with __ and the normal name is an alias. */
14722 #if defined __stub_$ac_func || defined __stub___$ac_func
14729 return $ac_func ();
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (ac_try="$ac_link"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_link") 2>conftest.er1
14743 grep -v '^ *+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14749 { (case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_try") 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_try") 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 eval "$as_ac_var=yes"
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 eval "$as_ac_var=no"
14776 rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14779 ac_res=`eval echo '${'$as_ac_var'}'`
14780 { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14782 if test `eval echo '${'$as_ac_var'}'` = yes; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14795 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14811 #define $ac_func innocuous_$ac_func
14813 /* System header to define __stub macros and hopefully few prototypes,
14814 which can conflict with char $ac_func (); below.
14815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14816 <limits.h> exists even on freestanding compilers. */
14819 # include <limits.h>
14821 # include <assert.h>
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14833 /* The GNU C library defines this for functions which it implements
14834 to always fail with ENOSYS. Some functions are actually named
14835 something starting with __ and the normal name is an alias. */
14836 #if defined __stub_$ac_func || defined __stub___$ac_func
14843 return $ac_func ();
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (ac_try="$ac_link"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855 (eval "$ac_link") 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14863 { (case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_try") 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_try") 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 eval "$as_ac_var=yes"
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 eval "$as_ac_var=no"
14890 rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14893 ac_res=`eval echo '${'$as_ac_var'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14896 if test `eval echo '${'$as_ac_var'}'` = yes; then
14897 cat >>confdefs.h <<_ACEOF
14898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14906 for ac_func in futimes futimens
14908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14922 #define $ac_func innocuous_$ac_func
14924 /* System header to define __stub macros and hopefully few prototypes,
14925 which can conflict with char $ac_func (); below.
14926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927 <limits.h> exists even on freestanding compilers. */
14930 # include <limits.h>
14932 # include <assert.h>
14937 /* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14944 /* The GNU C library defines this for functions which it implements
14945 to always fail with ENOSYS. Some functions are actually named
14946 something starting with __ and the normal name is an alias. */
14947 #if defined __stub_$ac_func || defined __stub___$ac_func
14954 return $ac_func ();
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (ac_try="$ac_link"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14974 { (case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_try") 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest$ac_exeext'
14984 { (case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_try") 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 eval "$as_ac_var=yes"
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 eval "$as_ac_var=no"
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15004 ac_res=`eval echo '${'$as_ac_var'}'`
15005 { echo "$as_me:$LINENO: result: $ac_res" >&5
15006 echo "${ECHO_T}$ac_res" >&6; }
15007 if test `eval echo '${'$as_ac_var'}'` = yes; then
15008 cat >>confdefs.h <<_ACEOF
15009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15015 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15016 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15017 if test "${llvm_cv_c_printf_a+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 ac_cpp='$CPP $CPPFLAGS'
15022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15026 if test "$cross_compiling" = yes; then
15027 llvmac_cv_c_printf_a=no
15029 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15038 #include <stdlib.h>
15044 volatile double A, B;
15048 sprintf(Buffer, "%a", A);
15052 if (A != 0x1.999999999999ap-4)
15059 rm -f conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 llvm_cv_c_printf_a=yes
15081 echo "$as_me: program exited with status $ac_status" >&5
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ( exit $ac_status )
15086 llvmac_cv_c_printf_a=no
15088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15099 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15100 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15101 if test "$llvm_cv_c_printf_a" = "yes"; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_PRINTF_A 1
15111 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15112 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15113 if test "${ac_cv_func_rand48+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 ac_cpp='$CXXCPP $CPPFLAGS'
15119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 #include <stdlib.h>
15133 srand48(0);lrand48();drand48();
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_compile") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15153 { (case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_try") 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; } &&
15162 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15172 ac_cv_func_rand48=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_func_rand48=no
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 ac_cpp='$CPP $CPPFLAGS'
15183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15190 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15192 if test "$ac_cv_func_rand48" = "yes" ; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_RAND48 1
15201 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15202 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15203 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15217 char *p = (char *) arc4random;
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_have_decl_arc4random=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_have_decl_arc4random=no
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15270 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15271 if test $ac_cv_have_decl_arc4random = yes; then
15273 cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_ARC4RANDOM 1
15279 cat >>confdefs.h <<_ACEOF
15280 #define HAVE_DECL_ARC4RANDOM 0
15288 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15289 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15290 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 $ac_includes_default
15304 char *p = (char *) strerror_s;
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_compile") 2>conftest.er1
15321 grep -v '^ *+' conftest.er1 >conftest.err
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_try") 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 ac_cv_have_decl_strerror_s=yes
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_cv_have_decl_strerror_s=no
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15357 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15358 if test $ac_cv_have_decl_strerror_s = yes; then
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_DECL_STRERROR_S 1
15366 cat >>confdefs.h <<_ACEOF
15367 #define HAVE_DECL_STRERROR_S 0
15375 if test "$llvm_cv_os_type" = "MingW" ; then
15376 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15377 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 ac_check_lib_save_LIBS=$LIBS
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15420 { (case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_try") 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest$ac_exeext'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_lib_gcc__alloca=yes
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 ac_cv_lib_gcc__alloca=no
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15452 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15453 if test $ac_cv_lib_gcc__alloca = yes; then
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE__ALLOCA 1
15461 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15462 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15463 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_check_lib_save_LIBS=$LIBS
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15475 /* Override any GCC internal prototype to avoid an error.
15476 Use char because int might match the return type of a GCC
15477 builtin and then its argument prototype would still apply. */
15485 return __alloca ();
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505 { (case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_try") 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_lib_gcc___alloca=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_gcc___alloca=no
15532 rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15537 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15538 if test $ac_cv_lib_gcc___alloca = yes; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE___ALLOCA 1
15546 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15547 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15548 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_check_lib_save_LIBS=$LIBS
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 /* Override any GCC internal prototype to avoid an error.
15561 Use char because int might match the return type of a GCC
15562 builtin and then its argument prototype would still apply. */
15570 return __chkstk ();
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (ac_try="$ac_link"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_link") 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15590 { (case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_try") 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; } &&
15599 { ac_try='test -s conftest$ac_exeext'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_lib_gcc___chkstk=yes
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ac_cv_lib_gcc___chkstk=no
15617 rm -f core conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15621 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15622 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15623 if test $ac_cv_lib_gcc___chkstk = yes; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE___CHKSTK 1
15631 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15632 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_check_lib_save_LIBS=$LIBS
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15651 char __chkstk_ms ();
15655 return __chkstk_ms ();
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675 { (case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_try") 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_lib_gcc___chkstk_ms=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_cv_lib_gcc___chkstk_ms=no
15702 rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15707 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15708 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE___CHKSTK_MS 1
15716 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15717 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15718 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 ac_check_lib_save_LIBS=$LIBS
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15740 return ___chkstk ();
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (ac_try="$ac_link"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_link") 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest$ac_exeext'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_cv_lib_gcc____chkstk=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_lib_gcc____chkstk=no
15787 rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
15789 LIBS=$ac_check_lib_save_LIBS
15791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15792 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15793 if test $ac_cv_lib_gcc____chkstk = yes; then
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE____CHKSTK 1
15801 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15802 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15803 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 ac_check_lib_save_LIBS=$LIBS
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15815 /* Override any GCC internal prototype to avoid an error.
15816 Use char because int might match the return type of a GCC
15817 builtin and then its argument prototype would still apply. */
15821 char ___chkstk_ms ();
15825 return ___chkstk_ms ();
15830 rm -f conftest.$ac_objext conftest$ac_exeext
15831 if { (ac_try="$ac_link"
15832 case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_link") 2>conftest.er1
15839 grep -v '^ *+' conftest.er1 >conftest.err
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15845 { (case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_try") 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest$ac_exeext'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_cv_lib_gcc____chkstk_ms=yes
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_cv_lib_gcc____chkstk_ms=no
15872 rm -f core conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15876 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15877 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15878 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE____CHKSTK_MS 1
15887 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15888 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15889 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 ac_check_lib_save_LIBS=$LIBS
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15911 return __ashldi3 ();
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_link") 2>conftest.er1
15925 grep -v '^ *+' conftest.er1 >conftest.err
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest$ac_exeext'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_lib_gcc___ashldi3=yes
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_cv_lib_gcc___ashldi3=no
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15963 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15964 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE___ASHLDI3 1
15972 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15973 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15974 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 ac_check_lib_save_LIBS=$LIBS
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15986 /* Override any GCC internal prototype to avoid an error.
15987 Use char because int might match the return type of a GCC
15988 builtin and then its argument prototype would still apply. */
15996 return __ashrdi3 ();
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (ac_try="$ac_link"
16003 case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_link") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_lib_gcc___ashrdi3=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_cv_lib_gcc___ashrdi3=no
16043 rm -f core conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
16045 LIBS=$ac_check_lib_save_LIBS
16047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16048 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16049 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE___ASHRDI3 1
16057 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16058 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16059 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 ac_check_lib_save_LIBS=$LIBS
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16071 /* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16081 return __divdi3 ();
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_lib_gcc___divdi3=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_lib_gcc___divdi3=no
16128 rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16133 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16134 if test $ac_cv_lib_gcc___divdi3 = yes; then
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE___DIVDI3 1
16142 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16143 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16144 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_check_lib_save_LIBS=$LIBS
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16156 /* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16166 return __fixdfdi ();
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_lib_gcc___fixdfdi=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_cv_lib_gcc___fixdfdi=no
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215 LIBS=$ac_check_lib_save_LIBS
16217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16218 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16219 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE___FIXDFDI 1
16227 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16228 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16229 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 ac_check_lib_save_LIBS=$LIBS
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16241 /* Override any GCC internal prototype to avoid an error.
16242 Use char because int might match the return type of a GCC
16243 builtin and then its argument prototype would still apply. */
16251 return __fixsfdi ();
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (ac_try="$ac_link"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_link") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest$ac_exeext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_lib_gcc___fixsfdi=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_lib_gcc___fixsfdi=no
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16303 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16304 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE___FIXSFDI 1
16312 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16313 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16314 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 ac_check_lib_save_LIBS=$LIBS
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16326 /* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16332 char __floatdidf ();
16336 return __floatdidf ();
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (ac_try="$ac_link"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_link") 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_cv_lib_gcc___floatdidf=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_cv_lib_gcc___floatdidf=no
16383 rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385 LIBS=$ac_check_lib_save_LIBS
16387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16388 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16389 if test $ac_cv_lib_gcc___floatdidf = yes; then
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE___FLOATDIDF 1
16397 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16398 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16399 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 ac_check_lib_save_LIBS=$LIBS
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16421 return __lshrdi3 ();
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_lib_gcc___lshrdi3=yes
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_cv_lib_gcc___lshrdi3=no
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16473 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16474 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE___LSHRDI3 1
16482 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16483 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS=$LIBS
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16506 return __moddi3 ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_gcc___moddi3=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_lib_gcc___moddi3=no
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16558 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16559 if test $ac_cv_lib_gcc___moddi3 = yes; then
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE___MODDI3 1
16567 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16568 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16569 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 ac_check_lib_save_LIBS=$LIBS
16574 cat >conftest.$ac_ext <<_ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16581 /* Override any GCC internal prototype to avoid an error.
16582 Use char because int might match the return type of a GCC
16583 builtin and then its argument prototype would still apply. */
16591 return __udivdi3 ();
16596 rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_link") 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_lib_gcc___udivdi3=yes
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 ac_cv_lib_gcc___udivdi3=no
16638 rm -f core conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16640 LIBS=$ac_check_lib_save_LIBS
16642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16643 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16644 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16646 cat >>confdefs.h <<\_ACEOF
16647 #define HAVE___UDIVDI3 1
16652 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16653 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16654 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 ac_check_lib_save_LIBS=$LIBS
16659 cat >conftest.$ac_ext <<_ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16666 /* Override any GCC internal prototype to avoid an error.
16667 Use char because int might match the return type of a GCC
16668 builtin and then its argument prototype would still apply. */
16676 return __umoddi3 ();
16681 rm -f conftest.$ac_objext conftest$ac_exeext
16682 if { (ac_try="$ac_link"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_link") 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16696 { (case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_try") 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_lib_gcc___umoddi3=yes
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 ac_cv_lib_gcc___umoddi3=no
16723 rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
16725 LIBS=$ac_check_lib_save_LIBS
16727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16728 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16729 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE___UMODDI3 1
16738 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16739 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16740 if test "${ac_cv_lib_gcc___main+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 ac_check_lib_save_LIBS=$LIBS
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16752 /* Override any GCC internal prototype to avoid an error.
16753 Use char because int might match the return type of a GCC
16754 builtin and then its argument prototype would still apply. */
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (ac_try="$ac_link"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_link") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest$ac_exeext'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_lib_gcc___main=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_lib_gcc___main=no
16809 rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811 LIBS=$ac_check_lib_save_LIBS
16813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16814 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16815 if test $ac_cv_lib_gcc___main = yes; then
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE___MAIN 1
16823 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16824 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16825 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 ac_check_lib_save_LIBS=$LIBS
16830 cat >conftest.$ac_ext <<_ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16837 /* Override any GCC internal prototype to avoid an error.
16838 Use char because int might match the return type of a GCC
16839 builtin and then its argument prototype would still apply. */
16847 return __cmpdi2 ();
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (ac_try="$ac_link"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_link") 2>conftest.er1
16861 grep -v '^ *+' conftest.er1 >conftest.err
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_lib_gcc___cmpdi2=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_cv_lib_gcc___cmpdi2=no
16894 rm -f core conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16896 LIBS=$ac_check_lib_save_LIBS
16898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16899 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16900 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE___CMPDI2 1
16910 if test "$llvm_cv_os_type" = "MingW" ; then
16911 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16912 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16913 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16921 #include <windows.h>
16922 #include <imagehlp.h>
16923 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16924 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16928 rm -f conftest.$ac_objext
16929 if { (ac_try="$ac_compile"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_compile") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16963 { echo "$as_me:$LINENO: result: yes" >&5
16964 echo "${ECHO_T}yes" >&6; }
16965 llvm_cv_win32_elmcb_pcstr="PCSTR"
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16972 { echo "$as_me:$LINENO: result: no" >&5
16973 echo "${ECHO_T}no" >&6; }
16974 llvm_cv_win32_elmcb_pcstr="PSTR"
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980 cat >>confdefs.h <<_ACEOF
16981 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16986 if test "$llvm_cv_platform_type" = "Unix" ; then
16989 for ac_header in stdlib.h unistd.h
16991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 ac_res=`eval echo '${'$as_ac_Header'}'`
16999 { echo "$as_me:$LINENO: result: $ac_res" >&5
17000 echo "${ECHO_T}$ac_res" >&6; }
17002 # Is the header compilable?
17003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17005 cat >conftest.$ac_ext <<_ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 $ac_includes_default
17012 #include <$ac_header>
17014 rm -f conftest.$ac_objext
17015 if { (ac_try="$ac_compile"
17016 case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_compile") 2>conftest.er1
17023 grep -v '^ *+' conftest.er1 >conftest.err
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest.$ac_objext'
17039 { (case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_try") 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_header_compiler=yes
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ac_header_compiler=no
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17058 echo "${ECHO_T}$ac_header_compiler" >&6; }
17060 # Is the header present?
17061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 #include <$ac_header>
17071 if { (ac_try="$ac_cpp conftest.$ac_ext"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } >/dev/null; then
17084 if test -s conftest.err; then
17085 ac_cpp_err=$ac_c_preproc_warn_flag
17086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17093 if test -z "$ac_cpp_err"; then
17094 ac_header_preproc=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_header_preproc=no
17102 rm -f conftest.err conftest.$ac_ext
17103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17104 echo "${ECHO_T}$ac_header_preproc" >&6; }
17106 # So? What about this header?
17107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17113 ac_header_preproc=yes
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17129 ## ------------------------------------ ##
17130 ## Report this to http://llvm.org/bugs/ ##
17131 ## ------------------------------------ ##
17133 ) | sed "s/^/$as_me: WARNING: /" >&2
17136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 eval "$as_ac_Header=\$ac_header_preproc"
17143 ac_res=`eval echo '${'$as_ac_Header'}'`
17144 { echo "$as_me:$LINENO: result: $ac_res" >&5
17145 echo "${ECHO_T}$ac_res" >&6; }
17148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17149 cat >>confdefs.h <<_ACEOF
17150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158 for ac_func in getpagesize
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17174 #define $ac_func innocuous_$ac_func
17176 /* System header to define __stub macros and hopefully few prototypes,
17177 which can conflict with char $ac_func (); below.
17178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179 <limits.h> exists even on freestanding compilers. */
17182 # include <limits.h>
17184 # include <assert.h>
17189 /* Override any GCC internal prototype to avoid an error.
17190 Use char because int might match the return type of a GCC
17191 builtin and then its argument prototype would still apply. */
17196 /* The GNU C library defines this for functions which it implements
17197 to always fail with ENOSYS. Some functions are actually named
17198 something starting with __ and the normal name is an alias. */
17199 #if defined __stub_$ac_func || defined __stub___$ac_func
17206 return $ac_func ();
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
17220 grep -v '^ *+' conftest.er1 >conftest.err
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 eval "$as_ac_var=yes"
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 eval "$as_ac_var=no"
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257 { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267 { echo "$as_me:$LINENO: checking for working mmap" >&5
17268 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17269 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 if test "$cross_compiling" = yes; then
17273 ac_cv_func_mmap_fixed_mapped=no
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17282 /* malloc might have been renamed as rpl_malloc. */
17285 /* Thanks to Mike Haertel and Jim Avera for this test.
17286 Here is a matrix of mmap possibilities:
17287 mmap private not fixed
17288 mmap private fixed at somewhere currently unmapped
17289 mmap private fixed at somewhere already mapped
17290 mmap shared not fixed
17291 mmap shared fixed at somewhere currently unmapped
17292 mmap shared fixed at somewhere already mapped
17293 For private mappings, we should verify that changes cannot be read()
17294 back from the file, nor mmap's back from the file at a different
17295 address. (There have been systems where private was not correctly
17296 implemented like the infamous i386 svr4.0, and systems where the
17297 VM page cache was not coherent with the file system buffer cache
17298 like early versions of FreeBSD and possibly contemporary NetBSD.)
17299 For shared mappings, we should conversely verify that changes get
17300 propagated back to all the places they're supposed to be.
17302 Grep wants private fixed already mapped.
17303 The main things grep needs to know about mmap are:
17304 * does it exist and is it safe to write into the mmap'd area
17305 * how to use it (BSD variants) */
17308 #include <sys/mman.h>
17310 #if !STDC_HEADERS && !HAVE_STDLIB_H
17314 /* This mess was copied from the GNU getpagesize.h. */
17315 #if !HAVE_GETPAGESIZE
17316 /* Assume that all systems that can run configure have sys/param.h. */
17317 # if !HAVE_SYS_PARAM_H
17318 # define HAVE_SYS_PARAM_H 1
17321 # ifdef _SC_PAGESIZE
17322 # define getpagesize() sysconf(_SC_PAGESIZE)
17323 # else /* no _SC_PAGESIZE */
17324 # if HAVE_SYS_PARAM_H
17325 # include <sys/param.h>
17326 # ifdef EXEC_PAGESIZE
17327 # define getpagesize() EXEC_PAGESIZE
17328 # else /* no EXEC_PAGESIZE */
17330 # define getpagesize() NBPG * CLSIZE
17333 # endif /* no CLSIZE */
17334 # else /* no NBPG */
17336 # define getpagesize() NBPC
17337 # else /* no NBPC */
17339 # define getpagesize() PAGESIZE
17340 # endif /* PAGESIZE */
17341 # endif /* no NBPC */
17342 # endif /* no NBPG */
17343 # endif /* no EXEC_PAGESIZE */
17344 # else /* no HAVE_SYS_PARAM_H */
17345 # define getpagesize() 8192 /* punt totally */
17346 # endif /* no HAVE_SYS_PARAM_H */
17347 # endif /* no _SC_PAGESIZE */
17349 #endif /* no HAVE_GETPAGESIZE */
17354 char *data, *data2, *data3;
17358 pagesize = getpagesize ();
17360 /* First, make a file with some known garbage in it. */
17361 data = (char *) malloc (pagesize);
17364 for (i = 0; i < pagesize; ++i)
17365 *(data + i) = rand ();
17367 fd = creat ("conftest.mmap", 0600);
17370 if (write (fd, data, pagesize) != pagesize)
17374 /* Next, try to mmap the file at a fixed address which already has
17375 something else allocated at it. If we can, also make sure that
17376 we see the same garbage. */
17377 fd = open ("conftest.mmap", O_RDWR);
17380 data2 = (char *) malloc (2 * pagesize);
17383 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17384 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17385 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17387 for (i = 0; i < pagesize; ++i)
17388 if (*(data + i) != *(data2 + i))
17391 /* Finally, make sure that changes to the mapped area do not
17392 percolate back to the file as seen by read(). (This is a bug on
17393 some variants of i386 svr4.0.) */
17394 for (i = 0; i < pagesize; ++i)
17395 *(data2 + i) = *(data2 + i) + 1;
17396 data3 = (char *) malloc (pagesize);
17399 if (read (fd, data3, pagesize) != pagesize)
17401 for (i = 0; i < pagesize; ++i)
17402 if (*(data + i) != *(data3 + i))
17408 rm -f conftest$ac_exeext
17409 if { (ac_try="$ac_link"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_link") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_func_mmap_fixed_mapped=yes
17430 echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ( exit $ac_status )
17435 ac_cv_func_mmap_fixed_mapped=no
17437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17446 cat >>confdefs.h <<\_ACEOF
17447 #define HAVE_MMAP 1
17451 rm -f conftest.mmap
17453 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17454 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17455 if test "${ac_cv_func_mmap_file+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 ac_cpp='$CPP $CPPFLAGS'
17460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17464 if test "$cross_compiling" = yes; then
17465 ac_cv_func_mmap_file=no
17467 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17475 #include <sys/types.h>
17476 #include <sys/mman.h>
17484 fd = creat ("foo",0777);
17485 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17487 return (fd != (int) MAP_FAILED);
17492 rm -f conftest$ac_exeext
17493 if { (ac_try="$ac_link"
17494 case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_link") 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17503 { (case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_try") 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_cv_func_mmap_file=yes
17514 echo "$as_me: program exited with status $ac_status" >&5
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ( exit $ac_status )
17519 ac_cv_func_mmap_file=no
17521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17526 ac_cpp='$CPP $CPPFLAGS'
17527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17533 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17534 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17535 if test "$ac_cv_func_mmap_file" = yes; then
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_MMAP_FILE
17545 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17546 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17547 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 if test "$llvm_cv_os_type" = "Interix" ; then
17551 ac_cv_need_dev_zero_for_mmap=yes
17553 ac_cv_need_dev_zero_for_mmap=no
17557 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17558 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17559 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17561 cat >>confdefs.h <<\_ACEOF
17562 #define NEED_DEV_ZERO_FOR_MMAP 1
17567 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17569 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17570 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17572 if test "$ac_cv_func_mmap_file" = "no"
17574 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17575 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17579 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17580 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17582 ac_cpp='$CXXCPP $CPPFLAGS'
17583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17587 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17596 volatile unsigned long val = 1;
17597 __sync_synchronize();
17598 __sync_val_compare_and_swap(&val, 1, 0);
17599 __sync_add_and_fetch(&val, 1);
17600 __sync_sub_and_fetch(&val, 1);
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest$ac_exeext'
17631 { (case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_try") 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17641 { echo "$as_me:$LINENO: result: yes" >&5
17642 echo "${ECHO_T}yes" >&6; }
17644 cat >>confdefs.h <<\_ACEOF
17645 #define LLVM_HAS_ATOMICS 1
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17654 { echo "$as_me:$LINENO: result: no" >&5
17655 echo "${ECHO_T}no" >&6; }
17657 cat >>confdefs.h <<\_ACEOF
17658 #define LLVM_HAS_ATOMICS 0
17661 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17662 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17666 rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17669 ac_cpp='$CPP $CPPFLAGS'
17670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17677 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17678 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17679 if test "${llvm_cv_linux_mixed+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17695 error: Not x86-64 even if uname says so!
17706 rm -f conftest.$ac_objext
17707 if { (ac_try="$ac_compile"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_compile") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest.$ac_objext'
17731 { (case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_try") 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 llvm_cv_linux_mixed=no
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 llvm_cv_linux_mixed=yes
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 ac_cpp='$CPP $CPPFLAGS'
17751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17757 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17758 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17760 if test "$llvm_cv_linux_mixed" = "yes"; then
17761 llvm_cv_target_arch="x86"
17767 for ac_func in __dso_handle
17769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17783 #define $ac_func innocuous_$ac_func
17785 /* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char $ac_func (); below.
17787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788 <limits.h> exists even on freestanding compilers. */
17791 # include <limits.h>
17793 # include <assert.h>
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17805 /* The GNU C library defines this for functions which it implements
17806 to always fail with ENOSYS. Some functions are actually named
17807 something starting with __ and the normal name is an alias. */
17808 #if defined __stub_$ac_func || defined __stub___$ac_func
17815 return $ac_func ();
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (ac_try="$ac_link"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 eval "$as_ac_var=yes"
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 eval "$as_ac_var=no"
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17865 ac_res=`eval echo '${'$as_ac_var'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17877 SHLIBEXT=$llvm_shlib_ext
17880 if test "${prefix}" = "NONE" ; then
17881 prefix="/usr/local"
17883 eval LLVM_PREFIX="${prefix}";
17884 eval LLVM_BINDIR="${prefix}/bin";
17885 eval LLVM_DATADIR="${prefix}/share/llvm";
17886 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17887 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17888 eval LLVM_INCLUDEDIR="${prefix}/include";
17889 eval LLVM_INFODIR="${prefix}/info";
17890 eval LLVM_MANDIR="${prefix}/man";
17891 LLVM_CONFIGTIME=`date`
17902 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17903 LLVM_CONFIGTIME="(timestamp not enabled)"
17907 cat >>confdefs.h <<_ACEOF
17908 #define LLVM_PREFIX "$LLVM_PREFIX"
17912 cat >>confdefs.h <<_ACEOF
17913 #define LLVM_BINDIR "$LLVM_BINDIR"
17917 cat >>confdefs.h <<_ACEOF
17918 #define LLVM_DATADIR "$LLVM_DATADIR"
17922 cat >>confdefs.h <<_ACEOF
17923 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17927 cat >>confdefs.h <<_ACEOF
17928 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17932 cat >>confdefs.h <<_ACEOF
17933 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17937 cat >>confdefs.h <<_ACEOF
17938 #define LLVM_INFODIR "$LLVM_INFODIR"
17942 cat >>confdefs.h <<_ACEOF
17943 #define LLVM_MANDIR "$LLVM_MANDIR"
17947 cat >>confdefs.h <<_ACEOF
17948 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17952 cat >>confdefs.h <<_ACEOF
17953 #define LLVM_HOST_TRIPLE "$host"
17957 cat >>confdefs.h <<_ACEOF
17958 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17962 if test "$BINDINGS_TO_BUILD" = auto ; then
17963 BINDINGS_TO_BUILD=""
17964 if test "x$OCAMLFIND" != x ; then
17965 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17967 if test "x$GO" != x ; then
17968 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17969 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17973 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17976 binding_prereqs_failed=0
17977 for a_binding in $BINDINGS_TO_BUILD ; do
17978 case "$a_binding" in
17980 if test "x$OCAMLFIND" = x ; then
17981 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17982 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17983 binding_prereqs_failed=1
17986 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17993 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17994 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17995 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17996 binding_prereqs_failed=1
17999 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18003 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18004 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18008 if test "x$with_ocaml_libdir" != xauto ; then
18009 OCAML_LIBDIR=$with_ocaml_libdir
18012 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18013 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18015 # ocaml stdlib is beneath our prefix; use stdlib
18016 OCAML_LIBDIR=$ocaml_stdlib
18019 # ocaml stdlib is outside our prefix; use libdir/ocaml
18020 OCAML_LIBDIR=${prefix}/lib/ocaml
18026 if test "x$GO" = x ; then
18027 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18028 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18029 binding_prereqs_failed=1
18031 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18034 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18035 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18036 binding_prereqs_failed=1
18042 if test "$binding_prereqs_failed" = 1 ; then
18043 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18044 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18045 { (exit 1); exit 1; }; }
18048 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18049 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18050 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 ac_cpp='$CXXCPP $CPPFLAGS'
18055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18059 oldcxxflags="$CXXFLAGS"
18060 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18061 cat >conftest.$ac_ext <<_ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest.$ac_objext'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 llvm_cv_cxx_visibility_inlines_hidden=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 llvm_cv_cxx_visibility_inlines_hidden=no
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 CXXFLAGS="$oldcxxflags"
18121 ac_cpp='$CPP $CPPFLAGS'
18122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18128 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18129 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18130 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18131 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18134 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18139 if test "$llvm_cv_link_use_r" = "yes" ; then
18146 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18147 RDYNAMIC="-rdynamic"
18154 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18161 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18163 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18165 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18167 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18169 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18172 ac_config_files="$ac_config_files Makefile.config"
18175 ac_config_files="$ac_config_files llvm.spec"
18178 ac_config_files="$ac_config_files docs/doxygen.cfg"
18181 if test "${clang_src_root}" = ""; then
18182 clang_src_root="$srcdir/tools/clang"
18184 if test -f ${clang_src_root}/README.txt; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define CLANG_LIBDIR_SUFFIX ""
18191 configh="include/clang/Config/config.h"
18192 doxy="docs/doxygen.cfg"
18193 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18195 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18199 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18202 test "x$program_prefix" = "xNONE" && program_prefix=""
18206 ac_config_commands="$ac_config_commands setup"
18208 ac_config_commands="$ac_config_commands Makefile"
18211 ac_config_commands="$ac_config_commands Makefile.common"
18214 ac_config_commands="$ac_config_commands examples/Makefile"
18217 ac_config_commands="$ac_config_commands lib/Makefile"
18220 ac_config_commands="$ac_config_commands test/Makefile"
18223 ac_config_commands="$ac_config_commands test/Makefile.tests"
18226 ac_config_commands="$ac_config_commands unittests/Makefile"
18229 ac_config_commands="$ac_config_commands tools/Makefile"
18232 ac_config_commands="$ac_config_commands utils/Makefile"
18235 ac_config_commands="$ac_config_commands projects/Makefile"
18238 ac_config_commands="$ac_config_commands bindings/Makefile"
18241 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18245 cat >confcache <<\_ACEOF
18246 # This file is a shell script that caches the results of configure
18247 # tests run on this system so they can be shared between configure
18248 # scripts and configure runs, see configure's option --config-cache.
18249 # It is not useful on other systems. If it contains results you don't
18250 # want to keep, you may remove or edit it.
18252 # config.status only pays attention to the cache file if you give it
18253 # the --recheck option to rerun configure.
18255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18257 # following values.
18261 # The following way of writing the cache mishandles newlines in values,
18262 # but we know of no workaround that is simple, portable, and efficient.
18263 # So, we kill variables containing newlines.
18264 # Ultrix sh set writes to stderr and can't be redirected directly,
18265 # and sets the high bit in the cache file unless we assign to the vars.
18267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18268 eval ac_val=\$$ac_var
18272 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18276 _ | IFS | as_nl) ;; #(
18277 *) $as_unset $ac_var ;;
18283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18284 *${as_nl}ac_space=\ *)
18285 # `set' does not quote correctly, so add quotes (double-quote
18286 # substitution turns \\\\ into \\, and sed turns \\ into \).
18289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18292 # `set' quotes correctly as required by POSIX, so do not add quotes.
18293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18307 if test -w "$cache_file"; then
18308 test "x$cache_file" != "x/dev/null" &&
18309 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18310 echo "$as_me: updating cache $cache_file" >&6;}
18311 cat confcache >$cache_file
18313 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18320 # Let make expand exec_prefix.
18321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18323 DEFS=-DHAVE_CONFIG_H
18327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18328 # 1. Remove the extension, and $U if already installed.
18329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18330 ac_i=`echo "$ac_i" | sed "$ac_script"`
18331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18332 # will be set to the directory where LIBOBJS objects are built.
18333 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18334 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18336 LIBOBJS=$ac_libobjs
18338 LTLIBOBJS=$ac_ltlibobjs
18342 : ${CONFIG_STATUS=./config.status}
18343 ac_clean_files_save=$ac_clean_files
18344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18345 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18346 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18347 cat >$CONFIG_STATUS <<_ACEOF
18349 # Generated by $as_me.
18350 # Run this file to recreate the current configuration.
18351 # Compiler output produced by configure, useful for debugging
18352 # configure, is in config.log if it exists.
18355 ac_cs_recheck=false
18357 SHELL=\${CONFIG_SHELL-$SHELL}
18360 cat >>$CONFIG_STATUS <<\_ACEOF
18361 ## --------------------- ##
18362 ## M4sh Initialization. ##
18363 ## --------------------- ##
18365 # Be Bourne compatible
18366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18369 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18370 # is contrary to our usage. Disable this feature.
18371 alias -g '${1+"$@"}'='"$@"'
18372 setopt NO_GLOB_SUBST
18374 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18376 BIN_SH=xpg4; export BIN_SH # for Tru64
18377 DUALCASE=1; export DUALCASE # for MKS sh
18381 # Avoid depending upon Character Ranges.
18382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18385 as_cr_digits='0123456789'
18386 as_cr_alnum=$as_cr_Letters$as_cr_digits
18388 # The user is always right.
18389 if test "${PATH_SEPARATOR+set}" != set; then
18390 echo "#! /bin/sh" >conf$$.sh
18391 echo "exit 0" >>conf$$.sh
18393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18401 # Support unset when possible.
18402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18410 # We need space, tab and new line, in precisely that order. Quoting is
18411 # there to prevent editors from complaining about space-tab.
18412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18413 # splitting by setting IFS to empty value.)
18418 # Find who we are. Look in the path if we contain no directory separator.
18420 *[\\/]* ) as_myself=$0 ;;
18421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18422 for as_dir in $PATH
18425 test -z "$as_dir" && as_dir=.
18426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18432 # We did not find ourselves, most probably we were run as `sh COMMAND'
18433 # in which case we are not to be found in the path.
18434 if test "x$as_myself" = x; then
18437 if test ! -f "$as_myself"; then
18438 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18439 { (exit 1); exit 1; }
18442 # Work around bugs in pre-3.0 UWIN ksh.
18443 for as_var in ENV MAIL MAILPATH
18444 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18454 LC_TELEPHONE LC_TIME
18456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18457 eval $as_var=C; export $as_var
18459 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18463 # Required to use basename.
18464 if expr a : '\(a\)' >/dev/null 2>&1 &&
18465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18472 as_basename=basename
18478 # Name of the executable.
18479 as_me=`$as_basename -- "$0" ||
18480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18481 X"$0" : 'X\(//\)$' \| \
18482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18484 sed '/^.*\/\([^/][^/]*\)\/*$/{
18503 as_lineno_1=$LINENO
18504 as_lineno_2=$LINENO
18505 test "x$as_lineno_1" != "x$as_lineno_2" &&
18506 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18508 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18509 # uniformly replaced by the line number. The first 'sed' inserts a
18510 # line-number line after each line using $LINENO; the second 'sed'
18511 # does the real work. The second script uses 'N' to pair each
18512 # line-number line with the line containing $LINENO, and appends
18513 # trailing '-' during substitution so that $LINENO is not a special
18514 # case at line end.
18515 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18516 # scripts with optimization help from Paolo Bonzini. Blame Lee
18517 # E. McMahon (1931-1989) for sed's syntax. :-)
18529 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18532 ' >$as_me.lineno &&
18533 chmod +x "$as_me.lineno" ||
18534 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18535 { (exit 1); exit 1; }; }
18537 # Don't try to exec as it changes $[0], causing all sort of problems
18538 # (the dirname of $[0] is not the place where we might find the
18539 # original and so on. Autoconf is especially sensitive to this).
18540 . "./$as_me.lineno"
18541 # Exit status is that of the last command.
18546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18552 ECHO_C= ECHO_N= ECHO_T=
18553 case `echo -n x` in
18555 case `echo 'x\c'` in
18556 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18563 if expr a : '\(a\)' >/dev/null 2>&1 &&
18564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18570 rm -f conf$$ conf$$.exe conf$$.file
18571 if test -d conf$$.dir; then
18572 rm -f conf$$.dir/conf$$.file
18578 if ln -s conf$$.file conf$$ 2>/dev/null; then
18580 # ... but there are two gotchas:
18581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18583 # In both cases, we have to default to `cp -p'.
18584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18586 elif ln conf$$.file conf$$ 2>/dev/null; then
18591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18592 rmdir conf$$.dir 2>/dev/null
18594 if mkdir -p . 2>/dev/null; then
18597 test -d ./-p && rmdir ./-p
18601 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18602 # systems may use methods other than mode bits to determine executability.
18603 cat >conf$$.file <<_ASEOF
18607 chmod +x conf$$.file
18608 if test -x conf$$.file >/dev/null 2>&1; then
18609 as_executable_p="test -x"
18615 # Sed expression to map a string onto a valid CPP name.
18616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18618 # Sed expression to map a string onto a valid variable name.
18619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18624 # Save the log message, to keep $[0] and so on meaningful, and to
18625 # report actual input values of CONFIG_FILES etc. instead of their
18626 # values after options handling.
18628 This file was extended by LLVM $as_me 3.7.0svn, which was
18629 generated by GNU Autoconf 2.60. Invocation command line was
18631 CONFIG_FILES = $CONFIG_FILES
18632 CONFIG_HEADERS = $CONFIG_HEADERS
18633 CONFIG_LINKS = $CONFIG_LINKS
18634 CONFIG_COMMANDS = $CONFIG_COMMANDS
18637 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18642 cat >>$CONFIG_STATUS <<_ACEOF
18643 # Files that config.status was made for.
18644 config_files="$ac_config_files"
18645 config_headers="$ac_config_headers"
18646 config_commands="$ac_config_commands"
18650 cat >>$CONFIG_STATUS <<\_ACEOF
18652 \`$as_me' instantiates files from templates according to the
18653 current configuration.
18655 Usage: $0 [OPTIONS] [FILE]...
18657 -h, --help print this help, then exit
18658 -V, --version print version number, then exit
18659 -q, --quiet do not print progress messages
18660 -d, --debug don't remove temporary files
18661 --recheck update $as_me by reconfiguring in the same conditions
18662 --file=FILE[:TEMPLATE]
18663 instantiate the configuration file FILE
18664 --header=FILE[:TEMPLATE]
18665 instantiate the configuration header FILE
18667 Configuration files:
18670 Configuration headers:
18673 Configuration commands:
18676 Report bugs to <bug-autoconf@gnu.org>."
18679 cat >>$CONFIG_STATUS <<_ACEOF
18681 LLVM config.status 3.7.0svn
18682 configured by $0, generated by GNU Autoconf 2.60,
18683 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18685 Copyright (C) 2006 Free Software Foundation, Inc.
18686 This config.status script is free software; the Free Software Foundation
18687 gives unlimited permission to copy, distribute and modify it."
18694 cat >>$CONFIG_STATUS <<\_ACEOF
18695 # If no file are specified by the user, then we need to provide default
18696 # value. By we need to know if files were specified by the user.
18702 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18703 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18714 # Handling of the options.
18715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18717 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18718 echo "$ac_cs_version"; exit ;;
18719 --debug | --debu | --deb | --de | --d | -d )
18721 --file | --fil | --fi | --f )
18723 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18724 ac_need_defaults=false;;
18725 --header | --heade | --head | --hea )
18727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18728 ac_need_defaults=false;;
18730 # Conflict between --help and --header
18731 { echo "$as_me: error: ambiguous option: $1
18732 Try \`$0 --help' for more information." >&2
18733 { (exit 1); exit 1; }; };;
18734 --help | --hel | -h )
18735 echo "$ac_cs_usage"; exit ;;
18736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18737 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18740 # This is an error.
18741 -*) { echo "$as_me: error: unrecognized option: $1
18742 Try \`$0 --help' for more information." >&2
18743 { (exit 1); exit 1; }; } ;;
18745 *) ac_config_targets="$ac_config_targets $1"
18746 ac_need_defaults=false ;;
18752 ac_configure_extra_args=
18754 if $ac_cs_silent; then
18756 ac_configure_extra_args="$ac_configure_extra_args --silent"
18760 cat >>$CONFIG_STATUS <<_ACEOF
18761 if \$ac_cs_recheck; then
18762 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18763 CONFIG_SHELL=$SHELL
18764 export CONFIG_SHELL
18765 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18769 cat >>$CONFIG_STATUS <<\_ACEOF
18773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18774 ## Running $as_me. ##
18780 cat >>$CONFIG_STATUS <<_ACEOF
18784 llvm_src="${srcdir}"
18788 cat >>$CONFIG_STATUS <<\_ACEOF
18790 # Handling of arguments.
18791 for ac_config_target in $ac_config_targets
18793 case $ac_config_target in
18794 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18795 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18796 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18797 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18798 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18799 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18800 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18801 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18802 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18803 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18804 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18805 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18806 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18807 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18808 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18809 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18810 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18811 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18812 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18813 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18814 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18815 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18816 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18817 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18818 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18819 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18821 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18822 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18823 { (exit 1); exit 1; }; };;
18828 # If the user did not use the arguments to specify the items to instantiate,
18829 # then the envvar interface is used. Set only those that are not.
18830 # We use the long form for the default assignment because of an extremely
18831 # bizarre bug on SunOS 4.1.3.
18832 if $ac_need_defaults; then
18833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18838 # Have a temporary directory for convenience. Make it in the build tree
18839 # simply because there is no reason against having it here, and in addition,
18840 # creating and moving files from /tmp can sometimes cause problems.
18841 # Hook for its removal unless debugging.
18842 # Note that there is a small window in which the directory will not be cleaned:
18843 # after its creation but before its name has been assigned to `$tmp'.
18847 trap 'exit_status=$?
18848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18850 trap '{ (exit 1); exit 1; }' 1 2 13 15
18852 # Create a (secure) tmp directory for tmp files.
18855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18856 test -n "$tmp" && test -d "$tmp"
18859 tmp=./conf$$-$RANDOM
18860 (umask 077 && mkdir "$tmp")
18863 echo "$me: cannot create a temporary directory in ." >&2
18864 { (exit 1); exit 1; }
18868 # Set up the sed scripts for CONFIG_FILES section.
18871 # No need to generate the scripts if there are no CONFIG_FILES.
18872 # This happens for instance when ./config.status config.h
18873 if test -n "$CONFIG_FILES"; then
18880 for ac_last_try in false false false false false :; do
18881 cat >conf$$subs.sed <<_ACEOF
18882 SHELL!$SHELL$ac_delim
18883 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18884 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18885 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18886 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18887 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18888 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18889 exec_prefix!$exec_prefix$ac_delim
18890 prefix!$prefix$ac_delim
18891 program_transform_name!$program_transform_name$ac_delim
18892 bindir!$bindir$ac_delim
18893 sbindir!$sbindir$ac_delim
18894 libexecdir!$libexecdir$ac_delim
18895 datarootdir!$datarootdir$ac_delim
18896 datadir!$datadir$ac_delim
18897 sysconfdir!$sysconfdir$ac_delim
18898 sharedstatedir!$sharedstatedir$ac_delim
18899 localstatedir!$localstatedir$ac_delim
18900 includedir!$includedir$ac_delim
18901 oldincludedir!$oldincludedir$ac_delim
18902 docdir!$docdir$ac_delim
18903 infodir!$infodir$ac_delim
18904 htmldir!$htmldir$ac_delim
18905 dvidir!$dvidir$ac_delim
18906 pdfdir!$pdfdir$ac_delim
18907 psdir!$psdir$ac_delim
18908 libdir!$libdir$ac_delim
18909 localedir!$localedir$ac_delim
18910 mandir!$mandir$ac_delim
18911 DEFS!$DEFS$ac_delim
18912 ECHO_C!$ECHO_C$ac_delim
18913 ECHO_N!$ECHO_N$ac_delim
18914 ECHO_T!$ECHO_T$ac_delim
18915 LIBS!$LIBS$ac_delim
18916 build_alias!$build_alias$ac_delim
18917 host_alias!$host_alias$ac_delim
18918 target_alias!$target_alias$ac_delim
18919 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18920 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18921 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18922 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18923 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18925 CFLAGS!$CFLAGS$ac_delim
18926 LDFLAGS!$LDFLAGS$ac_delim
18927 CPPFLAGS!$CPPFLAGS$ac_delim
18928 ac_ct_CC!$ac_ct_CC$ac_delim
18929 EXEEXT!$EXEEXT$ac_delim
18930 OBJEXT!$OBJEXT$ac_delim
18932 CXXFLAGS!$CXXFLAGS$ac_delim
18933 ac_ct_CXX!$ac_ct_CXX$ac_delim
18935 subdirs!$subdirs$ac_delim
18936 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18937 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18938 build!$build$ac_delim
18939 build_cpu!$build_cpu$ac_delim
18940 build_vendor!$build_vendor$ac_delim
18941 build_os!$build_os$ac_delim
18942 host!$host$ac_delim
18943 host_cpu!$host_cpu$ac_delim
18944 host_vendor!$host_vendor$ac_delim
18945 host_os!$host_os$ac_delim
18946 target!$target$ac_delim
18947 target_cpu!$target_cpu$ac_delim
18948 target_vendor!$target_vendor$ac_delim
18949 target_os!$target_os$ac_delim
18951 HOST_OS!$HOST_OS$ac_delim
18952 TARGET_OS!$TARGET_OS$ac_delim
18953 LINKALL!$LINKALL$ac_delim
18954 NOLINKALL!$NOLINKALL$ac_delim
18955 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18956 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18957 ARCH!$ARCH$ac_delim
18958 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18959 HOST_ARCH!$HOST_ARCH$ac_delim
18960 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18961 BUILD_CC!$BUILD_CC$ac_delim
18962 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18963 BUILD_CXX!$BUILD_CXX$ac_delim
18964 CVSBUILD!$CVSBUILD$ac_delim
18965 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18966 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18967 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18968 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18969 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18970 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18971 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18972 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18973 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18974 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18975 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18976 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18977 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18978 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18981 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18983 elif $ac_last_try; then
18984 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18986 { (exit 1); exit 1; }; }
18988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18992 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18993 if test -n "$ac_eof"; then
18994 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18995 ac_eof=`expr $ac_eof + 1`
18998 cat >>$CONFIG_STATUS <<_ACEOF
18999 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19004 s/^/s,@/; s/!/@,|#_!!_#|/
19007 s/'"$ac_delim"'$/,g/; t
19009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19010 ' >>$CONFIG_STATUS <conf$$subs.sed
19011 rm -f conf$$subs.sed
19012 cat >>$CONFIG_STATUS <<_ACEOF
19018 for ac_last_try in false false false false false :; do
19019 cat >conf$$subs.sed <<_ACEOF
19020 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19021 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19023 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19024 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19025 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19026 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19027 enable_searchengine!$enable_searchengine$ac_delim
19028 enable_external_search!$enable_external_search$ac_delim
19029 enable_server_based_search!$enable_server_based_search$ac_delim
19030 searchengine_url!$searchengine_url$ac_delim
19031 extra_search_mappings!$extra_search_mappings$ac_delim
19032 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
19033 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
19034 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
19035 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
19036 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
19037 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
19038 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
19039 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
19040 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
19041 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
19042 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
19043 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
19044 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
19045 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19046 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19047 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19048 ENABLE_PIC!$ENABLE_PIC$ac_delim
19049 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19050 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19051 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19052 ALL_TARGETS!$ALL_TARGETS$ac_delim
19053 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19054 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19055 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19056 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19057 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19058 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19059 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19060 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19061 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19062 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19063 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19064 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19065 ifGNUmake!$ifGNUmake$ac_delim
19066 LN_S!$LN_S$ac_delim
19070 DATE!$DATE$ac_delim
19071 FIND!$FIND$ac_delim
19072 GREP!$GREP$ac_delim
19073 MKDIR!$MKDIR$ac_delim
19075 RANLIB!$RANLIB$ac_delim
19080 BINPWD!$BINPWD$ac_delim
19082 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19083 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19084 INSTALL_DATA!$INSTALL_DATA$ac_delim
19085 BZIP2!$BZIP2$ac_delim
19087 DOXYGEN!$DOXYGEN$ac_delim
19088 GROFF!$GROFF$ac_delim
19089 GZIPBIN!$GZIPBIN$ac_delim
19090 PDFROFF!$PDFROFF$ac_delim
19093 OCAMLFIND!$OCAMLFIND$ac_delim
19095 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19096 EGREP!$EGREP$ac_delim
19097 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19098 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19099 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19100 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19101 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19102 NO_COMMENT!$NO_COMMENT$ac_delim
19103 PYTHON!$PYTHON$ac_delim
19104 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19105 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19106 USE_OPROFILE!$USE_OPROFILE$ac_delim
19107 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19108 XML2CONFIG!$XML2CONFIG$ac_delim
19109 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19110 LIBXML2_INC!$LIBXML2_INC$ac_delim
19111 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19112 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19113 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19114 MMAP_FILE!$MMAP_FILE$ac_delim
19115 SHLIBEXT!$SHLIBEXT$ac_delim
19116 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19119 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19121 elif $ac_last_try; then
19122 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19123 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19124 { (exit 1); exit 1; }; }
19126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19130 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19131 if test -n "$ac_eof"; then
19132 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19133 ac_eof=`expr $ac_eof + 1`
19136 cat >>$CONFIG_STATUS <<_ACEOF
19137 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19141 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19142 s/^/s,@/; s/!/@,|#_!!_#|/
19145 s/'"$ac_delim"'$/,g/; t
19147 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19148 ' >>$CONFIG_STATUS <conf$$subs.sed
19149 rm -f conf$$subs.sed
19150 cat >>$CONFIG_STATUS <<_ACEOF
19156 for ac_last_try in false false false false false :; do
19157 cat >conf$$subs.sed <<_ACEOF
19158 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19159 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19160 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19161 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19162 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19163 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19164 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19165 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19166 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19167 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19168 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19169 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19170 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19171 RPATH!$RPATH$ac_delim
19172 RDYNAMIC!$RDYNAMIC$ac_delim
19173 program_prefix!$program_prefix$ac_delim
19174 LIBOBJS!$LIBOBJS$ac_delim
19175 LTLIBOBJS!$LTLIBOBJS$ac_delim
19178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19180 elif $ac_last_try; then
19181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19183 { (exit 1); exit 1; }; }
19185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19190 if test -n "$ac_eof"; then
19191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19192 ac_eof=`expr $ac_eof + 1`
19195 cat >>$CONFIG_STATUS <<_ACEOF
19196 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19201 s/^/s,@/; s/!/@,|#_!!_#|/
19204 s/'"$ac_delim"'$/,g/; t
19206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19207 ' >>$CONFIG_STATUS <conf$$subs.sed
19208 rm -f conf$$subs.sed
19209 cat >>$CONFIG_STATUS <<_ACEOF
19216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19218 # trailing colons and then remove the whole line if VPATH becomes empty
19219 # (actually we leave an empty line to preserve line numbers).
19220 if test "x$srcdir" = x.; then
19221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19222 s/:*\$(srcdir):*/:/
19223 s/:*\${srcdir}:*/:/
19225 s/^\([^=]*=[ ]*\):*/\1/
19231 cat >>$CONFIG_STATUS <<\_ACEOF
19232 fi # test -n "$CONFIG_FILES"
19235 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19238 :[FHLC]) ac_mode=$ac_tag; continue;;
19240 case $ac_mode$ac_tag in
19242 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19243 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19244 { (exit 1); exit 1; }; };;
19245 :[FH]-) ac_tag=-:-;;
19246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19263 -) ac_f="$tmp/stdin";;
19264 *) # Look for the file first in the build tree, then in the source tree
19265 # (if the path is not absolute). The absolute path cannot be DOS-style,
19266 # because $ac_f cannot contain `:'.
19270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19272 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19273 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19274 { (exit 1); exit 1; }; };;
19276 ac_file_inputs="$ac_file_inputs $ac_f"
19279 # Let's still pretend it is `configure' which instantiates (i.e., don't
19280 # use $as_me), people would be surprised to read:
19281 # /* config.h. Generated by config.status. */
19282 configure_input="Generated from "`IFS=:
19283 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19284 if test x"$ac_file" != x-; then
19285 configure_input="$ac_file. $configure_input"
19286 { echo "$as_me:$LINENO: creating $ac_file" >&5
19287 echo "$as_me: creating $ac_file" >&6;}
19291 *:-:* | *:-) cat >"$tmp/stdin";;
19296 ac_dir=`$as_dirname -- "$ac_file" ||
19297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19298 X"$ac_file" : 'X\(//\)[^/]' \| \
19299 X"$ac_file" : 'X\(//\)$' \| \
19300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19306 /^X\(\/\/\)[^/].*/{
19321 -*) as_dir=./$as_dir;;
19323 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19327 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19328 *) as_qdir=$as_dir;;
19330 as_dirs="'$as_qdir' $as_dirs"
19331 as_dir=`$as_dirname -- "$as_dir" ||
19332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333 X"$as_dir" : 'X\(//\)[^/]' \| \
19334 X"$as_dir" : 'X\(//\)$' \| \
19335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19341 /^X\(\/\/\)[^/].*/{
19354 test -d "$as_dir" && break
19356 test -z "$as_dirs" || eval "mkdir $as_dirs"
19357 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19359 { (exit 1); exit 1; }; }; }
19363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19366 # A ".." for each directory in $ac_dir_suffix.
19367 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19368 case $ac_top_builddir_sub in
19369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19373 ac_abs_top_builddir=$ac_pwd
19374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19375 # for backward compatibility:
19376 ac_top_builddir=$ac_top_build_prefix
19379 .) # We are building in place.
19381 ac_top_srcdir=$ac_top_builddir_sub
19382 ac_abs_top_srcdir=$ac_pwd ;;
19383 [\\/]* | ?:[\\/]* ) # Absolute name.
19384 ac_srcdir=$srcdir$ac_dir_suffix;
19385 ac_top_srcdir=$srcdir
19386 ac_abs_top_srcdir=$srcdir ;;
19387 *) # Relative name.
19388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19389 ac_top_srcdir=$ac_top_build_prefix$srcdir
19390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19407 cat >>$CONFIG_STATUS <<\_ACEOF
19408 # If the template does not know about datarootdir, expand it.
19409 # FIXME: This hack should be removed a few years after 2.60.
19410 ac_datarootdir_hack=; ac_datarootdir_seen=
19412 case `sed -n '/datarootdir/ {
19421 ' $ac_file_inputs` in
19422 *datarootdir*) ac_datarootdir_seen=yes;;
19423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19424 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19425 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19427 cat >>$CONFIG_STATUS <<_ACEOF
19428 ac_datarootdir_hack='
19429 s&@datadir@&$datadir&g
19430 s&@docdir@&$docdir&g
19431 s&@infodir@&$infodir&g
19432 s&@localedir@&$localedir&g
19433 s&@mandir@&$mandir&g
19434 s&\\\${datarootdir}&$datarootdir&g' ;;
19438 # Neutralize VPATH when `$srcdir' = `.'.
19439 # Shell code in configure.ac might set extrasub.
19440 # FIXME: do we really want to maintain this feature?
19441 cat >>$CONFIG_STATUS <<_ACEOF
19445 cat >>$CONFIG_STATUS <<\_ACEOF
19447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19448 s&@configure_input@&$configure_input&;t t
19449 s&@top_builddir@&$ac_top_builddir_sub&;t t
19450 s&@srcdir@&$ac_srcdir&;t t
19451 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19452 s&@top_srcdir@&$ac_top_srcdir&;t t
19453 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19454 s&@builddir@&$ac_builddir&;t t
19455 s&@abs_builddir@&$ac_abs_builddir&;t t
19456 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19457 s&@INSTALL@&$ac_INSTALL&;t t
19458 $ac_datarootdir_hack
19459 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19464 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19465 which seems to be undefined. Please make sure it is defined." >&5
19466 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19467 which seems to be undefined. Please make sure it is defined." >&2;}
19471 -) cat "$tmp/out"; rm -f "$tmp/out";;
19472 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19481 # Transform confdefs.h into a sed script `conftest.defines', that
19482 # substitutes the proper values into config.h.in to produce config.h.
19483 rm -f conftest.defines conftest.tail
19484 # First, append a space to every undef/define line, to ease matching.
19485 echo 's/$/ /' >conftest.defines
19486 # Then, protect against being on the right side of a sed subst, or in
19487 # an unquoted here document, in config.status. If some macros were
19488 # called several times there might be several #defines for the same
19489 # symbol, which is useless. But do not sort them, since the last
19490 # AC_DEFINE must be honored.
19491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19492 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19493 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19494 # PARAMS is the parameter list in the macro definition--in most cases, it's
19495 # just an empty string.
19496 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19497 ac_dB='\\)[ (].*,\\1define\\2'
19505 s/^[ ]*#[ ]*define[ ][ ]*//
19510 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19511 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19512 ' >>conftest.defines
19514 # Remove the space that was appended to ease matching.
19515 # Then replace #undef with comments. This is necessary, for
19516 # example, in the case of _POSIX_SOURCE, which is predefined and required
19517 # on some systems where configure will not decide to define it.
19518 # (The regexp can be short, since the line contains either #define or #undef.)
19520 s,^[ #]*u.*,/* & */,' >>conftest.defines
19522 # Break up conftest.defines:
19523 ac_max_sed_lines=50
19525 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19526 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19527 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19529 ac_in='$ac_file_inputs'
19530 ac_out='"$tmp/out1"'
19531 ac_nxt='"$tmp/out2"'
19535 # Write a here document:
19536 cat >>$CONFIG_STATUS <<_ACEOF
19537 # First, check the format of the line:
19538 cat >"\$tmp/defines.sed" <<\\CEOF
19539 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19540 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19544 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19546 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19547 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19548 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19549 grep . conftest.tail >/dev/null || break
19550 rm -f conftest.defines
19551 mv conftest.tail conftest.defines
19553 rm -f conftest.defines conftest.tail
19555 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19556 cat >>$CONFIG_STATUS <<\_ACEOF
19557 if test x"$ac_file" != x-; then
19558 echo "/* $configure_input */" >"$tmp/config.h"
19559 cat "$ac_result" >>"$tmp/config.h"
19560 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19561 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19562 echo "$as_me: $ac_file is unchanged" >&6;}
19565 mv "$tmp/config.h" $ac_file
19568 echo "/* $configure_input */"
19574 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19575 echo "$as_me: executing $ac_file commands" >&6;}
19580 case $ac_file$ac_mode in
19581 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19582 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19583 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19584 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19585 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19586 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19587 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19588 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19589 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19590 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19591 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19592 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19593 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19595 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19597 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19599 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19601 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19603 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19610 { (exit 0); exit 0; }
19612 chmod +x $CONFIG_STATUS
19613 ac_clean_files=$ac_clean_files_save
19616 # configure is writing to config.log, and then calls config.status.
19617 # config.status does its own redirection, appending to config.log.
19618 # Unfortunately, on DOS this fails, as config.log is still kept open
19619 # by configure, so config.status won't be able to write to it; its
19620 # output is simply discarded. So we exec the FD to /dev/null,
19621 # effectively closing config.log, so it can be properly (re)opened and
19622 # appended to by config.status. When coming back to configure, we
19623 # need to make the FD available again.
19624 if test "$no_create" != yes; then
19626 ac_config_status_args=
19627 test "$silent" = yes &&
19628 ac_config_status_args="$ac_config_status_args --quiet"
19630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19633 # would make configure fail if this is the last instruction.
19634 $ac_cs_success || { (exit 1); exit 1; }
19638 # CONFIG_SUBDIRS section.
19640 if test "$no_recursion" != yes; then
19642 # Remove --cache-file and --srcdir arguments so they do not pile up.
19643 ac_sub_configure_args=
19645 eval "set x $ac_configure_args"
19649 if test -n "$ac_prev"; then
19654 -cache-file | --cache-file | --cache-fil | --cache-fi \
19655 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19656 ac_prev=cache_file ;;
19657 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19658 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19661 --config-cache | -C)
19663 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19665 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19673 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19675 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19679 # Always prepend --prefix to ensure using the same prefix
19680 # in subdir configurations.
19681 ac_arg="--prefix=$prefix"
19683 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19685 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19688 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19690 # Do not complain, so a configure script can configure whichever
19691 # parts of a large source tree are present.
19692 test -d "$srcdir/$ac_dir" || continue
19694 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19695 echo "$as_me:$LINENO: $ac_msg" >&5
19699 -*) as_dir=./$as_dir;;
19701 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19705 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19706 *) as_qdir=$as_dir;;
19708 as_dirs="'$as_qdir' $as_dirs"
19709 as_dir=`$as_dirname -- "$as_dir" ||
19710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19711 X"$as_dir" : 'X\(//\)[^/]' \| \
19712 X"$as_dir" : 'X\(//\)$' \| \
19713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19719 /^X\(\/\/\)[^/].*/{
19732 test -d "$as_dir" && break
19734 test -z "$as_dirs" || eval "mkdir $as_dirs"
19735 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19736 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19737 { (exit 1); exit 1; }; }; }
19741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19744 # A ".." for each directory in $ac_dir_suffix.
19745 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19746 case $ac_top_builddir_sub in
19747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19751 ac_abs_top_builddir=$ac_pwd
19752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19753 # for backward compatibility:
19754 ac_top_builddir=$ac_top_build_prefix
19757 .) # We are building in place.
19759 ac_top_srcdir=$ac_top_builddir_sub
19760 ac_abs_top_srcdir=$ac_pwd ;;
19761 [\\/]* | ?:[\\/]* ) # Absolute name.
19762 ac_srcdir=$srcdir$ac_dir_suffix;
19763 ac_top_srcdir=$srcdir
19764 ac_abs_top_srcdir=$srcdir ;;
19765 *) # Relative name.
19766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19767 ac_top_srcdir=$ac_top_build_prefix$srcdir
19768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19775 # Check for guested configure; otherwise get Cygnus style configure.
19776 if test -f "$ac_srcdir/configure.gnu"; then
19777 ac_sub_configure=$ac_srcdir/configure.gnu
19778 elif test -f "$ac_srcdir/configure"; then
19779 ac_sub_configure=$ac_srcdir/configure
19780 elif test -f "$ac_srcdir/configure.in"; then
19781 # This should be Cygnus configure.
19782 ac_sub_configure=$ac_aux_dir/configure
19784 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19785 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19789 # The recursion is here.
19790 if test -n "$ac_sub_configure"; then
19791 # Make the cache file name correct relative to the subdirectory.
19792 case $cache_file in
19793 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19794 *) # Relative name.
19795 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19798 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19799 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19800 # The eval makes quoting arguments work.
19801 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19802 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19803 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19804 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19805 { (exit 1); exit 1; }; }