2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.8.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
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.8.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.8.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.8.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.8.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=8
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: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2037 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2038 { (exit 1); exit 1; }; }
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 for ac_prog in clang gcc
2052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2089 test -n "$CC" && break
2092 if test -z "$CC"; then
2094 for ac_prog in clang gcc
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_ac_ct_CC="$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6; }
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2133 test -n "$ac_ct_CC" && break
2136 if test "x$ac_ct_CC" = x; then
2139 case $cross_compiling:$ac_tool_warned in
2141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2142 whose name does not start with the host triplet. If you think this
2143 configuration is useful to you, please write to autoconf@gnu.org." >&5
2144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2145 whose name does not start with the host triplet. If you think this
2146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2147 ac_tool_warned=yes ;;
2154 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: no acceptable C compiler found in \$PATH
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO: checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (ac_try="$ac_compiler --version >&5"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169 (eval "$ac_compiler --version >&5") 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179 (eval "$ac_compiler -v >&5") 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (ac_try="$ac_compiler -V >&5"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_compiler -V >&5") 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }
2194 cat >conftest.$ac_ext <<_ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2209 ac_clean_files_save=$ac_clean_files
2210 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2214 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2216 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2218 # List of possible output files, starting from the most likely.
2219 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2220 # only as a last resort. b.out is created by i960 compilers.
2221 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2223 # The IRIX 6 linker writes into existing files which may not be
2224 # executable, retaining their permissions. Remove them first so a
2225 # subsequent execution test works.
2227 for ac_file in $ac_files
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2236 if { (ac_try="$ac_link_default"
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242 (eval "$ac_link_default") 2>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2249 # so that the user can short-circuit this test for compilers unknown to
2251 for ac_file in $ac_files
2253 test -f "$ac_file" || continue
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2258 # We found the default executable, but exeext='' is most
2262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266 # We set ac_cv_exeext here because the later test for it is not
2267 # safe: cross compilers may not add the suffix if given an `-o'
2268 # argument, so we may need to know it at that point already.
2269 # Even if this section looks crufty: it has the advantage of
2276 test "$ac_cv_exeext" = no && ac_cv_exeext=
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286 { (exit 77); exit 77; }; }
2289 ac_exeext=$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6; }
2293 # Check that the compiler produces executables we can run. If not, either
2294 # the compiler is broken, or we cross compile.
2295 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300 if { ac_try='./$ac_file'
2301 { (case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_try") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 if test "$cross_compiling" = maybe; then
2315 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2325 { echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6; }
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check that the compiler produces executables we can run. If not, either
2331 # the compiler is broken, or we cross compile.
2332 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2334 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6; }
2337 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2339 if { (ac_try="$ac_link"
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_link") 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; then
2349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2351 # work properly (i.e., refer to `conftest.exe'), while it won't with
2353 for ac_file in conftest.exe conftest conftest.*; do
2354 test -f "$ac_file" || continue
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest$ac_cv_exeext
2371 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2377 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2379 if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.$ac_ext <<_ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.o conftest.obj
2398 if { (ac_try="$ac_compile"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_compile") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; then
2408 for ac_file in conftest.o conftest.obj conftest.*; do
2409 test -f "$ac_file" || continue;
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2429 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2430 echo "${ECHO_T}$ac_cv_objext" >&6; }
2431 OBJEXT=$ac_cv_objext
2433 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_cc_g+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 ac_save_c_werror_flag=$ac_c_werror_flag
2513 ac_c_werror_flag=yes
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compile") 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_try") 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2601 { (case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_try") 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_try") 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2625 ac_c_werror_flag=$ac_save_c_werror_flag
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657 { (case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_try") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_try") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 ac_c_werror_flag=$ac_save_c_werror_flag
2693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2704 if test "$GCC" = yes; then
2710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_c89+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_cv_prog_cc_c89=no
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2741 s = g (p, va_arg (v,int));
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2747 function prototypes and stuff, but not '\xHH' hex character constants.
2748 These don't provoke an error unfortunately, instead are silently treated
2749 as 'x'. The following induces an error, until -std is added to get
2750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2751 array size at least. It's necessary to write '\x00'==0 to get something
2752 that's true only with -std. */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2756 inside strings and character constants. */
2758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compile") 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_try") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_prog_cc_c89=$ac_arg
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f core conftest.err conftest.$ac_objext
2821 test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 rm -f conftest.$ac_ext
2828 case "x$ac_cv_prog_cc_c89" in
2830 { echo "$as_me:$LINENO: result: none needed" >&5
2831 echo "${ECHO_T}none needed" >&6; } ;;
2833 { echo "$as_me:$LINENO: result: unsupported" >&5
2834 echo "${ECHO_T}unsupported" >&6; } ;;
2836 CC="$CC $ac_cv_prog_cc_c89"
2837 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2838 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 ac_cpp='$CXXCPP $CPPFLAGS'
2850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2853 if test -z "$CXX"; then
2854 if test -n "$CCC"; then
2857 if test -n "$ac_tool_prefix"; then
2858 for ac_prog in clang++ g++
2860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CXX+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CXX"; then
2868 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test -n "$CXX"; then
2889 { echo "$as_me:$LINENO: result: $CXX" >&5
2890 echo "${ECHO_T}$CXX" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2897 test -n "$CXX" && break
2900 if test -z "$CXX"; then
2902 for ac_prog in clang++ g++
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$ac_ct_CXX"; then
2912 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CXX="$ac_prog"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2932 if test -n "$ac_ct_CXX"; then
2933 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2934 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2936 { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2941 test -n "$ac_ct_CXX" && break
2944 if test "x$ac_ct_CXX" = x; then
2947 case $cross_compiling:$ac_tool_warned in
2949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2950 whose name does not start with the host triplet. If you think this
2951 configuration is useful to you, please write to autoconf@gnu.org." >&5
2952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet. If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2955 ac_tool_warned=yes ;;
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compiler --version >&5") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler -v >&5") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -V >&5") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077 ac_cxx_werror_flag=yes
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 ac_cv_prog_cxx_g=yes
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3221 { (case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_try") 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_prog_cxx_g=yes
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3259 if test "$ac_test_CXXFLAGS" = set; then
3260 CXXFLAGS=$ac_save_CXXFLAGS
3261 elif test $ac_cv_prog_cxx_g = yes; then
3262 if test "$GXX" = yes; then
3268 if test "$GXX" = yes; then
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3291 if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 for ac_c_preproc_warn_flag in '' yes
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 # include <limits.h>
3316 # include <assert.h>
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342 if test -z "$ac_cpp_err"; then
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 # Broken: fails on valid input.
3352 rm -f conftest.err conftest.$ac_ext
3354 # OK, works on sane cases. Now check whether nonexistent headers
3355 # can be detected and how.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <ac_nonexistent.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3387 # Broken: success on invalid input.
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Passes both tests.
3398 rm -f conftest.err conftest.$ac_ext
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3415 { echo "$as_me:$LINENO: result: $CPP" >&5
3416 echo "${ECHO_T}$CPP" >&6; }
3418 for ac_c_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 # include <limits.h>
3435 # include <assert.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 if test -z "$ac_cpp_err"; then
3506 # Broken: success on invalid input.
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Passes both tests.
3517 rm -f conftest.err conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&5
3527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details." >&2;}
3529 { (exit 1); exit 1; }; }
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test "$CXX" = "clang++" ; then
3540 { echo "$as_me:$LINENO: checking whether clang works" >&5
3541 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3543 ac_cpp='$CXXCPP $CPPFLAGS'
3544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 #if __has_include (<cxxabi.h>)
3559 #if __has_include (<unwind.h>)
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586 { (case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_try") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3616 { { 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
3617 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;}
3618 { (exit 1); exit 1; }; }
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3632 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3634 ac_cpp='$CXXCPP $CPPFLAGS'
3635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3639 llvm_cv_cxx_compiler=unknown
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 llvm_cv_cxx_compiler=clang
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3716 { (case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_try") 2>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_try") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 llvm_cv_cxx_compiler=gcc
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3754 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3758 if test -d ${srcdir}/projects/test-suite ; then
3759 subdirs="$subdirs projects/test-suite"
3763 if test -d ${srcdir}/projects/llvm-test ; then
3764 subdirs="$subdirs projects/llvm-test"
3768 if test -d ${srcdir}/projects/poolalloc ; then
3769 subdirs="$subdirs projects/poolalloc"
3773 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3774 subdirs="$subdirs projects/llvm-poolalloc"
3778 for i in `ls ${srcdir}/projects`
3780 if test -d ${srcdir}/projects/${i} ; then
3782 safecode) subdirs="$subdirs projects/safecode"
3790 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3791 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3797 # Check whether --enable-polly was given.
3798 if test "${enable_polly+set}" = set; then
3799 enableval=$enable_polly;
3804 case "$enableval" in
3809 default) ENABLE_POLLY=1
3811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3812 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3813 { (exit 1); exit 1; }; } ;;
3817 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3820 subdirs="$subdirs tools/polly"
3825 # Make sure we can run config.sub.
3826 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3827 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3828 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3829 { (exit 1); exit 1; }; }
3831 { echo "$as_me:$LINENO: checking build system type" >&5
3832 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_build+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_build_alias=$build_alias
3837 test "x$ac_build_alias" = x &&
3838 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3839 test "x$ac_build_alias" = x &&
3840 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3841 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3842 { (exit 1); exit 1; }; }
3843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3844 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3846 { (exit 1); exit 1; }; }
3849 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3850 echo "${ECHO_T}$ac_cv_build" >&6; }
3851 case $ac_cv_build in
3853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3854 echo "$as_me: error: invalid value of canonical build" >&2;}
3855 { (exit 1); exit 1; }; };;
3858 ac_save_IFS=$IFS; IFS='-'
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3871 { echo "$as_me:$LINENO: checking host system type" >&5
3872 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3873 if test "${ac_cv_host+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 if test "x$host_alias" = x; then
3877 ac_cv_host=$ac_cv_build
3879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3880 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3882 { (exit 1); exit 1; }; }
3886 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3887 echo "${ECHO_T}$ac_cv_host" >&6; }
3890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3891 echo "$as_me: error: invalid value of canonical host" >&2;}
3892 { (exit 1); exit 1; }; };;
3895 ac_save_IFS=$IFS; IFS='-'
3901 # Remember, the first character of IFS is used to create $*,
3902 # except with old shells:
3905 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3908 { echo "$as_me:$LINENO: checking target system type" >&5
3909 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3910 if test "${ac_cv_target+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test "x$target_alias" = x; then
3914 ac_cv_target=$ac_cv_host
3916 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3919 { (exit 1); exit 1; }; }
3923 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3924 echo "${ECHO_T}$ac_cv_target" >&6; }
3925 case $ac_cv_target in
3927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3928 echo "$as_me: error: invalid value of canonical target" >&2;}
3929 { (exit 1); exit 1; }; };;
3931 target=$ac_cv_target
3932 ac_save_IFS=$IFS; IFS='-'
3938 # Remember, the first character of IFS is used to create $*,
3939 # except with old shells:
3942 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3945 # The aliases save the names the user supplied, while $host etc.
3946 # will get canonicalized.
3947 test -n "$target_alias" &&
3948 test "$program_prefix$program_suffix$program_transform_name" = \
3950 program_prefix=${target_alias}-
3952 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3953 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3954 if test "${llvm_cv_os_type+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 llvm_cv_link_all_option="-Wl,--whole-archive"
3960 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961 llvm_cv_os_type="AIX"
3962 llvm_cv_platform_type="Unix" ;;
3964 llvm_cv_link_all_option="-Wl,--whole-archive"
3965 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966 llvm_cv_os_type="IRIX"
3967 llvm_cv_platform_type="Unix" ;;
3969 llvm_cv_link_all_option="-Wl,--whole-archive"
3970 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971 llvm_cv_os_type="Cygwin"
3972 llvm_cv_platform_type="Unix" ;;
3974 llvm_cv_link_all_option="-Wl,-all_load"
3975 llvm_cv_no_link_all_option="-Wl,-noall_load"
3976 llvm_cv_os_type="Darwin"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,-all_load"
3980 llvm_cv_no_link_all_option="-Wl,-noall_load"
3981 llvm_cv_os_type="Minix"
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="FreeBSD"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,--whole-archive"
3990 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991 llvm_cv_os_type="GNU/kFreeBSD"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,--whole-archive"
3995 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996 llvm_cv_os_type="OpenBSD"
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="NetBSD"
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="DragonFly"
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="Bitrig"
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="HP-UX"
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="Interix"
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="Linux"
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="GNU"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,-z,allextract"
4035 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4036 llvm_cv_os_type="SunOS"
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="Win32"
4042 llvm_cv_platform_type="Win32" ;;
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="MingW"
4047 llvm_cv_platform_type="Win32" ;;
4049 llvm_cv_link_all_option="-Wl,--whole-archive"
4050 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4051 llvm_cv_os_type="Haiku"
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="Freestanding"
4057 llvm_cv_platform_type="Unix" ;;
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="Freestanding"
4062 llvm_cv_platform_type="Unix" ;;
4064 llvm_cv_link_all_option=""
4065 llvm_cv_no_link_all_option=""
4066 llvm_cv_os_type="Unknown"
4067 llvm_cv_platform_type="Unknown" ;;
4070 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4071 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4073 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4074 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4075 if test "${llvm_cv_target_os_type+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 llvm_cv_target_os_type="AIX" ;;
4082 llvm_cv_target_os_type="IRIX" ;;
4084 llvm_cv_target_os_type="Cygwin" ;;
4086 llvm_cv_target_os_type="Darwin" ;;
4088 llvm_cv_target_os_type="Minix" ;;
4090 llvm_cv_target_os_type="FreeBSD" ;;
4092 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4094 llvm_cv_target_os_type="OpenBSD" ;;
4096 llvm_cv_target_os_type="NetBSD" ;;
4098 llvm_cv_target_os_type="DragonFly" ;;
4100 llvm_cv_target_os_type="Bitrig" ;;
4102 llvm_cv_target_os_type="HP-UX" ;;
4104 llvm_cv_target_os_type="Interix" ;;
4106 llvm_cv_target_os_type="Linux" ;;
4108 llvm_cv_target_os_type="GNU" ;;
4110 llvm_cv_target_os_type="SunOS" ;;
4112 llvm_cv_target_os_type="Win32" ;;
4114 llvm_cv_target_os_type="MingW" ;;
4116 llvm_cv_target_os_type="Haiku" ;;
4118 llvm_cv_target_os_type="RTEMS" ;;
4120 llvm_cv_target_os_type="NativeClient" ;;
4122 llvm_cv_target_os_type="Freestanding" ;;
4124 llvm_cv_target_os_type="PS4" ;;
4126 llvm_cv_target_os_type="Unknown" ;;
4129 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4130 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4132 if test "$llvm_cv_os_type" = "Unknown" ; then
4133 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4134 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4135 { (exit 1); exit 1; }; }
4140 HOST_OS=$llvm_cv_os_type
4142 TARGET_OS=$llvm_cv_target_os_type
4145 LINKALL=$llvm_cv_link_all_option
4147 NOLINKALL=$llvm_cv_no_link_all_option
4150 case $llvm_cv_platform_type in
4153 cat >>confdefs.h <<\_ACEOF
4154 #define LLVM_ON_UNIX 1
4164 cat >>confdefs.h <<\_ACEOF
4165 #define LLVM_ON_WIN32 1
4175 { echo "$as_me:$LINENO: checking target architecture" >&5
4176 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4177 if test "${llvm_cv_target_arch+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 i?86-*) llvm_cv_target_arch="x86" ;;
4182 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4183 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4184 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4185 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4186 arm*-*) llvm_cv_target_arch="ARM" ;;
4187 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4188 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4189 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4190 xcore-*) llvm_cv_target_arch="XCore" ;;
4191 msp430-*) llvm_cv_target_arch="MSP430" ;;
4192 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4193 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4194 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4195 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4196 *) llvm_cv_target_arch="Unknown" ;;
4199 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4200 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4202 if test "$llvm_cv_target_arch" = "Unknown" ; then
4203 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4204 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4207 case "$llvm_cv_target_arch" in
4208 x86) LLVM_NATIVE_ARCH="X86" ;;
4209 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4210 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4213 ARCH=$llvm_cv_target_arch
4215 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4219 i?86-*) host_arch="x86" ;;
4220 amd64-* | x86_64-*) host_arch="x86_64" ;;
4221 sparc*-*) host_arch="Sparc" ;;
4222 powerpc*-*) host_arch="PowerPC" ;;
4223 arm64*-*) host_arch="AArch64" ;;
4224 arm*-*) host_arch="ARM" ;;
4225 aarch64*-*) host_arch="AArch64" ;;
4226 mips-* | mips64-*) host_arch="Mips" ;;
4227 mipsel-* | mips64el-*) host_arch="Mips" ;;
4228 xcore-*) host_arch="XCore" ;;
4229 msp430-*) host_arch="MSP430" ;;
4230 hexagon-*) host_arch="Hexagon" ;;
4231 s390x-*) host_arch="SystemZ" ;;
4232 wasm*-*) host_arch="WebAssembly" ;;
4233 *) host_arch="Unknown" ;;
4236 if test "$host_arch" = "Unknown" ; then
4237 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4238 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4241 HOST_ARCH=$host_arch
4244 if test "$cross_compiling" = yes; then
4245 LLVM_CROSS_COMPILING=1
4248 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4249 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4250 if test "${ac_cv_build_exeext+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4254 ac_cv_build_exeext=.exe
4256 ac_build_prefix=${build_alias}-
4258 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4259 set dummy ${ac_build_prefix}gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$BUILD_CC"; then
4266 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 if test -z "$BUILD_CC"; then
4296 # Extract the first word of "gcc", so it can be a program name with args.
4297 set dummy gcc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$BUILD_CC"; then
4304 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_BUILD_CC="gcc"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 if test -z "$BUILD_CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 if test -n "$BUILD_CC"; then
4342 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected=yes
4356 ac_cv_prog_BUILD_CC="cc"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy $ac_cv_prog_BUILD_CC
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set BUILD_CC to just the basename; use the full file name.
4373 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4378 BUILD_CC=$ac_cv_prog_BUILD_CC
4379 if test -n "$BUILD_CC"; then
4380 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381 echo "${ECHO_T}$BUILD_CC" >&6; }
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4390 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4391 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4392 { (exit 1); exit 1; }; }
4393 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4395 echo 'int main () { return 0; }' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4398 (eval $ac_build_link) 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 for file in conftest.*; do
4404 *.c | *.o | *.obj | *.dSYM) ;;
4405 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4409 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4410 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4411 { (exit 1); exit 1; }; }
4414 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4419 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4420 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4421 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4422 ac_build_exeext=$BUILD_EXEEXT
4424 ac_build_prefix=${build_alias}-
4425 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CXX"; then
4433 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CXX"; then
4463 # Extract the first word of "g++", so it can be a program name with args.
4464 set dummy g++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CXX"; then
4471 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_BUILD_CXX="g++"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4500 if test -z "$BUILD_CXX"; then
4501 # Extract the first word of "c++", so it can be a program name with args.
4502 set dummy c++; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CXX"; then
4509 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4520 ac_prog_rejected=yes
4523 ac_cv_prog_BUILD_CXX="c++"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 if test $ac_prog_rejected = yes; then
4532 # We found a bogon in the path, so make sure we never use it.
4533 set dummy $ac_cv_prog_BUILD_CXX
4535 if test $# != 0; then
4536 # We chose a different compiler from the bogus one.
4537 # However, it has the same basename, so the bogon will be chosen
4538 # first if we set BUILD_CXX to just the basename; use the full file name.
4540 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4545 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4546 if test -n "$BUILD_CXX"; then
4547 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4548 echo "${ECHO_T}$BUILD_CXX" >&6; }
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4558 LLVM_CROSS_COMPILING=0
4562 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4573 # Check whether --enable-libcpp was given.
4574 if test "${enable_libcpp+set}" = set; then
4575 enableval=$enable_libcpp;
4580 case "$enableval" in
4581 yes) ENABLE_LIBCPP=1
4585 default) ENABLE_LIBCPP=0
4587 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4588 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4589 { (exit 1); exit 1; }; } ;;
4592 # Check whether --enable-compiler-version-checks was given.
4593 if test "${enable_compiler_version_checks+set}" = set; then
4594 enableval=$enable_compiler_version_checks;
4599 case "$enableval" in
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4609 case "$llvm_cv_cxx_compiler" in
4611 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4612 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4621 #error This version of Clang is too old to build LLVM
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_compile") 2>conftest.er1
4634 grep -v '^ *+' conftest.er1 >conftest.err
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4640 { (case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_try") 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_try") 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 { echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6; }
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 { { echo "$as_me:$LINENO: error:
4668 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4669 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4670 bypass these sanity checks." >&5
4671 echo "$as_me: error:
4672 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4673 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4674 bypass these sanity checks." >&2;}
4675 { (exit 1); exit 1; }; }
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 if test "$ENABLE_LIBCPP" -eq 0 ; then
4681 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4682 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4683 llvm_cv_old_cxxflags="$CXXFLAGS"
4684 CXXFLAGS="$CXXFLAGS -std=c++0x"
4685 cat >conftest.$ac_ext <<_ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4693 std::atomic<float> x(0.0f);
4694 int main() { return (float)x; }
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_link") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4712 { (case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_try") 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 { echo "$as_me:$LINENO: result: yes" >&5
4732 echo "${ECHO_T}yes" >&6; }
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 { { echo "$as_me:$LINENO: error:
4740 We detected a missing feature in the standard C++ library that was known to be
4741 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4742 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4743 than 4.7. You will need to update your system and ensure Clang uses the newer
4746 If this error is incorrect or you need to force things to work, you may pass
4747 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4748 echo "$as_me: error:
4749 We detected a missing feature in the standard C++ library that was known to be
4750 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4751 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4752 than 4.7. You will need to update your system and ensure Clang uses the newer
4755 If this error is incorrect or you need to force things to work, you may pass
4756 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4757 { (exit 1); exit 1; }; }
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 CXXFLAGS="$llvm_cv_old_cxxflags"
4766 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4767 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4776 #error This version of GCC is too old to build LLVM
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_compile") 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4795 { (case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_try") 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_try") 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 { echo "$as_me:$LINENO: result: yes" >&5
4815 echo "${ECHO_T}yes" >&6; }
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 { { echo "$as_me:$LINENO: error:
4823 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4824 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4825 bypass these sanity checks." >&5
4826 echo "$as_me: error:
4827 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4828 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4829 bypass these sanity checks." >&2;}
4830 { (exit 1); exit 1; }; }
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; }
4852 # Check whether --enable-cxx1y was given.
4853 if test "${enable_cxx1y+set}" = set; then
4854 enableval=$enable_cxx1y;
4859 case "$enableval" in
4864 default) ENABLE_CXX1Y=0
4866 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4868 { (exit 1); exit 1; }; } ;;
4871 # Check whether --enable-split-dwarf was given.
4872 if test "${enable_split_dwarf+set}" = set; then
4873 enableval=$enable_split_dwarf;
4878 case "$enableval" in
4879 yes) ENABLE_SPLIT_DWARF=1
4881 no) ENABLE_SPLIT_DWARF=0
4883 default) ENABLE_SPLIT_DWARF=0
4885 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4887 { (exit 1); exit 1; }; } ;;
4891 # Check whether --enable-clang-arcmt was given.
4892 if test "${enable_clang_arcmt+set}" = set; then
4893 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4898 case "$enableval" in
4899 yes) ENABLE_CLANG_ARCMT=1
4901 no) ENABLE_CLANG_ARCMT=0
4903 default) ENABLE_CLANG_ARCMT=1
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4910 clang_plugin_support="yes"
4911 # Check whether --enable-clang-plugin-support was given.
4912 if test "${enable_clang_plugin_support+set}" = set; then
4913 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4918 case "$enableval" in
4919 yes) CLANG_PLUGIN_SUPPORT=1
4921 no) CLANG_PLUGIN_SUPPORT=0
4923 default) CLANG_PLUGIN_SUPPORT=1
4925 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4930 clang_static_analyzer="yes"
4931 # Check whether --enable-clang-static-analyzer was given.
4932 if test "${enable_clang_static_analyzer+set}" = set; then
4933 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4938 case "$enableval" in
4939 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4942 if test ${clang_arcmt} != "no" ; then
4943 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4944 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4945 { (exit 1); exit 1; }; }
4947 ENABLE_CLANG_STATIC_ANALYZER=0
4950 default) ENABLE_CLANG_STATIC_ANALYZER=1
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 # Check whether --enable-optimized was given.
4958 if test "${enable_optimized+set}" = set; then
4959 enableval=$enable_optimized;
4964 if test ${enableval} = "no" ; then
4968 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4972 # Check whether --enable-profiling was given.
4973 if test "${enable_profiling+set}" = set; then
4974 enableval=$enable_profiling;
4979 if test ${enableval} = "no" ; then
4983 ENABLE_PROFILING=ENABLE_PROFILING=1
4987 # Check whether --enable-assertions was given.
4988 if test "${enable_assertions+set}" = set; then
4989 enableval=$enable_assertions;
4994 if test ${enableval} = "yes" ; then
4997 assertions_enabled="yes"
4999 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5001 assertions_enabled="no"
5004 # Check whether --enable-werror was given.
5005 if test "${enable_werror+set}" = set; then
5006 enableval=$enable_werror;
5011 case "$enableval" in
5012 yes) ENABLE_WERROR=1
5016 default) ENABLE_WERROR=0
5018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5019 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5020 { (exit 1); exit 1; }; } ;;
5023 # Check whether --enable-expensive-checks was given.
5024 if test "${enable_expensive_checks+set}" = set; then
5025 enableval=$enable_expensive_checks;
5030 if test ${enableval} = "yes" ; then
5031 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5033 EXPENSIVE_CHECKS=yes
5036 ENABLE_EXPENSIVE_CHECKS=
5042 # Check whether --enable-abi-breaking-checks was given.
5043 if test "${enable_abi_breaking_checks+set}" = set; then
5044 enableval=$enable_abi_breaking_checks;
5046 enableval="with-asserts"
5049 case "$enableval" in
5050 with-asserts) if test ${assertions_enabled} = "yes" ; then
5052 cat >>confdefs.h <<\_ACEOF
5053 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5056 ENABLE_ABI_BREAKING_CHECKS=1
5059 ENABLE_ABI_BREAKING_CHECKS=0
5064 cat >>confdefs.h <<\_ACEOF
5065 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5068 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5075 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5076 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5077 { (exit 1); exit 1; }; }
5080 # Check whether --enable-debug-runtime was given.
5081 if test "${enable_debug_runtime+set}" = set; then
5082 enableval=$enable_debug_runtime;
5087 if test ${enableval} = "no" ; then
5091 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5095 # Check whether --enable-debug-symbols was given.
5096 if test "${enable_debug_symbols+set}" = set; then
5097 enableval=$enable_debug_symbols;
5102 if test ${enableval} = "no" ; then
5106 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5110 # Check whether --enable-keep-symbols was given.
5111 if test "${enable_keep_symbols+set}" = set; then
5112 enableval=$enable_keep_symbols;
5117 if test ${enableval} = "no" ; then
5121 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5125 # Check whether --enable-jit was given.
5126 if test "${enable_jit+set}" = set; then
5127 enableval=$enable_jit;
5132 if test ${enableval} = "no"
5137 case "$llvm_cv_target_arch" in
5138 x86) TARGET_HAS_JIT=1
5140 Sparc) TARGET_HAS_JIT=0
5142 PowerPC) TARGET_HAS_JIT=1
5144 x86_64) TARGET_HAS_JIT=1
5146 ARM) TARGET_HAS_JIT=1
5148 Mips) TARGET_HAS_JIT=1
5150 XCore) TARGET_HAS_JIT=0
5152 MSP430) TARGET_HAS_JIT=0
5154 Hexagon) TARGET_HAS_JIT=0
5156 NVPTX) TARGET_HAS_JIT=0
5158 SystemZ) TARGET_HAS_JIT=1
5160 WebAssembly) TARGET_HAS_JIT=0
5167 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5168 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5171 # Check whether --enable-docs was given.
5172 if test "${enable_docs+set}" = set; then
5173 enableval=$enable_docs;
5178 case "$enableval" in
5183 default) ENABLE_DOCS=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-doxygen was given.
5191 if test "${enable_doxygen+set}" = set; then
5192 enableval=$enable_doxygen;
5197 case "$enableval" in
5198 yes) ENABLE_DOXYGEN=1
5200 no|default) ENABLE_DOXYGEN=0
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 # Check whether --enable-doxygen-search was given.
5208 if test "${enable_doxygen_search+set}" = set; then
5209 enableval=$enable_doxygen_search;
5214 ENABLE_DOXYGEN_SEARCH="$enableval"
5216 case "$enableval" in
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 # Check whether --enable-doxygen-external-search was given.
5224 if test "${enable_doxygen_external_search+set}" = set; then
5225 enableval=$enable_doxygen_external_search;
5230 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5232 case "$enableval" in
5234 case "$ENABLE_DOXYGEN_SEARCH" in
5235 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5236 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5237 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5248 # Check whether --with-doxygen-search-engine-url was given.
5249 if test "${with_doxygen_search_engine_url+set}" = set; then
5250 withval=$with_doxygen_search_engine_url;
5253 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5256 # Check whether --with-doxygen-search-mappings was given.
5257 if test "${with_doxygen_search_mappings+set}" = set; then
5258 withval=$with_doxygen_search_mappings;
5261 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5263 case "$ENABLE_DOXYGEN_SEARCH" in
5265 if test "$ENABLE_DOXYGEN" = "0" ; then
5266 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5267 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5268 { (exit 1); exit 1; }; }
5271 enable_searchengine=YES
5274 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5276 enable_external_search=YES
5278 enable_server_based_search=YES
5280 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5282 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5287 enable_external_search=NO
5289 enable_server_based_search=NO
5298 enable_searchengine=NO
5301 enable_server_based_search=NO
5303 enable_external_search=NO
5309 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5310 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5311 { (exit 1); exit 1; }; }
5315 # Check whether --enable-doxygen-qt-help was given.
5316 if test "${enable_doxygen_qt_help+set}" = set; then
5317 enableval=$enable_doxygen_qt_help;
5322 case "$enableval" in
5324 if test "$ENABLE_DOXYGEN" = "0" ; then
5325 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5326 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5327 { (exit 1); exit 1; }; }
5330 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5331 set dummy qhelpgenerator; ac_word=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 case $QHELPGENERATOR in
5339 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5361 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5362 if test -n "$QHELPGENERATOR"; then
5363 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5364 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5366 { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5372 llvm_doxygen_generate_qhp=YES
5374 llvm_doxygen_qch_filename=org.llvm.qch
5376 llvm_doxygen_qhp_namespace=org.llvm
5378 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5380 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5382 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5385 clang_doxygen_generate_qhp=YES
5387 clang_doxygen_qch_filename=org.llvm.clang.qch
5389 clang_doxygen_qhp_namespace=org.llvm.clang
5391 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5393 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5395 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5400 llvm_doxygen_generate_qhp=NO
5408 clang_doxygen_generate_qhp=NO
5413 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5415 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5420 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5421 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5422 { (exit 1); exit 1; }; } ;;
5425 # Check whether --enable-threads was given.
5426 if test "${enable_threads+set}" = set; then
5427 enableval=$enable_threads;
5432 case "$enableval" in
5433 yes) LLVM_ENABLE_THREADS=1
5435 no) LLVM_ENABLE_THREADS=0
5437 default) LLVM_ENABLE_THREADS=1
5439 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5440 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5441 { (exit 1); exit 1; }; } ;;
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5449 # Check whether --enable-pthreads was given.
5450 if test "${enable_pthreads+set}" = set; then
5451 enableval=$enable_pthreads;
5456 case "$enableval" in
5457 yes) ENABLE_PTHREADS=1
5459 no) ENABLE_PTHREADS=0
5461 default) ENABLE_PTHREADS=1
5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5468 # Check whether --enable-zlib was given.
5469 if test "${enable_zlib+set}" = set; then
5470 enableval=$enable_zlib;
5475 case "$enableval" in
5476 yes) LLVM_ENABLE_ZLIB=1
5478 no) LLVM_ENABLE_ZLIB=0
5480 default) LLVM_ENABLE_ZLIB=1
5482 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5483 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5484 { (exit 1); exit 1; }; } ;;
5487 cat >>confdefs.h <<_ACEOF
5488 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5492 # Check whether --enable-pic was given.
5493 if test "${enable_pic+set}" = set; then
5494 enableval=$enable_pic;
5499 case "$enableval" in
5504 default) ENABLE_PIC=1
5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define ENABLE_PIC $ENABLE_PIC
5516 # Check whether --enable-shared was given.
5517 if test "${enable_shared+set}" = set; then
5518 enableval=$enable_shared;
5523 case "$enableval" in
5524 yes) ENABLE_SHARED=1
5528 default) ENABLE_SHARED=0
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 # Check whether --enable-embed-stdcxx was given.
5536 if test "${enable_embed_stdcxx+set}" = set; then
5537 enableval=$enable_embed_stdcxx;
5542 case "$enableval" in
5543 yes) ENABLE_EMBED_STDCXX=1
5545 no) ENABLE_EMBED_STDCXX=0
5547 default) ENABLE_EMBED_STDCXX=0
5549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5550 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5551 { (exit 1); exit 1; }; } ;;
5554 # Check whether --enable-timestamps was given.
5555 if test "${enable_timestamps+set}" = set; then
5556 enableval=$enable_timestamps;
5561 case "$enableval" in
5562 yes) ENABLE_TIMESTAMPS=1
5564 no) ENABLE_TIMESTAMPS=0
5566 default) ENABLE_TIMESTAMPS=1
5568 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5570 { (exit 1); exit 1; }; } ;;
5573 cat >>confdefs.h <<_ACEOF
5574 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5578 # Check whether --enable-backtraces was given.
5579 if test "${enable_backtraces+set}" = set; then
5580 enableval=$enable_backtraces; case "$enableval" in
5581 yes) llvm_cv_enable_backtraces="yes" ;;
5582 no) llvm_cv_enable_backtraces="no" ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5588 llvm_cv_enable_backtraces="yes"
5591 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5593 cat >>confdefs.h <<\_ACEOF
5594 #define ENABLE_BACKTRACES 1
5599 # Check whether --enable-crash-overrides was given.
5600 if test "${enable_crash_overrides+set}" = set; then
5601 enableval=$enable_crash_overrides; case "$enableval" in
5602 yes) llvm_cv_enable_crash_overrides="yes" ;;
5603 no) llvm_cv_enable_crash_overrides="no" ;;
5604 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5605 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5606 { (exit 1); exit 1; }; } ;;
5609 llvm_cv_enable_crash_overrides="yes"
5612 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5614 cat >>confdefs.h <<\_ACEOF
5615 #define ENABLE_CRASH_OVERRIDES 1
5620 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5621 ALL_TARGETS=$ALL_TARGETS
5625 # Check whether --enable-targets was given.
5626 if test "${enable_targets+set}" = set; then
5627 enableval=$enable_targets;
5632 if test "$enableval" = host-only ; then
5635 case "$enableval" in
5636 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5637 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5639 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5641 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5642 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5643 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5644 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5645 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5646 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5647 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5652 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5653 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5654 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5655 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5656 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5657 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5658 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5659 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5660 host) case "$llvm_cv_target_arch" in
5661 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5674 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5678 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688 enableval=$enable_experimental_targets;
5694 if test ${enableval} != "disable"
5696 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5702 for a_target in $TARGETS_TO_BUILD; do
5703 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5709 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5716 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5765 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5768 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780 withval=$with_optimize_option;
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5789 case "$llvm_cv_os_type" in
5790 FreeBSD) optimize_option=-O2 ;;
5791 MingW) optimize_option=-O2 ;;
5792 *) optimize_option=-O3 ;;
5794 *) optimize_option="$withval" ;;
5796 OPTIMIZE_OPTION=$optimize_option
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804 withval=$with_extra_options;
5810 default) EXTRA_OPTIONS= ;;
5811 *) EXTRA_OPTIONS=$withval ;;
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819 withval=$with_extra_ld_options;
5825 default) EXTRA_LD_OPTIONS= ;;
5826 *) EXTRA_LD_OPTIONS=$withval ;;
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833 enableval=$enable_bindings;
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841 all ) BINDINGS_TO_BUILD="ocaml" ;;
5842 none | no) BINDINGS_TO_BUILD="" ;;
5843 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844 case "$a_binding" in
5845 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848 { (exit 1); exit 1; }; } ;;
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857 withval=$with_ocaml_libdir;
5863 auto) with_ocaml_libdir="$withval" ;;
5864 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867 { (exit 1); exit 1; }; } ;;
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873 withval=$with_clang_srcdir;
5879 -) clang_src_root="" ;;
5880 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881 *) clang_src_root="$ac_pwd/$withval" ;;
5883 CLANG_SRC_ROOT=$clang_src_root
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889 withval=$with_clang_resource_dir;
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903 withval=$with_c_include_dirs;
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920 withval=$with_gcc_toolchain;
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934 withval=$with_default_sysroot;
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5946 # Check whether --with-clang-default-openmp-runtime was given.
5947 if test "${with_clang_default_openmp_runtime+set}" = set; then
5948 withval=$with_clang_default_openmp_runtime;
5954 cat >>confdefs.h <<_ACEOF
5955 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5960 # Check whether --with-binutils-include was given.
5961 if test "${with_binutils_include+set}" = set; then
5962 withval=$with_binutils_include;
5968 default) WITH_BINUTILS_INCDIR=default ;;
5969 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5970 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5971 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5972 { (exit 1); exit 1; }; } ;;
5974 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5975 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5977 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5978 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5979 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5980 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5981 { (exit 1); exit 1; }; };
5986 # Check whether --with-bug-report-url was given.
5987 if test "${with_bug_report_url+set}" = set; then
5988 withval=$with_bug_report_url;
5990 withval="http://llvm.org/bugs/"
5994 cat >>confdefs.h <<_ACEOF
5995 #define BUG_REPORT_URL "$withval"
5999 # Check whether --enable-terminfo was given.
6000 if test "${enable_terminfo+set}" = set; then
6001 enableval=$enable_terminfo; case "$enableval" in
6002 yes) llvm_cv_enable_terminfo="yes" ;;
6003 no) llvm_cv_enable_terminfo="no" ;;
6004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6005 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6006 { (exit 1); exit 1; }; } ;;
6009 llvm_cv_enable_terminfo="yes"
6012 case "$llvm_cv_enable_terminfo" in
6013 yes) ENABLE_TERMINFO=1
6015 no) ENABLE_TERMINFO=0
6019 # Check whether --enable-libedit was given.
6020 if test "${enable_libedit+set}" = set; then
6021 enableval=$enable_libedit; case "$enableval" in
6022 yes) llvm_cv_enable_libedit="yes" ;;
6023 no) llvm_cv_enable_libedit="no" ;;
6024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6025 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6026 { (exit 1); exit 1; }; } ;;
6029 llvm_cv_enable_libedit="yes"
6033 # Check whether --enable-libffi was given.
6034 if test "${enable_libffi+set}" = set; then
6035 enableval=$enable_libffi; case "$enableval" in
6036 yes) llvm_cv_enable_libffi="yes" ;;
6037 no) llvm_cv_enable_libffi="no" ;;
6038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6039 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6040 { (exit 1); exit 1; }; } ;;
6043 llvm_cv_enable_libffi=no
6048 # Check whether --with-internal-prefix was given.
6049 if test "${with_internal_prefix+set}" = set; then
6050 withval=$with_internal_prefix;
6055 INTERNAL_PREFIX=$withval
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 llvm_cv_gnu_make_command=''
6065 for a in "$MAKE" make gmake gnumake ; do
6066 if test -z "$a" ; then continue ; fi ;
6067 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6069 llvm_cv_gnu_make_command=$a ;
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6080 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6088 if test "$LN_S" = "ln -s"; then
6089 { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6096 # Extract the first word of "nm", so it can be a program name with args.
6097 set dummy nm; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_NM+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6128 if test -n "$NM"; then
6129 { echo "$as_me:$LINENO: result: $NM" >&5
6130 echo "${ECHO_T}$NM" >&6; }
6132 { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6137 # Extract the first word of "cmp", so it can be a program name with args.
6138 set dummy cmp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CMP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6169 if test -n "$CMP"; then
6170 { echo "$as_me:$LINENO: result: $CMP" >&5
6171 echo "${ECHO_T}$CMP" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6178 # Extract the first word of "cp", so it can be a program name with args.
6179 set dummy cp; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_CP+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6210 if test -n "$CP"; then
6211 { echo "$as_me:$LINENO: result: $CP" >&5
6212 echo "${ECHO_T}$CP" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 # Extract the first word of "date", so it can be a program name with args.
6220 set dummy date; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_DATE+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6250 DATE=$ac_cv_path_DATE
6251 if test -n "$DATE"; then
6252 { echo "$as_me:$LINENO: result: $DATE" >&5
6253 echo "${ECHO_T}$DATE" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6260 # Extract the first word of "find", so it can be a program name with args.
6261 set dummy find; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_FIND+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6291 FIND=$ac_cv_path_FIND
6292 if test -n "$FIND"; then
6293 { echo "$as_me:$LINENO: result: $FIND" >&5
6294 echo "${ECHO_T}$FIND" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 # Extract the first word of "grep", so it can be a program name with args.
6302 set dummy grep; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_GREP+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6332 GREP=$ac_cv_path_GREP
6333 if test -n "$GREP"; then
6334 { echo "$as_me:$LINENO: result: $GREP" >&5
6335 echo "${ECHO_T}$GREP" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6342 # Extract the first word of "mkdir", so it can be a program name with args.
6343 set dummy mkdir; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MKDIR+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6373 MKDIR=$ac_cv_path_MKDIR
6374 if test -n "$MKDIR"; then
6375 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6376 echo "${ECHO_T}$MKDIR" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6383 # Extract the first word of "mv", so it can be a program name with args.
6384 set dummy mv; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_MV+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6415 if test -n "$MV"; then
6416 { echo "$as_me:$LINENO: result: $MV" >&5
6417 echo "${ECHO_T}$MV" >&6; }
6419 { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_RANLIB+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 if test -n "$RANLIB"; then
6433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 RANLIB=$ac_cv_prog_RANLIB
6453 if test -n "$RANLIB"; then
6454 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6455 echo "${ECHO_T}$RANLIB" >&6; }
6457 { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6463 if test -z "$ac_cv_prog_RANLIB"; then
6464 ac_ct_RANLIB=$RANLIB
6465 # Extract the first word of "ranlib", so it can be a program name with args.
6466 set dummy ranlib; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 if test -n "$ac_ct_RANLIB"; then
6473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_ac_ct_RANLIB="ranlib"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6493 if test -n "$ac_ct_RANLIB"; then
6494 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6501 if test "x$ac_ct_RANLIB" = x; then
6504 case $cross_compiling:$ac_tool_warned in
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet. If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6514 RANLIB=$ac_ct_RANLIB
6517 RANLIB="$ac_cv_prog_RANLIB"
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ar; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_AR+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test -n "$AR"; then
6529 ac_cv_prog_AR="$AR" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_AR="${ac_tool_prefix}ar"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 if test -n "$AR"; then
6550 { echo "$as_me:$LINENO: result: $AR" >&5
6551 echo "${ECHO_T}$AR" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6559 if test -z "$ac_cv_prog_AR"; then
6561 # Extract the first word of "ar", so it can be a program name with args.
6562 set dummy ar; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 if test -n "$ac_ct_AR"; then
6569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_AR="ar"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6589 if test -n "$ac_ct_AR"; then
6590 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6591 echo "${ECHO_T}$ac_ct_AR" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6597 if test "x$ac_ct_AR" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet. If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6616 # Extract the first word of "rm", so it can be a program name with args.
6617 set dummy rm; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_RM+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6648 if test -n "$RM"; then
6649 { echo "$as_me:$LINENO: result: $RM" >&5
6650 echo "${ECHO_T}$RM" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6657 # Extract the first word of "sed", so it can be a program name with args.
6658 set dummy sed; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_SED+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6689 if test -n "$SED"; then
6690 { echo "$as_me:$LINENO: result: $SED" >&5
6691 echo "${ECHO_T}$SED" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6698 # Extract the first word of "tar", so it can be a program name with args.
6699 set dummy tar; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_TAR+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6730 if test -n "$TAR"; then
6731 { echo "$as_me:$LINENO: result: $TAR" >&5
6732 echo "${ECHO_T}$TAR" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6739 # Extract the first word of "pwd", so it can be a program name with args.
6740 set dummy pwd; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_BINPWD+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6770 BINPWD=$ac_cv_path_BINPWD
6771 if test -n "$BINPWD"; then
6772 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6773 echo "${ECHO_T}$BINPWD" >&6; }
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "dot", so it can be a program name with args.
6782 set dummy dot; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_DOT+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6813 if test -n "$DOT"; then
6814 { echo "$as_me:$LINENO: result: $DOT" >&5
6815 echo "${ECHO_T}$DOT" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 if test "$DOT" != "echo dot" ; then
6824 cat >>confdefs.h <<\_ACEOF
6828 if test "$llvm_cv_os_type" = "MingW" ; then
6829 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 cat >>confdefs.h <<_ACEOF
6833 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6838 # Find a good install program. We prefer a C program (faster),
6839 # so one script is as good as another. But avoid the broken or
6840 # incompatible versions:
6841 # SysV /etc/install, /usr/sbin/install
6842 # SunOS /usr/etc/install
6843 # IRIX /sbin/install
6845 # AmigaOS /C/install, which installs bootblocks on floppy discs
6846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6849 # OS/2's system install, which has a completely different semantic
6850 # ./install, which can be erroneously created by make from ./install.sh.
6851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6853 if test -z "$INSTALL"; then
6854 if test "${ac_cv_path_install+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 # Account for people who put trailing slashes in PATH elements.
6864 ./ | .// | /cC/* | \
6865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6869 # OSF1 and SCO ODT 3.0 have their own names for install.
6870 # Don't use installbsd from OSF since it installs stuff as root
6872 for ac_prog in ginstall scoinst install; do
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6875 if test $ac_prog = install &&
6876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6877 # AIX install. It has an incompatible calling convention.
6879 elif test $ac_prog = install &&
6880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6881 # program-specific install script used by HP pwplus--don't use.
6884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6897 if test "${ac_cv_path_install+set}" = set; then
6898 INSTALL=$ac_cv_path_install
6900 # As a last resort, use the slow shell script. Don't cache a
6901 # value for INSTALL within a source directory, because that will
6902 # break other packages using the cache if that directory is
6903 # removed, or if the value is a relative name.
6904 INSTALL=$ac_install_sh
6907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6908 echo "${ECHO_T}$INSTALL" >&6; }
6910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6911 # It thinks the first close brace ends the variable substitution.
6912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6919 [\\/$]* | ?:[\\/]* ) ;;
6920 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6923 # Extract the first word of "bzip2", so it can be a program name with args.
6924 set dummy bzip2; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_BZIP2+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 BZIP2=$ac_cv_path_BZIP2
6954 if test -n "$BZIP2"; then
6955 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6956 echo "${ECHO_T}$BZIP2" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 # Extract the first word of "cat", so it can be a program name with args.
6964 set dummy cat; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_CAT+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 if test -n "$CAT"; then
6995 { echo "$as_me:$LINENO: result: $CAT" >&5
6996 echo "${ECHO_T}$CAT" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "doxygen", so it can be a program name with args.
7004 set dummy doxygen; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 DOXYGEN=$ac_cv_path_DOXYGEN
7034 if test -n "$DOXYGEN"; then
7035 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7036 echo "${ECHO_T}$DOXYGEN" >&6; }
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7043 # Extract the first word of "groff", so it can be a program name with args.
7044 set dummy groff; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GROFF+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 GROFF=$ac_cv_path_GROFF
7074 if test -n "$GROFF"; then
7075 { echo "$as_me:$LINENO: result: $GROFF" >&5
7076 echo "${ECHO_T}$GROFF" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "gzip", so it can be a program name with args.
7084 set dummy gzip; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 GZIPBIN=$ac_cv_path_GZIPBIN
7114 if test -n "$GZIPBIN"; then
7115 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7116 echo "${ECHO_T}$GZIPBIN" >&6; }
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7123 # Extract the first word of "pdfroff", so it can be a program name with args.
7124 set dummy pdfroff; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_PDFROFF+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 PDFROFF=$ac_cv_path_PDFROFF
7154 if test -n "$PDFROFF"; then
7155 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7156 echo "${ECHO_T}$PDFROFF" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 # Extract the first word of "zip", so it can be a program name with args.
7164 set dummy zip; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_ZIP+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 if test -n "$ZIP"; then
7195 { echo "$as_me:$LINENO: result: $ZIP" >&5
7196 echo "${ECHO_T}$ZIP" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "go", so it can be a program name with args.
7204 set dummy go; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GO+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 if test -n "$GO"; then
7235 { echo "$as_me:$LINENO: result: $GO" >&5
7236 echo "${ECHO_T}$GO" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 for ac_prog in ocamlfind
7245 # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 OCAMLFIND=$ac_cv_path_OCAMLFIND
7276 if test -n "$OCAMLFIND"; then
7277 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7278 echo "${ECHO_T}$OCAMLFIND" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 test -n "$OCAMLFIND" && break
7288 for ac_prog in gas as
7290 # Extract the first word of "$ac_prog", so it can be a program name with args.
7291 set dummy $ac_prog; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_GAS+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 if test -n "$GAS"; then
7322 { echo "$as_me:$LINENO: result: $GAS" >&5
7323 echo "${ECHO_T}$GAS" >&6; }
7325 { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7330 test -n "$GAS" && break
7334 { echo "$as_me:$LINENO: checking for linker version" >&5
7335 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7336 if test "${llvm_cv_link_version+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7343 if (echo "$version_string" | grep -q "ld64"); then
7344 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7346 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7350 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7351 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7353 cat >>confdefs.h <<_ACEOF
7354 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7360 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7361 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7362 if test "${llvm_cv_link_use_r+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 CFLAGS="$CFLAGS -Wl,-R."
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_link") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403 { (case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_try") 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try='test -s conftest$ac_exeext'
7413 { (case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_try") 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 llvm_cv_link_use_r=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 llvm_cv_link_use_r=no
7430 rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7442 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7443 if test "$llvm_cv_link_use_r" = yes ; then
7445 cat >>confdefs.h <<\_ACEOF
7446 #define HAVE_LINK_R 1
7452 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7453 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7454 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464 CFLAGS="$CFLAGS -rdynamic"
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7495 { (case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_try") 2>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_try") 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 llvm_cv_link_use_export_dynamic=yes
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 llvm_cv_link_use_export_dynamic=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7534 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7535 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_LINK_EXPORT_DYNAMIC 1
7544 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7545 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7546 if test "${llvm_cv_link_use_version_script+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557 # The following code is from the autoconf manual,
7558 # "11.13: Limitations of Usual Tools".
7559 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7560 # Use mktemp if possible; otherwise fall back on mkdir,
7561 # with $RANDOM to make collisions less likely.
7565 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7567 test -n "$tmp" && test -d "$tmp"
7569 tmp=$TMPDIR/foo$$-$RANDOM
7570 (umask 077 && mkdir "$tmp")
7573 echo "{" > "$tmp/export.map"
7574 echo " global: main;" >> "$tmp/export.map"
7575 echo " local: *;" >> "$tmp/export.map"
7576 echo "};" >> "$tmp/export.map"
7578 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_link") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609 { (case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_try") 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_try") 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 llvm_cv_link_use_version_script=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 llvm_cv_link_use_version_script=no
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 rm "$tmp/export.map"
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7651 if test "$llvm_cv_link_use_version_script" = yes ; then
7652 HAVE_LINK_VERSION_SCRIPT=1
7658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_GREP+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 # Extract the first word of "grep ggrep" to use in msg output
7664 if test -z "$GREP"; then
7665 set dummy grep ggrep; ac_prog_name=$2
7666 if test "${ac_cv_path_GREP+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_path_GREP_found=false
7670 # Loop through the user's path and test for each of PROGNAME-LIST
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7675 test -z "$as_dir" && as_dir=.
7676 for ac_prog in grep ggrep; do
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7680 # Check for GNU ac_path_GREP and select it if it is found.
7681 # Check for GNU $ac_path_GREP
7682 case `"$ac_path_GREP" --version 2>&1` in
7684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7690 cat "conftest.in" "conftest.in" >"conftest.tmp"
7691 mv "conftest.tmp" "conftest.in"
7692 cp "conftest.in" "conftest.nl"
7693 echo 'GREP' >> "conftest.nl"
7694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7696 ac_count=`expr $ac_count + 1`
7697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7698 # Best one so far, save it but keep looking for a better one
7699 ac_cv_path_GREP="$ac_path_GREP"
7700 ac_path_GREP_max=$ac_count
7702 # 10*(2^10) chars as input seems more than enough
7703 test $ac_count -gt 10 && break
7705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7709 $ac_path_GREP_found && break 3
7719 GREP="$ac_cv_path_GREP"
7720 if test -z "$GREP"; then
7721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7723 { (exit 1); exit 1; }; }
7727 ac_cv_path_GREP=$GREP
7732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7734 GREP="$ac_cv_path_GREP"
7737 { echo "$as_me:$LINENO: checking for egrep" >&5
7738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7743 then ac_cv_path_EGREP="$GREP -E"
7745 # Extract the first word of "egrep" to use in msg output
7746 if test -z "$EGREP"; then
7747 set dummy egrep; ac_prog_name=$2
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_path_EGREP_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7757 test -z "$as_dir" && as_dir=.
7758 for ac_prog in egrep; do
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7762 # Check for GNU ac_path_EGREP and select it if it is found.
7763 # Check for GNU $ac_path_EGREP
7764 case `"$ac_path_EGREP" --version 2>&1` in
7766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7772 cat "conftest.in" "conftest.in" >"conftest.tmp"
7773 mv "conftest.tmp" "conftest.in"
7774 cp "conftest.in" "conftest.nl"
7775 echo 'EGREP' >> "conftest.nl"
7776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778 ac_count=`expr $ac_count + 1`
7779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7780 # Best one so far, save it but keep looking for a better one
7781 ac_cv_path_EGREP="$ac_path_EGREP"
7782 ac_path_EGREP_max=$ac_count
7784 # 10*(2^10) chars as input seems more than enough
7785 test $ac_count -gt 10 && break
7787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7791 $ac_path_EGREP_found && break 3
7801 EGREP="$ac_cv_path_EGREP"
7802 if test -z "$EGREP"; then
7803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7805 { (exit 1); exit 1; }; }
7809 ac_cv_path_EGREP=$EGREP
7815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7817 EGREP="$ac_cv_path_EGREP"
7820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7822 if test "${ac_cv_header_stdc+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7859 { (case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_try") 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_cv_header_stdc=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_cv_header_stdc=no
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 if test $ac_cv_header_stdc = yes; then
7889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900 $EGREP "memchr" >/dev/null 2>&1; then
7903 ac_cv_header_stdc=no
7909 if test $ac_cv_header_stdc = yes; then
7910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921 $EGREP "free" >/dev/null 2>&1; then
7924 ac_cv_header_stdc=no
7930 if test $ac_cv_header_stdc = yes; then
7931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932 if test "$cross_compiling" = yes; then
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7943 #if ((' ' & 0x0FF) == 0x020)
7944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7947 # define ISLOWER(c) \
7948 (('a' <= (c) && (c) <= 'i') \
7949 || ('j' <= (c) && (c) <= 'r') \
7950 || ('s' <= (c) && (c) <= 'z'))
7951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7959 for (i = 0; i < 256; i++)
7960 if (XOR (islower (i), ISLOWER (i))
7961 || toupper (i) != TOUPPER (i))
7966 rm -f conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_link") 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7988 echo "$as_me: program exited with status $ac_status" >&5
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_header_stdc=no
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8003 if test $ac_cv_header_stdc = yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define STDC_HEADERS 1
8011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8022 inttypes.h stdint.h unistd.h
8024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8038 #include <$ac_header>
8040 rm -f conftest.$ac_objext
8041 if { (ac_try="$ac_compile"
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_try") 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_try") 2>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 eval "$as_ac_Header=yes"
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 eval "$as_ac_Header=no"
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 ac_res=`eval echo '${'$as_ac_Header'}'`
8085 { echo "$as_me:$LINENO: result: $ac_res" >&5
8086 echo "${ECHO_T}$ac_res" >&6; }
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098 for ac_header in errno.h
8100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108 { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8111 # Is the header compilable?
8112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 $ac_includes_default
8121 #include <$ac_header>
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_compile") 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138 { (case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_try") 2>&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 ac_header_compiler=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_header_compiler=no
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <$ac_header>
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } >/dev/null; then
8193 if test -s conftest.err; then
8194 ac_cpp_err=$ac_c_preproc_warn_flag
8195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8202 if test -z "$ac_cpp_err"; then
8203 ac_header_preproc=yes
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_header_preproc=no
8211 rm -f conftest.err conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6; }
8215 # So? What about this header?
8216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8222 ac_header_preproc=yes
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8238 ## ------------------------------------ ##
8239 ## Report this to http://llvm.org/bugs/ ##
8240 ## ------------------------------------ ##
8242 ) | sed "s/^/$as_me: WARNING: /" >&2
8245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 eval "$as_ac_Header=\$ac_header_preproc"
8252 ac_res=`eval echo '${'$as_ac_Header'}'`
8253 { echo "$as_me:$LINENO: result: $ac_res" >&5
8254 echo "${ECHO_T}$ac_res" >&6; }
8257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258 cat >>confdefs.h <<_ACEOF
8259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 case "$llvm_cv_os_type" in
8268 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8269 Darwin) llvm_shlib_ext=.dylib ;;
8270 *) llvm_shlib_ext=.so ;;
8274 cat >>confdefs.h <<_ACEOF
8275 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8279 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8280 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8293 if test "$GCC" != "yes" && test "$ICC" != "yes"
8295 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8296 echo "$as_me: error: gcc|icc required but not found" >&2;}
8297 { (exit 1); exit 1; }; }
8300 if test "$GXX" != "yes" && test "$IXX" != "yes"
8302 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8303 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8304 { (exit 1); exit 1; }; }
8307 if test "$GCC" = "yes"
8309 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8317 #if !defined(__GNUC__) || __GNUC__ < 3
8318 #error Unsupported GCC version
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_try") 2>&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8363 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8364 { (exit 1); exit 1; }; }
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 if test -z "$llvm_cv_gnu_make_command"
8372 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8373 echo "$as_me: error: GNU Make required but not found" >&2;}
8374 { (exit 1); exit 1; }; }
8377 { echo "$as_me:$LINENO: result: ok" >&5
8378 echo "${ECHO_T}ok" >&6; }
8380 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8381 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8382 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8384 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8386 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8390 NO_MAYBE_UNINITIALIZED=
8391 if test "$GXX" = "yes"
8393 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8395 if test -z "$NO_MAYBE_UNINITIALIZED"
8397 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8403 llvm_cv_old_cxxflags="$CXXFLAGS"
8404 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8405 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 int main() { return 0; }
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8453 no_comment=-Wno-comment
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 NO_COMMENT=$no_comment
8465 CXXFLAGS="$llvm_cv_old_cxxflags"
8467 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8468 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8471 # Check whether --with-python was given.
8472 if test "${with_python+set}" = set; then
8473 withval=$with_python; PYTHON="$withval"
8477 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8478 { echo "$as_me:$LINENO: checking for python" >&5
8479 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8480 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8481 echo "${ECHO_T}user defined: $with_python" >&6; }
8483 if test -n "$PYTHON" ; then
8484 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8485 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8488 # Extract the first word of "python python2 python27", so it can be a program name with args.
8489 set dummy python python2 python27; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_PYTHON+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8516 echo "${ECHO_T}not found" >&6; }
8517 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8518 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8519 { (exit 1); exit 1; }; }"
8523 PYTHON=$ac_cv_path_PYTHON
8524 if test -n "$PYTHON"; then
8525 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8526 echo "${ECHO_T}$PYTHON" >&6; }
8528 { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8535 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8536 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8537 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8538 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8539 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8540 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8541 if test "$ac_python_version_major" -gt "2" || \
8542 (test "$ac_python_version_major" -eq "2" && \
8543 test "$ac_python_version_minor" -ge "7") ; then
8544 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8545 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8547 { echo "$as_me:$LINENO: result: not found" >&5
8548 echo "${ECHO_T}not found" >&6; }
8549 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8550 See \`config.log' for more details." >&5
8551 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8552 See \`config.log' for more details." >&2;}
8553 { (exit 1); exit 1; }; }
8558 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8559 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8560 if test "${ac_cv_lib_m_sin+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 ac_check_lib_save_LIBS=$LIBS
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 /* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_lib_save_LIBS
8633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8634 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8635 if test $ac_cv_lib_m_sin = yes; then
8636 cat >>confdefs.h <<_ACEOF
8644 if test "$llvm_cv_os_type" = "MingW" ; then
8646 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8647 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8648 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-limagehlp $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_link") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8703 ac_cv_lib_imagehlp_main=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ac_cv_lib_imagehlp_main=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8715 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8716 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8717 if test $ac_cv_lib_imagehlp_main = yes; then
8718 cat >>confdefs.h <<_ACEOF
8719 #define HAVE_LIBIMAGEHLP 1
8722 LIBS="-limagehlp $LIBS"
8727 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8728 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8729 if test "${ac_cv_lib_ole32_main+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lole32 $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_link") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8765 { (case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_try") 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_try") 2>&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_cv_lib_ole32_main=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_lib_ole32_main=no
8792 rm -f core conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_check_lib_save_LIBS
8796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8797 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8798 if test $ac_cv_lib_ole32_main = yes; then
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_LIBOLE32 1
8803 LIBS="-lole32 $LIBS"
8808 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8809 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8810 if test "${ac_cv_lib_psapi_main+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 ac_check_lib_save_LIBS=$LIBS
8814 LIBS="-lpsapi $LIBS"
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_link") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1 >conftest.err
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8846 { (case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_try") 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_psapi_main=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_psapi_main=no
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8877 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8878 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8879 if test $ac_cv_lib_psapi_main = yes; then
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LIBPSAPI 1
8884 LIBS="-lpsapi $LIBS"
8889 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8890 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8891 if test "${ac_cv_lib_shell32_main+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 ac_check_lib_save_LIBS=$LIBS
8895 LIBS="-lshell32 $LIBS"
8896 cat >conftest.$ac_ext <<_ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_lib_shell32_main=yes
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_shell32_main=no
8954 rm -f core conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8959 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8960 if test $ac_cv_lib_shell32_main = yes; then
8961 cat >>confdefs.h <<_ACEOF
8962 #define HAVE_LIBSHELL32 1
8965 LIBS="-lshell32 $LIBS"
8971 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8972 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8973 if test "${ac_cv_search_dlopen+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8999 for ac_lib in '' dl; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try='test -s conftest$ac_exeext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_search_dlopen=$ac_res
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9048 rm -f core conftest.err conftest.$ac_objext \
9050 if test "${ac_cv_search_dlopen+set}" = set; then
9054 if test "${ac_cv_search_dlopen+set}" = set; then
9057 ac_cv_search_dlopen=no
9060 LIBS=$ac_func_search_save_LIBS
9062 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9063 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9064 ac_res=$ac_cv_search_dlopen
9065 if test "$ac_res" != no; then
9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9069 cat >>confdefs.h <<\_ACEOF
9070 #define HAVE_DLOPEN 1
9077 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9078 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9082 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9083 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9084 if test "${ac_cv_search_clock_gettime+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_func_search_save_LIBS=$LIBS
9088 cat >conftest.$ac_ext <<_ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9101 char clock_gettime ();
9105 return clock_gettime ();
9110 for ac_lib in '' rt; do
9111 if test -z "$ac_lib"; then
9112 ac_res="none required"
9115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (ac_try="$ac_link"
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_link") 2>conftest.er1
9126 grep -v '^ *+' conftest.er1 >conftest.err
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_cv_search_clock_gettime=$ac_res
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9159 rm -f core conftest.err conftest.$ac_objext \
9161 if test "${ac_cv_search_clock_gettime+set}" = set; then
9165 if test "${ac_cv_search_clock_gettime+set}" = set; then
9168 ac_cv_search_clock_gettime=no
9171 LIBS=$ac_func_search_save_LIBS
9173 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9174 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9175 ac_res=$ac_cv_search_clock_gettime
9176 if test "$ac_res" != no; then
9177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9182 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9183 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9184 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9185 if test "${ac_cv_search_setupterm+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 ac_func_search_save_LIBS=$LIBS
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9196 /* Override any GCC internal prototype to avoid an error.
9197 Use char because int might match the return type of a GCC
9198 builtin and then its argument prototype would still apply. */
9206 return setupterm ();
9211 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9212 if test -z "$ac_lib"; then
9213 ac_res="none required"
9216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_link") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9233 { (case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_try") 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_try") 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; }; then
9252 ac_cv_search_setupterm=$ac_res
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9260 rm -f core conftest.err conftest.$ac_objext \
9262 if test "${ac_cv_search_setupterm+set}" = set; then
9266 if test "${ac_cv_search_setupterm+set}" = set; then
9269 ac_cv_search_setupterm=no
9272 LIBS=$ac_func_search_save_LIBS
9274 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9275 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9276 ac_res=$ac_cv_search_setupterm
9277 if test "$ac_res" != no; then
9278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_TERMINFO 1
9292 if test "$llvm_cv_enable_libedit" = "yes" ; then
9293 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9294 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9295 if test "${ac_cv_search_el_init+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 ac_func_search_save_LIBS=$LIBS
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9321 for ac_lib in '' edit; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (ac_try="$ac_link"
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_link") 2>conftest.er1
9337 grep -v '^ *+' conftest.er1 >conftest.err
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343 { (case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_try") 2>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_try") 2>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_search_el_init=$ac_res
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9370 rm -f core conftest.err conftest.$ac_objext \
9372 if test "${ac_cv_search_el_init+set}" = set; then
9376 if test "${ac_cv_search_el_init+set}" = set; then
9379 ac_cv_search_el_init=no
9382 LIBS=$ac_func_search_save_LIBS
9384 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9385 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9386 ac_res=$ac_cv_search_el_init
9387 if test "$ac_res" != no; then
9388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_LIBEDIT 1
9398 if test "$llvm_cv_enable_libffi" = "yes" ; then
9399 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9400 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9401 if test "${ac_cv_search_ffi_call+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 ac_func_search_save_LIBS=$LIBS
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 /* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9427 for ac_lib in '' ffi; do
9428 if test -z "$ac_lib"; then
9429 ac_res="none required"
9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (ac_try="$ac_link"
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_link") 2>conftest.er1
9443 grep -v '^ *+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_search_ffi_call=$ac_res
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9476 rm -f core conftest.err conftest.$ac_objext \
9478 if test "${ac_cv_search_ffi_call+set}" = set; then
9482 if test "${ac_cv_search_ffi_call+set}" = set; then
9485 ac_cv_search_ffi_call=no
9488 LIBS=$ac_func_search_save_LIBS
9490 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9491 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9492 ac_res=$ac_cv_search_ffi_call
9493 if test "$ac_res" != no; then
9494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9496 cat >>confdefs.h <<\_ACEOF
9497 #define HAVE_FFI_CALL 1
9501 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9502 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9503 { (exit 1); exit 1; }; }
9508 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9509 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9510 if test "${ac_cv_search_mallinfo+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 ac_func_search_save_LIBS=$LIBS
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9536 for ac_lib in '' malloc; do
9537 if test -z "$ac_lib"; then
9538 ac_res="none required"
9541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try='test -s conftest$ac_exeext'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_search_mallinfo=$ac_res
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9585 rm -f core conftest.err conftest.$ac_objext \
9587 if test "${ac_cv_search_mallinfo+set}" = set; then
9591 if test "${ac_cv_search_mallinfo+set}" = set; then
9594 ac_cv_search_mallinfo=no
9597 LIBS=$ac_func_search_save_LIBS
9599 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9600 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9601 ac_res=$ac_cv_search_mallinfo
9602 if test "$ac_res" != no; then
9603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_MALLINFO 1
9612 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9614 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9615 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9616 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lpthread $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9634 char pthread_mutex_init ();
9638 return pthread_mutex_init ();
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_link") 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9658 { (case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_try") 2>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_try") 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_pthread_pthread_mutex_init=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_lib_pthread_pthread_mutex_init=no
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9690 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9691 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9692 cat >>confdefs.h <<_ACEOF
9693 #define HAVE_LIBPTHREAD 1
9696 LIBS="-lpthread $LIBS"
9700 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9701 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9702 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 ac_func_search_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9719 char pthread_mutex_lock ();
9723 return pthread_mutex_lock ();
9728 for ac_lib in '' pthread; do
9729 if test -z "$ac_lib"; then
9730 ac_res="none required"
9733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_search_pthread_mutex_lock=$ac_res
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9777 rm -f core conftest.err conftest.$ac_objext \
9779 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9783 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9786 ac_cv_search_pthread_mutex_lock=no
9789 LIBS=$ac_func_search_save_LIBS
9791 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9792 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9793 ac_res=$ac_cv_search_pthread_mutex_lock
9794 if test "$ac_res" != no; then
9795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_PTHREAD_MUTEX_LOCK 1
9803 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9804 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9805 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 ac_func_search_save_LIBS=$LIBS
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9822 char pthread_rwlock_init ();
9826 return pthread_rwlock_init ();
9831 for ac_lib in '' pthread; do
9832 if test -z "$ac_lib"; then
9833 ac_res="none required"
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_search_pthread_rwlock_init=$ac_res
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9880 rm -f core conftest.err conftest.$ac_objext \
9882 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9886 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9889 ac_cv_search_pthread_rwlock_init=no
9892 LIBS=$ac_func_search_save_LIBS
9894 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9895 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9896 ac_res=$ac_cv_search_pthread_rwlock_init
9897 if test "$ac_res" != no; then
9898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9900 cat >>confdefs.h <<\_ACEOF
9901 #define HAVE_PTHREAD_RWLOCK_INIT 1
9906 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9907 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9908 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 ac_func_search_save_LIBS=$LIBS
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9925 char pthread_getspecific ();
9929 return pthread_getspecific ();
9934 for ac_lib in '' pthread; do
9935 if test -z "$ac_lib"; then
9936 ac_res="none required"
9939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_search_pthread_getspecific=$ac_res
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9983 rm -f core conftest.err conftest.$ac_objext \
9985 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9989 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9992 ac_cv_search_pthread_getspecific=no
9995 LIBS=$ac_func_search_save_LIBS
9997 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9998 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9999 ac_res=$ac_cv_search_pthread_getspecific
10000 if test "$ac_res" != no; then
10001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_PTHREAD_GETSPECIFIC 1
10011 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10013 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10014 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_z_compress2+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10037 return compress2 ();
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_z_compress2=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_z_compress2=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10089 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10090 if test $ac_cv_lib_z_compress2 = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define HAVE_LIBZ 1
10102 # Check whether --with-oprofile was given.
10103 if test "${with_oprofile+set}" = set; then
10104 withval=$with_oprofile;
10108 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10109 no) llvm_cv_oppath=
10112 *) llvm_cv_oppath="${withval}/lib/oprofile"
10113 CPPFLAGS="-I${withval}/include";;
10115 case $llvm_cv_os_type in
10117 if test -n "$llvm_cv_oppath" ; then
10118 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10119 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10120 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10121 if test "${ac_cv_search_bfd_init+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_func_search_save_LIBS=$LIBS
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10142 return bfd_init ();
10147 for ac_lib in '' bfd; do
10148 if test -z "$ac_lib"; then
10149 ac_res="none required"
10152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10169 { (case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_try") 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_try") 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 ac_cv_search_bfd_init=$ac_res
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f core conftest.err conftest.$ac_objext \
10198 if test "${ac_cv_search_bfd_init+set}" = set; then
10202 if test "${ac_cv_search_bfd_init+set}" = set; then
10205 ac_cv_search_bfd_init=no
10207 rm conftest.$ac_ext
10208 LIBS=$ac_func_search_save_LIBS
10210 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10211 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10212 ac_res=$ac_cv_search_bfd_init
10213 if test "$ac_res" != no; then
10214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10218 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10219 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10220 if test "${ac_cv_search_op_open_agent+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 ac_func_search_save_LIBS=$LIBS
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10237 char op_open_agent ();
10241 return op_open_agent ();
10246 for ac_lib in '' opagent; do
10247 if test -z "$ac_lib"; then
10248 ac_res="none required"
10251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_try") 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_cv_search_op_open_agent=$ac_res
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10295 rm -f core conftest.err conftest.$ac_objext \
10297 if test "${ac_cv_search_op_open_agent+set}" = set; then
10301 if test "${ac_cv_search_op_open_agent+set}" = set; then
10304 ac_cv_search_op_open_agent=no
10306 rm conftest.$ac_ext
10307 LIBS=$ac_func_search_save_LIBS
10309 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10310 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10311 ac_res=$ac_cv_search_op_open_agent
10312 if test "$ac_res" != no; then
10313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10317 echo "Error! You need to have libopagent around."
10322 if test "${ac_cv_header_opagent_h+set}" = set; then
10323 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10324 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10325 if test "${ac_cv_header_opagent_h+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10329 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10331 # Is the header compilable?
10332 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10333 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 #include <opagent.h>
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358 { (case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_try") 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_header_compiler=yes
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_header_compiler=no
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6; }
10389 # Is the header present?
10390 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10391 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <opagent.h>
10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10408 grep -v '^ *+' conftest.er1 >conftest.err
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } >/dev/null; then
10413 if test -s conftest.err; then
10414 ac_cpp_err=$ac_c_preproc_warn_flag
10415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10422 if test -z "$ac_cpp_err"; then
10423 ac_header_preproc=yes
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ac_header_preproc=no
10431 rm -f conftest.err conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10433 echo "${ECHO_T}$ac_header_preproc" >&6; }
10435 # So? What about this header?
10436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10439 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10441 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10442 ac_header_preproc=yes
10445 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10446 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10447 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10448 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10450 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10452 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10454 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10456 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10458 ## ------------------------------------ ##
10459 ## Report this to http://llvm.org/bugs/ ##
10460 ## ------------------------------------ ##
10462 ) | sed "s/^/$as_me: WARNING: /" >&2
10465 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10466 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10467 if test "${ac_cv_header_opagent_h+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 ac_cv_header_opagent_h=$ac_header_preproc
10472 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10473 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10476 if test $ac_cv_header_opagent_h = yes; then
10480 echo "Error! You need to have opagent.h around."
10488 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10489 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10490 { (exit 1); exit 1; }; } ;;
10501 cat >>confdefs.h <<_ACEOF
10502 #define LLVM_USE_OPROFILE $USE_OPROFILE
10507 # Check whether --with-intel-jitevents was given.
10508 if test "${with_intel_jitevents+set}" = set; then
10509 withval=$with_intel_jitevents;
10511 yes) USE_INTEL_JITEVENTS=1
10513 no) USE_INTEL_JITEVENTS=0
10515 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10516 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10517 { (exit 1); exit 1; }; };;
10520 case $llvm_cv_os_type in
10521 Linux|Win32|Cygwin|MingW) ;;
10522 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10523 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10524 { (exit 1); exit 1; }; };;
10527 case "$llvm_cv_target_arch" in
10529 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10530 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10531 { (exit 1); exit 1; }; };;
10536 USE_INTEL_JITEVENTS=0
10542 cat >>confdefs.h <<_ACEOF
10543 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10547 for ac_prog in xml2-config
10549 # Extract the first word of "$ac_prog", so it can be a program name with args.
10550 set dummy $ac_prog; ac_word=$2
10551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10553 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 if test -n "$XML2CONFIG"; then
10557 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_prog_XML2CONFIG="$ac_prog"
10567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10577 if test -n "$XML2CONFIG"; then
10578 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10579 echo "${ECHO_T}$XML2CONFIG" >&6; }
10581 { echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6; }
10586 test -n "$XML2CONFIG" && break
10590 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10591 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10592 if test "x$XML2CONFIG" = "x"; then
10593 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10594 echo "${ECHO_T}xml2-config not found" >&6; }
10596 LIBXML2_INC=`$XML2CONFIG --cflags`
10597 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10598 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10599 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10600 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10601 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lxml2 $LIBS"
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10619 char xmlReadFile ();
10623 return xmlReadFile ();
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_lib_xml2_xmlReadFile=yes
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_lib_xml2_xmlReadFile=no
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10674 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10675 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10676 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define CLANG_HAVE_LIBXML 1
10682 LIBXML2_LIBS="-lxml2"
10695 ac_header_dirent=no
10696 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10697 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10698 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10699 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <sys/types.h>
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_Header=yes"
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 eval "$as_ac_Header=no"
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10773 ac_header_dirent=$ac_hdr; break
10777 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10778 if test $ac_header_dirent = dirent.h; then
10779 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10780 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10781 if test "${ac_cv_search_opendir+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 ac_func_search_save_LIBS=$LIBS
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10807 for ac_lib in '' dir; do
10808 if test -z "$ac_lib"; then
10809 ac_res="none required"
10812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_link") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829 { (case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_try") 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest$ac_exeext'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_search_opendir=$ac_res
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10856 rm -f core conftest.err conftest.$ac_objext \
10858 if test "${ac_cv_search_opendir+set}" = set; then
10862 if test "${ac_cv_search_opendir+set}" = set; then
10865 ac_cv_search_opendir=no
10867 rm conftest.$ac_ext
10868 LIBS=$ac_func_search_save_LIBS
10870 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10871 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10872 ac_res=$ac_cv_search_opendir
10873 if test "$ac_res" != no; then
10874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10879 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10881 if test "${ac_cv_search_opendir+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 ac_func_search_save_LIBS=$LIBS
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10892 /* Override any GCC internal prototype to avoid an error.
10893 Use char because int might match the return type of a GCC
10894 builtin and then its argument prototype would still apply. */
10907 for ac_lib in '' x; do
10908 if test -z "$ac_lib"; then
10909 ac_res="none required"
10912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_try") 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_search_opendir=$ac_res
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10956 rm -f core conftest.err conftest.$ac_objext \
10958 if test "${ac_cv_search_opendir+set}" = set; then
10962 if test "${ac_cv_search_opendir+set}" = set; then
10965 ac_cv_search_opendir=no
10967 rm conftest.$ac_ext
10968 LIBS=$ac_func_search_save_LIBS
10970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10972 ac_res=$ac_cv_search_opendir
10973 if test "$ac_res" != no; then
10974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10980 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10981 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10982 if test "${ac_cv_header_mmap_anon+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <sys/mman.h>
10998 #include <unistd.h>
11003 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11023 { (case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_try") 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_cv_header_mmap_anon=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_cv_header_mmap_anon=no
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 ac_cpp='$CPP $CPPFLAGS'
11053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11059 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11060 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11061 if test "$ac_cv_header_mmap_anon" = yes; then
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_MMAP_ANONYMOUS 1
11069 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11070 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11071 if test "${ac_cv_header_stat_broken+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #include <sys/types.h>
11081 #include <sys/stat.h>
11083 #if defined S_ISBLK && defined S_IFDIR
11084 # if S_ISBLK (S_IFDIR)
11089 #if defined S_ISBLK && defined S_IFCHR
11090 # if S_ISBLK (S_IFCHR)
11095 #if defined S_ISLNK && defined S_IFREG
11096 # if S_ISLNK (S_IFREG)
11101 #if defined S_ISSOCK && defined S_IFREG
11102 # if S_ISSOCK (S_IFREG)
11108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 $EGREP "You lose" >/dev/null 2>&1; then
11110 ac_cv_header_stat_broken=yes
11112 ac_cv_header_stat_broken=no
11117 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11118 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11119 if test $ac_cv_header_stat_broken = yes; then
11121 cat >>confdefs.h <<\_ACEOF
11122 #define STAT_MACROS_BROKEN 1
11127 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11128 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11129 if test "${ac_cv_header_time+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <sys/types.h>
11139 #include <sys/time.h>
11145 if ((struct tm *) 0)
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_compile") 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest.$ac_objext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_header_time=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_cv_header_time=no
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11196 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11197 if test $ac_cv_header_time = yes; then
11199 cat >>confdefs.h <<\_ACEOF
11200 #define TIME_WITH_SYS_TIME 1
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11213 for ac_header in cxxabi.h
11215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <stddef.h>
11230 #include <$ac_header>
11232 rm -f conftest.$ac_objext
11233 if { (ac_try="$ac_compile"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_compile") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 eval "$as_ac_Header=yes"
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 eval "$as_ac_Header=no"
11274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11289 ac_cpp='$CPP $CPPFLAGS'
11290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11300 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 ac_res=`eval echo '${'$as_ac_Header'}'`
11310 { echo "$as_me:$LINENO: result: $ac_res" >&5
11311 echo "${ECHO_T}$ac_res" >&6; }
11313 # Is the header compilable?
11314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 $ac_includes_default
11323 #include <$ac_header>
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_compile") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_header_compiler=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_header_compiler=no
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11369 echo "${ECHO_T}$ac_header_compiler" >&6; }
11371 # Is the header present?
11372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <$ac_header>
11382 if { (ac_try="$ac_cpp conftest.$ac_ext"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11390 grep -v '^ *+' conftest.er1 >conftest.err
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } >/dev/null; then
11395 if test -s conftest.err; then
11396 ac_cpp_err=$ac_c_preproc_warn_flag
11397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11404 if test -z "$ac_cpp_err"; then
11405 ac_header_preproc=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_preproc=no
11413 rm -f conftest.err conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417 # So? What about this header?
11418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11424 ac_header_preproc=yes
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440 ## ------------------------------------ ##
11441 ## Report this to http://llvm.org/bugs/ ##
11442 ## ------------------------------------ ##
11444 ) | sed "s/^/$as_me: WARNING: /" >&2
11447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 eval "$as_ac_Header=\$ac_header_preproc"
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest.$ac_objext'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_header_compiler=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_header_compiler=no
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11543 echo "${ECHO_T}$ac_header_compiler" >&6; }
11545 # Is the header present?
11546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <$ac_header>
11556 if { (ac_try="$ac_cpp conftest.$ac_ext"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } >/dev/null; then
11569 if test -s conftest.err; then
11570 ac_cpp_err=$ac_c_preproc_warn_flag
11571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 if test -z "$ac_cpp_err"; then
11579 ac_header_preproc=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_preproc=no
11587 rm -f conftest.err conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11589 echo "${ECHO_T}$ac_header_preproc" >&6; }
11591 # So? What about this header?
11592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11598 ac_header_preproc=yes
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11614 ## ------------------------------------ ##
11615 ## Report this to http://llvm.org/bugs/ ##
11616 ## ------------------------------------ ##
11618 ) | sed "s/^/$as_me: WARNING: /" >&2
11621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 eval "$as_ac_Header=\$ac_header_preproc"
11628 ac_res=`eval echo '${'$as_ac_Header'}'`
11629 { echo "$as_me:$LINENO: result: $ac_res" >&5
11630 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 for ac_header in utime.h
11645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 ac_res=`eval echo '${'$as_ac_Header'}'`
11653 { echo "$as_me:$LINENO: result: $ac_res" >&5
11654 echo "${ECHO_T}$ac_res" >&6; }
11656 # Is the header compilable?
11657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 $ac_includes_default
11666 #include <$ac_header>
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11677 grep -v '^ *+' conftest.er1 >conftest.err
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try='test -s conftest.$ac_objext'
11693 { (case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_try") 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_header_compiler=yes
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 ac_header_compiler=no
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6; }
11714 # Is the header present?
11715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 #include <$ac_header>
11725 if { (ac_try="$ac_cpp conftest.$ac_ext"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11747 if test -z "$ac_cpp_err"; then
11748 ac_header_preproc=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_preproc=no
11756 rm -f conftest.err conftest.$ac_ext
11757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758 echo "${ECHO_T}$ac_header_preproc" >&6; }
11760 # So? What about this header?
11761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11783 ## ------------------------------------ ##
11784 ## Report this to http://llvm.org/bugs/ ##
11785 ## ------------------------------------ ##
11787 ) | sed "s/^/$as_me: WARNING: /" >&2
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 eval "$as_ac_Header=\$ac_header_preproc"
11797 ac_res=`eval echo '${'$as_ac_Header'}'`
11798 { echo "$as_me:$LINENO: result: $ac_res" >&5
11799 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11816 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 ac_res=`eval echo '${'$as_ac_Header'}'`
11826 { echo "$as_me:$LINENO: result: $ac_res" >&5
11827 echo "${ECHO_T}$ac_res" >&6; }
11829 # Is the header compilable?
11830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 #include <$ac_header>
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_header_compiler=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_header_compiler=no
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11885 echo "${ECHO_T}$ac_header_compiler" >&6; }
11887 # Is the header present?
11888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 #include <$ac_header>
11898 if { (ac_try="$ac_cpp conftest.$ac_ext"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } >/dev/null; then
11911 if test -s conftest.err; then
11912 ac_cpp_err=$ac_c_preproc_warn_flag
11913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11920 if test -z "$ac_cpp_err"; then
11921 ac_header_preproc=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_header_preproc=no
11929 rm -f conftest.err conftest.$ac_ext
11930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11931 echo "${ECHO_T}$ac_header_preproc" >&6; }
11933 # So? What about this header?
11934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11940 ac_header_preproc=yes
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11956 ## ------------------------------------ ##
11957 ## Report this to http://llvm.org/bugs/ ##
11958 ## ------------------------------------ ##
11960 ) | sed "s/^/$as_me: WARNING: /" >&2
11963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 eval "$as_ac_Header=\$ac_header_preproc"
11970 ac_res=`eval echo '${'$as_ac_Header'}'`
11971 { echo "$as_me:$LINENO: result: $ac_res" >&5
11972 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11987 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 ac_res=`eval echo '${'$as_ac_Header'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
12000 # Is the header compilable?
12001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 #include <$ac_header>
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_header_compiler=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_header_compiler=no
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12056 echo "${ECHO_T}$ac_header_compiler" >&6; }
12058 # Is the header present?
12059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 #include <$ac_header>
12069 if { (ac_try="$ac_cpp conftest.$ac_ext"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } >/dev/null; then
12082 if test -s conftest.err; then
12083 ac_cpp_err=$ac_c_preproc_warn_flag
12084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12091 if test -z "$ac_cpp_err"; then
12092 ac_header_preproc=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_preproc=no
12100 rm -f conftest.err conftest.$ac_ext
12101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12102 echo "${ECHO_T}$ac_header_preproc" >&6; }
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12111 ac_header_preproc=yes
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ## ------------------------------------ ##
12128 ## Report this to http://llvm.org/bugs/ ##
12129 ## ------------------------------------ ##
12131 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 eval "$as_ac_Header=\$ac_header_preproc"
12141 ac_res=`eval echo '${'$as_ac_Header'}'`
12142 { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12156 for ac_header in valgrind/valgrind.h
12158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12169 # Is the header compilable?
12170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12190 grep -v '^ *+' conftest.er1 >conftest.err
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_try") 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_header_compiler=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_header_compiler=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12225 echo "${ECHO_T}$ac_header_compiler" >&6; }
12227 # Is the header present?
12228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <$ac_header>
12238 if { (ac_try="$ac_cpp conftest.$ac_ext"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12260 if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6; }
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 ## ------------------------------------ ##
12297 ## Report this to http://llvm.org/bugs/ ##
12298 ## ------------------------------------ ##
12300 ) | sed "s/^/$as_me: WARNING: /" >&2
12303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 eval "$as_ac_Header=\$ac_header_preproc"
12310 ac_res=`eval echo '${'$as_ac_Header'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12325 for ac_header in fenv.h
12327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 ac_res=`eval echo '${'$as_ac_Header'}'`
12335 { echo "$as_me:$LINENO: result: $ac_res" >&5
12336 echo "${ECHO_T}$ac_res" >&6; }
12338 # Is the header compilable?
12339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 #include <$ac_header>
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_try") 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_header_compiler=no
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12394 echo "${ECHO_T}$ac_header_compiler" >&6; }
12396 # Is the header present?
12397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <$ac_header>
12407 if { (ac_try="$ac_cpp conftest.$ac_ext"
12408 case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null; then
12420 if test -s conftest.err; then
12421 ac_cpp_err=$ac_c_preproc_warn_flag
12422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12429 if test -z "$ac_cpp_err"; then
12430 ac_header_preproc=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_header_preproc=no
12438 rm -f conftest.err conftest.$ac_ext
12439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12440 echo "${ECHO_T}$ac_header_preproc" >&6; }
12442 # So? What about this header?
12443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12449 ac_header_preproc=yes
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12465 ## ------------------------------------ ##
12466 ## Report this to http://llvm.org/bugs/ ##
12467 ## ------------------------------------ ##
12469 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 eval "$as_ac_Header=\$ac_header_preproc"
12479 ac_res=`eval echo '${'$as_ac_Header'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12493 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12494 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12495 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12496 echo $ECHO_N "(cached) $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. */
12509 #ifndef FE_ALL_EXCEPT
12510 char *p = (char *) FE_ALL_EXCEPT;
12518 rm -f conftest.$ac_objext
12519 if { (ac_try="$ac_compile"
12520 case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_compile") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest.$ac_objext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_have_decl_FE_ALL_EXCEPT=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12563 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12564 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567 #define HAVE_DECL_FE_ALL_EXCEPT 1
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_DECL_FE_ALL_EXCEPT 0
12578 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12579 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12580 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12595 char *p = (char *) FE_INEXACT;
12603 rm -f conftest.$ac_objext
12604 if { (ac_try="$ac_compile"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_compile") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest.$ac_objext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_have_decl_FE_INEXACT=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_have_decl_FE_INEXACT=no
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12648 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12649 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_DECL_FE_INEXACT 1
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_DECL_FE_INEXACT 0
12665 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12667 for ac_header in pthread.h
12669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 ac_res=`eval echo '${'$as_ac_Header'}'`
12677 { echo "$as_me:$LINENO: result: $ac_res" >&5
12678 echo "${ECHO_T}$ac_res" >&6; }
12680 # Is the header compilable?
12681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12690 #include <$ac_header>
12692 rm -f conftest.$ac_objext
12693 if { (ac_try="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_compile") 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12726 ac_header_compiler=yes
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_header_compiler=no
12734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12736 echo "${ECHO_T}$ac_header_compiler" >&6; }
12738 # Is the header present?
12739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 #include <$ac_header>
12749 if { (ac_try="$ac_cpp conftest.$ac_ext"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev/null; then
12762 if test -s conftest.err; then
12763 ac_cpp_err=$ac_c_preproc_warn_flag
12764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12771 if test -z "$ac_cpp_err"; then
12772 ac_header_preproc=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_preproc=no
12780 rm -f conftest.err conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12782 echo "${ECHO_T}$ac_header_preproc" >&6; }
12784 # So? What about this header?
12785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12791 ac_header_preproc=yes
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12807 ## ------------------------------------ ##
12808 ## Report this to http://llvm.org/bugs/ ##
12809 ## ------------------------------------ ##
12811 ) | sed "s/^/$as_me: WARNING: /" >&2
12814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 eval "$as_ac_Header=\$ac_header_preproc"
12821 ac_res=`eval echo '${'$as_ac_Header'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12843 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12845 for ac_header in zlib.h
12847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 ac_res=`eval echo '${'$as_ac_Header'}'`
12855 { echo "$as_me:$LINENO: result: $ac_res" >&5
12856 echo "${ECHO_T}$ac_res" >&6; }
12858 # Is the header compilable?
12859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12861 cat >conftest.$ac_ext <<_ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867 $ac_includes_default
12868 #include <$ac_header>
12870 rm -f conftest.$ac_objext
12871 if { (ac_try="$ac_compile"
12872 case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_compile") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1 >conftest.err
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_header_compiler=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_header_compiler=no
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 echo "${ECHO_T}$ac_header_compiler" >&6; }
12916 # Is the header present?
12917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <$ac_header>
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } >/dev/null; then
12940 if test -s conftest.err; then
12941 ac_cpp_err=$ac_c_preproc_warn_flag
12942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12949 if test -z "$ac_cpp_err"; then
12950 ac_header_preproc=yes
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_header_preproc=no
12958 rm -f conftest.err conftest.$ac_ext
12959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 echo "${ECHO_T}$ac_header_preproc" >&6; }
12962 # So? What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc=yes
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12985 ## ------------------------------------ ##
12986 ## Report this to http://llvm.org/bugs/ ##
12987 ## ------------------------------------ ##
12989 ) | sed "s/^/$as_me: WARNING: /" >&2
12992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 eval "$as_ac_Header=\$ac_header_preproc"
12999 ac_res=`eval echo '${'$as_ac_Header'}'`
13000 { echo "$as_me:$LINENO: result: $ac_res" >&5
13001 echo "${ECHO_T}$ac_res" >&6; }
13004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13005 cat >>confdefs.h <<_ACEOF
13006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13022 if test "$llvm_cv_enable_libffi" = "yes" ; then
13025 for ac_header in ffi.h ffi/ffi.h
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 ac_res=`eval echo '${'$as_ac_Header'}'`
13035 { echo "$as_me:$LINENO: result: $ac_res" >&5
13036 echo "${ECHO_T}$ac_res" >&6; }
13038 # Is the header compilable?
13039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 $ac_includes_default
13048 #include <$ac_header>
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13065 { (case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_try") 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest.$ac_objext'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084 ac_header_compiler=yes
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_header_compiler=no
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13094 echo "${ECHO_T}$ac_header_compiler" >&6; }
13096 # Is the header present?
13097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 #include <$ac_header>
13107 if { (ac_try="$ac_cpp conftest.$ac_ext"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } >/dev/null; then
13120 if test -s conftest.err; then
13121 ac_cpp_err=$ac_c_preproc_warn_flag
13122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13129 if test -z "$ac_cpp_err"; then
13130 ac_header_preproc=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_header_preproc=no
13138 rm -f conftest.err conftest.$ac_ext
13139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13140 echo "${ECHO_T}$ac_header_preproc" >&6; }
13142 # So? What about this header?
13143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13149 ac_header_preproc=yes
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13165 ## ------------------------------------ ##
13166 ## Report this to http://llvm.org/bugs/ ##
13167 ## ------------------------------------ ##
13169 ) | sed "s/^/$as_me: WARNING: /" >&2
13172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 eval "$as_ac_Header=\$ac_header_preproc"
13179 ac_res=`eval echo '${'$as_ac_Header'}'`
13180 { echo "$as_me:$LINENO: result: $ac_res" >&5
13181 echo "${ECHO_T}$ac_res" >&6; }
13184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13185 cat >>confdefs.h <<_ACEOF
13186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13196 for ac_header in CrashReporterClient.h
13198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_res=`eval echo '${'$as_ac_Header'}'`
13206 { echo "$as_me:$LINENO: result: $ac_res" >&5
13207 echo "${ECHO_T}$ac_res" >&6; }
13209 # Is the header compilable?
13210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 #include <$ac_header>
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255 ac_header_compiler=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_header_compiler=no
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265 echo "${ECHO_T}$ac_header_compiler" >&6; }
13267 # Is the header present?
13268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <$ac_header>
13278 if { (ac_try="$ac_cpp conftest.$ac_ext"
13279 case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } >/dev/null; then
13291 if test -s conftest.err; then
13292 ac_cpp_err=$ac_c_preproc_warn_flag
13293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13300 if test -z "$ac_cpp_err"; then
13301 ac_header_preproc=yes
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13306 ac_header_preproc=no
13309 rm -f conftest.err conftest.$ac_ext
13310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13311 echo "${ECHO_T}$ac_header_preproc" >&6; }
13313 # So? What about this header?
13314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13320 ac_header_preproc=yes
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13336 ## ------------------------------------ ##
13337 ## Report this to http://llvm.org/bugs/ ##
13338 ## ------------------------------------ ##
13340 ) | sed "s/^/$as_me: WARNING: /" >&2
13343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 eval "$as_ac_Header=\$ac_header_preproc"
13350 ac_res=`eval echo '${'$as_ac_Header'}'`
13351 { echo "$as_me:$LINENO: result: $ac_res" >&5
13352 echo "${ECHO_T}$ac_res" >&6; }
13355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13356 cat >>confdefs.h <<_ACEOF
13357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13365 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13366 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13367 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13375 extern const char *__crashreporter_info__;
13377 __crashreporter_info__ = "test";
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest$ac_exeext'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13418 { echo "$as_me:$LINENO: result: yes" >&5
13419 echo "${ECHO_T}yes" >&6; }
13421 cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_CRASHREPORTER_INFO 1
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13431 { echo "$as_me:$LINENO: result: no" >&5
13432 echo "${ECHO_T}no" >&6; }
13434 cat >>confdefs.h <<\_ACEOF
13435 #define HAVE_CRASHREPORTER_INFO 0
13441 rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13446 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13447 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13448 if test "${ac_cv_huge_val_sanity+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 ac_cpp='$CXXCPP $CPPFLAGS'
13454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13458 ac_save_CXXFLAGS=$CXXFLAGS
13459 CXXFLAGS="$CXXFLAGS -pedantic"
13460 if test "$cross_compiling" = yes; then
13461 ac_cv_huge_val_sanity=yes
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13473 double x = HUGE_VAL; return x != x;
13478 rm -f conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_link") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_huge_val_sanity=yes
13500 echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 ac_cv_huge_val_sanity=no
13507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13511 CXXFLAGS=$ac_save_CXXFLAGS
13513 ac_cpp='$CPP $CPPFLAGS'
13514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13520 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13521 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13522 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13525 { echo "$as_me:$LINENO: checking for pid_t" >&5
13526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13527 if test "${ac_cv_type_pid_t+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 cat >conftest.$ac_ext <<_ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 $ac_includes_default
13537 typedef pid_t ac__type_new_;
13541 if ((ac__type_new_ *) 0)
13543 if (sizeof (ac__type_new_))
13549 rm -f conftest.$ac_objext
13550 if { (ac_try="$ac_compile"
13551 case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_compile") 2>conftest.er1
13558 grep -v '^ *+' conftest.er1 >conftest.err
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13564 { (case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_try") 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_type_pid_t=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_cv_type_pid_t=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13594 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13595 if test $ac_cv_type_pid_t = yes; then
13599 cat >>confdefs.h <<_ACEOF
13605 { echo "$as_me:$LINENO: checking for size_t" >&5
13606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13607 if test "${ac_cv_type_size_t+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 $ac_includes_default
13617 typedef size_t ac__type_new_;
13621 if ((ac__type_new_ *) 0)
13623 if (sizeof (ac__type_new_))
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_try") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_try") 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_type_size_t=yes
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_cv_type_size_t=no
13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13674 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13675 if test $ac_cv_type_size_t = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define size_t unsigned int
13686 cat >>confdefs.h <<_ACEOF
13687 #define RETSIGTYPE void
13690 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13691 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13692 if test "${ac_cv_struct_tm+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <sys/types.h>
13707 struct tm *tp; tp->tm_sec;
13712 rm -f conftest.$ac_objext
13713 if { (ac_try="$ac_compile"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_cv_struct_tm=time.h
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ac_cv_struct_tm=sys/time.h
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13757 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13758 if test $ac_cv_struct_tm = sys/time.h; then
13760 cat >>confdefs.h <<\_ACEOF
13761 #define TM_IN_SYS_TIME 1
13766 { echo "$as_me:$LINENO: checking for int64_t" >&5
13767 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13768 if test "${ac_cv_type_int64_t+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 $ac_includes_default
13778 typedef int64_t ac__type_new_;
13782 if ((ac__type_new_ *) 0)
13784 if (sizeof (ac__type_new_))
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_type_int64_t=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_type_int64_t=no
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13835 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13836 if test $ac_cv_type_int64_t = yes; then
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_INT64_T 1
13844 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13845 echo "$as_me: error: Type int64_t required but not found" >&2;}
13846 { (exit 1); exit 1; }; }
13849 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13850 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13851 if test "${ac_cv_type_uint64_t+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 $ac_includes_default
13861 typedef uint64_t ac__type_new_;
13865 if ((ac__type_new_ *) 0)
13867 if (sizeof (ac__type_new_))
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888 { (case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_try") 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest.$ac_objext'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_type_uint64_t=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_cv_type_uint64_t=no
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13918 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13919 if test $ac_cv_type_uint64_t = yes; then
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_UINT64_T 1
13927 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13928 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13929 if test "${ac_cv_type_u_int64_t+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 cat >conftest.$ac_ext <<_ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 $ac_includes_default
13939 typedef u_int64_t ac__type_new_;
13943 if ((ac__type_new_ *) 0)
13945 if (sizeof (ac__type_new_))
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_compile") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest.$ac_objext'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 ac_cv_type_u_int64_t=yes
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 ac_cv_type_u_int64_t=no
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13996 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13997 if test $ac_cv_type_u_int64_t = yes; then
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_U_INT64_T 1
14005 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14006 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14007 { (exit 1); exit 1; }; }
14016 for ac_func in backtrace getcwd
14018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14032 #define $ac_func innocuous_$ac_func
14034 /* System header to define __stub macros and hopefully few prototypes,
14035 which can conflict with char $ac_func (); below.
14036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14037 <limits.h> exists even on freestanding compilers. */
14040 # include <limits.h>
14042 # include <assert.h>
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14054 /* The GNU C library defines this for functions which it implements
14055 to always fail with ENOSYS. Some functions are actually named
14056 something starting with __ and the normal name is an alias. */
14057 #if defined __stub_$ac_func || defined __stub___$ac_func
14064 return $ac_func ();
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 eval "$as_ac_var=yes"
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 eval "$as_ac_var=no"
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14114 ac_res=`eval echo '${'$as_ac_var'}'`
14115 { echo "$as_me:$LINENO: result: $ac_res" >&5
14116 echo "${ECHO_T}$ac_res" >&6; }
14117 if test `eval echo '${'$as_ac_var'}'` = yes; then
14118 cat >>confdefs.h <<_ACEOF
14119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14130 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14146 #define $ac_func innocuous_$ac_func
14148 /* System header to define __stub macros and hopefully few prototypes,
14149 which can conflict with char $ac_func (); below.
14150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14151 <limits.h> exists even on freestanding compilers. */
14154 # include <limits.h>
14156 # include <assert.h>
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined __stub_$ac_func || defined __stub___$ac_func
14178 return $ac_func ();
14183 rm -f conftest.$ac_objext conftest$ac_exeext
14184 if { (ac_try="$ac_link"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_link") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 eval "$as_ac_var=yes"
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 eval "$as_ac_var=no"
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 ac_res=`eval echo '${'$as_ac_var'}'`
14229 { echo "$as_me:$LINENO: result: $ac_res" >&5
14230 echo "${ECHO_T}$ac_res" >&6; }
14231 if test `eval echo '${'$as_ac_var'}'` = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14242 for ac_func in isatty mkdtemp mkstemp
14244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14258 #define $ac_func innocuous_$ac_func
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func (); below.
14262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263 <limits.h> exists even on freestanding compilers. */
14266 # include <limits.h>
14268 # include <assert.h>
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14280 /* The GNU C library defines this for functions which it implements
14281 to always fail with ENOSYS. Some functions are actually named
14282 something starting with __ and the normal name is an alias. */
14283 #if defined __stub_$ac_func || defined __stub___$ac_func
14290 return $ac_func ();
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 eval "$as_ac_var=yes"
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14334 eval "$as_ac_var=no"
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14340 ac_res=`eval echo '${'$as_ac_var'}'`
14341 { echo "$as_me:$LINENO: result: $ac_res" >&5
14342 echo "${ECHO_T}$ac_res" >&6; }
14343 if test `eval echo '${'$as_ac_var'}'` = yes; then
14344 cat >>confdefs.h <<_ACEOF
14345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14357 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14373 #define $ac_func innocuous_$ac_func
14375 /* System header to define __stub macros and hopefully few prototypes,
14376 which can conflict with char $ac_func (); below.
14377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14378 <limits.h> exists even on freestanding compilers. */
14381 # include <limits.h>
14383 # include <assert.h>
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined __stub_$ac_func || defined __stub___$ac_func
14405 return $ac_func ();
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (ac_try="$ac_link"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_link") 2>conftest.er1
14419 grep -v '^ *+' conftest.er1 >conftest.err
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 eval "$as_ac_var=yes"
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 eval "$as_ac_var=no"
14452 rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14455 ac_res=`eval echo '${'$as_ac_var'}'`
14456 { echo "$as_me:$LINENO: result: $ac_res" >&5
14457 echo "${ECHO_T}$ac_res" >&6; }
14458 if test `eval echo '${'$as_ac_var'}'` = yes; then
14459 cat >>confdefs.h <<_ACEOF
14460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14469 for ac_func in strerror strerror_r setenv
14471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 cat >conftest.$ac_ext <<_ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14485 #define $ac_func innocuous_$ac_func
14487 /* System header to define __stub macros and hopefully few prototypes,
14488 which can conflict with char $ac_func (); below.
14489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14490 <limits.h> exists even on freestanding compilers. */
14493 # include <limits.h>
14495 # include <assert.h>
14500 /* Override any GCC internal prototype to avoid an error.
14501 Use char because int might match the return type of a GCC
14502 builtin and then its argument prototype would still apply. */
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined __stub_$ac_func || defined __stub___$ac_func
14517 return $ac_func ();
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 eval "$as_ac_var=yes"
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 eval "$as_ac_var=no"
14564 rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 ac_res=`eval echo '${'$as_ac_var'}'`
14568 { echo "$as_me:$LINENO: result: $ac_res" >&5
14569 echo "${ECHO_T}$ac_res" >&6; }
14570 if test `eval echo '${'$as_ac_var'}'` = yes; then
14571 cat >>confdefs.h <<_ACEOF
14572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14582 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14598 #define $ac_func innocuous_$ac_func
14600 /* System header to define __stub macros and hopefully few prototypes,
14601 which can conflict with char $ac_func (); below.
14602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14603 <limits.h> exists even on freestanding compilers. */
14606 # include <limits.h>
14608 # include <assert.h>
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined __stub_$ac_func || defined __stub___$ac_func
14630 return $ac_func ();
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (ac_try="$ac_link"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_link") 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest$ac_exeext'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 eval "$as_ac_var=yes"
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 eval "$as_ac_var=no"
14677 rm -f core conftest.err conftest.$ac_objext \
14678 conftest$ac_exeext conftest.$ac_ext
14680 ac_res=`eval echo '${'$as_ac_var'}'`
14681 { echo "$as_me:$LINENO: result: $ac_res" >&5
14682 echo "${ECHO_T}$ac_res" >&6; }
14683 if test `eval echo '${'$as_ac_var'}'` = yes; then
14684 cat >>confdefs.h <<_ACEOF
14685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14696 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712 #define $ac_func innocuous_$ac_func
14714 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14720 # include <limits.h>
14722 # include <assert.h>
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14734 /* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737 #if defined __stub_$ac_func || defined __stub___$ac_func
14744 return $ac_func ();
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_try") 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 eval "$as_ac_var=yes"
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 eval "$as_ac_var=no"
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14794 ac_res=`eval echo '${'$as_ac_var'}'`
14795 { echo "$as_me:$LINENO: result: $ac_res" >&5
14796 echo "${ECHO_T}$ac_res" >&6; }
14797 if test `eval echo '${'$as_ac_var'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14807 for ac_func in futimes futimens
14809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14823 #define $ac_func innocuous_$ac_func
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func (); below.
14827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828 <limits.h> exists even on freestanding compilers. */
14831 # include <limits.h>
14833 # include <assert.h>
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined __stub_$ac_func || defined __stub___$ac_func
14855 return $ac_func ();
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (ac_try="$ac_link"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_link") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest$ac_exeext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$as_ac_var=yes"
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 eval "$as_ac_var=no"
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14905 ac_res=`eval echo '${'$as_ac_var'}'`
14906 { echo "$as_me:$LINENO: result: $ac_res" >&5
14907 echo "${ECHO_T}$ac_res" >&6; }
14908 if test `eval echo '${'$as_ac_var'}'` = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14916 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14917 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14918 if test "${llvm_cv_c_printf_a+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 ac_cpp='$CPP $CPPFLAGS'
14923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927 if test "$cross_compiling" = yes; then
14928 llvmac_cv_c_printf_a=no
14930 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14939 #include <stdlib.h>
14945 volatile double A, B;
14949 sprintf(Buffer, "%a", A);
14953 if (A != 0x1.999999999999ap-4)
14960 rm -f conftest$ac_exeext
14961 if { (ac_try="$ac_link"
14962 case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_link") 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971 { (case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_try") 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 llvm_cv_c_printf_a=yes
14982 echo "$as_me: program exited with status $ac_status" >&5
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 ( exit $ac_status )
14987 llvmac_cv_c_printf_a=no
14989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14994 ac_cpp='$CPP $CPPFLAGS'
14995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15000 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15001 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15002 if test "$llvm_cv_c_printf_a" = "yes"; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_PRINTF_A 1
15012 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15013 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15014 if test "${ac_cv_func_rand48+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 ac_cpp='$CXXCPP $CPPFLAGS'
15020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 #include <stdlib.h>
15034 srand48(0);lrand48();drand48();
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_compile") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_func_rand48=yes
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_func_rand48=no
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 ac_cpp='$CPP $CPPFLAGS'
15084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15090 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15091 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15093 if test "$ac_cv_func_rand48" = "yes" ; then
15095 cat >>confdefs.h <<\_ACEOF
15096 #define HAVE_RAND48 1
15102 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15103 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15104 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15118 char *p = (char *) arc4random;
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_have_decl_arc4random=yes
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_have_decl_arc4random=no
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15171 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15172 if test $ac_cv_have_decl_arc4random = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_DECL_ARC4RANDOM 1
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_DECL_ARC4RANDOM 0
15189 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15190 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15191 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 $ac_includes_default
15205 char *p = (char *) strerror_s;
15213 rm -f conftest.$ac_objext
15214 if { (ac_try="$ac_compile"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_try") 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_cv_have_decl_strerror_s=yes
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ac_cv_have_decl_strerror_s=no
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15258 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15259 if test $ac_cv_have_decl_strerror_s = yes; then
15261 cat >>confdefs.h <<_ACEOF
15262 #define HAVE_DECL_STRERROR_S 1
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_DECL_STRERROR_S 0
15276 if test "$llvm_cv_os_type" = "MingW" ; then
15277 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15278 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15279 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 ac_check_lib_save_LIBS=$LIBS
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15291 /* Override any GCC internal prototype to avoid an error.
15292 Use char because int might match the return type of a GCC
15293 builtin and then its argument prototype would still apply. */
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (ac_try="$ac_link"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_link") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_try") 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_cv_lib_gcc__alloca=yes
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_lib_gcc__alloca=no
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LIBS=$ac_check_lib_save_LIBS
15352 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15353 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15354 if test $ac_cv_lib_gcc__alloca = yes; then
15356 cat >>confdefs.h <<\_ACEOF
15357 #define HAVE__ALLOCA 1
15362 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15363 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15364 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 ac_check_lib_save_LIBS=$LIBS
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any GCC internal prototype to avoid an error.
15377 Use char because int might match the return type of a GCC
15378 builtin and then its argument prototype would still apply. */
15386 return __alloca ();
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest$ac_exeext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_lib_gcc___alloca=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_lib_gcc___alloca=no
15433 rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435 LIBS=$ac_check_lib_save_LIBS
15437 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15438 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15439 if test $ac_cv_lib_gcc___alloca = yes; then
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE___ALLOCA 1
15447 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15448 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15449 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 ac_check_lib_save_LIBS=$LIBS
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15461 /* Override any GCC internal prototype to avoid an error.
15462 Use char because int might match the return type of a GCC
15463 builtin and then its argument prototype would still apply. */
15471 return __chkstk ();
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_link") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest$ac_exeext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_lib_gcc___chkstk=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_cv_lib_gcc___chkstk=no
15518 rm -f core conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 LIBS=$ac_check_lib_save_LIBS
15522 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15523 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15524 if test $ac_cv_lib_gcc___chkstk = yes; then
15526 cat >>confdefs.h <<\_ACEOF
15527 #define HAVE___CHKSTK 1
15532 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15533 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15534 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 ac_check_lib_save_LIBS=$LIBS
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any GCC internal prototype to avoid an error.
15547 Use char because int might match the return type of a GCC
15548 builtin and then its argument prototype would still apply. */
15552 char __chkstk_ms ();
15556 return __chkstk_ms ();
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest$ac_exeext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_lib_gcc___chkstk_ms=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_gcc___chkstk_ms=no
15603 rm -f core conftest.err conftest.$ac_objext \
15604 conftest$ac_exeext conftest.$ac_ext
15605 LIBS=$ac_check_lib_save_LIBS
15607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15608 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15609 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define HAVE___CHKSTK_MS 1
15617 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15618 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15619 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 ac_check_lib_save_LIBS=$LIBS
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15641 return ___chkstk ();
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (ac_try="$ac_link"
15648 case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_link") 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; } &&
15670 { ac_try='test -s conftest$ac_exeext'
15671 { (case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_try") 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 ac_cv_lib_gcc____chkstk=yes
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 ac_cv_lib_gcc____chkstk=no
15688 rm -f core conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15690 LIBS=$ac_check_lib_save_LIBS
15692 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15693 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15694 if test $ac_cv_lib_gcc____chkstk = yes; then
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE____CHKSTK 1
15702 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15703 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15704 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_check_lib_save_LIBS=$LIBS
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any GCC internal prototype to avoid an error.
15717 Use char because int might match the return type of a GCC
15718 builtin and then its argument prototype would still apply. */
15722 char ___chkstk_ms ();
15726 return ___chkstk_ms ();
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (ac_try="$ac_link"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_link") 2>conftest.er1
15740 grep -v '^ *+' conftest.er1 >conftest.err
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest$ac_exeext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_cv_lib_gcc____chkstk_ms=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_cv_lib_gcc____chkstk_ms=no
15773 rm -f core conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15778 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15779 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE____CHKSTK_MS 1
15788 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15789 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15790 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 ac_check_lib_save_LIBS=$LIBS
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15802 /* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15812 return __ashldi3 ();
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (ac_try="$ac_link"
15819 case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_link") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest$ac_exeext'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_cv_lib_gcc___ashldi3=yes
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_cv_lib_gcc___ashldi3=no
15859 rm -f core conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15861 LIBS=$ac_check_lib_save_LIBS
15863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15864 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15865 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAVE___ASHLDI3 1
15873 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15874 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15875 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 ac_check_lib_save_LIBS=$LIBS
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15887 /* Override any GCC internal prototype to avoid an error.
15888 Use char because int might match the return type of a GCC
15889 builtin and then its argument prototype would still apply. */
15897 return __ashrdi3 ();
15902 rm -f conftest.$ac_objext conftest$ac_exeext
15903 if { (ac_try="$ac_link"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_link") 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15917 { (case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_try") 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; } &&
15926 { ac_try='test -s conftest$ac_exeext'
15927 { (case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_try") 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_lib_gcc___ashrdi3=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_lib_gcc___ashrdi3=no
15944 rm -f core conftest.err conftest.$ac_objext \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15949 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15950 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE___ASHRDI3 1
15958 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15959 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15960 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 ac_check_lib_save_LIBS=$LIBS
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15972 /* Override any GCC internal prototype to avoid an error.
15973 Use char because int might match the return type of a GCC
15974 builtin and then its argument prototype would still apply. */
15982 return __divdi3 ();
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (ac_try="$ac_link"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_link") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_try") 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_cv_lib_gcc___divdi3=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_cv_lib_gcc___divdi3=no
16029 rm -f core conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16034 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16035 if test $ac_cv_lib_gcc___divdi3 = yes; then
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE___DIVDI3 1
16043 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16044 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16045 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_check_lib_save_LIBS=$LIBS
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16057 /* Override any GCC internal prototype to avoid an error.
16058 Use char because int might match the return type of a GCC
16059 builtin and then its argument prototype would still apply. */
16067 return __fixdfdi ();
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (ac_try="$ac_link"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_link") 2>conftest.er1
16081 grep -v '^ *+' conftest.er1 >conftest.err
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16087 { (case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_try") 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_lib_gcc___fixdfdi=yes
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 ac_cv_lib_gcc___fixdfdi=no
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16116 LIBS=$ac_check_lib_save_LIBS
16118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16119 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16120 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE___FIXDFDI 1
16128 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16129 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16130 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 ac_check_lib_save_LIBS=$LIBS
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16142 /* Override any GCC internal prototype to avoid an error.
16143 Use char because int might match the return type of a GCC
16144 builtin and then its argument prototype would still apply. */
16152 return __fixsfdi ();
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_link") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_lib_gcc___fixsfdi=yes
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_gcc___fixsfdi=no
16199 rm -f core conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16201 LIBS=$ac_check_lib_save_LIBS
16203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16204 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16205 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE___FIXSFDI 1
16213 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16214 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16215 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 ac_check_lib_save_LIBS=$LIBS
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16233 char __floatdidf ();
16237 return __floatdidf ();
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_link") 2>conftest.er1
16251 grep -v '^ *+' conftest.er1 >conftest.err
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16257 { (case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_try") 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest$ac_exeext'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_lib_gcc___floatdidf=yes
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_cv_lib_gcc___floatdidf=no
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_check_lib_save_LIBS
16288 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16289 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16290 if test $ac_cv_lib_gcc___floatdidf = yes; then
16292 cat >>confdefs.h <<\_ACEOF
16293 #define HAVE___FLOATDIDF 1
16298 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16299 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16300 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 ac_check_lib_save_LIBS=$LIBS
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16312 /* Override any GCC internal prototype to avoid an error.
16313 Use char because int might match the return type of a GCC
16314 builtin and then its argument prototype would still apply. */
16322 return __lshrdi3 ();
16327 rm -f conftest.$ac_objext conftest$ac_exeext
16328 if { (ac_try="$ac_link"
16329 case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_link") 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16342 { (case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_try") 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest$ac_exeext'
16352 { (case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_try") 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_cv_lib_gcc___lshrdi3=yes
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ac_cv_lib_gcc___lshrdi3=no
16369 rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16371 LIBS=$ac_check_lib_save_LIBS
16373 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16374 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16375 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE___LSHRDI3 1
16383 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16384 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16385 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 ac_check_lib_save_LIBS=$LIBS
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16397 /* Override any GCC internal prototype to avoid an error.
16398 Use char because int might match the return type of a GCC
16399 builtin and then its argument prototype would still apply. */
16407 return __moddi3 ();
16412 rm -f conftest.$ac_objext conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>conftest.er1
16421 grep -v '^ *+' conftest.er1 >conftest.err
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest$ac_exeext'
16437 { (case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_try") 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_lib_gcc___moddi3=yes
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_lib_gcc___moddi3=no
16454 rm -f core conftest.err conftest.$ac_objext \
16455 conftest$ac_exeext conftest.$ac_ext
16456 LIBS=$ac_check_lib_save_LIBS
16458 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16459 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16460 if test $ac_cv_lib_gcc___moddi3 = yes; then
16462 cat >>confdefs.h <<\_ACEOF
16463 #define HAVE___MODDI3 1
16468 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16469 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16470 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 ac_check_lib_save_LIBS=$LIBS
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16482 /* Override any GCC internal prototype to avoid an error.
16483 Use char because int might match the return type of a GCC
16484 builtin and then its argument prototype would still apply. */
16492 return __udivdi3 ();
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_link") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest$ac_exeext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_cv_lib_gcc___udivdi3=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_lib_gcc___udivdi3=no
16539 rm -f core conftest.err conftest.$ac_objext \
16540 conftest$ac_exeext conftest.$ac_ext
16541 LIBS=$ac_check_lib_save_LIBS
16543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16544 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16545 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE___UDIVDI3 1
16553 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16554 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 ac_check_lib_save_LIBS=$LIBS
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16577 return __umoddi3 ();
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597 { (case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_try") 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest$ac_exeext'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_lib_gcc___umoddi3=yes
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_lib_gcc___umoddi3=no
16624 rm -f core conftest.err conftest.$ac_objext \
16625 conftest$ac_exeext conftest.$ac_ext
16626 LIBS=$ac_check_lib_save_LIBS
16628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16629 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16630 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16632 cat >>confdefs.h <<\_ACEOF
16633 #define HAVE___UMODDI3 1
16639 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16640 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16641 if test "${ac_cv_lib_gcc___main+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 ac_check_lib_save_LIBS=$LIBS
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16653 /* Override any GCC internal prototype to avoid an error.
16654 Use char because int might match the return type of a GCC
16655 builtin and then its argument prototype would still apply. */
16668 rm -f conftest.$ac_objext conftest$ac_exeext
16669 if { (ac_try="$ac_link"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_link") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest$ac_exeext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_lib_gcc___main=yes
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ac_cv_lib_gcc___main=no
16710 rm -f core conftest.err conftest.$ac_objext \
16711 conftest$ac_exeext conftest.$ac_ext
16712 LIBS=$ac_check_lib_save_LIBS
16714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16715 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16716 if test $ac_cv_lib_gcc___main = yes; then
16718 cat >>confdefs.h <<\_ACEOF
16719 #define HAVE___MAIN 1
16724 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16725 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16726 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 ac_check_lib_save_LIBS=$LIBS
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16748 return __cmpdi2 ();
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_lib_gcc___cmpdi2=yes
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_lib_gcc___cmpdi2=no
16795 rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797 LIBS=$ac_check_lib_save_LIBS
16799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16800 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16801 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE___CMPDI2 1
16811 if test "$llvm_cv_os_type" = "MingW" ; then
16812 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16813 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16814 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16822 #include <windows.h>
16823 #include <imagehlp.h>
16824 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16825 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16829 rm -f conftest.$ac_objext
16830 if { (ac_try="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16838 grep -v '^ *+' conftest.er1 >conftest.err
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16864 { echo "$as_me:$LINENO: result: yes" >&5
16865 echo "${ECHO_T}yes" >&6; }
16866 llvm_cv_win32_elmcb_pcstr="PCSTR"
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16873 { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16875 llvm_cv_win32_elmcb_pcstr="PSTR"
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 cat >>confdefs.h <<_ACEOF
16882 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16887 if test "$llvm_cv_platform_type" = "Unix" ; then
16890 for ac_header in stdlib.h unistd.h
16892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 ac_res=`eval echo '${'$as_ac_Header'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16903 # Is the header compilable?
16904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $ac_includes_default
16913 #include <$ac_header>
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_compile") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest.$ac_objext'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_header_compiler=yes
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ac_header_compiler=no
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16959 echo "${ECHO_T}$ac_header_compiler" >&6; }
16961 # Is the header present?
16962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 #include <$ac_header>
16972 if { (ac_try="$ac_cpp conftest.$ac_ext"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } >/dev/null; then
16985 if test -s conftest.err; then
16986 ac_cpp_err=$ac_c_preproc_warn_flag
16987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16994 if test -z "$ac_cpp_err"; then
16995 ac_header_preproc=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_header_preproc=no
17003 rm -f conftest.err conftest.$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17005 echo "${ECHO_T}$ac_header_preproc" >&6; }
17007 # So? What about this header?
17008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17014 ac_header_preproc=yes
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17030 ## ------------------------------------ ##
17031 ## Report this to http://llvm.org/bugs/ ##
17032 ## ------------------------------------ ##
17034 ) | sed "s/^/$as_me: WARNING: /" >&2
17037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 eval "$as_ac_Header=\$ac_header_preproc"
17044 ac_res=`eval echo '${'$as_ac_Header'}'`
17045 { echo "$as_me:$LINENO: result: $ac_res" >&5
17046 echo "${ECHO_T}$ac_res" >&6; }
17049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17050 cat >>confdefs.h <<_ACEOF
17051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17059 for ac_func in getpagesize
17061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17075 #define $ac_func innocuous_$ac_func
17077 /* System header to define __stub macros and hopefully few prototypes,
17078 which can conflict with char $ac_func (); below.
17079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17080 <limits.h> exists even on freestanding compilers. */
17083 # include <limits.h>
17085 # include <assert.h>
17090 /* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
17097 /* The GNU C library defines this for functions which it implements
17098 to always fail with ENOSYS. Some functions are actually named
17099 something starting with __ and the normal name is an alias. */
17100 #if defined __stub_$ac_func || defined __stub___$ac_func
17107 return $ac_func ();
17112 rm -f conftest.$ac_objext conftest$ac_exeext
17113 if { (ac_try="$ac_link"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_link") 2>conftest.er1
17121 grep -v '^ *+' conftest.er1 >conftest.err
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17127 { (case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_try") 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest$ac_exeext'
17137 { (case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 eval "$as_ac_var=yes"
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 eval "$as_ac_var=no"
17154 rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17157 ac_res=`eval echo '${'$as_ac_var'}'`
17158 { echo "$as_me:$LINENO: result: $ac_res" >&5
17159 echo "${ECHO_T}$ac_res" >&6; }
17160 if test `eval echo '${'$as_ac_var'}'` = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168 { echo "$as_me:$LINENO: checking for working mmap" >&5
17169 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17170 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 if test "$cross_compiling" = yes; then
17174 ac_cv_func_mmap_fixed_mapped=no
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182 $ac_includes_default
17183 /* malloc might have been renamed as rpl_malloc. */
17186 /* Thanks to Mike Haertel and Jim Avera for this test.
17187 Here is a matrix of mmap possibilities:
17188 mmap private not fixed
17189 mmap private fixed at somewhere currently unmapped
17190 mmap private fixed at somewhere already mapped
17191 mmap shared not fixed
17192 mmap shared fixed at somewhere currently unmapped
17193 mmap shared fixed at somewhere already mapped
17194 For private mappings, we should verify that changes cannot be read()
17195 back from the file, nor mmap's back from the file at a different
17196 address. (There have been systems where private was not correctly
17197 implemented like the infamous i386 svr4.0, and systems where the
17198 VM page cache was not coherent with the file system buffer cache
17199 like early versions of FreeBSD and possibly contemporary NetBSD.)
17200 For shared mappings, we should conversely verify that changes get
17201 propagated back to all the places they're supposed to be.
17203 Grep wants private fixed already mapped.
17204 The main things grep needs to know about mmap are:
17205 * does it exist and is it safe to write into the mmap'd area
17206 * how to use it (BSD variants) */
17209 #include <sys/mman.h>
17211 #if !STDC_HEADERS && !HAVE_STDLIB_H
17215 /* This mess was copied from the GNU getpagesize.h. */
17216 #if !HAVE_GETPAGESIZE
17217 /* Assume that all systems that can run configure have sys/param.h. */
17218 # if !HAVE_SYS_PARAM_H
17219 # define HAVE_SYS_PARAM_H 1
17222 # ifdef _SC_PAGESIZE
17223 # define getpagesize() sysconf(_SC_PAGESIZE)
17224 # else /* no _SC_PAGESIZE */
17225 # if HAVE_SYS_PARAM_H
17226 # include <sys/param.h>
17227 # ifdef EXEC_PAGESIZE
17228 # define getpagesize() EXEC_PAGESIZE
17229 # else /* no EXEC_PAGESIZE */
17231 # define getpagesize() NBPG * CLSIZE
17234 # endif /* no CLSIZE */
17235 # else /* no NBPG */
17237 # define getpagesize() NBPC
17238 # else /* no NBPC */
17240 # define getpagesize() PAGESIZE
17241 # endif /* PAGESIZE */
17242 # endif /* no NBPC */
17243 # endif /* no NBPG */
17244 # endif /* no EXEC_PAGESIZE */
17245 # else /* no HAVE_SYS_PARAM_H */
17246 # define getpagesize() 8192 /* punt totally */
17247 # endif /* no HAVE_SYS_PARAM_H */
17248 # endif /* no _SC_PAGESIZE */
17250 #endif /* no HAVE_GETPAGESIZE */
17255 char *data, *data2, *data3;
17259 pagesize = getpagesize ();
17261 /* First, make a file with some known garbage in it. */
17262 data = (char *) malloc (pagesize);
17265 for (i = 0; i < pagesize; ++i)
17266 *(data + i) = rand ();
17268 fd = creat ("conftest.mmap", 0600);
17271 if (write (fd, data, pagesize) != pagesize)
17275 /* Next, try to mmap the file at a fixed address which already has
17276 something else allocated at it. If we can, also make sure that
17277 we see the same garbage. */
17278 fd = open ("conftest.mmap", O_RDWR);
17281 data2 = (char *) malloc (2 * pagesize);
17284 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17285 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17286 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17288 for (i = 0; i < pagesize; ++i)
17289 if (*(data + i) != *(data2 + i))
17292 /* Finally, make sure that changes to the mapped area do not
17293 percolate back to the file as seen by read(). (This is a bug on
17294 some variants of i386 svr4.0.) */
17295 for (i = 0; i < pagesize; ++i)
17296 *(data2 + i) = *(data2 + i) + 1;
17297 data3 = (char *) malloc (pagesize);
17300 if (read (fd, data3, pagesize) != pagesize)
17302 for (i = 0; i < pagesize; ++i)
17303 if (*(data + i) != *(data3 + i))
17309 rm -f conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17320 { (case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_try") 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_cv_func_mmap_fixed_mapped=yes
17331 echo "$as_me: program exited with status $ac_status" >&5
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ( exit $ac_status )
17336 ac_cv_func_mmap_fixed_mapped=no
17338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17344 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17345 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17347 cat >>confdefs.h <<\_ACEOF
17348 #define HAVE_MMAP 1
17352 rm -f conftest.mmap
17354 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17355 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17356 if test "${ac_cv_func_mmap_file+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 ac_cpp='$CPP $CPPFLAGS'
17361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17365 if test "$cross_compiling" = yes; then
17366 ac_cv_func_mmap_file=no
17368 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17376 #include <sys/types.h>
17377 #include <sys/mman.h>
17385 fd = creat ("foo",0777);
17386 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17388 return (fd != (int) MAP_FAILED);
17393 rm -f conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_func_mmap_file=yes
17415 echo "$as_me: program exited with status $ac_status" >&5
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ( exit $ac_status )
17420 ac_cv_func_mmap_file=no
17422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17427 ac_cpp='$CPP $CPPFLAGS'
17428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17434 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17435 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17436 if test "$ac_cv_func_mmap_file" = yes; then
17438 cat >>confdefs.h <<\_ACEOF
17439 #define HAVE_MMAP_FILE
17446 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17447 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17448 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 if test "$llvm_cv_os_type" = "Interix" ; then
17452 ac_cv_need_dev_zero_for_mmap=yes
17454 ac_cv_need_dev_zero_for_mmap=no
17458 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17459 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17460 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17462 cat >>confdefs.h <<\_ACEOF
17463 #define NEED_DEV_ZERO_FOR_MMAP 1
17468 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17470 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17471 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17473 if test "$ac_cv_func_mmap_file" = "no"
17475 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17476 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17480 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17481 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17483 ac_cpp='$CXXCPP $CPPFLAGS'
17484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17488 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17497 volatile unsigned long val = 1;
17498 __sync_synchronize();
17499 __sync_val_compare_and_swap(&val, 1, 0);
17500 __sync_add_and_fetch(&val, 1);
17501 __sync_sub_and_fetch(&val, 1);
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (ac_try="$ac_link"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_link") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } &&
17531 { ac_try='test -s conftest$ac_exeext'
17532 { (case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_try") 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17542 { echo "$as_me:$LINENO: result: yes" >&5
17543 echo "${ECHO_T}yes" >&6; }
17545 cat >>confdefs.h <<\_ACEOF
17546 #define LLVM_HAS_ATOMICS 1
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17555 { echo "$as_me:$LINENO: result: no" >&5
17556 echo "${ECHO_T}no" >&6; }
17558 cat >>confdefs.h <<\_ACEOF
17559 #define LLVM_HAS_ATOMICS 0
17562 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17563 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17570 ac_cpp='$CPP $CPPFLAGS'
17571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17577 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17578 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17579 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17580 if test "${llvm_cv_linux_mixed+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 ac_cpp='$CPP $CPPFLAGS'
17585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17596 error: Not x86-64 even if uname says so!
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 llvm_cv_linux_mixed=no
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 llvm_cv_linux_mixed=yes
17649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17658 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17659 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17661 if test "$llvm_cv_linux_mixed" = "yes"; then
17662 llvm_cv_target_arch="x86"
17668 for ac_func in __dso_handle
17670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684 #define $ac_func innocuous_$ac_func
17686 /* System header to define __stub macros and hopefully few prototypes,
17687 which can conflict with char $ac_func (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
17692 # include <limits.h>
17694 # include <assert.h>
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17706 /* The GNU C library defines this for functions which it implements
17707 to always fail with ENOSYS. Some functions are actually named
17708 something starting with __ and the normal name is an alias. */
17709 #if defined __stub_$ac_func || defined __stub___$ac_func
17716 return $ac_func ();
17721 rm -f conftest.$ac_objext conftest$ac_exeext
17722 if { (ac_try="$ac_link"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_link") 2>conftest.er1
17730 grep -v '^ *+' conftest.er1 >conftest.err
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } &&
17735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest$ac_exeext'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 eval "$as_ac_var=yes"
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17766 ac_res=`eval echo '${'$as_ac_var'}'`
17767 { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770 cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 SHLIBEXT=$llvm_shlib_ext
17781 if test "${prefix}" = "NONE" ; then
17782 prefix="/usr/local"
17784 eval LLVM_PREFIX="${prefix}";
17785 eval LLVM_BINDIR="${prefix}/bin";
17786 eval LLVM_DATADIR="${prefix}/share/llvm";
17787 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17788 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17789 eval LLVM_INCLUDEDIR="${prefix}/include";
17790 eval LLVM_INFODIR="${prefix}/info";
17791 eval LLVM_MANDIR="${prefix}/man";
17792 LLVM_CONFIGTIME=`date`
17803 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17804 LLVM_CONFIGTIME="(timestamp not enabled)"
17808 cat >>confdefs.h <<_ACEOF
17809 #define LLVM_PREFIX "$LLVM_PREFIX"
17813 cat >>confdefs.h <<_ACEOF
17814 #define LLVM_BINDIR "$LLVM_BINDIR"
17818 cat >>confdefs.h <<_ACEOF
17819 #define LLVM_DATADIR "$LLVM_DATADIR"
17823 cat >>confdefs.h <<_ACEOF
17824 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17828 cat >>confdefs.h <<_ACEOF
17829 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17833 cat >>confdefs.h <<_ACEOF
17834 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17838 cat >>confdefs.h <<_ACEOF
17839 #define LLVM_INFODIR "$LLVM_INFODIR"
17843 cat >>confdefs.h <<_ACEOF
17844 #define LLVM_MANDIR "$LLVM_MANDIR"
17848 cat >>confdefs.h <<_ACEOF
17849 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17853 cat >>confdefs.h <<_ACEOF
17854 #define LLVM_HOST_TRIPLE "$host"
17858 cat >>confdefs.h <<_ACEOF
17859 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17863 if test "$BINDINGS_TO_BUILD" = auto ; then
17864 BINDINGS_TO_BUILD=""
17865 if test "x$OCAMLFIND" != x ; then
17866 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17868 if test "x$GO" != x ; then
17869 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17870 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17874 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17877 binding_prereqs_failed=0
17878 for a_binding in $BINDINGS_TO_BUILD ; do
17879 case "$a_binding" in
17881 if test "x$OCAMLFIND" = x ; then
17882 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17883 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17884 binding_prereqs_failed=1
17887 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17894 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17895 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17896 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17897 binding_prereqs_failed=1
17900 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17904 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17905 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17909 if test "x$with_ocaml_libdir" != xauto ; then
17910 OCAML_LIBDIR=$with_ocaml_libdir
17913 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17914 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17916 # ocaml stdlib is beneath our prefix; use stdlib
17917 OCAML_LIBDIR=$ocaml_stdlib
17920 # ocaml stdlib is outside our prefix; use libdir/ocaml
17921 OCAML_LIBDIR=${prefix}/lib/ocaml
17927 if test "x$GO" = x ; then
17928 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17929 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17930 binding_prereqs_failed=1
17932 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17935 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17936 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17937 binding_prereqs_failed=1
17943 if test "$binding_prereqs_failed" = 1 ; then
17944 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17945 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17946 { (exit 1); exit 1; }; }
17949 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17950 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17951 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_cpp='$CXXCPP $CPPFLAGS'
17956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17960 oldcxxflags="$CXXFLAGS"
17961 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 llvm_cv_cxx_visibility_inlines_hidden=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 llvm_cv_cxx_visibility_inlines_hidden=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 CXXFLAGS="$oldcxxflags"
18022 ac_cpp='$CPP $CPPFLAGS'
18023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18030 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18031 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18032 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18035 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18040 if test "$llvm_cv_link_use_r" = "yes" ; then
18047 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18048 RDYNAMIC="-rdynamic"
18055 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18062 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18064 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18066 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18068 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18070 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18073 ac_config_files="$ac_config_files Makefile.config"
18076 ac_config_files="$ac_config_files llvm.spec"
18079 ac_config_files="$ac_config_files docs/doxygen.cfg"
18082 if test "${clang_src_root}" = ""; then
18083 clang_src_root="$srcdir/tools/clang"
18085 if test -f ${clang_src_root}/README.txt; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define CLANG_LIBDIR_SUFFIX ""
18092 configh="include/clang/Config/config.h"
18093 doxy="docs/doxygen.cfg"
18094 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18096 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18100 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18103 test "x$program_prefix" = "xNONE" && program_prefix=""
18107 ac_config_commands="$ac_config_commands setup"
18109 ac_config_commands="$ac_config_commands Makefile"
18112 ac_config_commands="$ac_config_commands Makefile.common"
18115 ac_config_commands="$ac_config_commands examples/Makefile"
18118 ac_config_commands="$ac_config_commands lib/Makefile"
18121 ac_config_commands="$ac_config_commands test/Makefile"
18124 ac_config_commands="$ac_config_commands test/Makefile.tests"
18127 ac_config_commands="$ac_config_commands unittests/Makefile"
18130 ac_config_commands="$ac_config_commands tools/Makefile"
18133 ac_config_commands="$ac_config_commands utils/Makefile"
18136 ac_config_commands="$ac_config_commands projects/Makefile"
18139 ac_config_commands="$ac_config_commands bindings/Makefile"
18142 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18146 cat >confcache <<\_ACEOF
18147 # This file is a shell script that caches the results of configure
18148 # tests run on this system so they can be shared between configure
18149 # scripts and configure runs, see configure's option --config-cache.
18150 # It is not useful on other systems. If it contains results you don't
18151 # want to keep, you may remove or edit it.
18153 # config.status only pays attention to the cache file if you give it
18154 # the --recheck option to rerun configure.
18156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18158 # following values.
18162 # The following way of writing the cache mishandles newlines in values,
18163 # but we know of no workaround that is simple, portable, and efficient.
18164 # So, we kill variables containing newlines.
18165 # Ultrix sh set writes to stderr and can't be redirected directly,
18166 # and sets the high bit in the cache file unless we assign to the vars.
18168 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18169 eval ac_val=\$$ac_var
18173 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18174 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18177 _ | IFS | as_nl) ;; #(
18178 *) $as_unset $ac_var ;;
18184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18185 *${as_nl}ac_space=\ *)
18186 # `set' does not quote correctly, so add quotes (double-quote
18187 # substitution turns \\\\ into \\, and sed turns \\ into \).
18190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18193 # `set' quotes correctly as required by POSIX, so do not add quotes.
18194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18208 if test -w "$cache_file"; then
18209 test "x$cache_file" != "x/dev/null" &&
18210 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18211 echo "$as_me: updating cache $cache_file" >&6;}
18212 cat confcache >$cache_file
18214 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18215 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18221 # Let make expand exec_prefix.
18222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18224 DEFS=-DHAVE_CONFIG_H
18228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18229 # 1. Remove the extension, and $U if already installed.
18230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18231 ac_i=`echo "$ac_i" | sed "$ac_script"`
18232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18233 # will be set to the directory where LIBOBJS objects are built.
18234 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18235 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18237 LIBOBJS=$ac_libobjs
18239 LTLIBOBJS=$ac_ltlibobjs
18243 : ${CONFIG_STATUS=./config.status}
18244 ac_clean_files_save=$ac_clean_files
18245 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18246 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18247 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18248 cat >$CONFIG_STATUS <<_ACEOF
18250 # Generated by $as_me.
18251 # Run this file to recreate the current configuration.
18252 # Compiler output produced by configure, useful for debugging
18253 # configure, is in config.log if it exists.
18256 ac_cs_recheck=false
18258 SHELL=\${CONFIG_SHELL-$SHELL}
18261 cat >>$CONFIG_STATUS <<\_ACEOF
18262 ## --------------------- ##
18263 ## M4sh Initialization. ##
18264 ## --------------------- ##
18266 # Be Bourne compatible
18267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18271 # is contrary to our usage. Disable this feature.
18272 alias -g '${1+"$@"}'='"$@"'
18273 setopt NO_GLOB_SUBST
18275 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18277 BIN_SH=xpg4; export BIN_SH # for Tru64
18278 DUALCASE=1; export DUALCASE # for MKS sh
18282 # Avoid depending upon Character Ranges.
18283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18286 as_cr_digits='0123456789'
18287 as_cr_alnum=$as_cr_Letters$as_cr_digits
18289 # The user is always right.
18290 if test "${PATH_SEPARATOR+set}" != set; then
18291 echo "#! /bin/sh" >conf$$.sh
18292 echo "exit 0" >>conf$$.sh
18294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18302 # Support unset when possible.
18303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18311 # We need space, tab and new line, in precisely that order. Quoting is
18312 # there to prevent editors from complaining about space-tab.
18313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18314 # splitting by setting IFS to empty value.)
18319 # Find who we are. Look in the path if we contain no directory separator.
18321 *[\\/]* ) as_myself=$0 ;;
18322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18323 for as_dir in $PATH
18326 test -z "$as_dir" && as_dir=.
18327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18333 # We did not find ourselves, most probably we were run as `sh COMMAND'
18334 # in which case we are not to be found in the path.
18335 if test "x$as_myself" = x; then
18338 if test ! -f "$as_myself"; then
18339 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18340 { (exit 1); exit 1; }
18343 # Work around bugs in pre-3.0 UWIN ksh.
18344 for as_var in ENV MAIL MAILPATH
18345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18353 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18354 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18355 LC_TELEPHONE LC_TIME
18357 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18358 eval $as_var=C; export $as_var
18360 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18364 # Required to use basename.
18365 if expr a : '\(a\)' >/dev/null 2>&1 &&
18366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18373 as_basename=basename
18379 # Name of the executable.
18380 as_me=`$as_basename -- "$0" ||
18381 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18382 X"$0" : 'X\(//\)$' \| \
18383 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18385 sed '/^.*\/\([^/][^/]*\)\/*$/{
18404 as_lineno_1=$LINENO
18405 as_lineno_2=$LINENO
18406 test "x$as_lineno_1" != "x$as_lineno_2" &&
18407 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18409 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18410 # uniformly replaced by the line number. The first 'sed' inserts a
18411 # line-number line after each line using $LINENO; the second 'sed'
18412 # does the real work. The second script uses 'N' to pair each
18413 # line-number line with the line containing $LINENO, and appends
18414 # trailing '-' during substitution so that $LINENO is not a special
18415 # case at line end.
18416 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18417 # scripts with optimization help from Paolo Bonzini. Blame Lee
18418 # E. McMahon (1931-1989) for sed's syntax. :-)
18430 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18433 ' >$as_me.lineno &&
18434 chmod +x "$as_me.lineno" ||
18435 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18436 { (exit 1); exit 1; }; }
18438 # Don't try to exec as it changes $[0], causing all sort of problems
18439 # (the dirname of $[0] is not the place where we might find the
18440 # original and so on. Autoconf is especially sensitive to this).
18441 . "./$as_me.lineno"
18442 # Exit status is that of the last command.
18447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18453 ECHO_C= ECHO_N= ECHO_T=
18454 case `echo -n x` in
18456 case `echo 'x\c'` in
18457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18464 if expr a : '\(a\)' >/dev/null 2>&1 &&
18465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18471 rm -f conf$$ conf$$.exe conf$$.file
18472 if test -d conf$$.dir; then
18473 rm -f conf$$.dir/conf$$.file
18479 if ln -s conf$$.file conf$$ 2>/dev/null; then
18481 # ... but there are two gotchas:
18482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18484 # In both cases, we have to default to `cp -p'.
18485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18487 elif ln conf$$.file conf$$ 2>/dev/null; then
18492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18493 rmdir conf$$.dir 2>/dev/null
18495 if mkdir -p . 2>/dev/null; then
18498 test -d ./-p && rmdir ./-p
18502 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18503 # systems may use methods other than mode bits to determine executability.
18504 cat >conf$$.file <<_ASEOF
18508 chmod +x conf$$.file
18509 if test -x conf$$.file >/dev/null 2>&1; then
18510 as_executable_p="test -x"
18516 # Sed expression to map a string onto a valid CPP name.
18517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18519 # Sed expression to map a string onto a valid variable name.
18520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18525 # Save the log message, to keep $[0] and so on meaningful, and to
18526 # report actual input values of CONFIG_FILES etc. instead of their
18527 # values after options handling.
18529 This file was extended by LLVM $as_me 3.8.0svn, which was
18530 generated by GNU Autoconf 2.60. Invocation command line was
18532 CONFIG_FILES = $CONFIG_FILES
18533 CONFIG_HEADERS = $CONFIG_HEADERS
18534 CONFIG_LINKS = $CONFIG_LINKS
18535 CONFIG_COMMANDS = $CONFIG_COMMANDS
18538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18543 cat >>$CONFIG_STATUS <<_ACEOF
18544 # Files that config.status was made for.
18545 config_files="$ac_config_files"
18546 config_headers="$ac_config_headers"
18547 config_commands="$ac_config_commands"
18551 cat >>$CONFIG_STATUS <<\_ACEOF
18553 \`$as_me' instantiates files from templates according to the
18554 current configuration.
18556 Usage: $0 [OPTIONS] [FILE]...
18558 -h, --help print this help, then exit
18559 -V, --version print version number, then exit
18560 -q, --quiet do not print progress messages
18561 -d, --debug don't remove temporary files
18562 --recheck update $as_me by reconfiguring in the same conditions
18563 --file=FILE[:TEMPLATE]
18564 instantiate the configuration file FILE
18565 --header=FILE[:TEMPLATE]
18566 instantiate the configuration header FILE
18568 Configuration files:
18571 Configuration headers:
18574 Configuration commands:
18577 Report bugs to <bug-autoconf@gnu.org>."
18580 cat >>$CONFIG_STATUS <<_ACEOF
18582 LLVM config.status 3.8.0svn
18583 configured by $0, generated by GNU Autoconf 2.60,
18584 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18586 Copyright (C) 2006 Free Software Foundation, Inc.
18587 This config.status script is free software; the Free Software Foundation
18588 gives unlimited permission to copy, distribute and modify it."
18595 cat >>$CONFIG_STATUS <<\_ACEOF
18596 # If no file are specified by the user, then we need to provide default
18597 # value. By we need to know if files were specified by the user.
18603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18615 # Handling of the options.
18616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18619 echo "$ac_cs_version"; exit ;;
18620 --debug | --debu | --deb | --de | --d | -d )
18622 --file | --fil | --fi | --f )
18624 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18625 ac_need_defaults=false;;
18626 --header | --heade | --head | --hea )
18628 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18629 ac_need_defaults=false;;
18631 # Conflict between --help and --header
18632 { echo "$as_me: error: ambiguous option: $1
18633 Try \`$0 --help' for more information." >&2
18634 { (exit 1); exit 1; }; };;
18635 --help | --hel | -h )
18636 echo "$ac_cs_usage"; exit ;;
18637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18641 # This is an error.
18642 -*) { echo "$as_me: error: unrecognized option: $1
18643 Try \`$0 --help' for more information." >&2
18644 { (exit 1); exit 1; }; } ;;
18646 *) ac_config_targets="$ac_config_targets $1"
18647 ac_need_defaults=false ;;
18653 ac_configure_extra_args=
18655 if $ac_cs_silent; then
18657 ac_configure_extra_args="$ac_configure_extra_args --silent"
18661 cat >>$CONFIG_STATUS <<_ACEOF
18662 if \$ac_cs_recheck; then
18663 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18664 CONFIG_SHELL=$SHELL
18665 export CONFIG_SHELL
18666 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18675 ## Running $as_me. ##
18681 cat >>$CONFIG_STATUS <<_ACEOF
18685 llvm_src="${srcdir}"
18689 cat >>$CONFIG_STATUS <<\_ACEOF
18691 # Handling of arguments.
18692 for ac_config_target in $ac_config_targets
18694 case $ac_config_target in
18695 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18696 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18697 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18698 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18699 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18700 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18701 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18702 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18703 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18704 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18705 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18706 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18707 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18708 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18709 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18710 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18711 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18712 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18713 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18714 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18715 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18716 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18717 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18718 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18719 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18720 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18722 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18724 { (exit 1); exit 1; }; };;
18729 # If the user did not use the arguments to specify the items to instantiate,
18730 # then the envvar interface is used. Set only those that are not.
18731 # We use the long form for the default assignment because of an extremely
18732 # bizarre bug on SunOS 4.1.3.
18733 if $ac_need_defaults; then
18734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18739 # Have a temporary directory for convenience. Make it in the build tree
18740 # simply because there is no reason against having it here, and in addition,
18741 # creating and moving files from /tmp can sometimes cause problems.
18742 # Hook for its removal unless debugging.
18743 # Note that there is a small window in which the directory will not be cleaned:
18744 # after its creation but before its name has been assigned to `$tmp'.
18748 trap 'exit_status=$?
18749 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18751 trap '{ (exit 1); exit 1; }' 1 2 13 15
18753 # Create a (secure) tmp directory for tmp files.
18756 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18757 test -n "$tmp" && test -d "$tmp"
18760 tmp=./conf$$-$RANDOM
18761 (umask 077 && mkdir "$tmp")
18764 echo "$me: cannot create a temporary directory in ." >&2
18765 { (exit 1); exit 1; }
18769 # Set up the sed scripts for CONFIG_FILES section.
18772 # No need to generate the scripts if there are no CONFIG_FILES.
18773 # This happens for instance when ./config.status config.h
18774 if test -n "$CONFIG_FILES"; then
18781 for ac_last_try in false false false false false :; do
18782 cat >conf$$subs.sed <<_ACEOF
18783 SHELL!$SHELL$ac_delim
18784 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18785 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18786 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18787 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18788 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18789 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18790 exec_prefix!$exec_prefix$ac_delim
18791 prefix!$prefix$ac_delim
18792 program_transform_name!$program_transform_name$ac_delim
18793 bindir!$bindir$ac_delim
18794 sbindir!$sbindir$ac_delim
18795 libexecdir!$libexecdir$ac_delim
18796 datarootdir!$datarootdir$ac_delim
18797 datadir!$datadir$ac_delim
18798 sysconfdir!$sysconfdir$ac_delim
18799 sharedstatedir!$sharedstatedir$ac_delim
18800 localstatedir!$localstatedir$ac_delim
18801 includedir!$includedir$ac_delim
18802 oldincludedir!$oldincludedir$ac_delim
18803 docdir!$docdir$ac_delim
18804 infodir!$infodir$ac_delim
18805 htmldir!$htmldir$ac_delim
18806 dvidir!$dvidir$ac_delim
18807 pdfdir!$pdfdir$ac_delim
18808 psdir!$psdir$ac_delim
18809 libdir!$libdir$ac_delim
18810 localedir!$localedir$ac_delim
18811 mandir!$mandir$ac_delim
18812 DEFS!$DEFS$ac_delim
18813 ECHO_C!$ECHO_C$ac_delim
18814 ECHO_N!$ECHO_N$ac_delim
18815 ECHO_T!$ECHO_T$ac_delim
18816 LIBS!$LIBS$ac_delim
18817 build_alias!$build_alias$ac_delim
18818 host_alias!$host_alias$ac_delim
18819 target_alias!$target_alias$ac_delim
18820 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18821 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18822 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18823 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18824 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18826 CFLAGS!$CFLAGS$ac_delim
18827 LDFLAGS!$LDFLAGS$ac_delim
18828 CPPFLAGS!$CPPFLAGS$ac_delim
18829 ac_ct_CC!$ac_ct_CC$ac_delim
18830 EXEEXT!$EXEEXT$ac_delim
18831 OBJEXT!$OBJEXT$ac_delim
18833 CXXFLAGS!$CXXFLAGS$ac_delim
18834 ac_ct_CXX!$ac_ct_CXX$ac_delim
18836 subdirs!$subdirs$ac_delim
18837 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18838 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18839 build!$build$ac_delim
18840 build_cpu!$build_cpu$ac_delim
18841 build_vendor!$build_vendor$ac_delim
18842 build_os!$build_os$ac_delim
18843 host!$host$ac_delim
18844 host_cpu!$host_cpu$ac_delim
18845 host_vendor!$host_vendor$ac_delim
18846 host_os!$host_os$ac_delim
18847 target!$target$ac_delim
18848 target_cpu!$target_cpu$ac_delim
18849 target_vendor!$target_vendor$ac_delim
18850 target_os!$target_os$ac_delim
18852 HOST_OS!$HOST_OS$ac_delim
18853 TARGET_OS!$TARGET_OS$ac_delim
18854 LINKALL!$LINKALL$ac_delim
18855 NOLINKALL!$NOLINKALL$ac_delim
18856 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18857 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18858 ARCH!$ARCH$ac_delim
18859 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18860 HOST_ARCH!$HOST_ARCH$ac_delim
18861 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18862 BUILD_CC!$BUILD_CC$ac_delim
18863 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18864 BUILD_CXX!$BUILD_CXX$ac_delim
18865 CVSBUILD!$CVSBUILD$ac_delim
18866 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18867 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18868 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18869 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18870 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18871 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18872 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18873 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18874 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18875 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18876 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18877 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18878 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18879 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18882 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18884 elif $ac_last_try; then
18885 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18886 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18887 { (exit 1); exit 1; }; }
18889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18893 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18894 if test -n "$ac_eof"; then
18895 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18896 ac_eof=`expr $ac_eof + 1`
18899 cat >>$CONFIG_STATUS <<_ACEOF
18900 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18901 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18904 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18905 s/^/s,@/; s/!/@,|#_!!_#|/
18908 s/'"$ac_delim"'$/,g/; t
18910 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18911 ' >>$CONFIG_STATUS <conf$$subs.sed
18912 rm -f conf$$subs.sed
18913 cat >>$CONFIG_STATUS <<_ACEOF
18919 for ac_last_try in false false false false false :; do
18920 cat >conf$$subs.sed <<_ACEOF
18921 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18922 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18924 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18925 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18926 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18927 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18928 enable_searchengine!$enable_searchengine$ac_delim
18929 enable_external_search!$enable_external_search$ac_delim
18930 enable_server_based_search!$enable_server_based_search$ac_delim
18931 searchengine_url!$searchengine_url$ac_delim
18932 extra_search_mappings!$extra_search_mappings$ac_delim
18933 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18934 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18935 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18936 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18937 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18938 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18939 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18940 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18941 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18942 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18943 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18944 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18945 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18946 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18947 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18948 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18949 ENABLE_PIC!$ENABLE_PIC$ac_delim
18950 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18951 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18952 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18953 ALL_TARGETS!$ALL_TARGETS$ac_delim
18954 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18955 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18956 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18957 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18958 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18959 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18960 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18961 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18962 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18963 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18964 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18965 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18966 ifGNUmake!$ifGNUmake$ac_delim
18967 LN_S!$LN_S$ac_delim
18971 DATE!$DATE$ac_delim
18972 FIND!$FIND$ac_delim
18973 GREP!$GREP$ac_delim
18974 MKDIR!$MKDIR$ac_delim
18976 RANLIB!$RANLIB$ac_delim
18981 BINPWD!$BINPWD$ac_delim
18983 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18984 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18985 INSTALL_DATA!$INSTALL_DATA$ac_delim
18986 BZIP2!$BZIP2$ac_delim
18988 DOXYGEN!$DOXYGEN$ac_delim
18989 GROFF!$GROFF$ac_delim
18990 GZIPBIN!$GZIPBIN$ac_delim
18991 PDFROFF!$PDFROFF$ac_delim
18994 OCAMLFIND!$OCAMLFIND$ac_delim
18996 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18997 EGREP!$EGREP$ac_delim
18998 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18999 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19000 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19001 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19002 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19003 NO_COMMENT!$NO_COMMENT$ac_delim
19004 PYTHON!$PYTHON$ac_delim
19005 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19006 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19007 USE_OPROFILE!$USE_OPROFILE$ac_delim
19008 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19009 XML2CONFIG!$XML2CONFIG$ac_delim
19010 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19011 LIBXML2_INC!$LIBXML2_INC$ac_delim
19012 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19013 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19014 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19015 MMAP_FILE!$MMAP_FILE$ac_delim
19016 SHLIBEXT!$SHLIBEXT$ac_delim
19017 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19020 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19022 elif $ac_last_try; then
19023 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19024 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19025 { (exit 1); exit 1; }; }
19027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19031 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19032 if test -n "$ac_eof"; then
19033 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19034 ac_eof=`expr $ac_eof + 1`
19037 cat >>$CONFIG_STATUS <<_ACEOF
19038 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19042 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19043 s/^/s,@/; s/!/@,|#_!!_#|/
19046 s/'"$ac_delim"'$/,g/; t
19048 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19049 ' >>$CONFIG_STATUS <conf$$subs.sed
19050 rm -f conf$$subs.sed
19051 cat >>$CONFIG_STATUS <<_ACEOF
19057 for ac_last_try in false false false false false :; do
19058 cat >conf$$subs.sed <<_ACEOF
19059 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19060 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19061 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19062 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19063 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19064 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19065 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19066 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19067 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19068 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19069 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19070 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19071 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19072 RPATH!$RPATH$ac_delim
19073 RDYNAMIC!$RDYNAMIC$ac_delim
19074 program_prefix!$program_prefix$ac_delim
19075 LIBOBJS!$LIBOBJS$ac_delim
19076 LTLIBOBJS!$LTLIBOBJS$ac_delim
19079 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19081 elif $ac_last_try; then
19082 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19083 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19084 { (exit 1); exit 1; }; }
19086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19090 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19091 if test -n "$ac_eof"; then
19092 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19093 ac_eof=`expr $ac_eof + 1`
19096 cat >>$CONFIG_STATUS <<_ACEOF
19097 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19101 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19102 s/^/s,@/; s/!/@,|#_!!_#|/
19105 s/'"$ac_delim"'$/,g/; t
19107 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19108 ' >>$CONFIG_STATUS <conf$$subs.sed
19109 rm -f conf$$subs.sed
19110 cat >>$CONFIG_STATUS <<_ACEOF
19117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19119 # trailing colons and then remove the whole line if VPATH becomes empty
19120 # (actually we leave an empty line to preserve line numbers).
19121 if test "x$srcdir" = x.; then
19122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19123 s/:*\$(srcdir):*/:/
19124 s/:*\${srcdir}:*/:/
19126 s/^\([^=]*=[ ]*\):*/\1/
19132 cat >>$CONFIG_STATUS <<\_ACEOF
19133 fi # test -n "$CONFIG_FILES"
19136 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19139 :[FHLC]) ac_mode=$ac_tag; continue;;
19141 case $ac_mode$ac_tag in
19143 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19144 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19145 { (exit 1); exit 1; }; };;
19146 :[FH]-) ac_tag=-:-;;
19147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19164 -) ac_f="$tmp/stdin";;
19165 *) # Look for the file first in the build tree, then in the source tree
19166 # (if the path is not absolute). The absolute path cannot be DOS-style,
19167 # because $ac_f cannot contain `:'.
19171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19173 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19174 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19175 { (exit 1); exit 1; }; };;
19177 ac_file_inputs="$ac_file_inputs $ac_f"
19180 # Let's still pretend it is `configure' which instantiates (i.e., don't
19181 # use $as_me), people would be surprised to read:
19182 # /* config.h. Generated by config.status. */
19183 configure_input="Generated from "`IFS=:
19184 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19185 if test x"$ac_file" != x-; then
19186 configure_input="$ac_file. $configure_input"
19187 { echo "$as_me:$LINENO: creating $ac_file" >&5
19188 echo "$as_me: creating $ac_file" >&6;}
19192 *:-:* | *:-) cat >"$tmp/stdin";;
19197 ac_dir=`$as_dirname -- "$ac_file" ||
19198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19199 X"$ac_file" : 'X\(//\)[^/]' \| \
19200 X"$ac_file" : 'X\(//\)$' \| \
19201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19207 /^X\(\/\/\)[^/].*/{
19222 -*) as_dir=./$as_dir;;
19224 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19228 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19229 *) as_qdir=$as_dir;;
19231 as_dirs="'$as_qdir' $as_dirs"
19232 as_dir=`$as_dirname -- "$as_dir" ||
19233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19234 X"$as_dir" : 'X\(//\)[^/]' \| \
19235 X"$as_dir" : 'X\(//\)$' \| \
19236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19242 /^X\(\/\/\)[^/].*/{
19255 test -d "$as_dir" && break
19257 test -z "$as_dirs" || eval "mkdir $as_dirs"
19258 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19259 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19260 { (exit 1); exit 1; }; }; }
19264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19267 # A ".." for each directory in $ac_dir_suffix.
19268 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19269 case $ac_top_builddir_sub in
19270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19274 ac_abs_top_builddir=$ac_pwd
19275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19276 # for backward compatibility:
19277 ac_top_builddir=$ac_top_build_prefix
19280 .) # We are building in place.
19282 ac_top_srcdir=$ac_top_builddir_sub
19283 ac_abs_top_srcdir=$ac_pwd ;;
19284 [\\/]* | ?:[\\/]* ) # Absolute name.
19285 ac_srcdir=$srcdir$ac_dir_suffix;
19286 ac_top_srcdir=$srcdir
19287 ac_abs_top_srcdir=$srcdir ;;
19288 *) # Relative name.
19289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19290 ac_top_srcdir=$ac_top_build_prefix$srcdir
19291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19308 cat >>$CONFIG_STATUS <<\_ACEOF
19309 # If the template does not know about datarootdir, expand it.
19310 # FIXME: This hack should be removed a few years after 2.60.
19311 ac_datarootdir_hack=; ac_datarootdir_seen=
19313 case `sed -n '/datarootdir/ {
19322 ' $ac_file_inputs` in
19323 *datarootdir*) ac_datarootdir_seen=yes;;
19324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19325 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19326 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19328 cat >>$CONFIG_STATUS <<_ACEOF
19329 ac_datarootdir_hack='
19330 s&@datadir@&$datadir&g
19331 s&@docdir@&$docdir&g
19332 s&@infodir@&$infodir&g
19333 s&@localedir@&$localedir&g
19334 s&@mandir@&$mandir&g
19335 s&\\\${datarootdir}&$datarootdir&g' ;;
19339 # Neutralize VPATH when `$srcdir' = `.'.
19340 # Shell code in configure.ac might set extrasub.
19341 # FIXME: do we really want to maintain this feature?
19342 cat >>$CONFIG_STATUS <<_ACEOF
19346 cat >>$CONFIG_STATUS <<\_ACEOF
19348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19349 s&@configure_input@&$configure_input&;t t
19350 s&@top_builddir@&$ac_top_builddir_sub&;t t
19351 s&@srcdir@&$ac_srcdir&;t t
19352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19353 s&@top_srcdir@&$ac_top_srcdir&;t t
19354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19355 s&@builddir@&$ac_builddir&;t t
19356 s&@abs_builddir@&$ac_abs_builddir&;t t
19357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19358 s&@INSTALL@&$ac_INSTALL&;t t
19359 $ac_datarootdir_hack
19360 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19363 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19365 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19366 which seems to be undefined. Please make sure it is defined." >&5
19367 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19368 which seems to be undefined. Please make sure it is defined." >&2;}
19372 -) cat "$tmp/out"; rm -f "$tmp/out";;
19373 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19382 # Transform confdefs.h into a sed script `conftest.defines', that
19383 # substitutes the proper values into config.h.in to produce config.h.
19384 rm -f conftest.defines conftest.tail
19385 # First, append a space to every undef/define line, to ease matching.
19386 echo 's/$/ /' >conftest.defines
19387 # Then, protect against being on the right side of a sed subst, or in
19388 # an unquoted here document, in config.status. If some macros were
19389 # called several times there might be several #defines for the same
19390 # symbol, which is useless. But do not sort them, since the last
19391 # AC_DEFINE must be honored.
19392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19393 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19394 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19395 # PARAMS is the parameter list in the macro definition--in most cases, it's
19396 # just an empty string.
19397 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19398 ac_dB='\\)[ (].*,\\1define\\2'
19406 s/^[ ]*#[ ]*define[ ][ ]*//
19411 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19412 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19413 ' >>conftest.defines
19415 # Remove the space that was appended to ease matching.
19416 # Then replace #undef with comments. This is necessary, for
19417 # example, in the case of _POSIX_SOURCE, which is predefined and required
19418 # on some systems where configure will not decide to define it.
19419 # (The regexp can be short, since the line contains either #define or #undef.)
19421 s,^[ #]*u.*,/* & */,' >>conftest.defines
19423 # Break up conftest.defines:
19424 ac_max_sed_lines=50
19426 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19427 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19428 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19430 ac_in='$ac_file_inputs'
19431 ac_out='"$tmp/out1"'
19432 ac_nxt='"$tmp/out2"'
19436 # Write a here document:
19437 cat >>$CONFIG_STATUS <<_ACEOF
19438 # First, check the format of the line:
19439 cat >"\$tmp/defines.sed" <<\\CEOF
19440 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19441 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19445 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19447 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19448 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19449 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19450 grep . conftest.tail >/dev/null || break
19451 rm -f conftest.defines
19452 mv conftest.tail conftest.defines
19454 rm -f conftest.defines conftest.tail
19456 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19457 cat >>$CONFIG_STATUS <<\_ACEOF
19458 if test x"$ac_file" != x-; then
19459 echo "/* $configure_input */" >"$tmp/config.h"
19460 cat "$ac_result" >>"$tmp/config.h"
19461 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19462 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19463 echo "$as_me: $ac_file is unchanged" >&6;}
19466 mv "$tmp/config.h" $ac_file
19469 echo "/* $configure_input */"
19475 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19476 echo "$as_me: executing $ac_file commands" >&6;}
19481 case $ac_file$ac_mode in
19482 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19484 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19486 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19488 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19490 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19492 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19494 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19496 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19498 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19500 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19502 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19504 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19511 { (exit 0); exit 0; }
19513 chmod +x $CONFIG_STATUS
19514 ac_clean_files=$ac_clean_files_save
19517 # configure is writing to config.log, and then calls config.status.
19518 # config.status does its own redirection, appending to config.log.
19519 # Unfortunately, on DOS this fails, as config.log is still kept open
19520 # by configure, so config.status won't be able to write to it; its
19521 # output is simply discarded. So we exec the FD to /dev/null,
19522 # effectively closing config.log, so it can be properly (re)opened and
19523 # appended to by config.status. When coming back to configure, we
19524 # need to make the FD available again.
19525 if test "$no_create" != yes; then
19527 ac_config_status_args=
19528 test "$silent" = yes &&
19529 ac_config_status_args="$ac_config_status_args --quiet"
19531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19534 # would make configure fail if this is the last instruction.
19535 $ac_cs_success || { (exit 1); exit 1; }
19539 # CONFIG_SUBDIRS section.
19541 if test "$no_recursion" != yes; then
19543 # Remove --cache-file and --srcdir arguments so they do not pile up.
19544 ac_sub_configure_args=
19546 eval "set x $ac_configure_args"
19550 if test -n "$ac_prev"; then
19555 -cache-file | --cache-file | --cache-fil | --cache-fi \
19556 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19557 ac_prev=cache_file ;;
19558 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19559 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19562 --config-cache | -C)
19564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19574 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19576 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19580 # Always prepend --prefix to ensure using the same prefix
19581 # in subdir configurations.
19582 ac_arg="--prefix=$prefix"
19584 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19586 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19589 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19591 # Do not complain, so a configure script can configure whichever
19592 # parts of a large source tree are present.
19593 test -d "$srcdir/$ac_dir" || continue
19595 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19596 echo "$as_me:$LINENO: $ac_msg" >&5
19600 -*) as_dir=./$as_dir;;
19602 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19606 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19607 *) as_qdir=$as_dir;;
19609 as_dirs="'$as_qdir' $as_dirs"
19610 as_dir=`$as_dirname -- "$as_dir" ||
19611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19612 X"$as_dir" : 'X\(//\)[^/]' \| \
19613 X"$as_dir" : 'X\(//\)$' \| \
19614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19620 /^X\(\/\/\)[^/].*/{
19633 test -d "$as_dir" && break
19635 test -z "$as_dirs" || eval "mkdir $as_dirs"
19636 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19637 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19638 { (exit 1); exit 1; }; }; }
19642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19644 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19645 # A ".." for each directory in $ac_dir_suffix.
19646 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19647 case $ac_top_builddir_sub in
19648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19652 ac_abs_top_builddir=$ac_pwd
19653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19654 # for backward compatibility:
19655 ac_top_builddir=$ac_top_build_prefix
19658 .) # We are building in place.
19660 ac_top_srcdir=$ac_top_builddir_sub
19661 ac_abs_top_srcdir=$ac_pwd ;;
19662 [\\/]* | ?:[\\/]* ) # Absolute name.
19663 ac_srcdir=$srcdir$ac_dir_suffix;
19664 ac_top_srcdir=$srcdir
19665 ac_abs_top_srcdir=$srcdir ;;
19666 *) # Relative name.
19667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19668 ac_top_srcdir=$ac_top_build_prefix$srcdir
19669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19676 # Check for guested configure; otherwise get Cygnus style configure.
19677 if test -f "$ac_srcdir/configure.gnu"; then
19678 ac_sub_configure=$ac_srcdir/configure.gnu
19679 elif test -f "$ac_srcdir/configure"; then
19680 ac_sub_configure=$ac_srcdir/configure
19681 elif test -f "$ac_srcdir/configure.in"; then
19682 # This should be Cygnus configure.
19683 ac_sub_configure=$ac_aux_dir/configure
19685 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19686 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19690 # The recursion is here.
19691 if test -n "$ac_sub_configure"; then
19692 # Make the cache file name correct relative to the subdirectory.
19693 case $cache_file in
19694 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19695 *) # Relative name.
19696 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19699 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19700 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19701 # The eval makes quoting arguments work.
19702 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19703 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19704 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19705 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19706 { (exit 1); exit 1; }; }