2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, and
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-clang-default-openmp-runtime
1499 The default OpenMP runtime for Clang.
1500 --with-binutils-include Specify path to binutils/include/ containing
1501 plugin-api.h file for gold plugin.
1502 --with-bug-report-url Specify the URL where bug reports should be
1503 submitted (default=http://llvm.org/bugs/)
1504 --with-internal-prefix Installation directory for internal files
1505 --with-python path to python
1506 --with-oprofile=<prefix>
1507 Tell OProfile >= 0.9.4 how to symbolize JIT output
1508 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://llvm.org/bugs/>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 if test ${srcdir} != "." ; then
2028 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031 { (exit 1); exit 1; }; }
2035 if test ${srcdir} == "." ; then
2036 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * *" >&5
2039 echo "$as_me: WARNING: * *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041 echo "$as_me: WARNING: * WARNING *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * *" >&5
2043 echo "$as_me: WARNING: * *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * *" >&5
2047 echo "$as_me: WARNING: * *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: * *" >&5
2051 echo "$as_me: WARNING: * *" >&2;}
2052 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in clang gcc
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler --version >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compiler -v >&5") 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler -V >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort. b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions. Remove them first so a
2240 # subsequent execution test works.
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_link_default") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2266 for ac_file in $ac_files
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 # We found the default executable, but exeext='' is most
2277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 # We set ac_cv_exeext here because the later test for it is not
2282 # safe: cross compilers may not add the suffix if given an `-o'
2283 # argument, so we may need to know it at that point already.
2284 # Even if this section looks crufty: it has the advantage of
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301 { (exit 77); exit 77; }; }
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2308 # Check that the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315 if { ac_try='./$ac_file'
2316 { (case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_try") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run. If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_link") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_try") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_c_werror_flag=$ac_save_c_werror_flag
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2719 if test "$GCC" = yes; then
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_prog_cc_c89=no
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std. */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771 inside strings and character constants. */
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_try") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in clang++ g++
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092 ac_cxx_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_prog_cxx_g=yes
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cxx_g=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3283 if test "$GXX" = yes; then
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3402 # Broken: success on invalid input.
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Passes both tests.
3413 rm -f conftest.err conftest.$ac_ext
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test "$CXX" = "clang++" ; then
3555 { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if __has_include (<cxxabi.h>)
3574 #if __has_include (<unwind.h>)
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633 { (exit 1); exit 1; }; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=clang
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 llvm_cv_cxx_compiler=gcc
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3773 if test -d ${srcdir}/projects/test-suite ; then
3774 subdirs="$subdirs projects/test-suite"
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779 subdirs="$subdirs projects/llvm-test"
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784 subdirs="$subdirs projects/poolalloc"
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789 subdirs="$subdirs projects/llvm-poolalloc"
3793 for i in `ls ${srcdir}/projects`
3795 if test -d ${srcdir}/projects/${i} ; then
3797 safecode) subdirs="$subdirs projects/safecode"
3805 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814 enableval=$enable_polly;
3819 case "$enableval" in
3824 default) ENABLE_POLLY=1
3826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828 { (exit 1); exit 1; }; } ;;
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3835 subdirs="$subdirs tools/polly"
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861 { (exit 1); exit 1; }; }
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870 { (exit 1); exit 1; }; };;
3873 ac_save_IFS=$IFS; IFS='-'
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test "x$host_alias" = x; then
3892 ac_cv_host=$ac_cv_build
3894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897 { (exit 1); exit 1; }; }
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907 { (exit 1); exit 1; }; };;
3910 ac_save_IFS=$IFS; IFS='-'
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test "x$target_alias" = x; then
3929 ac_cv_target=$ac_cv_host
3931 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944 { (exit 1); exit 1; }; };;
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963 test "$program_prefix$program_suffix$program_transform_name" = \
3965 program_prefix=${target_alias}-
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="AIX"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="IRIX"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,--whole-archive"
3985 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986 llvm_cv_os_type="Cygwin"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,-all_load"
3990 llvm_cv_no_link_all_option="-Wl,-noall_load"
3991 llvm_cv_os_type="Darwin"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,-all_load"
3995 llvm_cv_no_link_all_option="-Wl,-noall_load"
3996 llvm_cv_os_type="Minix"
3997 llvm_cv_platform_type="Unix" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="FreeBSD"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="GNU/kFreeBSD"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="OpenBSD"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option="-Wl,--whole-archive"
4015 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016 llvm_cv_os_type="NetBSD"
4017 llvm_cv_platform_type="Unix" ;;
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="DragonFly"
4022 llvm_cv_platform_type="Unix" ;;
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="Bitrig"
4027 llvm_cv_platform_type="Unix" ;;
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="HP-UX"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,--whole-archive"
4035 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036 llvm_cv_os_type="Interix"
4037 llvm_cv_platform_type="Unix" ;;
4039 llvm_cv_link_all_option="-Wl,--whole-archive"
4040 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041 llvm_cv_os_type="Linux"
4042 llvm_cv_platform_type="Unix" ;;
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="GNU"
4047 llvm_cv_platform_type="Unix" ;;
4049 llvm_cv_link_all_option="-Wl,-z,allextract"
4050 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051 llvm_cv_os_type="SunOS"
4052 llvm_cv_platform_type="Unix" ;;
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="Win32"
4057 llvm_cv_platform_type="Win32" ;;
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="MingW"
4062 llvm_cv_platform_type="Win32" ;;
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="Haiku"
4067 llvm_cv_platform_type="Unix" ;;
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Freestanding"
4072 llvm_cv_platform_type="Unix" ;;
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="Freestanding"
4077 llvm_cv_platform_type="Unix" ;;
4079 llvm_cv_link_all_option=""
4080 llvm_cv_no_link_all_option=""
4081 llvm_cv_os_type="Unknown"
4082 llvm_cv_platform_type="Unknown" ;;
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 llvm_cv_target_os_type="AIX" ;;
4097 llvm_cv_target_os_type="IRIX" ;;
4099 llvm_cv_target_os_type="Cygwin" ;;
4101 llvm_cv_target_os_type="Darwin" ;;
4103 llvm_cv_target_os_type="Minix" ;;
4105 llvm_cv_target_os_type="FreeBSD" ;;
4107 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4109 llvm_cv_target_os_type="OpenBSD" ;;
4111 llvm_cv_target_os_type="NetBSD" ;;
4113 llvm_cv_target_os_type="DragonFly" ;;
4115 llvm_cv_target_os_type="Bitrig" ;;
4117 llvm_cv_target_os_type="HP-UX" ;;
4119 llvm_cv_target_os_type="Interix" ;;
4121 llvm_cv_target_os_type="Linux" ;;
4123 llvm_cv_target_os_type="GNU" ;;
4125 llvm_cv_target_os_type="SunOS" ;;
4127 llvm_cv_target_os_type="Win32" ;;
4129 llvm_cv_target_os_type="MingW" ;;
4131 llvm_cv_target_os_type="Haiku" ;;
4133 llvm_cv_target_os_type="RTEMS" ;;
4135 llvm_cv_target_os_type="NativeClient" ;;
4137 llvm_cv_target_os_type="Freestanding" ;;
4139 llvm_cv_target_os_type="PS4" ;;
4141 llvm_cv_target_os_type="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150 { (exit 1); exit 1; }; }
4155 HOST_OS=$llvm_cv_os_type
4157 TARGET_OS=$llvm_cv_target_os_type
4160 LINKALL=$llvm_cv_link_all_option
4162 NOLINKALL=$llvm_cv_no_link_all_option
4165 case $llvm_cv_platform_type in
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 i?86-*) llvm_cv_target_arch="x86" ;;
4197 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4198 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4199 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4200 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4201 arm*-*) llvm_cv_target_arch="ARM" ;;
4202 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4203 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4204 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4205 xcore-*) llvm_cv_target_arch="XCore" ;;
4206 msp430-*) llvm_cv_target_arch="MSP430" ;;
4207 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4208 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4209 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4210 *) llvm_cv_target_arch="Unknown" ;;
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4221 case "$llvm_cv_target_arch" in
4222 x86) LLVM_NATIVE_ARCH="X86" ;;
4223 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4224 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4227 ARCH=$llvm_cv_target_arch
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4233 i?86-*) host_arch="x86" ;;
4234 amd64-* | x86_64-*) host_arch="x86_64" ;;
4235 sparc*-*) host_arch="Sparc" ;;
4236 powerpc*-*) host_arch="PowerPC" ;;
4237 arm64*-*) host_arch="AArch64" ;;
4238 arm*-*) host_arch="ARM" ;;
4239 aarch64*-*) host_arch="AArch64" ;;
4240 mips-* | mips64-*) host_arch="Mips" ;;
4241 mipsel-* | mips64el-*) host_arch="Mips" ;;
4242 xcore-*) host_arch="XCore" ;;
4243 msp430-*) host_arch="MSP430" ;;
4244 hexagon-*) host_arch="Hexagon" ;;
4245 s390x-*) host_arch="SystemZ" ;;
4246 *) host_arch="Unknown" ;;
4249 if test "$host_arch" = "Unknown" ; then
4250 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4254 HOST_ARCH=$host_arch
4257 if test "$cross_compiling" = yes; then
4258 LLVM_CROSS_COMPILING=1
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267 ac_cv_build_exeext=.exe
4269 ac_build_prefix=${build_alias}-
4271 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$BUILD_CC"; then
4279 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4308 if test -z "$BUILD_CC"; then
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_BUILD_CC="gcc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366 ac_prog_rejected=yes
4369 ac_cv_prog_BUILD_CC="cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test $ac_prog_rejected = yes; then
4378 # We found a bogon in the path, so make sure we never use it.
4379 set dummy $ac_cv_prog_BUILD_CC
4381 if test $# != 0; then
4382 # We chose a different compiler from the bogus one.
4383 # However, it has the same basename, so the bogon will be chosen
4384 # first if we set BUILD_CC to just the basename; use the full file name.
4386 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4403 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405 { (exit 1); exit 1; }; }
4406 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4408 echo 'int main () { return 0; }' > conftest.$ac_ext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411 (eval $ac_build_link) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 for file in conftest.*; do
4417 *.c | *.o | *.obj | *.dSYM) ;;
4418 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4422 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424 { (exit 1); exit 1; }; }
4427 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4437 ac_build_prefix=${build_alias}-
4438 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$BUILD_CXX"; then
4446 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4475 if test -z "$BUILD_CXX"; then
4476 # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$BUILD_CXX"; then
4484 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_BUILD_CXX="g++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4513 if test -z "$BUILD_CXX"; then
4514 # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$BUILD_CXX"; then
4522 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533 ac_prog_rejected=yes
4536 ac_cv_prog_BUILD_CXX="c++"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 if test $ac_prog_rejected = yes; then
4545 # We found a bogon in the path, so make sure we never use it.
4546 set dummy $ac_cv_prog_BUILD_CXX
4548 if test $# != 0; then
4549 # We chose a different compiler from the bogus one.
4550 # However, it has the same basename, so the bogon will be chosen
4551 # first if we set BUILD_CXX to just the basename; use the full file name.
4553 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4571 LLVM_CROSS_COMPILING=0
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588 enableval=$enable_libcpp;
4593 case "$enableval" in
4594 yes) ENABLE_LIBCPP=1
4598 default) ENABLE_LIBCPP=0
4600 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602 { (exit 1); exit 1; }; } ;;
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607 enableval=$enable_compiler_version_checks;
4612 case "$enableval" in
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 case "$llvm_cv_cxx_compiler" in
4624 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688 { (exit 1); exit 1; }; }
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test "$ENABLE_LIBCPP" -eq 0 ; then
4694 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696 llvm_cv_old_cxxflags="$CXXFLAGS"
4697 CXXFLAGS="$CXXFLAGS -std=c++0x"
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770 { (exit 1); exit 1; }; }
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 CXXFLAGS="$llvm_cv_old_cxxflags"
4779 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_try") 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843 { (exit 1); exit 1; }; }
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; }
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867 enableval=$enable_cxx1y;
4872 case "$enableval" in
4877 default) ENABLE_CXX1Y=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886 enableval=$enable_split_dwarf;
4891 case "$enableval" in
4892 yes) ENABLE_SPLIT_DWARF=1
4894 no) ENABLE_SPLIT_DWARF=0
4896 default) ENABLE_SPLIT_DWARF=0
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4911 case "$enableval" in
4912 yes) ENABLE_CLANG_ARCMT=1
4914 no) ENABLE_CLANG_ARCMT=0
4916 default) ENABLE_CLANG_ARCMT=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4931 case "$enableval" in
4932 yes) CLANG_PLUGIN_SUPPORT=1
4934 no) CLANG_PLUGIN_SUPPORT=0
4936 default) CLANG_PLUGIN_SUPPORT=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4951 case "$enableval" in
4952 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4955 if test ${clang_arcmt} != "no" ; then
4956 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958 { (exit 1); exit 1; }; }
4960 ENABLE_CLANG_STATIC_ANALYZER=0
4963 default) ENABLE_CLANG_STATIC_ANALYZER=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5010 assertions_enabled="yes"
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 assertions_enabled="no"
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019 enableval=$enable_werror;
5024 case "$enableval" in
5025 yes) ENABLE_WERROR=1
5029 default) ENABLE_WERROR=0
5031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038 enableval=$enable_expensive_checks;
5043 if test ${enableval} = "yes" ; then
5044 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5046 EXPENSIVE_CHECKS=yes
5049 ENABLE_EXPENSIVE_CHECKS=
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057 enableval=$enable_abi_breaking_checks;
5059 enableval="with-asserts"
5062 case "$enableval" in
5063 with-asserts) if test ${assertions_enabled} = "yes" ; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5081 ENABLE_ABI_BREAKING_CHECKS=1
5085 ENABLE_ABI_BREAKING_CHECKS=0
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; }
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095 enableval=$enable_debug_runtime;
5100 if test ${enableval} = "no" ; then
5104 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110 enableval=$enable_debug_symbols;
5115 if test ${enableval} = "no" ; then
5119 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125 enableval=$enable_keep_symbols;
5130 if test ${enableval} = "no" ; then
5134 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140 enableval=$enable_jit;
5145 if test ${enableval} = "no"
5150 case "$llvm_cv_target_arch" in
5151 x86) TARGET_HAS_JIT=1
5153 Sparc) TARGET_HAS_JIT=0
5155 PowerPC) TARGET_HAS_JIT=1
5157 x86_64) TARGET_HAS_JIT=1
5159 ARM) TARGET_HAS_JIT=1
5161 Mips) TARGET_HAS_JIT=1
5163 XCore) TARGET_HAS_JIT=0
5165 MSP430) TARGET_HAS_JIT=0
5167 Hexagon) TARGET_HAS_JIT=0
5169 NVPTX) TARGET_HAS_JIT=0
5171 SystemZ) TARGET_HAS_JIT=1
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184 enableval=$enable_docs;
5189 case "$enableval" in
5194 default) ENABLE_DOCS=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203 enableval=$enable_doxygen;
5208 case "$enableval" in
5209 yes) ENABLE_DOXYGEN=1
5211 no|default) ENABLE_DOXYGEN=0
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220 enableval=$enable_doxygen_search;
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5227 case "$enableval" in
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236 enableval=$enable_doxygen_external_search;
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5243 case "$enableval" in
5245 case "$ENABLE_DOXYGEN_SEARCH" in
5246 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261 withval=$with_doxygen_search_engine_url;
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269 withval=$with_doxygen_search_mappings;
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5276 if test "$ENABLE_DOXYGEN" = "0" ; then
5277 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279 { (exit 1); exit 1; }; }
5282 enable_searchengine=YES
5285 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5287 enable_external_search=YES
5289 enable_server_based_search=YES
5291 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5293 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5298 enable_external_search=NO
5300 enable_server_based_search=NO
5309 enable_searchengine=NO
5312 enable_server_based_search=NO
5314 enable_external_search=NO
5320 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; }
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328 enableval=$enable_doxygen_qt_help;
5333 case "$enableval" in
5335 if test "$ENABLE_DOXYGEN" = "0" ; then
5336 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338 { (exit 1); exit 1; }; }
5341 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 case $QHELPGENERATOR in
5350 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5383 llvm_doxygen_generate_qhp=YES
5385 llvm_doxygen_qch_filename=org.llvm.qch
5387 llvm_doxygen_qhp_namespace=org.llvm
5389 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5391 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5393 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5396 clang_doxygen_generate_qhp=YES
5398 clang_doxygen_qch_filename=org.llvm.clang.qch
5400 clang_doxygen_qhp_namespace=org.llvm.clang
5402 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5404 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5406 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5411 llvm_doxygen_generate_qhp=NO
5419 clang_doxygen_generate_qhp=NO
5424 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5426 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5431 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481 enableval=$enable_zlib;
5486 case "$enableval" in
5487 yes) LLVM_ENABLE_ZLIB=1
5489 no) LLVM_ENABLE_ZLIB=0
5491 default) LLVM_ENABLE_ZLIB=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505 enableval=$enable_pic;
5510 case "$enableval" in
5515 default) ENABLE_PIC=1
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529 enableval=$enable_shared;
5534 case "$enableval" in
5535 yes) ENABLE_SHARED=1
5539 default) ENABLE_SHARED=0
5541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543 { (exit 1); exit 1; }; } ;;
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548 enableval=$enable_embed_stdcxx;
5553 case "$enableval" in
5554 yes) ENABLE_EMBED_STDCXX=1
5556 no) ENABLE_EMBED_STDCXX=0
5558 default) ENABLE_EMBED_STDCXX=0
5560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562 { (exit 1); exit 1; }; } ;;
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567 enableval=$enable_timestamps;
5572 case "$enableval" in
5573 yes) ENABLE_TIMESTAMPS=1
5575 no) ENABLE_TIMESTAMPS=0
5577 default) ENABLE_TIMESTAMPS=1
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591 enableval=$enable_backtraces; case "$enableval" in
5592 yes) llvm_cv_enable_backtraces="yes" ;;
5593 no) llvm_cv_enable_backtraces="no" ;;
5594 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596 { (exit 1); exit 1; }; } ;;
5599 llvm_cv_enable_backtraces="yes"
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612 enableval=$enable_crash_overrides; case "$enableval" in
5613 yes) llvm_cv_enable_crash_overrides="yes" ;;
5614 no) llvm_cv_enable_crash_overrides="no" ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5620 llvm_cv_enable_crash_overrides="yes"
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5632 ALL_TARGETS=$ALL_TARGETS
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638 enableval=$enable_targets;
5643 if test "$enableval" = host-only ; then
5646 case "$enableval" in
5647 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5650 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5658 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5662 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5663 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5664 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5665 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5666 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5667 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5668 host) case "$llvm_cv_target_arch" in
5669 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5672 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5673 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5674 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5675 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5677 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5678 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5679 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5680 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5681 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5682 echo "$as_me: error: Can not set target to build" >&2;}
5683 { (exit 1); exit 1; }; } ;;
5685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5687 { (exit 1); exit 1; }; } ;;
5693 # Check whether --enable-experimental-targets was given.
5694 if test "${enable_experimental_targets+set}" = set; then
5695 enableval=$enable_experimental_targets;
5701 if test ${enableval} != "disable"
5703 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5706 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5709 for a_target in $TARGETS_TO_BUILD; do
5710 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5712 cat >>confdefs.h <<_ACEOF
5713 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5716 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5717 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5718 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5719 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5720 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5721 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5724 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5732 cat >>confdefs.h <<_ACEOF
5733 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5737 cat >>confdefs.h <<_ACEOF
5738 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5753 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5763 LLVM_ENUM_TARGETS=""
5764 LLVM_ENUM_ASM_PRINTERS=""
5765 LLVM_ENUM_ASM_PARSERS=""
5766 LLVM_ENUM_DISASSEMBLERS=""
5767 for target_to_build in $TARGETS_TO_BUILD; do
5768 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5769 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5770 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5772 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5773 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5775 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5776 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5785 # Check whether --with-optimize-option was given.
5786 if test "${with_optimize_option+set}" = set; then
5787 withval=$with_optimize_option;
5792 { echo "$as_me:$LINENO: checking optimization flags" >&5
5793 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5796 case "$llvm_cv_os_type" in
5797 FreeBSD) optimize_option=-O2 ;;
5798 MingW) optimize_option=-O2 ;;
5799 *) optimize_option=-O3 ;;
5801 *) optimize_option="$withval" ;;
5803 OPTIMIZE_OPTION=$optimize_option
5805 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5806 echo "${ECHO_T}$optimize_option" >&6; }
5809 # Check whether --with-extra-options was given.
5810 if test "${with_extra_options+set}" = set; then
5811 withval=$with_extra_options;
5817 default) EXTRA_OPTIONS= ;;
5818 *) EXTRA_OPTIONS=$withval ;;
5820 EXTRA_OPTIONS=$EXTRA_OPTIONS
5824 # Check whether --with-extra-ld-options was given.
5825 if test "${with_extra_ld_options+set}" = set; then
5826 withval=$with_extra_ld_options;
5832 default) EXTRA_LD_OPTIONS= ;;
5833 *) EXTRA_LD_OPTIONS=$withval ;;
5835 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5838 # Check whether --enable-bindings was given.
5839 if test "${enable_bindings+set}" = set; then
5840 enableval=$enable_bindings;
5845 BINDINGS_TO_BUILD=""
5846 case "$enableval" in
5847 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5848 all ) BINDINGS_TO_BUILD="ocaml" ;;
5849 none | no) BINDINGS_TO_BUILD="" ;;
5850 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5851 case "$a_binding" in
5852 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5853 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5854 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5855 { (exit 1); exit 1; }; } ;;
5862 # Check whether --with-ocaml-libdir was given.
5863 if test "${with_ocaml_libdir+set}" = set; then
5864 withval=$with_ocaml_libdir;
5870 auto) with_ocaml_libdir="$withval" ;;
5871 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5872 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5873 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5874 { (exit 1); exit 1; }; } ;;
5878 # Check whether --with-clang-srcdir was given.
5879 if test "${with_clang_srcdir+set}" = set; then
5880 withval=$with_clang_srcdir;
5886 -) clang_src_root="" ;;
5887 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5888 *) clang_src_root="$ac_pwd/$withval" ;;
5890 CLANG_SRC_ROOT=$clang_src_root
5894 # Check whether --with-clang-resource-dir was given.
5895 if test "${with_clang_resource_dir+set}" = set; then
5896 withval=$with_clang_resource_dir;
5902 cat >>confdefs.h <<_ACEOF
5903 #define CLANG_RESOURCE_DIR "$withval"
5908 # Check whether --with-c-include-dirs was given.
5909 if test "${with_c_include_dirs+set}" = set; then
5910 withval=$with_c_include_dirs;
5916 cat >>confdefs.h <<_ACEOF
5917 #define C_INCLUDE_DIRS "$withval"
5921 # Clang normally uses the system c++ headers and libraries. With this option,
5922 # clang will use the ones provided by a gcc installation instead. This option should
5923 # be passed the same value that was used with --prefix when configuring gcc.
5925 # Check whether --with-gcc-toolchain was given.
5926 if test "${with_gcc_toolchain+set}" = set; then
5927 withval=$with_gcc_toolchain;
5933 cat >>confdefs.h <<_ACEOF
5934 #define GCC_INSTALL_PREFIX "$withval"
5939 # Check whether --with-default-sysroot was given.
5940 if test "${with_default_sysroot+set}" = set; then
5941 withval=$with_default_sysroot;
5947 cat >>confdefs.h <<_ACEOF
5948 #define DEFAULT_SYSROOT "$withval"
5953 # Check whether --with-clang-default-openmp-runtime was given.
5954 if test "${with_clang_default_openmp_runtime+set}" = set; then
5955 withval=$with_clang_default_openmp_runtime;
5961 cat >>confdefs.h <<_ACEOF
5962 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5967 # Check whether --with-binutils-include was given.
5968 if test "${with_binutils_include+set}" = set; then
5969 withval=$with_binutils_include;
5975 default) WITH_BINUTILS_INCDIR=default ;;
5976 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5977 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5978 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5979 { (exit 1); exit 1; }; } ;;
5981 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5982 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5984 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5985 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5986 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5987 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5988 { (exit 1); exit 1; }; };
5993 # Check whether --with-bug-report-url was given.
5994 if test "${with_bug_report_url+set}" = set; then
5995 withval=$with_bug_report_url;
5997 withval="http://llvm.org/bugs/"
6001 cat >>confdefs.h <<_ACEOF
6002 #define BUG_REPORT_URL "$withval"
6006 # Check whether --enable-terminfo was given.
6007 if test "${enable_terminfo+set}" = set; then
6008 enableval=$enable_terminfo; case "$enableval" in
6009 yes) llvm_cv_enable_terminfo="yes" ;;
6010 no) llvm_cv_enable_terminfo="no" ;;
6011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6012 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6013 { (exit 1); exit 1; }; } ;;
6016 llvm_cv_enable_terminfo="yes"
6019 case "$llvm_cv_enable_terminfo" in
6020 yes) ENABLE_TERMINFO=1
6022 no) ENABLE_TERMINFO=0
6026 # Check whether --enable-libedit was given.
6027 if test "${enable_libedit+set}" = set; then
6028 enableval=$enable_libedit; case "$enableval" in
6029 yes) llvm_cv_enable_libedit="yes" ;;
6030 no) llvm_cv_enable_libedit="no" ;;
6031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6032 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6033 { (exit 1); exit 1; }; } ;;
6036 llvm_cv_enable_libedit="yes"
6040 # Check whether --enable-libffi was given.
6041 if test "${enable_libffi+set}" = set; then
6042 enableval=$enable_libffi; case "$enableval" in
6043 yes) llvm_cv_enable_libffi="yes" ;;
6044 no) llvm_cv_enable_libffi="no" ;;
6045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6046 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6047 { (exit 1); exit 1; }; } ;;
6050 llvm_cv_enable_libffi=no
6055 # Check whether --with-internal-prefix was given.
6056 if test "${with_internal_prefix+set}" = set; then
6057 withval=$with_internal_prefix;
6062 INTERNAL_PREFIX=$withval
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 llvm_cv_gnu_make_command=''
6072 for a in "$MAKE" make gmake gnumake ; do
6073 if test -z "$a" ; then continue ; fi ;
6074 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076 llvm_cv_gnu_make_command=$a ;
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6087 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 if test "$LN_S" = "ln -s"; then
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 # Extract the first word of "nm", so it can be a program name with args.
6104 set dummy nm; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_NM+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6135 if test -n "$NM"; then
6136 { echo "$as_me:$LINENO: result: $NM" >&5
6137 echo "${ECHO_T}$NM" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6144 # Extract the first word of "cmp", so it can be a program name with args.
6145 set dummy cmp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CMP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6176 if test -n "$CMP"; then
6177 { echo "$as_me:$LINENO: result: $CMP" >&5
6178 echo "${ECHO_T}$CMP" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "cp", so it can be a program name with args.
6186 set dummy cp; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_CP+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6217 if test -n "$CP"; then
6218 { echo "$as_me:$LINENO: result: $CP" >&5
6219 echo "${ECHO_T}$CP" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "date", so it can be a program name with args.
6227 set dummy date; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_DATE+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6257 DATE=$ac_cv_path_DATE
6258 if test -n "$DATE"; then
6259 { echo "$as_me:$LINENO: result: $DATE" >&5
6260 echo "${ECHO_T}$DATE" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "find", so it can be a program name with args.
6268 set dummy find; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_FIND+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6298 FIND=$ac_cv_path_FIND
6299 if test -n "$FIND"; then
6300 { echo "$as_me:$LINENO: result: $FIND" >&5
6301 echo "${ECHO_T}$FIND" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 # Extract the first word of "grep", so it can be a program name with args.
6309 set dummy grep; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_GREP+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6339 GREP=$ac_cv_path_GREP
6340 if test -n "$GREP"; then
6341 { echo "$as_me:$LINENO: result: $GREP" >&5
6342 echo "${ECHO_T}$GREP" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "mkdir", so it can be a program name with args.
6350 set dummy mkdir; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MKDIR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6380 MKDIR=$ac_cv_path_MKDIR
6381 if test -n "$MKDIR"; then
6382 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6383 echo "${ECHO_T}$MKDIR" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 # Extract the first word of "mv", so it can be a program name with args.
6391 set dummy mv; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_path_MV+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6422 if test -n "$MV"; then
6423 { echo "$as_me:$LINENO: result: $MV" >&5
6424 echo "${ECHO_T}$MV" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_prog_RANLIB+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 if test -n "$RANLIB"; then
6440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6462 echo "${ECHO_T}$RANLIB" >&6; }
6464 { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471 ac_ct_RANLIB=$RANLIB
6472 # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 if test -n "$ac_ct_RANLIB"; then
6480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_RANLIB="ranlib"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6502 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6508 if test "x$ac_ct_RANLIB" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet. If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&5
6516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6519 ac_tool_warned=yes ;;
6521 RANLIB=$ac_ct_RANLIB
6524 RANLIB="$ac_cv_prog_RANLIB"
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_prog_AR+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 if test -n "$AR"; then
6557 { echo "$as_me:$LINENO: result: $AR" >&5
6558 echo "${ECHO_T}$AR" >&6; }
6560 { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6566 if test -z "$ac_cv_prog_AR"; then
6568 # Extract the first word of "ar", so it can be a program name with args.
6569 set dummy ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 if test -n "$ac_ct_AR"; then
6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_AR="ar"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596 if test -n "$ac_ct_AR"; then
6597 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6598 echo "${ECHO_T}$ac_ct_AR" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6604 if test "x$ac_ct_AR" = x; then
6607 case $cross_compiling:$ac_tool_warned in
6609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet. If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&5
6612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6615 ac_tool_warned=yes ;;
6623 # Extract the first word of "rm", so it can be a program name with args.
6624 set dummy rm; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_RM+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6655 if test -n "$RM"; then
6656 { echo "$as_me:$LINENO: result: $RM" >&5
6657 echo "${ECHO_T}$RM" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Extract the first word of "sed", so it can be a program name with args.
6665 set dummy sed; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_SED+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6696 if test -n "$SED"; then
6697 { echo "$as_me:$LINENO: result: $SED" >&5
6698 echo "${ECHO_T}$SED" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "tar", so it can be a program name with args.
6706 set dummy tar; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_TAR+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6737 if test -n "$TAR"; then
6738 { echo "$as_me:$LINENO: result: $TAR" >&5
6739 echo "${ECHO_T}$TAR" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6746 # Extract the first word of "pwd", so it can be a program name with args.
6747 set dummy pwd; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_BINPWD+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6777 BINPWD=$ac_cv_path_BINPWD
6778 if test -n "$BINPWD"; then
6779 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6780 echo "${ECHO_T}$BINPWD" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6788 # Extract the first word of "dot", so it can be a program name with args.
6789 set dummy dot; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_DOT+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6820 if test -n "$DOT"; then
6821 { echo "$as_me:$LINENO: result: $DOT" >&5
6822 echo "${ECHO_T}$DOT" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 if test "$DOT" != "echo dot" ; then
6831 cat >>confdefs.h <<\_ACEOF
6835 if test "$llvm_cv_os_type" = "MingW" ; then
6836 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6839 cat >>confdefs.h <<_ACEOF
6840 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6845 # Find a good install program. We prefer a C program (faster),
6846 # so one script is as good as another. But avoid the broken or
6847 # incompatible versions:
6848 # SysV /etc/install, /usr/sbin/install
6849 # SunOS /usr/etc/install
6850 # IRIX /sbin/install
6852 # AmigaOS /C/install, which installs bootblocks on floppy discs
6853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6856 # OS/2's system install, which has a completely different semantic
6857 # ./install, which can be erroneously created by make from ./install.sh.
6858 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6859 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6860 if test -z "$INSTALL"; then
6861 if test "${ac_cv_path_install+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 # Account for people who put trailing slashes in PATH elements.
6871 ./ | .// | /cC/* | \
6872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6876 # OSF1 and SCO ODT 3.0 have their own names for install.
6877 # Don't use installbsd from OSF since it installs stuff as root
6879 for ac_prog in ginstall scoinst install; do
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6882 if test $ac_prog = install &&
6883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # AIX install. It has an incompatible calling convention.
6886 elif test $ac_prog = install &&
6887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6888 # program-specific install script used by HP pwplus--don't use.
6891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6904 if test "${ac_cv_path_install+set}" = set; then
6905 INSTALL=$ac_cv_path_install
6907 # As a last resort, use the slow shell script. Don't cache a
6908 # value for INSTALL within a source directory, because that will
6909 # break other packages using the cache if that directory is
6910 # removed, or if the value is a relative name.
6911 INSTALL=$ac_install_sh
6914 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6915 echo "${ECHO_T}$INSTALL" >&6; }
6917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6918 # It thinks the first close brace ends the variable substitution.
6919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6926 [\\/$]* | ?:[\\/]* ) ;;
6927 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6930 # Extract the first word of "bzip2", so it can be a program name with args.
6931 set dummy bzip2; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_BZIP2+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 BZIP2=$ac_cv_path_BZIP2
6961 if test -n "$BZIP2"; then
6962 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6963 echo "${ECHO_T}$BZIP2" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "cat", so it can be a program name with args.
6971 set dummy cat; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_CAT+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 if test -n "$CAT"; then
7002 { echo "$as_me:$LINENO: result: $CAT" >&5
7003 echo "${ECHO_T}$CAT" >&6; }
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7010 # Extract the first word of "doxygen", so it can be a program name with args.
7011 set dummy doxygen; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 DOXYGEN=$ac_cv_path_DOXYGEN
7041 if test -n "$DOXYGEN"; then
7042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7043 echo "${ECHO_T}$DOXYGEN" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 # Extract the first word of "groff", so it can be a program name with args.
7051 set dummy groff; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_GROFF+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 GROFF=$ac_cv_path_GROFF
7081 if test -n "$GROFF"; then
7082 { echo "$as_me:$LINENO: result: $GROFF" >&5
7083 echo "${ECHO_T}$GROFF" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 # Extract the first word of "gzip", so it can be a program name with args.
7091 set dummy gzip; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 GZIPBIN=$ac_cv_path_GZIPBIN
7121 if test -n "$GZIPBIN"; then
7122 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7123 echo "${ECHO_T}$GZIPBIN" >&6; }
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7130 # Extract the first word of "pdfroff", so it can be a program name with args.
7131 set dummy pdfroff; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_PDFROFF+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 PDFROFF=$ac_cv_path_PDFROFF
7161 if test -n "$PDFROFF"; then
7162 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7163 echo "${ECHO_T}$PDFROFF" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 # Extract the first word of "zip", so it can be a program name with args.
7171 set dummy zip; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_ZIP+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 if test -n "$ZIP"; then
7202 { echo "$as_me:$LINENO: result: $ZIP" >&5
7203 echo "${ECHO_T}$ZIP" >&6; }
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7210 # Extract the first word of "go", so it can be a program name with args.
7211 set dummy go; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_GO+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 if test -n "$GO"; then
7242 { echo "$as_me:$LINENO: result: $GO" >&5
7243 echo "${ECHO_T}$GO" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7250 for ac_prog in ocamlfind
7252 # Extract the first word of "$ac_prog", so it can be a program name with args.
7253 set dummy $ac_prog; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 OCAMLFIND=$ac_cv_path_OCAMLFIND
7283 if test -n "$OCAMLFIND"; then
7284 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7285 echo "${ECHO_T}$OCAMLFIND" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7292 test -n "$OCAMLFIND" && break
7295 for ac_prog in gas as
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_GAS+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 if test -n "$GAS"; then
7329 { echo "$as_me:$LINENO: result: $GAS" >&5
7330 echo "${ECHO_T}$GAS" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 test -n "$GAS" && break
7341 { echo "$as_me:$LINENO: checking for linker version" >&5
7342 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7343 if test "${llvm_cv_link_version+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7350 if (echo "$version_string" | grep -q "ld64"); then
7351 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7353 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7357 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7358 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7360 cat >>confdefs.h <<_ACEOF
7361 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7367 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7368 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7369 if test "${llvm_cv_link_use_r+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 CFLAGS="$CFLAGS -Wl,-R."
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7410 { (case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_try") 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest$ac_exeext'
7420 { (case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_try") 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 llvm_cv_link_use_r=yes
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 llvm_cv_link_use_r=no
7437 rm -f core conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7449 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7450 if test "$llvm_cv_link_use_r" = yes ; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_LINK_R 1
7459 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7460 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7461 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 CFLAGS="$CFLAGS -rdynamic"
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7502 { (case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_try") 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; } &&
7511 { ac_try='test -s conftest$ac_exeext'
7512 { (case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_try") 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 llvm_cv_link_use_export_dynamic=yes
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 llvm_cv_link_use_export_dynamic=no
7529 rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7541 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7542 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_LINK_EXPORT_DYNAMIC 1
7551 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7552 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7553 if test "${llvm_cv_link_use_version_script+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cpp='$CPP $CPPFLAGS'
7558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564 # The following code is from the autoconf manual,
7565 # "11.13: Limitations of Usual Tools".
7566 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7567 # Use mktemp if possible; otherwise fall back on mkdir,
7568 # with $RANDOM to make collisions less likely.
7572 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7574 test -n "$tmp" && test -d "$tmp"
7576 tmp=$TMPDIR/foo$$-$RANDOM
7577 (umask 077 && mkdir "$tmp")
7580 echo "{" > "$tmp/export.map"
7581 echo " global: main;" >> "$tmp/export.map"
7582 echo " local: *;" >> "$tmp/export.map"
7583 echo "};" >> "$tmp/export.map"
7585 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_link") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7616 { (case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_try") 2>&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (case "(($ac_try" in
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631 (eval "$ac_try") 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 llvm_cv_link_use_version_script=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 llvm_cv_link_use_version_script=no
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 rm "$tmp/export.map"
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7657 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7658 if test "$llvm_cv_link_use_version_script" = yes ; then
7659 HAVE_LINK_VERSION_SCRIPT=1
7665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_GREP+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 # Extract the first word of "grep ggrep" to use in msg output
7671 if test -z "$GREP"; then
7672 set dummy grep ggrep; ac_prog_name=$2
7673 if test "${ac_cv_path_GREP+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_path_GREP_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7682 test -z "$as_dir" && as_dir=.
7683 for ac_prog in grep ggrep; do
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7687 # Check for GNU ac_path_GREP and select it if it is found.
7688 # Check for GNU $ac_path_GREP
7689 case `"$ac_path_GREP" --version 2>&1` in
7691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7697 cat "conftest.in" "conftest.in" >"conftest.tmp"
7698 mv "conftest.tmp" "conftest.in"
7699 cp "conftest.in" "conftest.nl"
7700 echo 'GREP' >> "conftest.nl"
7701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703 ac_count=`expr $ac_count + 1`
7704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7705 # Best one so far, save it but keep looking for a better one
7706 ac_cv_path_GREP="$ac_path_GREP"
7707 ac_path_GREP_max=$ac_count
7709 # 10*(2^10) chars as input seems more than enough
7710 test $ac_count -gt 10 && break
7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7716 $ac_path_GREP_found && break 3
7726 GREP="$ac_cv_path_GREP"
7727 if test -z "$GREP"; then
7728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7730 { (exit 1); exit 1; }; }
7734 ac_cv_path_GREP=$GREP
7739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7741 GREP="$ac_cv_path_GREP"
7744 { echo "$as_me:$LINENO: checking for egrep" >&5
7745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_EGREP+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7750 then ac_cv_path_EGREP="$GREP -E"
7752 # Extract the first word of "egrep" to use in msg output
7753 if test -z "$EGREP"; then
7754 set dummy egrep; ac_prog_name=$2
7755 if test "${ac_cv_path_EGREP+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_path_EGREP_found=false
7759 # Loop through the user's path and test for each of PROGNAME-LIST
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7764 test -z "$as_dir" && as_dir=.
7765 for ac_prog in egrep; do
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7769 # Check for GNU ac_path_EGREP and select it if it is found.
7770 # Check for GNU $ac_path_EGREP
7771 case `"$ac_path_EGREP" --version 2>&1` in
7773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7779 cat "conftest.in" "conftest.in" >"conftest.tmp"
7780 mv "conftest.tmp" "conftest.in"
7781 cp "conftest.in" "conftest.nl"
7782 echo 'EGREP' >> "conftest.nl"
7783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7785 ac_count=`expr $ac_count + 1`
7786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7787 # Best one so far, save it but keep looking for a better one
7788 ac_cv_path_EGREP="$ac_path_EGREP"
7789 ac_path_EGREP_max=$ac_count
7791 # 10*(2^10) chars as input seems more than enough
7792 test $ac_count -gt 10 && break
7794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7798 $ac_path_EGREP_found && break 3
7808 EGREP="$ac_cv_path_EGREP"
7809 if test -z "$EGREP"; then
7810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7812 { (exit 1); exit 1; }; }
7816 ac_cv_path_EGREP=$EGREP
7822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7824 EGREP="$ac_cv_path_EGREP"
7827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7829 if test "${ac_cv_header_stdc+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_header_stdc=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_header_stdc=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 if test $ac_cv_header_stdc = yes; then
7896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907 $EGREP "memchr" >/dev/null 2>&1; then
7910 ac_cv_header_stdc=no
7916 if test $ac_cv_header_stdc = yes; then
7917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928 $EGREP "free" >/dev/null 2>&1; then
7931 ac_cv_header_stdc=no
7937 if test $ac_cv_header_stdc = yes; then
7938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7939 if test "$cross_compiling" = yes; then
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7950 #if ((' ' & 0x0FF) == 0x020)
7951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7954 # define ISLOWER(c) \
7955 (('a' <= (c) && (c) <= 'i') \
7956 || ('j' <= (c) && (c) <= 'r') \
7957 || ('s' <= (c) && (c) <= 'z'))
7958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7966 for (i = 0; i < 256; i++)
7967 if (XOR (islower (i), ISLOWER (i))
7968 || toupper (i) != TOUPPER (i))
7973 rm -f conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7995 echo "$as_me: program exited with status $ac_status" >&5
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_header_stdc=no
8002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8010 if test $ac_cv_header_stdc = yes; then
8012 cat >>confdefs.h <<\_ACEOF
8013 #define STDC_HEADERS 1
8018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8029 inttypes.h stdint.h unistd.h
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8045 #include <$ac_header>
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_try") 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 eval "$as_ac_Header=yes"
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 eval "$as_ac_Header=no"
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 ac_res=`eval echo '${'$as_ac_Header'}'`
8092 { echo "$as_me:$LINENO: result: $ac_res" >&5
8093 echo "${ECHO_T}$ac_res" >&6; }
8094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8095 cat >>confdefs.h <<_ACEOF
8096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 for ac_header in errno.h
8107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 ac_res=`eval echo '${'$as_ac_Header'}'`
8115 { echo "$as_me:$LINENO: result: $ac_res" >&5
8116 echo "${ECHO_T}$ac_res" >&6; }
8118 # Is the header compilable?
8119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include <$ac_header>
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 ac_header_compiler=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_header_compiler=no
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8174 echo "${ECHO_T}$ac_header_compiler" >&6; }
8176 # Is the header present?
8177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <$ac_header>
8187 if { (ac_try="$ac_cpp conftest.$ac_ext"
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } >/dev/null; then
8200 if test -s conftest.err; then
8201 ac_cpp_err=$ac_c_preproc_warn_flag
8202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8209 if test -z "$ac_cpp_err"; then
8210 ac_header_preproc=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_header_preproc=no
8218 rm -f conftest.err conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8220 echo "${ECHO_T}$ac_header_preproc" >&6; }
8222 # So? What about this header?
8223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8229 ac_header_preproc=yes
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8245 ## ------------------------------------ ##
8246 ## Report this to http://llvm.org/bugs/ ##
8247 ## ------------------------------------ ##
8249 ) | sed "s/^/$as_me: WARNING: /" >&2
8252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 eval "$as_ac_Header=\$ac_header_preproc"
8259 ac_res=`eval echo '${'$as_ac_Header'}'`
8260 { echo "$as_me:$LINENO: result: $ac_res" >&5
8261 echo "${ECHO_T}$ac_res" >&6; }
8264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 case "$llvm_cv_os_type" in
8275 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8276 Darwin) llvm_shlib_ext=.dylib ;;
8277 *) llvm_shlib_ext=.so ;;
8281 cat >>confdefs.h <<_ACEOF
8282 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8286 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8287 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8300 if test "$GCC" != "yes" && test "$ICC" != "yes"
8302 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8303 echo "$as_me: error: gcc|icc required but not found" >&2;}
8304 { (exit 1); exit 1; }; }
8307 if test "$GXX" != "yes" && test "$IXX" != "yes"
8309 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8310 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8311 { (exit 1); exit 1; }; }
8314 if test "$GCC" = "yes"
8316 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 #if !defined(__GNUC__) || __GNUC__ < 3
8325 #error Unsupported GCC version
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_try") 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8370 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8371 { (exit 1); exit 1; }; }
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 if test -z "$llvm_cv_gnu_make_command"
8379 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8380 echo "$as_me: error: GNU Make required but not found" >&2;}
8381 { (exit 1); exit 1; }; }
8384 { echo "$as_me:$LINENO: result: ok" >&5
8385 echo "${ECHO_T}ok" >&6; }
8387 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8388 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8389 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8391 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8393 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8397 NO_MAYBE_UNINITIALIZED=
8398 if test "$GXX" = "yes"
8400 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8402 if test -z "$NO_MAYBE_UNINITIALIZED"
8404 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8410 llvm_cv_old_cxxflags="$CXXFLAGS"
8411 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8412 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8421 int main() { return 0; }
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
8450 { (case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_try") 2>&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8460 no_comment=-Wno-comment
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 NO_COMMENT=$no_comment
8472 CXXFLAGS="$llvm_cv_old_cxxflags"
8474 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8475 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8478 # Check whether --with-python was given.
8479 if test "${with_python+set}" = set; then
8480 withval=$with_python; PYTHON="$withval"
8484 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8485 { echo "$as_me:$LINENO: checking for python" >&5
8486 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8487 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8488 echo "${ECHO_T}user defined: $with_python" >&6; }
8490 if test -n "$PYTHON" ; then
8491 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8492 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8495 # Extract the first word of "python python2 python27", so it can be a program name with args.
8496 set dummy python python2 python27; ac_word=$2
8497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8499 if test "${ac_cv_path_PYTHON+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8523 echo "${ECHO_T}not found" >&6; }
8524 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8525 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8526 { (exit 1); exit 1; }; }"
8530 PYTHON=$ac_cv_path_PYTHON
8531 if test -n "$PYTHON"; then
8532 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8533 echo "${ECHO_T}$PYTHON" >&6; }
8535 { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8542 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8543 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8544 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8545 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8546 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8547 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8548 if test "$ac_python_version_major" -gt "2" || \
8549 (test "$ac_python_version_major" -eq "2" && \
8550 test "$ac_python_version_minor" -ge "7") ; then
8551 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8552 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8554 { echo "$as_me:$LINENO: result: not found" >&5
8555 echo "${ECHO_T}not found" >&6; }
8556 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8557 See \`config.log' for more details." >&5
8558 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&2;}
8560 { (exit 1); exit 1; }; }
8565 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8566 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8567 if test "${ac_cv_lib_m_sin+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 ac_check_lib_save_LIBS=$LIBS
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any GCC internal prototype to avoid an error.
8580 Use char because int might match the return type of a GCC
8581 builtin and then its argument prototype would still apply. */
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_link") 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8609 { (case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_try") 2>&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8636 rm -f core conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8640 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8641 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8642 if test $ac_cv_lib_m_sin = yes; then
8643 cat >>confdefs.h <<_ACEOF
8651 if test "$llvm_cv_os_type" = "MingW" ; then
8653 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8654 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8655 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-limagehlp $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_link") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_lib_imagehlp_main=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_lib_imagehlp_main=no
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8723 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8724 if test $ac_cv_lib_imagehlp_main = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_LIBIMAGEHLP 1
8729 LIBS="-limagehlp $LIBS"
8734 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8735 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8736 if test "${ac_cv_lib_psapi_main+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lpsapi $LIBS"
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_lib_psapi_main=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_cv_lib_psapi_main=no
8799 rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801 LIBS=$ac_check_lib_save_LIBS
8803 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8804 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8805 if test $ac_cv_lib_psapi_main = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807 #define HAVE_LIBPSAPI 1
8810 LIBS="-lpsapi $LIBS"
8815 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8816 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8817 if test "${ac_cv_lib_shell32_main+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lshell32 $LIBS"
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_try") 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest$ac_exeext'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_lib_shell32_main=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_lib_shell32_main=no
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882 LIBS=$ac_check_lib_save_LIBS
8884 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8885 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8886 if test $ac_cv_lib_shell32_main = yes; then
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_LIBSHELL32 1
8891 LIBS="-lshell32 $LIBS"
8897 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8898 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8899 if test "${ac_cv_search_dlopen+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_func_search_save_LIBS=$LIBS
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8925 for ac_lib in '' dl; do
8926 if test -z "$ac_lib"; then
8927 ac_res="none required"
8930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_link") 2>conftest.er1
8941 grep -v '^ *+' conftest.er1 >conftest.err
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_try") 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_search_dlopen=$ac_res
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8974 rm -f core conftest.err conftest.$ac_objext \
8976 if test "${ac_cv_search_dlopen+set}" = set; then
8980 if test "${ac_cv_search_dlopen+set}" = set; then
8983 ac_cv_search_dlopen=no
8986 LIBS=$ac_func_search_save_LIBS
8988 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8989 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8990 ac_res=$ac_cv_search_dlopen
8991 if test "$ac_res" != no; then
8992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_DLOPEN 1
9003 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9004 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9008 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9009 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9010 if test "${ac_cv_search_clock_gettime+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9027 char clock_gettime ();
9031 return clock_gettime ();
9036 for ac_lib in '' rt; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9058 { (case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_try") 2>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_try") 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_search_clock_gettime=$ac_res
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9085 rm -f core conftest.err conftest.$ac_objext \
9087 if test "${ac_cv_search_clock_gettime+set}" = set; then
9091 if test "${ac_cv_search_clock_gettime+set}" = set; then
9094 ac_cv_search_clock_gettime=no
9097 LIBS=$ac_func_search_save_LIBS
9099 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9100 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9101 ac_res=$ac_cv_search_clock_gettime
9102 if test "$ac_res" != no; then
9103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9108 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9109 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9110 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9111 if test "${ac_cv_search_setupterm+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 ac_func_search_save_LIBS=$LIBS
9115 cat >conftest.$ac_ext <<_ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9122 /* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9132 return setupterm ();
9137 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9138 if test -z "$ac_lib"; then
9139 ac_res="none required"
9142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (ac_try="$ac_link"
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_link") 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9159 { (case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_try") 2>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_try") 2>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_search_setupterm=$ac_res
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9186 rm -f core conftest.err conftest.$ac_objext \
9188 if test "${ac_cv_search_setupterm+set}" = set; then
9192 if test "${ac_cv_search_setupterm+set}" = set; then
9195 ac_cv_search_setupterm=no
9198 LIBS=$ac_func_search_save_LIBS
9200 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9201 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9202 ac_res=$ac_cv_search_setupterm
9203 if test "$ac_res" != no; then
9204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_TERMINFO 1
9218 if test "$llvm_cv_enable_libedit" = "yes" ; then
9219 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9220 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9221 if test "${ac_cv_search_el_init+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 ac_func_search_save_LIBS=$LIBS
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9247 for ac_lib in '' edit; do
9248 if test -z "$ac_lib"; then
9249 ac_res="none required"
9252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9269 { (case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_try") 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest$ac_exeext'
9279 { (case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_try") 2>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_cv_search_el_init=$ac_res
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9296 rm -f core conftest.err conftest.$ac_objext \
9298 if test "${ac_cv_search_el_init+set}" = set; then
9302 if test "${ac_cv_search_el_init+set}" = set; then
9305 ac_cv_search_el_init=no
9308 LIBS=$ac_func_search_save_LIBS
9310 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9311 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9312 ac_res=$ac_cv_search_el_init
9313 if test "$ac_res" != no; then
9314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9316 cat >>confdefs.h <<\_ACEOF
9317 #define HAVE_LIBEDIT 1
9324 if test "$llvm_cv_enable_libffi" = "yes" ; then
9325 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9326 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9327 if test "${ac_cv_search_ffi_call+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 ac_func_search_save_LIBS=$LIBS
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9338 /* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9353 for ac_lib in '' ffi; do
9354 if test -z "$ac_lib"; then
9355 ac_res="none required"
9358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (ac_try="$ac_link"
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest$ac_exeext'
9385 { (case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_search_ffi_call=$ac_res
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9402 rm -f core conftest.err conftest.$ac_objext \
9404 if test "${ac_cv_search_ffi_call+set}" = set; then
9408 if test "${ac_cv_search_ffi_call+set}" = set; then
9411 ac_cv_search_ffi_call=no
9414 LIBS=$ac_func_search_save_LIBS
9416 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9417 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9418 ac_res=$ac_cv_search_ffi_call
9419 if test "$ac_res" != no; then
9420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_FFI_CALL 1
9427 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9428 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9429 { (exit 1); exit 1; }; }
9434 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9435 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9436 if test "${ac_cv_search_mallinfo+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 ac_func_search_save_LIBS=$LIBS
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9462 for ac_lib in '' malloc; do
9463 if test -z "$ac_lib"; then
9464 ac_res="none required"
9467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_link") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_search_mallinfo=$ac_res
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9511 rm -f core conftest.err conftest.$ac_objext \
9513 if test "${ac_cv_search_mallinfo+set}" = set; then
9517 if test "${ac_cv_search_mallinfo+set}" = set; then
9520 ac_cv_search_mallinfo=no
9523 LIBS=$ac_func_search_save_LIBS
9525 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9526 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9527 ac_res=$ac_cv_search_mallinfo
9528 if test "$ac_res" != no; then
9529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_MALLINFO 1
9538 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9540 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9541 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9542 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 ac_check_lib_save_LIBS=$LIBS
9546 LIBS="-lpthread $LIBS"
9547 cat >conftest.$ac_ext <<_ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9560 char pthread_mutex_init ();
9564 return pthread_mutex_init ();
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_pthread_pthread_mutex_init=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_cv_lib_pthread_pthread_mutex_init=no
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9616 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9617 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619 #define HAVE_LIBPTHREAD 1
9622 LIBS="-lpthread $LIBS"
9626 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9627 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9628 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 ac_func_search_save_LIBS=$LIBS
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9645 char pthread_mutex_lock ();
9649 return pthread_mutex_lock ();
9654 for ac_lib in '' pthread; do
9655 if test -z "$ac_lib"; then
9656 ac_res="none required"
9659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
9670 grep -v '^ *+' conftest.er1 >conftest.err
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_search_pthread_mutex_lock=$ac_res
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9703 rm -f core conftest.err conftest.$ac_objext \
9705 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9709 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9712 ac_cv_search_pthread_mutex_lock=no
9715 LIBS=$ac_func_search_save_LIBS
9717 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9718 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9719 ac_res=$ac_cv_search_pthread_mutex_lock
9720 if test "$ac_res" != no; then
9721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_PTHREAD_MUTEX_LOCK 1
9729 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9730 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9731 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 ac_func_search_save_LIBS=$LIBS
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9748 char pthread_rwlock_init ();
9752 return pthread_rwlock_init ();
9757 for ac_lib in '' pthread; do
9758 if test -z "$ac_lib"; then
9759 ac_res="none required"
9762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_try") 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_search_pthread_rwlock_init=$ac_res
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9806 rm -f core conftest.err conftest.$ac_objext \
9808 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9812 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9815 ac_cv_search_pthread_rwlock_init=no
9818 LIBS=$ac_func_search_save_LIBS
9820 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9821 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9822 ac_res=$ac_cv_search_pthread_rwlock_init
9823 if test "$ac_res" != no; then
9824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_PTHREAD_RWLOCK_INIT 1
9832 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9833 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9834 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_func_search_save_LIBS=$LIBS
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9851 char pthread_getspecific ();
9855 return pthread_getspecific ();
9860 for ac_lib in '' pthread; do
9861 if test -z "$ac_lib"; then
9862 ac_res="none required"
9865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_search_pthread_getspecific=$ac_res
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9909 rm -f core conftest.err conftest.$ac_objext \
9911 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9915 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9918 ac_cv_search_pthread_getspecific=no
9921 LIBS=$ac_func_search_save_LIBS
9923 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9924 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9925 ac_res=$ac_cv_search_pthread_getspecific
9926 if test "$ac_res" != no; then
9927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_PTHREAD_GETSPECIFIC 1
9937 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9939 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9940 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9941 if test "${ac_cv_lib_z_compress2+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 ac_check_lib_save_LIBS=$LIBS
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9953 /* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
9963 return compress2 ();
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_lib_z_compress2=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_lib_z_compress2=no
10010 rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10014 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10015 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10016 if test $ac_cv_lib_z_compress2 = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define HAVE_LIBZ 1
10028 # Check whether --with-oprofile was given.
10029 if test "${with_oprofile+set}" = set; then
10030 withval=$with_oprofile;
10034 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10035 no) llvm_cv_oppath=
10038 *) llvm_cv_oppath="${withval}/lib/oprofile"
10039 CPPFLAGS="-I${withval}/include";;
10041 case $llvm_cv_os_type in
10043 if test -n "$llvm_cv_oppath" ; then
10044 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10045 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10046 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10047 if test "${ac_cv_search_bfd_init+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 ac_func_search_save_LIBS=$LIBS
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10068 return bfd_init ();
10073 for ac_lib in '' bfd; do
10074 if test -z "$ac_lib"; then
10075 ac_res="none required"
10078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_link") 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_search_bfd_init=$ac_res
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10122 rm -f core conftest.err conftest.$ac_objext \
10124 if test "${ac_cv_search_bfd_init+set}" = set; then
10128 if test "${ac_cv_search_bfd_init+set}" = set; then
10131 ac_cv_search_bfd_init=no
10133 rm conftest.$ac_ext
10134 LIBS=$ac_func_search_save_LIBS
10136 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10137 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10138 ac_res=$ac_cv_search_bfd_init
10139 if test "$ac_res" != no; then
10140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10144 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10145 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10146 if test "${ac_cv_search_op_open_agent+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_func_search_save_LIBS=$LIBS
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10163 char op_open_agent ();
10167 return op_open_agent ();
10172 for ac_lib in '' opagent; do
10173 if test -z "$ac_lib"; then
10174 ac_res="none required"
10177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_search_op_open_agent=$ac_res
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10221 rm -f core conftest.err conftest.$ac_objext \
10223 if test "${ac_cv_search_op_open_agent+set}" = set; then
10227 if test "${ac_cv_search_op_open_agent+set}" = set; then
10230 ac_cv_search_op_open_agent=no
10232 rm conftest.$ac_ext
10233 LIBS=$ac_func_search_save_LIBS
10235 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10236 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10237 ac_res=$ac_cv_search_op_open_agent
10238 if test "$ac_res" != no; then
10239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10243 echo "Error! You need to have libopagent around."
10248 if test "${ac_cv_header_opagent_h+set}" = set; then
10249 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10250 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10251 if test "${ac_cv_header_opagent_h+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10255 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10257 # Is the header compilable?
10258 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10259 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <opagent.h>
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_compile") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_header_compiler=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_header_compiler=no
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10313 echo "${ECHO_T}$ac_header_compiler" >&6; }
10315 # Is the header present?
10316 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10317 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 #include <opagent.h>
10326 if { (ac_try="$ac_cpp conftest.$ac_ext"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } >/dev/null; then
10339 if test -s conftest.err; then
10340 ac_cpp_err=$ac_c_preproc_warn_flag
10341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10348 if test -z "$ac_cpp_err"; then
10349 ac_header_preproc=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_header_preproc=no
10357 rm -f conftest.err conftest.$ac_ext
10358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10359 echo "${ECHO_T}$ac_header_preproc" >&6; }
10361 # So? What about this header?
10362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10365 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10367 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10368 ac_header_preproc=yes
10371 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10372 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10374 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10376 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10378 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10380 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10382 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10384 ## ------------------------------------ ##
10385 ## Report this to http://llvm.org/bugs/ ##
10386 ## ------------------------------------ ##
10388 ) | sed "s/^/$as_me: WARNING: /" >&2
10391 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10392 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10393 if test "${ac_cv_header_opagent_h+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 ac_cv_header_opagent_h=$ac_header_preproc
10398 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10399 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10402 if test $ac_cv_header_opagent_h = yes; then
10406 echo "Error! You need to have opagent.h around."
10414 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10415 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10416 { (exit 1); exit 1; }; } ;;
10427 cat >>confdefs.h <<_ACEOF
10428 #define LLVM_USE_OPROFILE $USE_OPROFILE
10433 # Check whether --with-intel-jitevents was given.
10434 if test "${with_intel_jitevents+set}" = set; then
10435 withval=$with_intel_jitevents;
10437 yes) USE_INTEL_JITEVENTS=1
10439 no) USE_INTEL_JITEVENTS=0
10441 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10442 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10443 { (exit 1); exit 1; }; };;
10446 case $llvm_cv_os_type in
10447 Linux|Win32|Cygwin|MingW) ;;
10448 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10449 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10450 { (exit 1); exit 1; }; };;
10453 case "$llvm_cv_target_arch" in
10455 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10456 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10457 { (exit 1); exit 1; }; };;
10462 USE_INTEL_JITEVENTS=0
10468 cat >>confdefs.h <<_ACEOF
10469 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10473 for ac_prog in xml2-config
10475 # Extract the first word of "$ac_prog", so it can be a program name with args.
10476 set dummy $ac_prog; ac_word=$2
10477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10479 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 if test -n "$XML2CONFIG"; then
10483 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_prog_XML2CONFIG="$ac_prog"
10493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10503 if test -n "$XML2CONFIG"; then
10504 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10505 echo "${ECHO_T}$XML2CONFIG" >&6; }
10507 { echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6; }
10512 test -n "$XML2CONFIG" && break
10516 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10517 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10518 if test "x$XML2CONFIG" = "x"; then
10519 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10520 echo "${ECHO_T}xml2-config not found" >&6; }
10522 LIBXML2_INC=`$XML2CONFIG --cflags`
10523 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10524 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10525 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10526 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lxml2 $LIBS"
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10545 char xmlReadFile ();
10549 return xmlReadFile ();
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_lib_xml2_xmlReadFile=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_lib_xml2_xmlReadFile=no
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10601 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10602 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10604 cat >>confdefs.h <<\_ACEOF
10605 #define CLANG_HAVE_LIBXML 1
10608 LIBXML2_LIBS="-lxml2"
10621 ac_header_dirent=no
10622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 #include <sys/types.h>
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_compile") 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10662 { (case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_try") 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_try") 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 eval "$as_ac_Header=yes"
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 eval "$as_ac_Header=no"
10689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 ac_res=`eval echo '${'$as_ac_Header'}'`
10692 { echo "$as_me:$LINENO: result: $ac_res" >&5
10693 echo "${ECHO_T}$ac_res" >&6; }
10694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10695 cat >>confdefs.h <<_ACEOF
10696 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10699 ac_header_dirent=$ac_hdr; break
10703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10704 if test $ac_header_dirent = dirent.h; then
10705 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10706 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10707 if test "${ac_cv_search_opendir+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_func_search_save_LIBS=$LIBS
10711 cat >conftest.$ac_ext <<_ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10718 /* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10733 for ac_lib in '' dir; do
10734 if test -z "$ac_lib"; then
10735 ac_res="none required"
10738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (ac_try="$ac_link"
10742 case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_link") 2>conftest.er1
10749 grep -v '^ *+' conftest.er1 >conftest.err
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_search_opendir=$ac_res
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10782 rm -f core conftest.err conftest.$ac_objext \
10784 if test "${ac_cv_search_opendir+set}" = set; then
10788 if test "${ac_cv_search_opendir+set}" = set; then
10791 ac_cv_search_opendir=no
10793 rm conftest.$ac_ext
10794 LIBS=$ac_func_search_save_LIBS
10796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10798 ac_res=$ac_cv_search_opendir
10799 if test "$ac_res" != no; then
10800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10805 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10807 if test "${ac_cv_search_opendir+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 ac_func_search_save_LIBS=$LIBS
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10833 for ac_lib in '' x; do
10834 if test -z "$ac_lib"; then
10835 ac_res="none required"
10838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_search_opendir=$ac_res
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10882 rm -f core conftest.err conftest.$ac_objext \
10884 if test "${ac_cv_search_opendir+set}" = set; then
10888 if test "${ac_cv_search_opendir+set}" = set; then
10891 ac_cv_search_opendir=no
10893 rm conftest.$ac_ext
10894 LIBS=$ac_func_search_save_LIBS
10896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10898 ac_res=$ac_cv_search_opendir
10899 if test "$ac_res" != no; then
10900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10906 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10907 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10908 if test "${ac_cv_header_mmap_anon+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 ac_cpp='$CPP $CPPFLAGS'
10913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #include <sys/mman.h>
10924 #include <unistd.h>
10929 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_header_mmap_anon=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_cv_header_mmap_anon=no
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10986 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10987 if test "$ac_cv_header_mmap_anon" = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_MMAP_ANONYMOUS 1
10995 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10996 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10997 if test "${ac_cv_header_stat_broken+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <sys/types.h>
11007 #include <sys/stat.h>
11009 #if defined S_ISBLK && defined S_IFDIR
11010 # if S_ISBLK (S_IFDIR)
11015 #if defined S_ISBLK && defined S_IFCHR
11016 # if S_ISBLK (S_IFCHR)
11021 #if defined S_ISLNK && defined S_IFREG
11022 # if S_ISLNK (S_IFREG)
11027 #if defined S_ISSOCK && defined S_IFREG
11028 # if S_ISSOCK (S_IFREG)
11034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11035 $EGREP "You lose" >/dev/null 2>&1; then
11036 ac_cv_header_stat_broken=yes
11038 ac_cv_header_stat_broken=no
11043 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11044 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11045 if test $ac_cv_header_stat_broken = yes; then
11047 cat >>confdefs.h <<\_ACEOF
11048 #define STAT_MACROS_BROKEN 1
11053 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <sys/types.h>
11065 #include <sys/wait.h>
11066 #ifndef WEXITSTATUS
11067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_header_sys_wait_h=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_cv_header_sys_wait_h=no
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11128 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11129 if test $ac_cv_header_sys_wait_h = yes; then
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_SYS_WAIT_H 1
11137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11139 if test "${ac_cv_header_time+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 #include <sys/types.h>
11149 #include <sys/time.h>
11155 if ((struct tm *) 0)
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_header_time=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_cv_header_time=no
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11206 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11207 if test $ac_cv_header_time = yes; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define TIME_WITH_SYS_TIME 1
11217 ac_cpp='$CXXCPP $CPPFLAGS'
11218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11223 for ac_header in cxxabi.h
11225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <stddef.h>
11240 #include <$ac_header>
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_compile") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 eval "$as_ac_Header=yes"
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 eval "$as_ac_Header=no"
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11299 ac_cpp='$CPP $CPPFLAGS'
11300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11310 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ## ------------------------------------ ##
11451 ## Report this to http://llvm.org/bugs/ ##
11452 ## ------------------------------------ ##
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11484 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494 { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11497 # Is the header compilable?
11498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 $ac_includes_default
11507 #include <$ac_header>
11509 rm -f conftest.$ac_objext
11510 if { (ac_try="$ac_compile"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_compile") 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_header_compiler=yes
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_header_compiler=no
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 echo "${ECHO_T}$ac_header_compiler" >&6; }
11555 # Is the header present?
11556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 #include <$ac_header>
11566 if { (ac_try="$ac_cpp conftest.$ac_ext"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11574 grep -v '^ *+' conftest.er1 >conftest.err
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } >/dev/null; then
11579 if test -s conftest.err; then
11580 ac_cpp_err=$ac_c_preproc_warn_flag
11581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11588 if test -z "$ac_cpp_err"; then
11589 ac_header_preproc=yes
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_header_preproc=no
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601 # So? What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11608 ac_header_preproc=yes
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11624 ## ------------------------------------ ##
11625 ## Report this to http://llvm.org/bugs/ ##
11626 ## ------------------------------------ ##
11628 ) | sed "s/^/$as_me: WARNING: /" >&2
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 eval "$as_ac_Header=\$ac_header_preproc"
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11653 for ac_header in utime.h
11655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11666 # Is the header compilable?
11667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11676 #include <$ac_header>
11678 rm -f conftest.$ac_objext
11679 if { (ac_try="$ac_compile"
11680 case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_compile") 2>conftest.er1
11687 grep -v '^ *+' conftest.er1 >conftest.err
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708 (eval "$ac_try") 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 ac_header_compiler=yes
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_compiler=no
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11722 echo "${ECHO_T}$ac_header_compiler" >&6; }
11724 # Is the header present?
11725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 #include <$ac_header>
11735 if { (ac_try="$ac_cpp conftest.$ac_ext"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } >/dev/null; then
11748 if test -s conftest.err; then
11749 ac_cpp_err=$ac_c_preproc_warn_flag
11750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11757 if test -z "$ac_cpp_err"; then
11758 ac_header_preproc=yes
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_header_preproc=no
11766 rm -f conftest.err conftest.$ac_ext
11767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11768 echo "${ECHO_T}$ac_header_preproc" >&6; }
11770 # So? What about this header?
11771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11777 ac_header_preproc=yes
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11793 ## ------------------------------------ ##
11794 ## Report this to http://llvm.org/bugs/ ##
11795 ## ------------------------------------ ##
11797 ) | sed "s/^/$as_me: WARNING: /" >&2
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 eval "$as_ac_Header=\$ac_header_preproc"
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11826 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 ac_res=`eval echo '${'$as_ac_Header'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11839 # Is the header compilable?
11840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 #include <$ac_header>
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_compile") 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11875 { ac_try='test -s conftest.$ac_objext'
11876 { (case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_try") 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_header_compiler=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_compiler=no
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <$ac_header>
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } >/dev/null; then
11921 if test -s conftest.err; then
11922 ac_cpp_err=$ac_c_preproc_warn_flag
11923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11930 if test -z "$ac_cpp_err"; then
11931 ac_header_preproc=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_header_preproc=no
11939 rm -f conftest.err conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11941 echo "${ECHO_T}$ac_header_preproc" >&6; }
11943 # So? What about this header?
11944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11950 ac_header_preproc=yes
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11966 ## ------------------------------------ ##
11967 ## Report this to http://llvm.org/bugs/ ##
11968 ## ------------------------------------ ##
11970 ) | sed "s/^/$as_me: WARNING: /" >&2
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 eval "$as_ac_Header=\$ac_header_preproc"
11980 ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12010 # Is the header compilable?
12011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12013 cat >conftest.$ac_ext <<_ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 $ac_includes_default
12020 #include <$ac_header>
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_header_compiler=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_header_compiler=no
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12066 echo "${ECHO_T}$ac_header_compiler" >&6; }
12068 # Is the header present?
12069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <$ac_header>
12079 if { (ac_try="$ac_cpp conftest.$ac_ext"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev/null; then
12092 if test -s conftest.err; then
12093 ac_cpp_err=$ac_c_preproc_warn_flag
12094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 ac_header_preproc=no
12110 rm -f conftest.err conftest.$ac_ext
12111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6; }
12114 # So? What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12121 ac_header_preproc=yes
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12137 ## ------------------------------------ ##
12138 ## Report this to http://llvm.org/bugs/ ##
12139 ## ------------------------------------ ##
12141 ) | sed "s/^/$as_me: WARNING: /" >&2
12144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 eval "$as_ac_Header=\$ac_header_preproc"
12151 ac_res=`eval echo '${'$as_ac_Header'}'`
12152 { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166 for ac_header in valgrind/valgrind.h
12168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_res=`eval echo '${'$as_ac_Header'}'`
12176 { echo "$as_me:$LINENO: result: $ac_res" >&5
12177 echo "${ECHO_T}$ac_res" >&6; }
12179 # Is the header compilable?
12180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 #include <$ac_header>
12191 rm -f conftest.$ac_objext
12192 if { (ac_try="$ac_compile"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_compile") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_header_compiler=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_header_compiler=no
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235 echo "${ECHO_T}$ac_header_compiler" >&6; }
12237 # Is the header present?
12238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <$ac_header>
12248 if { (ac_try="$ac_cpp conftest.$ac_ext"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } >/dev/null; then
12261 if test -s conftest.err; then
12262 ac_cpp_err=$ac_c_preproc_warn_flag
12263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12270 if test -z "$ac_cpp_err"; then
12271 ac_header_preproc=yes
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_header_preproc=no
12279 rm -f conftest.err conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12281 echo "${ECHO_T}$ac_header_preproc" >&6; }
12283 # So? What about this header?
12284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12290 ac_header_preproc=yes
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12306 ## ------------------------------------ ##
12307 ## Report this to http://llvm.org/bugs/ ##
12308 ## ------------------------------------ ##
12310 ) | sed "s/^/$as_me: WARNING: /" >&2
12313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 eval "$as_ac_Header=\$ac_header_preproc"
12320 ac_res=`eval echo '${'$as_ac_Header'}'`
12321 { echo "$as_me:$LINENO: result: $ac_res" >&5
12322 echo "${ECHO_T}$ac_res" >&6; }
12325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12326 cat >>confdefs.h <<_ACEOF
12327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12335 for ac_header in fenv.h
12337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_res=`eval echo '${'$as_ac_Header'}'`
12345 { echo "$as_me:$LINENO: result: $ac_res" >&5
12346 echo "${ECHO_T}$ac_res" >&6; }
12348 # Is the header compilable?
12349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 $ac_includes_default
12358 #include <$ac_header>
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 ac_header_compiler=yes
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_header_compiler=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <$ac_header>
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } >/dev/null; then
12430 if test -s conftest.err; then
12431 ac_cpp_err=$ac_c_preproc_warn_flag
12432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12439 if test -z "$ac_cpp_err"; then
12440 ac_header_preproc=yes
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_header_preproc=no
12448 rm -f conftest.err conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12450 echo "${ECHO_T}$ac_header_preproc" >&6; }
12452 # So? What about this header?
12453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12459 ac_header_preproc=yes
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12475 ## ------------------------------------ ##
12476 ## Report this to http://llvm.org/bugs/ ##
12477 ## ------------------------------------ ##
12479 ) | sed "s/^/$as_me: WARNING: /" >&2
12482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 eval "$as_ac_Header=\$ac_header_preproc"
12489 ac_res=`eval echo '${'$as_ac_Header'}'`
12490 { echo "$as_me:$LINENO: result: $ac_res" >&5
12491 echo "${ECHO_T}$ac_res" >&6; }
12494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12503 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12504 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12505 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12519 #ifndef FE_ALL_EXCEPT
12520 char *p = (char *) FE_ALL_EXCEPT;
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_compile") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_have_decl_FE_ALL_EXCEPT=no
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12573 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12574 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_DECL_FE_ALL_EXCEPT 1
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_DECL_FE_ALL_EXCEPT 0
12588 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12589 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12590 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12605 char *p = (char *) FE_INEXACT;
12613 rm -f conftest.$ac_objext
12614 if { (ac_try="$ac_compile"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_cv_have_decl_FE_INEXACT=yes
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 ac_cv_have_decl_FE_INEXACT=no
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12658 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12659 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662 #define HAVE_DECL_FE_INEXACT 1
12667 cat >>confdefs.h <<_ACEOF
12668 #define HAVE_DECL_FE_INEXACT 0
12675 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12677 for ac_header in pthread.h
12679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_res=`eval echo '${'$as_ac_Header'}'`
12687 { echo "$as_me:$LINENO: result: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12690 # Is the header compilable?
12691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 $ac_includes_default
12700 #include <$ac_header>
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717 { (case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_try") 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_try") 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_header_compiler=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_header_compiler=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12746 echo "${ECHO_T}$ac_header_compiler" >&6; }
12748 # Is the header present?
12749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #include <$ac_header>
12759 if { (ac_try="$ac_cpp conftest.$ac_ext"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null; then
12772 if test -s conftest.err; then
12773 ac_cpp_err=$ac_c_preproc_warn_flag
12774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12781 if test -z "$ac_cpp_err"; then
12782 ac_header_preproc=yes
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ac_header_preproc=no
12790 rm -f conftest.err conftest.$ac_ext
12791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6; }
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc=yes
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12817 ## ------------------------------------ ##
12818 ## Report this to http://llvm.org/bugs/ ##
12819 ## ------------------------------------ ##
12821 ) | sed "s/^/$as_me: WARNING: /" >&2
12824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 eval "$as_ac_Header=\$ac_header_preproc"
12831 ac_res=`eval echo '${'$as_ac_Header'}'`
12832 { echo "$as_me:$LINENO: result: $ac_res" >&5
12833 echo "${ECHO_T}$ac_res" >&6; }
12836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12853 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12855 for ac_header in zlib.h
12857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 ac_res=`eval echo '${'$as_ac_Header'}'`
12865 { echo "$as_me:$LINENO: result: $ac_res" >&5
12866 echo "${ECHO_T}$ac_res" >&6; }
12868 # Is the header compilable?
12869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12871 cat >conftest.$ac_ext <<_ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 #include <$ac_header>
12880 rm -f conftest.$ac_objext
12881 if { (ac_try="$ac_compile"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_compile") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12904 { ac_try='test -s conftest.$ac_objext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_header_compiler=yes
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_header_compiler=no
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12924 echo "${ECHO_T}$ac_header_compiler" >&6; }
12926 # Is the header present?
12927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 #include <$ac_header>
12937 if { (ac_try="$ac_cpp conftest.$ac_ext"
12938 case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } >/dev/null; then
12950 if test -s conftest.err; then
12951 ac_cpp_err=$ac_c_preproc_warn_flag
12952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12959 if test -z "$ac_cpp_err"; then
12960 ac_header_preproc=yes
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12965 ac_header_preproc=no
12968 rm -f conftest.err conftest.$ac_ext
12969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12970 echo "${ECHO_T}$ac_header_preproc" >&6; }
12972 # So? What about this header?
12973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12979 ac_header_preproc=yes
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12995 ## ------------------------------------ ##
12996 ## Report this to http://llvm.org/bugs/ ##
12997 ## ------------------------------------ ##
12999 ) | sed "s/^/$as_me: WARNING: /" >&2
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 eval "$as_ac_Header=\$ac_header_preproc"
13009 ac_res=`eval echo '${'$as_ac_Header'}'`
13010 { echo "$as_me:$LINENO: result: $ac_res" >&5
13011 echo "${ECHO_T}$ac_res" >&6; }
13014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13015 cat >>confdefs.h <<_ACEOF
13016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13032 if test "$llvm_cv_enable_libffi" = "yes" ; then
13035 for ac_header in ffi.h ffi/ffi.h
13037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 ac_res=`eval echo '${'$as_ac_Header'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13048 # Is the header compilable?
13049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 $ac_includes_default
13058 #include <$ac_header>
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest.$ac_objext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_header_compiler=yes
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_header_compiler=no
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13104 echo "${ECHO_T}$ac_header_compiler" >&6; }
13106 # Is the header present?
13107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <$ac_header>
13117 if { (ac_try="$ac_cpp conftest.$ac_ext"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } >/dev/null; then
13130 if test -s conftest.err; then
13131 ac_cpp_err=$ac_c_preproc_warn_flag
13132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13139 if test -z "$ac_cpp_err"; then
13140 ac_header_preproc=yes
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_header_preproc=no
13148 rm -f conftest.err conftest.$ac_ext
13149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150 echo "${ECHO_T}$ac_header_preproc" >&6; }
13152 # So? What about this header?
13153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc=yes
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13175 ## ------------------------------------ ##
13176 ## Report this to http://llvm.org/bugs/ ##
13177 ## ------------------------------------ ##
13179 ) | sed "s/^/$as_me: WARNING: /" >&2
13182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 eval "$as_ac_Header=\$ac_header_preproc"
13189 ac_res=`eval echo '${'$as_ac_Header'}'`
13190 { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13195 cat >>confdefs.h <<_ACEOF
13196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13206 for ac_header in CrashReporterClient.h
13208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 ac_res=`eval echo '${'$as_ac_Header'}'`
13216 { echo "$as_me:$LINENO: result: $ac_res" >&5
13217 echo "${ECHO_T}$ac_res" >&6; }
13219 # Is the header compilable?
13220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 $ac_includes_default
13229 #include <$ac_header>
13231 rm -f conftest.$ac_objext
13232 if { (ac_try="$ac_compile"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_compile") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_header_compiler=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_header_compiler=no
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6; }
13277 # Is the header present?
13278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <$ac_header>
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev/null; then
13301 if test -s conftest.err; then
13302 ac_cpp_err=$ac_c_preproc_warn_flag
13303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13310 if test -z "$ac_cpp_err"; then
13311 ac_header_preproc=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_header_preproc=no
13319 rm -f conftest.err conftest.$ac_ext
13320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13321 echo "${ECHO_T}$ac_header_preproc" >&6; }
13323 # So? What about this header?
13324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13330 ac_header_preproc=yes
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13346 ## ------------------------------------ ##
13347 ## Report this to http://llvm.org/bugs/ ##
13348 ## ------------------------------------ ##
13350 ) | sed "s/^/$as_me: WARNING: /" >&2
13353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 eval "$as_ac_Header=\$ac_header_preproc"
13360 ac_res=`eval echo '${'$as_ac_Header'}'`
13361 { echo "$as_me:$LINENO: result: $ac_res" >&5
13362 echo "${ECHO_T}$ac_res" >&6; }
13365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366 cat >>confdefs.h <<_ACEOF
13367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13375 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13376 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13377 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13385 extern const char *__crashreporter_info__;
13387 __crashreporter_info__ = "test";
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13417 { ac_try='test -s conftest$ac_exeext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13428 { echo "$as_me:$LINENO: result: yes" >&5
13429 echo "${ECHO_T}yes" >&6; }
13431 cat >>confdefs.h <<\_ACEOF
13432 #define HAVE_CRASHREPORTER_INFO 1
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13441 { echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6; }
13444 cat >>confdefs.h <<\_ACEOF
13445 #define HAVE_CRASHREPORTER_INFO 0
13451 rm -f core conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13456 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13457 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13458 if test "${ac_cv_huge_val_sanity+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 ac_cpp='$CXXCPP $CPPFLAGS'
13464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13468 ac_save_CXXFLAGS=$CXXFLAGS
13469 CXXFLAGS="$CXXFLAGS -pedantic"
13470 if test "$cross_compiling" = yes; then
13471 ac_cv_huge_val_sanity=yes
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13483 double x = HUGE_VAL; return x != x;
13488 rm -f conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_huge_val_sanity=yes
13510 echo "$as_me: program exited with status $ac_status" >&5
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ( exit $ac_status )
13515 ac_cv_huge_val_sanity=no
13517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13521 CXXFLAGS=$ac_save_CXXFLAGS
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13531 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13532 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13535 { echo "$as_me:$LINENO: checking for pid_t" >&5
13536 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13537 if test "${ac_cv_type_pid_t+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 typedef pid_t ac__type_new_;
13551 if ((ac__type_new_ *) 0)
13553 if (sizeof (ac__type_new_))
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_type_pid_t=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_cv_type_pid_t=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13605 if test $ac_cv_type_pid_t = yes; then
13609 cat >>confdefs.h <<_ACEOF
13615 { echo "$as_me:$LINENO: checking for size_t" >&5
13616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13617 if test "${ac_cv_type_size_t+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13627 typedef size_t ac__type_new_;
13631 if ((ac__type_new_ *) 0)
13633 if (sizeof (ac__type_new_))
13639 rm -f conftest.$ac_objext
13640 if { (ac_try="$ac_compile"
13641 case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_type_size_t=yes
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_cv_type_size_t=no
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13685 if test $ac_cv_type_size_t = yes; then
13689 cat >>confdefs.h <<_ACEOF
13690 #define size_t unsigned int
13696 cat >>confdefs.h <<_ACEOF
13697 #define RETSIGTYPE void
13700 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13701 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13702 if test "${ac_cv_struct_tm+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 #include <sys/types.h>
13717 struct tm *tp; tp->tm_sec;
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_struct_tm=time.h
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_cv_struct_tm=sys/time.h
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13767 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13768 if test $ac_cv_struct_tm = sys/time.h; then
13770 cat >>confdefs.h <<\_ACEOF
13771 #define TM_IN_SYS_TIME 1
13776 { echo "$as_me:$LINENO: checking for int64_t" >&5
13777 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13778 if test "${ac_cv_type_int64_t+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13788 typedef int64_t ac__type_new_;
13792 if ((ac__type_new_ *) 0)
13794 if (sizeof (ac__type_new_))
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_compile") 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_type_int64_t=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_type_int64_t=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13845 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13846 if test $ac_cv_type_int64_t = yes; then
13848 cat >>confdefs.h <<_ACEOF
13849 #define HAVE_INT64_T 1
13854 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13855 echo "$as_me: error: Type int64_t required but not found" >&2;}
13856 { (exit 1); exit 1; }; }
13859 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13860 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13861 if test "${ac_cv_type_uint64_t+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 typedef uint64_t ac__type_new_;
13875 if ((ac__type_new_ *) 0)
13877 if (sizeof (ac__type_new_))
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_compile") 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_type_uint64_t=yes
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 ac_cv_type_uint64_t=no
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13929 if test $ac_cv_type_uint64_t = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_UINT64_T 1
13937 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13938 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13939 if test "${ac_cv_type_u_int64_t+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 $ac_includes_default
13949 typedef u_int64_t ac__type_new_;
13953 if ((ac__type_new_ *) 0)
13955 if (sizeof (ac__type_new_))
13961 rm -f conftest.$ac_objext
13962 if { (ac_try="$ac_compile"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_compile") 2>conftest.er1
13970 grep -v '^ *+' conftest.er1 >conftest.err
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_type_u_int64_t=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_cv_type_u_int64_t=no
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14006 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14007 if test $ac_cv_type_u_int64_t = yes; then
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_U_INT64_T 1
14015 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14016 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14017 { (exit 1); exit 1; }; }
14026 for ac_func in backtrace getcwd
14028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14042 #define $ac_func innocuous_$ac_func
14044 /* System header to define __stub macros and hopefully few prototypes,
14045 which can conflict with char $ac_func (); below.
14046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14047 <limits.h> exists even on freestanding compilers. */
14050 # include <limits.h>
14052 # include <assert.h>
14057 /* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply. */
14064 /* The GNU C library defines this for functions which it implements
14065 to always fail with ENOSYS. Some functions are actually named
14066 something starting with __ and the normal name is an alias. */
14067 #if defined __stub_$ac_func || defined __stub___$ac_func
14074 return $ac_func ();
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 eval "$as_ac_var=yes"
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14118 eval "$as_ac_var=no"
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14124 ac_res=`eval echo '${'$as_ac_var'}'`
14125 { echo "$as_me:$LINENO: result: $ac_res" >&5
14126 echo "${ECHO_T}$ac_res" >&6; }
14127 if test `eval echo '${'$as_ac_var'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14140 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14156 #define $ac_func innocuous_$ac_func
14158 /* System header to define __stub macros and hopefully few prototypes,
14159 which can conflict with char $ac_func (); below.
14160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161 <limits.h> exists even on freestanding compilers. */
14164 # include <limits.h>
14166 # include <assert.h>
14171 /* Override any GCC internal prototype to avoid an error.
14172 Use char because int might match the return type of a GCC
14173 builtin and then its argument prototype would still apply. */
14178 /* The GNU C library defines this for functions which it implements
14179 to always fail with ENOSYS. Some functions are actually named
14180 something starting with __ and the normal name is an alias. */
14181 #if defined __stub_$ac_func || defined __stub___$ac_func
14188 return $ac_func ();
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14217 { ac_try='test -s conftest$ac_exeext'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 eval "$as_ac_var=yes"
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 eval "$as_ac_var=no"
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14238 ac_res=`eval echo '${'$as_ac_var'}'`
14239 { echo "$as_me:$LINENO: result: $ac_res" >&5
14240 echo "${ECHO_T}$ac_res" >&6; }
14241 if test `eval echo '${'$as_ac_var'}'` = yes; then
14242 cat >>confdefs.h <<_ACEOF
14243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14252 for ac_func in isatty mkdtemp mkstemp
14254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14268 #define $ac_func innocuous_$ac_func
14270 /* System header to define __stub macros and hopefully few prototypes,
14271 which can conflict with char $ac_func (); below.
14272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14273 <limits.h> exists even on freestanding compilers. */
14276 # include <limits.h>
14278 # include <assert.h>
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14290 /* The GNU C library defines this for functions which it implements
14291 to always fail with ENOSYS. Some functions are actually named
14292 something starting with __ and the normal name is an alias. */
14293 #if defined __stub_$ac_func || defined __stub___$ac_func
14300 return $ac_func ();
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 eval "$as_ac_var=yes"
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_var=no"
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14350 ac_res=`eval echo '${'$as_ac_var'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_var'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14367 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14383 #define $ac_func innocuous_$ac_func
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func (); below.
14387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388 <limits.h> exists even on freestanding compilers. */
14391 # include <limits.h>
14393 # include <assert.h>
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14405 /* The GNU C library defines this for functions which it implements
14406 to always fail with ENOSYS. Some functions are actually named
14407 something starting with __ and the normal name is an alias. */
14408 #if defined __stub_$ac_func || defined __stub___$ac_func
14415 return $ac_func ();
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 eval "$as_ac_var=yes"
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 eval "$as_ac_var=no"
14462 rm -f core conftest.err conftest.$ac_objext \
14463 conftest$ac_exeext conftest.$ac_ext
14465 ac_res=`eval echo '${'$as_ac_var'}'`
14466 { echo "$as_me:$LINENO: result: $ac_res" >&5
14467 echo "${ECHO_T}$ac_res" >&6; }
14468 if test `eval echo '${'$as_ac_var'}'` = yes; then
14469 cat >>confdefs.h <<_ACEOF
14470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14479 for ac_func in strerror strerror_r setenv
14481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 cat >conftest.$ac_ext <<_ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h. */
14493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14495 #define $ac_func innocuous_$ac_func
14497 /* System header to define __stub macros and hopefully few prototypes,
14498 which can conflict with char $ac_func (); below.
14499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14500 <limits.h> exists even on freestanding compilers. */
14503 # include <limits.h>
14505 # include <assert.h>
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14517 /* The GNU C library defines this for functions which it implements
14518 to always fail with ENOSYS. Some functions are actually named
14519 something starting with __ and the normal name is an alias. */
14520 #if defined __stub_$ac_func || defined __stub___$ac_func
14527 return $ac_func ();
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 eval "$as_ac_var=yes"
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 eval "$as_ac_var=no"
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14577 ac_res=`eval echo '${'$as_ac_var'}'`
14578 { echo "$as_me:$LINENO: result: $ac_res" >&5
14579 echo "${ECHO_T}$ac_res" >&6; }
14580 if test `eval echo '${'$as_ac_var'}'` = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14592 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14608 #define $ac_func innocuous_$ac_func
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char $ac_func (); below.
14612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613 <limits.h> exists even on freestanding compilers. */
14616 # include <limits.h>
14618 # include <assert.h>
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14630 /* The GNU C library defines this for functions which it implements
14631 to always fail with ENOSYS. Some functions are actually named
14632 something starting with __ and the normal name is an alias. */
14633 #if defined __stub_$ac_func || defined __stub___$ac_func
14640 return $ac_func ();
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 eval "$as_ac_var=yes"
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 eval "$as_ac_var=no"
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14690 ac_res=`eval echo '${'$as_ac_var'}'`
14691 { echo "$as_me:$LINENO: result: $ac_res" >&5
14692 echo "${ECHO_T}$ac_res" >&6; }
14693 if test `eval echo '${'$as_ac_var'}'` = yes; then
14694 cat >>confdefs.h <<_ACEOF
14695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14706 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 cat >conftest.$ac_ext <<_ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14722 #define $ac_func innocuous_$ac_func
14724 /* System header to define __stub macros and hopefully few prototypes,
14725 which can conflict with char $ac_func (); below.
14726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14727 <limits.h> exists even on freestanding compilers. */
14730 # include <limits.h>
14732 # include <assert.h>
14737 /* Override any GCC internal prototype to avoid an error.
14738 Use char because int might match the return type of a GCC
14739 builtin and then its argument prototype would still apply. */
14744 /* The GNU C library defines this for functions which it implements
14745 to always fail with ENOSYS. Some functions are actually named
14746 something starting with __ and the normal name is an alias. */
14747 #if defined __stub_$ac_func || defined __stub___$ac_func
14754 return $ac_func ();
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14783 { ac_try='test -s conftest$ac_exeext'
14784 { (case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_try") 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 eval "$as_ac_var=yes"
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 eval "$as_ac_var=no"
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14804 ac_res=`eval echo '${'$as_ac_var'}'`
14805 { echo "$as_me:$LINENO: result: $ac_res" >&5
14806 echo "${ECHO_T}$ac_res" >&6; }
14807 if test `eval echo '${'$as_ac_var'}'` = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14817 for ac_func in futimes futimens
14819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14833 #define $ac_func innocuous_$ac_func
14835 /* System header to define __stub macros and hopefully few prototypes,
14836 which can conflict with char $ac_func (); below.
14837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14838 <limits.h> exists even on freestanding compilers. */
14841 # include <limits.h>
14843 # include <assert.h>
14848 /* Override any GCC internal prototype to avoid an error.
14849 Use char because int might match the return type of a GCC
14850 builtin and then its argument prototype would still apply. */
14855 /* The GNU C library defines this for functions which it implements
14856 to always fail with ENOSYS. Some functions are actually named
14857 something starting with __ and the normal name is an alias. */
14858 #if defined __stub_$ac_func || defined __stub___$ac_func
14865 return $ac_func ();
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (ac_try="$ac_link"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_link") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14894 { ac_try='test -s conftest$ac_exeext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 eval "$as_ac_var=yes"
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 eval "$as_ac_var=no"
14912 rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14915 ac_res=`eval echo '${'$as_ac_var'}'`
14916 { echo "$as_me:$LINENO: result: $ac_res" >&5
14917 echo "${ECHO_T}$ac_res" >&6; }
14918 if test `eval echo '${'$as_ac_var'}'` = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14926 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14927 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14928 if test "${llvm_cv_c_printf_a+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14937 if test "$cross_compiling" = yes; then
14938 llvmac_cv_c_printf_a=no
14940 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14949 #include <stdlib.h>
14955 volatile double A, B;
14959 sprintf(Buffer, "%a", A);
14963 if (A != 0x1.999999999999ap-4)
14970 rm -f conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 llvm_cv_c_printf_a=yes
14992 echo "$as_me: program exited with status $ac_status" >&5
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ( exit $ac_status )
14997 llvmac_cv_c_printf_a=no
14999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15004 ac_cpp='$CPP $CPPFLAGS'
15005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15010 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15011 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15012 if test "$llvm_cv_c_printf_a" = "yes"; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_PRINTF_A 1
15022 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15023 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15024 if test "${ac_cv_func_rand48+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 ac_cpp='$CXXCPP $CPPFLAGS'
15030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <stdlib.h>
15044 srand48(0);lrand48();drand48();
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
15074 { (case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_try") 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_cv_func_rand48=yes
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 ac_cv_func_rand48=no
15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15100 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15101 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15103 if test "$ac_cv_func_rand48" = "yes" ; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_RAND48 1
15112 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15113 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15114 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 $ac_includes_default
15128 char *p = (char *) arc4random;
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_compile") 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_have_decl_arc4random=yes
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_cv_have_decl_arc4random=no
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15181 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15182 if test $ac_cv_have_decl_arc4random = yes; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_ARC4RANDOM 1
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_ARC4RANDOM 0
15199 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15200 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15201 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 $ac_includes_default
15215 char *p = (char *) strerror_s;
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_compile") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15247 { ac_try='test -s conftest.$ac_objext'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_cv_have_decl_strerror_s=yes
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_cv_have_decl_strerror_s=no
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15268 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15269 if test $ac_cv_have_decl_strerror_s = yes; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_DECL_STRERROR_S 1
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_DECL_STRERROR_S 0
15286 if test "$llvm_cv_os_type" = "MingW" ; then
15287 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15288 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15289 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 ac_check_lib_save_LIBS=$LIBS
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15340 { ac_try='test -s conftest$ac_exeext'
15341 { (case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_try") 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_lib_gcc__alloca=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_cv_lib_gcc__alloca=no
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15363 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15364 if test $ac_cv_lib_gcc__alloca = yes; then
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE__ALLOCA 1
15372 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15373 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15374 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 ac_check_lib_save_LIBS=$LIBS
15379 cat >conftest.$ac_ext <<_ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h. */
15386 /* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
15396 return __alloca ();
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (ac_try="$ac_link"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_link") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15425 { ac_try='test -s conftest$ac_exeext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_lib_gcc___alloca=yes
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_lib_gcc___alloca=no
15443 rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 LIBS=$ac_check_lib_save_LIBS
15447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15448 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15449 if test $ac_cv_lib_gcc___alloca = yes; then
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE___ALLOCA 1
15457 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15458 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15459 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 ac_check_lib_save_LIBS=$LIBS
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15481 return __chkstk ();
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_try") 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_cv_lib_gcc___chkstk=yes
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 ac_cv_lib_gcc___chkstk=no
15528 rm -f core conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 LIBS=$ac_check_lib_save_LIBS
15532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15533 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15534 if test $ac_cv_lib_gcc___chkstk = yes; then
15536 cat >>confdefs.h <<\_ACEOF
15537 #define HAVE___CHKSTK 1
15542 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15543 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15544 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 ac_check_lib_save_LIBS=$LIBS
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15562 char __chkstk_ms ();
15566 return __chkstk_ms ();
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_link") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15595 { ac_try='test -s conftest$ac_exeext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_cv_lib_gcc___chkstk_ms=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_lib_gcc___chkstk_ms=no
15613 rm -f core conftest.err conftest.$ac_objext \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15618 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15619 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15621 cat >>confdefs.h <<\_ACEOF
15622 #define HAVE___CHKSTK_MS 1
15627 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15628 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15629 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 ac_check_lib_save_LIBS=$LIBS
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15641 /* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15651 return ___chkstk ();
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (ac_try="$ac_link"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_link") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_lib_gcc____chkstk=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_lib_gcc____chkstk=no
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15703 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15704 if test $ac_cv_lib_gcc____chkstk = yes; then
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE____CHKSTK 1
15712 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15713 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15714 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_check_lib_save_LIBS=$LIBS
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15732 char ___chkstk_ms ();
15736 return ___chkstk_ms ();
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>conftest.er1
15750 grep -v '^ *+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
15755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_lib_gcc____chkstk_ms=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_lib_gcc____chkstk_ms=no
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15788 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15789 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE____CHKSTK_MS 1
15798 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15799 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15800 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 ac_check_lib_save_LIBS=$LIBS
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15812 /* Override any GCC internal prototype to avoid an error.
15813 Use char because int might match the return type of a GCC
15814 builtin and then its argument prototype would still apply. */
15822 return __ashldi3 ();
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (ac_try="$ac_link"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_link") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15851 { ac_try='test -s conftest$ac_exeext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_cv_lib_gcc___ashldi3=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_cv_lib_gcc___ashldi3=no
15869 rm -f core conftest.err conftest.$ac_objext \
15870 conftest$ac_exeext conftest.$ac_ext
15871 LIBS=$ac_check_lib_save_LIBS
15873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15874 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15875 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15877 cat >>confdefs.h <<\_ACEOF
15878 #define HAVE___ASHLDI3 1
15883 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15884 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15885 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 ac_check_lib_save_LIBS=$LIBS
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15897 /* Override any GCC internal prototype to avoid an error.
15898 Use char because int might match the return type of a GCC
15899 builtin and then its argument prototype would still apply. */
15907 return __ashrdi3 ();
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (ac_try="$ac_link"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_link") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_try") 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_lib_gcc___ashrdi3=yes
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ac_cv_lib_gcc___ashrdi3=no
15954 rm -f core conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_check_lib_save_LIBS
15958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15959 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15960 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE___ASHRDI3 1
15968 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15969 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15970 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 ac_check_lib_save_LIBS=$LIBS
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15992 return __divdi3 ();
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_link") 2>conftest.er1
16006 grep -v '^ *+' conftest.er1 >conftest.err
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16021 { ac_try='test -s conftest$ac_exeext'
16022 { (case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027 (eval "$ac_try") 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_lib_gcc___divdi3=yes
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_cv_lib_gcc___divdi3=no
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16044 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16045 if test $ac_cv_lib_gcc___divdi3 = yes; then
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE___DIVDI3 1
16053 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16054 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16055 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 ac_check_lib_save_LIBS=$LIBS
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16077 return __fixdfdi ();
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_link") 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16106 { ac_try='test -s conftest$ac_exeext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_lib_gcc___fixdfdi=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_cv_lib_gcc___fixdfdi=no
16124 rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16129 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16130 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE___FIXDFDI 1
16138 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16139 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16140 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_check_lib_save_LIBS=$LIBS
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16152 /* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
16162 return __fixsfdi ();
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (ac_try="$ac_link"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_link") 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16191 { ac_try='test -s conftest$ac_exeext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_lib_gcc___fixsfdi=yes
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_cv_lib_gcc___fixsfdi=no
16209 rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16214 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16215 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16217 cat >>confdefs.h <<\_ACEOF
16218 #define HAVE___FIXSFDI 1
16223 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16224 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16225 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 ac_check_lib_save_LIBS=$LIBS
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16237 /* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
16243 char __floatdidf ();
16247 return __floatdidf ();
16252 rm -f conftest.$ac_objext conftest$ac_exeext
16253 if { (ac_try="$ac_link"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_link") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16276 { ac_try='test -s conftest$ac_exeext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_lib_gcc___floatdidf=yes
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 ac_cv_lib_gcc___floatdidf=no
16294 rm -f core conftest.err conftest.$ac_objext \
16295 conftest$ac_exeext conftest.$ac_ext
16296 LIBS=$ac_check_lib_save_LIBS
16298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16299 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16300 if test $ac_cv_lib_gcc___floatdidf = yes; then
16302 cat >>confdefs.h <<\_ACEOF
16303 #define HAVE___FLOATDIDF 1
16308 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16309 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16310 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 ac_check_lib_save_LIBS=$LIBS
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16322 /* Override any GCC internal prototype to avoid an error.
16323 Use char because int might match the return type of a GCC
16324 builtin and then its argument prototype would still apply. */
16332 return __lshrdi3 ();
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_link") 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_cv_lib_gcc___lshrdi3=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_cv_lib_gcc___lshrdi3=no
16379 rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381 LIBS=$ac_check_lib_save_LIBS
16383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16384 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16385 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE___LSHRDI3 1
16393 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16394 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16395 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 ac_check_lib_save_LIBS=$LIBS
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16407 /* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
16417 return __moddi3 ();
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_link") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16446 { ac_try='test -s conftest$ac_exeext'
16447 { (case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_try") 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_cv_lib_gcc___moddi3=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_cv_lib_gcc___moddi3=no
16464 rm -f core conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16466 LIBS=$ac_check_lib_save_LIBS
16468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16469 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16470 if test $ac_cv_lib_gcc___moddi3 = yes; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE___MODDI3 1
16478 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16479 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16480 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 ac_check_lib_save_LIBS=$LIBS
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16492 /* Override any GCC internal prototype to avoid an error.
16493 Use char because int might match the return type of a GCC
16494 builtin and then its argument prototype would still apply. */
16502 return __udivdi3 ();
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>conftest.er1
16516 grep -v '^ *+' conftest.er1 >conftest.err
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_try") 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_lib_gcc___udivdi3=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_gcc___udivdi3=no
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16554 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16555 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE___UDIVDI3 1
16563 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16564 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16565 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_check_lib_save_LIBS=$LIBS
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16587 return __umoddi3 ();
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_lib_gcc___umoddi3=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_lib_gcc___umoddi3=no
16634 rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16639 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16640 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE___UMODDI3 1
16649 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16650 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16651 if test "${ac_cv_lib_gcc___main+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 ac_check_lib_save_LIBS=$LIBS
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_lib_gcc___main=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_lib_gcc___main=no
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16725 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16726 if test $ac_cv_lib_gcc___main = yes; then
16728 cat >>confdefs.h <<\_ACEOF
16729 #define HAVE___MAIN 1
16734 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16735 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16736 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 ac_check_lib_save_LIBS=$LIBS
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16748 /* Override any GCC internal prototype to avoid an error.
16749 Use char because int might match the return type of a GCC
16750 builtin and then its argument prototype would still apply. */
16758 return __cmpdi2 ();
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (ac_try="$ac_link"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>conftest.er1
16772 grep -v '^ *+' conftest.er1 >conftest.err
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16787 { ac_try='test -s conftest$ac_exeext'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_try") 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_lib_gcc___cmpdi2=yes
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16802 ac_cv_lib_gcc___cmpdi2=no
16805 rm -f core conftest.err conftest.$ac_objext \
16806 conftest$ac_exeext conftest.$ac_ext
16807 LIBS=$ac_check_lib_save_LIBS
16809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16810 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16811 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16813 cat >>confdefs.h <<\_ACEOF
16814 #define HAVE___CMPDI2 1
16821 if test "$llvm_cv_os_type" = "MingW" ; then
16822 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16823 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16824 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16832 #include <windows.h>
16833 #include <imagehlp.h>
16834 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16835 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16839 rm -f conftest.$ac_objext
16840 if { (ac_try="$ac_compile"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_compile") 2>conftest.er1
16848 grep -v '^ *+' conftest.er1 >conftest.err
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16863 { ac_try='test -s conftest.$ac_objext'
16864 { (case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_try") 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16874 { echo "$as_me:$LINENO: result: yes" >&5
16875 echo "${ECHO_T}yes" >&6; }
16876 llvm_cv_win32_elmcb_pcstr="PCSTR"
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16883 { echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6; }
16885 llvm_cv_win32_elmcb_pcstr="PSTR"
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 cat >>confdefs.h <<_ACEOF
16892 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16897 if test "$llvm_cv_platform_type" = "Unix" ; then
16900 for ac_header in stdlib.h unistd.h
16902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 ac_res=`eval echo '${'$as_ac_Header'}'`
16910 { echo "$as_me:$LINENO: result: $ac_res" >&5
16911 echo "${ECHO_T}$ac_res" >&6; }
16913 # Is the header compilable?
16914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 $ac_includes_default
16923 #include <$ac_header>
16925 rm -f conftest.$ac_objext
16926 if { (ac_try="$ac_compile"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_compile") 2>conftest.er1
16934 grep -v '^ *+' conftest.er1 >conftest.err
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_header_compiler=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_compiler=no
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16969 echo "${ECHO_T}$ac_header_compiler" >&6; }
16971 # Is the header present?
16972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 #include <$ac_header>
16982 if { (ac_try="$ac_cpp conftest.$ac_ext"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } >/dev/null; then
16995 if test -s conftest.err; then
16996 ac_cpp_err=$ac_c_preproc_warn_flag
16997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17004 if test -z "$ac_cpp_err"; then
17005 ac_header_preproc=yes
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_header_preproc=no
17013 rm -f conftest.err conftest.$ac_ext
17014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015 echo "${ECHO_T}$ac_header_preproc" >&6; }
17017 # So? What about this header?
17018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024 ac_header_preproc=yes
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17040 ## ------------------------------------ ##
17041 ## Report this to http://llvm.org/bugs/ ##
17042 ## ------------------------------------ ##
17044 ) | sed "s/^/$as_me: WARNING: /" >&2
17047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 eval "$as_ac_Header=\$ac_header_preproc"
17054 ac_res=`eval echo '${'$as_ac_Header'}'`
17055 { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17069 for ac_func in getpagesize
17071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17093 # include <limits.h>
17095 # include <assert.h>
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17117 return $ac_func ();
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17146 { ac_try='test -s conftest$ac_exeext'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 eval "$as_ac_var=yes"
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 eval "$as_ac_var=no"
17164 rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17167 ac_res=`eval echo '${'$as_ac_var'}'`
17168 { echo "$as_me:$LINENO: result: $ac_res" >&5
17169 echo "${ECHO_T}$ac_res" >&6; }
17170 if test `eval echo '${'$as_ac_var'}'` = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17178 { echo "$as_me:$LINENO: checking for working mmap" >&5
17179 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17180 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 if test "$cross_compiling" = yes; then
17184 ac_cv_func_mmap_fixed_mapped=no
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 /* malloc might have been renamed as rpl_malloc. */
17196 /* Thanks to Mike Haertel and Jim Avera for this test.
17197 Here is a matrix of mmap possibilities:
17198 mmap private not fixed
17199 mmap private fixed at somewhere currently unmapped
17200 mmap private fixed at somewhere already mapped
17201 mmap shared not fixed
17202 mmap shared fixed at somewhere currently unmapped
17203 mmap shared fixed at somewhere already mapped
17204 For private mappings, we should verify that changes cannot be read()
17205 back from the file, nor mmap's back from the file at a different
17206 address. (There have been systems where private was not correctly
17207 implemented like the infamous i386 svr4.0, and systems where the
17208 VM page cache was not coherent with the file system buffer cache
17209 like early versions of FreeBSD and possibly contemporary NetBSD.)
17210 For shared mappings, we should conversely verify that changes get
17211 propagated back to all the places they're supposed to be.
17213 Grep wants private fixed already mapped.
17214 The main things grep needs to know about mmap are:
17215 * does it exist and is it safe to write into the mmap'd area
17216 * how to use it (BSD variants) */
17219 #include <sys/mman.h>
17221 #if !STDC_HEADERS && !HAVE_STDLIB_H
17225 /* This mess was copied from the GNU getpagesize.h. */
17226 #if !HAVE_GETPAGESIZE
17227 /* Assume that all systems that can run configure have sys/param.h. */
17228 # if !HAVE_SYS_PARAM_H
17229 # define HAVE_SYS_PARAM_H 1
17232 # ifdef _SC_PAGESIZE
17233 # define getpagesize() sysconf(_SC_PAGESIZE)
17234 # else /* no _SC_PAGESIZE */
17235 # if HAVE_SYS_PARAM_H
17236 # include <sys/param.h>
17237 # ifdef EXEC_PAGESIZE
17238 # define getpagesize() EXEC_PAGESIZE
17239 # else /* no EXEC_PAGESIZE */
17241 # define getpagesize() NBPG * CLSIZE
17244 # endif /* no CLSIZE */
17245 # else /* no NBPG */
17247 # define getpagesize() NBPC
17248 # else /* no NBPC */
17250 # define getpagesize() PAGESIZE
17251 # endif /* PAGESIZE */
17252 # endif /* no NBPC */
17253 # endif /* no NBPG */
17254 # endif /* no EXEC_PAGESIZE */
17255 # else /* no HAVE_SYS_PARAM_H */
17256 # define getpagesize() 8192 /* punt totally */
17257 # endif /* no HAVE_SYS_PARAM_H */
17258 # endif /* no _SC_PAGESIZE */
17260 #endif /* no HAVE_GETPAGESIZE */
17265 char *data, *data2, *data3;
17269 pagesize = getpagesize ();
17271 /* First, make a file with some known garbage in it. */
17272 data = (char *) malloc (pagesize);
17275 for (i = 0; i < pagesize; ++i)
17276 *(data + i) = rand ();
17278 fd = creat ("conftest.mmap", 0600);
17281 if (write (fd, data, pagesize) != pagesize)
17285 /* Next, try to mmap the file at a fixed address which already has
17286 something else allocated at it. If we can, also make sure that
17287 we see the same garbage. */
17288 fd = open ("conftest.mmap", O_RDWR);
17291 data2 = (char *) malloc (2 * pagesize);
17294 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17298 for (i = 0; i < pagesize; ++i)
17299 if (*(data + i) != *(data2 + i))
17302 /* Finally, make sure that changes to the mapped area do not
17303 percolate back to the file as seen by read(). (This is a bug on
17304 some variants of i386 svr4.0.) */
17305 for (i = 0; i < pagesize; ++i)
17306 *(data2 + i) = *(data2 + i) + 1;
17307 data3 = (char *) malloc (pagesize);
17310 if (read (fd, data3, pagesize) != pagesize)
17312 for (i = 0; i < pagesize; ++i)
17313 if (*(data + i) != *(data3 + i))
17319 rm -f conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17330 { (case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_try") 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_cv_func_mmap_fixed_mapped=yes
17341 echo "$as_me: program exited with status $ac_status" >&5
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 ( exit $ac_status )
17346 ac_cv_func_mmap_fixed_mapped=no
17348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17354 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17355 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_MMAP 1
17362 rm -f conftest.mmap
17364 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17365 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17366 if test "${ac_cv_func_mmap_file+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 ac_cpp='$CPP $CPPFLAGS'
17371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17375 if test "$cross_compiling" = yes; then
17376 ac_cv_func_mmap_file=no
17378 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17386 #include <sys/types.h>
17387 #include <sys/mman.h>
17395 fd = creat ("foo",0777);
17396 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17398 return (fd != (int) MAP_FAILED);
17403 rm -f conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17414 { (case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_try") 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_func_mmap_file=yes
17425 echo "$as_me: program exited with status $ac_status" >&5
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ( exit $ac_status )
17430 ac_cv_func_mmap_file=no
17432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17444 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17445 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17446 if test "$ac_cv_func_mmap_file" = yes; then
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_MMAP_FILE
17456 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17457 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17458 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 if test "$llvm_cv_os_type" = "Interix" ; then
17462 ac_cv_need_dev_zero_for_mmap=yes
17464 ac_cv_need_dev_zero_for_mmap=no
17468 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17469 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17470 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17472 cat >>confdefs.h <<\_ACEOF
17473 #define NEED_DEV_ZERO_FOR_MMAP 1
17478 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17480 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17481 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17483 if test "$ac_cv_func_mmap_file" = "no"
17485 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17486 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17490 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17491 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17498 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17507 volatile unsigned long val = 1;
17508 __sync_synchronize();
17509 __sync_val_compare_and_swap(&val, 1, 0);
17510 __sync_add_and_fetch(&val, 1);
17511 __sync_sub_and_fetch(&val, 1);
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17552 { echo "$as_me:$LINENO: result: yes" >&5
17553 echo "${ECHO_T}yes" >&6; }
17555 cat >>confdefs.h <<\_ACEOF
17556 #define LLVM_HAS_ATOMICS 1
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17565 { echo "$as_me:$LINENO: result: no" >&5
17566 echo "${ECHO_T}no" >&6; }
17568 cat >>confdefs.h <<\_ACEOF
17569 #define LLVM_HAS_ATOMICS 0
17572 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17573 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17577 rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17587 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17588 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17589 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17590 if test "${llvm_cv_linux_mixed+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 ac_cpp='$CPP $CPPFLAGS'
17595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17606 error: Not x86-64 even if uname says so!
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_compile") 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17641 { ac_try='test -s conftest.$ac_objext'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 llvm_cv_linux_mixed=no
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 llvm_cv_linux_mixed=yes
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17669 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17671 if test "$llvm_cv_linux_mixed" = "yes"; then
17672 llvm_cv_target_arch="x86"
17678 for ac_func in __dso_handle
17680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define $ac_func innocuous_$ac_func
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17702 # include <limits.h>
17704 # include <assert.h>
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17726 return $ac_func ();
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 eval "$as_ac_var=yes"
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 eval "$as_ac_var=no"
17773 rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17776 ac_res=`eval echo '${'$as_ac_var'}'`
17777 { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_var'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788 SHLIBEXT=$llvm_shlib_ext
17791 if test "${prefix}" = "NONE" ; then
17792 prefix="/usr/local"
17794 eval LLVM_PREFIX="${prefix}";
17795 eval LLVM_BINDIR="${prefix}/bin";
17796 eval LLVM_DATADIR="${prefix}/share/llvm";
17797 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17798 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17799 eval LLVM_INCLUDEDIR="${prefix}/include";
17800 eval LLVM_INFODIR="${prefix}/info";
17801 eval LLVM_MANDIR="${prefix}/man";
17802 LLVM_CONFIGTIME=`date`
17813 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17814 LLVM_CONFIGTIME="(timestamp not enabled)"
17818 cat >>confdefs.h <<_ACEOF
17819 #define LLVM_PREFIX "$LLVM_PREFIX"
17823 cat >>confdefs.h <<_ACEOF
17824 #define LLVM_BINDIR "$LLVM_BINDIR"
17828 cat >>confdefs.h <<_ACEOF
17829 #define LLVM_DATADIR "$LLVM_DATADIR"
17833 cat >>confdefs.h <<_ACEOF
17834 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17838 cat >>confdefs.h <<_ACEOF
17839 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17843 cat >>confdefs.h <<_ACEOF
17844 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17848 cat >>confdefs.h <<_ACEOF
17849 #define LLVM_INFODIR "$LLVM_INFODIR"
17853 cat >>confdefs.h <<_ACEOF
17854 #define LLVM_MANDIR "$LLVM_MANDIR"
17858 cat >>confdefs.h <<_ACEOF
17859 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17863 cat >>confdefs.h <<_ACEOF
17864 #define LLVM_HOST_TRIPLE "$host"
17868 cat >>confdefs.h <<_ACEOF
17869 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17873 if test "$BINDINGS_TO_BUILD" = auto ; then
17874 BINDINGS_TO_BUILD=""
17875 if test "x$OCAMLFIND" != x ; then
17876 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17878 if test "x$GO" != x ; then
17879 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17880 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17884 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17887 binding_prereqs_failed=0
17888 for a_binding in $BINDINGS_TO_BUILD ; do
17889 case "$a_binding" in
17891 if test "x$OCAMLFIND" = x ; then
17892 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17893 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17894 binding_prereqs_failed=1
17897 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17904 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17905 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17906 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17907 binding_prereqs_failed=1
17910 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17919 if test "x$with_ocaml_libdir" != xauto ; then
17920 OCAML_LIBDIR=$with_ocaml_libdir
17923 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17924 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17926 # ocaml stdlib is beneath our prefix; use stdlib
17927 OCAML_LIBDIR=$ocaml_stdlib
17930 # ocaml stdlib is outside our prefix; use libdir/ocaml
17931 OCAML_LIBDIR=${prefix}/lib/ocaml
17937 if test "x$GO" = x ; then
17938 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17939 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17940 binding_prereqs_failed=1
17942 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17945 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17946 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17947 binding_prereqs_failed=1
17953 if test "$binding_prereqs_failed" = 1 ; then
17954 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17955 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17956 { (exit 1); exit 1; }; }
17959 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17960 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17961 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 ac_cpp='$CXXCPP $CPPFLAGS'
17966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17970 oldcxxflags="$CXXFLAGS"
17971 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 llvm_cv_cxx_visibility_inlines_hidden=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 llvm_cv_cxx_visibility_inlines_hidden=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 CXXFLAGS="$oldcxxflags"
18032 ac_cpp='$CPP $CPPFLAGS'
18033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18040 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18041 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18042 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18045 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18050 if test "$llvm_cv_link_use_r" = "yes" ; then
18057 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18058 RDYNAMIC="-rdynamic"
18065 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18072 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18074 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18076 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18078 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18080 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18083 ac_config_files="$ac_config_files Makefile.config"
18086 ac_config_files="$ac_config_files llvm.spec"
18089 ac_config_files="$ac_config_files docs/doxygen.cfg"
18092 if test "${clang_src_root}" = ""; then
18093 clang_src_root="$srcdir/tools/clang"
18095 if test -f ${clang_src_root}/README.txt; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define CLANG_LIBDIR_SUFFIX ""
18102 configh="include/clang/Config/config.h"
18103 doxy="docs/doxygen.cfg"
18104 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18106 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18110 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18113 test "x$program_prefix" = "xNONE" && program_prefix=""
18117 ac_config_commands="$ac_config_commands setup"
18119 ac_config_commands="$ac_config_commands Makefile"
18122 ac_config_commands="$ac_config_commands Makefile.common"
18125 ac_config_commands="$ac_config_commands examples/Makefile"
18128 ac_config_commands="$ac_config_commands lib/Makefile"
18131 ac_config_commands="$ac_config_commands test/Makefile"
18134 ac_config_commands="$ac_config_commands test/Makefile.tests"
18137 ac_config_commands="$ac_config_commands unittests/Makefile"
18140 ac_config_commands="$ac_config_commands tools/Makefile"
18143 ac_config_commands="$ac_config_commands utils/Makefile"
18146 ac_config_commands="$ac_config_commands projects/Makefile"
18149 ac_config_commands="$ac_config_commands bindings/Makefile"
18152 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18156 cat >confcache <<\_ACEOF
18157 # This file is a shell script that caches the results of configure
18158 # tests run on this system so they can be shared between configure
18159 # scripts and configure runs, see configure's option --config-cache.
18160 # It is not useful on other systems. If it contains results you don't
18161 # want to keep, you may remove or edit it.
18163 # config.status only pays attention to the cache file if you give it
18164 # the --recheck option to rerun configure.
18166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18168 # following values.
18172 # The following way of writing the cache mishandles newlines in values,
18173 # but we know of no workaround that is simple, portable, and efficient.
18174 # So, we kill variables containing newlines.
18175 # Ultrix sh set writes to stderr and can't be redirected directly,
18176 # and sets the high bit in the cache file unless we assign to the vars.
18178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18179 eval ac_val=\$$ac_var
18183 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18184 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18187 _ | IFS | as_nl) ;; #(
18188 *) $as_unset $ac_var ;;
18194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18195 *${as_nl}ac_space=\ *)
18196 # `set' does not quote correctly, so add quotes (double-quote
18197 # substitution turns \\\\ into \\, and sed turns \\ into \).
18200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18203 # `set' quotes correctly as required by POSIX, so do not add quotes.
18204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18218 if test -w "$cache_file"; then
18219 test "x$cache_file" != "x/dev/null" &&
18220 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18221 echo "$as_me: updating cache $cache_file" >&6;}
18222 cat confcache >$cache_file
18224 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18225 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18231 # Let make expand exec_prefix.
18232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18234 DEFS=-DHAVE_CONFIG_H
18238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18239 # 1. Remove the extension, and $U if already installed.
18240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18241 ac_i=`echo "$ac_i" | sed "$ac_script"`
18242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18243 # will be set to the directory where LIBOBJS objects are built.
18244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18247 LIBOBJS=$ac_libobjs
18249 LTLIBOBJS=$ac_ltlibobjs
18253 : ${CONFIG_STATUS=./config.status}
18254 ac_clean_files_save=$ac_clean_files
18255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18256 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18257 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18258 cat >$CONFIG_STATUS <<_ACEOF
18260 # Generated by $as_me.
18261 # Run this file to recreate the current configuration.
18262 # Compiler output produced by configure, useful for debugging
18263 # configure, is in config.log if it exists.
18266 ac_cs_recheck=false
18268 SHELL=\${CONFIG_SHELL-$SHELL}
18271 cat >>$CONFIG_STATUS <<\_ACEOF
18272 ## --------------------- ##
18273 ## M4sh Initialization. ##
18274 ## --------------------- ##
18276 # Be Bourne compatible
18277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18280 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18281 # is contrary to our usage. Disable this feature.
18282 alias -g '${1+"$@"}'='"$@"'
18283 setopt NO_GLOB_SUBST
18285 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18287 BIN_SH=xpg4; export BIN_SH # for Tru64
18288 DUALCASE=1; export DUALCASE # for MKS sh
18292 # Avoid depending upon Character Ranges.
18293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18296 as_cr_digits='0123456789'
18297 as_cr_alnum=$as_cr_Letters$as_cr_digits
18299 # The user is always right.
18300 if test "${PATH_SEPARATOR+set}" != set; then
18301 echo "#! /bin/sh" >conf$$.sh
18302 echo "exit 0" >>conf$$.sh
18304 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18312 # Support unset when possible.
18313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18321 # We need space, tab and new line, in precisely that order. Quoting is
18322 # there to prevent editors from complaining about space-tab.
18323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18324 # splitting by setting IFS to empty value.)
18329 # Find who we are. Look in the path if we contain no directory separator.
18331 *[\\/]* ) as_myself=$0 ;;
18332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18336 test -z "$as_dir" && as_dir=.
18337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18343 # We did not find ourselves, most probably we were run as `sh COMMAND'
18344 # in which case we are not to be found in the path.
18345 if test "x$as_myself" = x; then
18348 if test ! -f "$as_myself"; then
18349 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18350 { (exit 1); exit 1; }
18353 # Work around bugs in pre-3.0 UWIN ksh.
18354 for as_var in ENV MAIL MAILPATH
18355 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18363 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18364 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18365 LC_TELEPHONE LC_TIME
18367 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18368 eval $as_var=C; export $as_var
18370 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18374 # Required to use basename.
18375 if expr a : '\(a\)' >/dev/null 2>&1 &&
18376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18383 as_basename=basename
18389 # Name of the executable.
18390 as_me=`$as_basename -- "$0" ||
18391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18392 X"$0" : 'X\(//\)$' \| \
18393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18395 sed '/^.*\/\([^/][^/]*\)\/*$/{
18414 as_lineno_1=$LINENO
18415 as_lineno_2=$LINENO
18416 test "x$as_lineno_1" != "x$as_lineno_2" &&
18417 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18420 # uniformly replaced by the line number. The first 'sed' inserts a
18421 # line-number line after each line using $LINENO; the second 'sed'
18422 # does the real work. The second script uses 'N' to pair each
18423 # line-number line with the line containing $LINENO, and appends
18424 # trailing '-' during substitution so that $LINENO is not a special
18425 # case at line end.
18426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18427 # scripts with optimization help from Paolo Bonzini. Blame Lee
18428 # E. McMahon (1931-1989) for sed's syntax. :-)
18440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18443 ' >$as_me.lineno &&
18444 chmod +x "$as_me.lineno" ||
18445 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18446 { (exit 1); exit 1; }; }
18448 # Don't try to exec as it changes $[0], causing all sort of problems
18449 # (the dirname of $[0] is not the place where we might find the
18450 # original and so on. Autoconf is especially sensitive to this).
18451 . "./$as_me.lineno"
18452 # Exit status is that of the last command.
18457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18463 ECHO_C= ECHO_N= ECHO_T=
18464 case `echo -n x` in
18466 case `echo 'x\c'` in
18467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18474 if expr a : '\(a\)' >/dev/null 2>&1 &&
18475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18481 rm -f conf$$ conf$$.exe conf$$.file
18482 if test -d conf$$.dir; then
18483 rm -f conf$$.dir/conf$$.file
18489 if ln -s conf$$.file conf$$ 2>/dev/null; then
18491 # ... but there are two gotchas:
18492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18494 # In both cases, we have to default to `cp -p'.
18495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18497 elif ln conf$$.file conf$$ 2>/dev/null; then
18502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18503 rmdir conf$$.dir 2>/dev/null
18505 if mkdir -p . 2>/dev/null; then
18508 test -d ./-p && rmdir ./-p
18512 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18513 # systems may use methods other than mode bits to determine executability.
18514 cat >conf$$.file <<_ASEOF
18518 chmod +x conf$$.file
18519 if test -x conf$$.file >/dev/null 2>&1; then
18520 as_executable_p="test -x"
18526 # Sed expression to map a string onto a valid CPP name.
18527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18529 # Sed expression to map a string onto a valid variable name.
18530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18535 # Save the log message, to keep $[0] and so on meaningful, and to
18536 # report actual input values of CONFIG_FILES etc. instead of their
18537 # values after options handling.
18539 This file was extended by LLVM $as_me 3.7.0svn, which was
18540 generated by GNU Autoconf 2.60. Invocation command line was
18542 CONFIG_FILES = $CONFIG_FILES
18543 CONFIG_HEADERS = $CONFIG_HEADERS
18544 CONFIG_LINKS = $CONFIG_LINKS
18545 CONFIG_COMMANDS = $CONFIG_COMMANDS
18548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18553 cat >>$CONFIG_STATUS <<_ACEOF
18554 # Files that config.status was made for.
18555 config_files="$ac_config_files"
18556 config_headers="$ac_config_headers"
18557 config_commands="$ac_config_commands"
18561 cat >>$CONFIG_STATUS <<\_ACEOF
18563 \`$as_me' instantiates files from templates according to the
18564 current configuration.
18566 Usage: $0 [OPTIONS] [FILE]...
18568 -h, --help print this help, then exit
18569 -V, --version print version number, then exit
18570 -q, --quiet do not print progress messages
18571 -d, --debug don't remove temporary files
18572 --recheck update $as_me by reconfiguring in the same conditions
18573 --file=FILE[:TEMPLATE]
18574 instantiate the configuration file FILE
18575 --header=FILE[:TEMPLATE]
18576 instantiate the configuration header FILE
18578 Configuration files:
18581 Configuration headers:
18584 Configuration commands:
18587 Report bugs to <bug-autoconf@gnu.org>."
18590 cat >>$CONFIG_STATUS <<_ACEOF
18592 LLVM config.status 3.7.0svn
18593 configured by $0, generated by GNU Autoconf 2.60,
18594 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18596 Copyright (C) 2006 Free Software Foundation, Inc.
18597 This config.status script is free software; the Free Software Foundation
18598 gives unlimited permission to copy, distribute and modify it."
18605 cat >>$CONFIG_STATUS <<\_ACEOF
18606 # If no file are specified by the user, then we need to provide default
18607 # value. By we need to know if files were specified by the user.
18613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18625 # Handling of the options.
18626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18629 echo "$ac_cs_version"; exit ;;
18630 --debug | --debu | --deb | --de | --d | -d )
18632 --file | --fil | --fi | --f )
18634 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18635 ac_need_defaults=false;;
18636 --header | --heade | --head | --hea )
18638 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18639 ac_need_defaults=false;;
18641 # Conflict between --help and --header
18642 { echo "$as_me: error: ambiguous option: $1
18643 Try \`$0 --help' for more information." >&2
18644 { (exit 1); exit 1; }; };;
18645 --help | --hel | -h )
18646 echo "$ac_cs_usage"; exit ;;
18647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18651 # This is an error.
18652 -*) { echo "$as_me: error: unrecognized option: $1
18653 Try \`$0 --help' for more information." >&2
18654 { (exit 1); exit 1; }; } ;;
18656 *) ac_config_targets="$ac_config_targets $1"
18657 ac_need_defaults=false ;;
18663 ac_configure_extra_args=
18665 if $ac_cs_silent; then
18667 ac_configure_extra_args="$ac_configure_extra_args --silent"
18671 cat >>$CONFIG_STATUS <<_ACEOF
18672 if \$ac_cs_recheck; then
18673 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18674 CONFIG_SHELL=$SHELL
18675 export CONFIG_SHELL
18676 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18685 ## Running $as_me. ##
18691 cat >>$CONFIG_STATUS <<_ACEOF
18695 llvm_src="${srcdir}"
18699 cat >>$CONFIG_STATUS <<\_ACEOF
18701 # Handling of arguments.
18702 for ac_config_target in $ac_config_targets
18704 case $ac_config_target in
18705 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18706 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18707 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18708 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18709 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18710 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18711 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18712 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18713 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18714 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18715 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18716 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18717 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18718 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18719 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18720 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18721 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18722 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18723 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18724 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18725 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18726 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18727 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18728 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18729 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18730 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18734 { (exit 1); exit 1; }; };;
18739 # If the user did not use the arguments to specify the items to instantiate,
18740 # then the envvar interface is used. Set only those that are not.
18741 # We use the long form for the default assignment because of an extremely
18742 # bizarre bug on SunOS 4.1.3.
18743 if $ac_need_defaults; then
18744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18749 # Have a temporary directory for convenience. Make it in the build tree
18750 # simply because there is no reason against having it here, and in addition,
18751 # creating and moving files from /tmp can sometimes cause problems.
18752 # Hook for its removal unless debugging.
18753 # Note that there is a small window in which the directory will not be cleaned:
18754 # after its creation but before its name has been assigned to `$tmp'.
18758 trap 'exit_status=$?
18759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18761 trap '{ (exit 1); exit 1; }' 1 2 13 15
18763 # Create a (secure) tmp directory for tmp files.
18766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18767 test -n "$tmp" && test -d "$tmp"
18770 tmp=./conf$$-$RANDOM
18771 (umask 077 && mkdir "$tmp")
18774 echo "$me: cannot create a temporary directory in ." >&2
18775 { (exit 1); exit 1; }
18779 # Set up the sed scripts for CONFIG_FILES section.
18782 # No need to generate the scripts if there are no CONFIG_FILES.
18783 # This happens for instance when ./config.status config.h
18784 if test -n "$CONFIG_FILES"; then
18791 for ac_last_try in false false false false false :; do
18792 cat >conf$$subs.sed <<_ACEOF
18793 SHELL!$SHELL$ac_delim
18794 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18795 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18796 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18797 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18798 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18799 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18800 exec_prefix!$exec_prefix$ac_delim
18801 prefix!$prefix$ac_delim
18802 program_transform_name!$program_transform_name$ac_delim
18803 bindir!$bindir$ac_delim
18804 sbindir!$sbindir$ac_delim
18805 libexecdir!$libexecdir$ac_delim
18806 datarootdir!$datarootdir$ac_delim
18807 datadir!$datadir$ac_delim
18808 sysconfdir!$sysconfdir$ac_delim
18809 sharedstatedir!$sharedstatedir$ac_delim
18810 localstatedir!$localstatedir$ac_delim
18811 includedir!$includedir$ac_delim
18812 oldincludedir!$oldincludedir$ac_delim
18813 docdir!$docdir$ac_delim
18814 infodir!$infodir$ac_delim
18815 htmldir!$htmldir$ac_delim
18816 dvidir!$dvidir$ac_delim
18817 pdfdir!$pdfdir$ac_delim
18818 psdir!$psdir$ac_delim
18819 libdir!$libdir$ac_delim
18820 localedir!$localedir$ac_delim
18821 mandir!$mandir$ac_delim
18822 DEFS!$DEFS$ac_delim
18823 ECHO_C!$ECHO_C$ac_delim
18824 ECHO_N!$ECHO_N$ac_delim
18825 ECHO_T!$ECHO_T$ac_delim
18826 LIBS!$LIBS$ac_delim
18827 build_alias!$build_alias$ac_delim
18828 host_alias!$host_alias$ac_delim
18829 target_alias!$target_alias$ac_delim
18830 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18831 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18832 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18833 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18834 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18836 CFLAGS!$CFLAGS$ac_delim
18837 LDFLAGS!$LDFLAGS$ac_delim
18838 CPPFLAGS!$CPPFLAGS$ac_delim
18839 ac_ct_CC!$ac_ct_CC$ac_delim
18840 EXEEXT!$EXEEXT$ac_delim
18841 OBJEXT!$OBJEXT$ac_delim
18843 CXXFLAGS!$CXXFLAGS$ac_delim
18844 ac_ct_CXX!$ac_ct_CXX$ac_delim
18846 subdirs!$subdirs$ac_delim
18847 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18848 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18849 build!$build$ac_delim
18850 build_cpu!$build_cpu$ac_delim
18851 build_vendor!$build_vendor$ac_delim
18852 build_os!$build_os$ac_delim
18853 host!$host$ac_delim
18854 host_cpu!$host_cpu$ac_delim
18855 host_vendor!$host_vendor$ac_delim
18856 host_os!$host_os$ac_delim
18857 target!$target$ac_delim
18858 target_cpu!$target_cpu$ac_delim
18859 target_vendor!$target_vendor$ac_delim
18860 target_os!$target_os$ac_delim
18862 HOST_OS!$HOST_OS$ac_delim
18863 TARGET_OS!$TARGET_OS$ac_delim
18864 LINKALL!$LINKALL$ac_delim
18865 NOLINKALL!$NOLINKALL$ac_delim
18866 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18867 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18868 ARCH!$ARCH$ac_delim
18869 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18870 HOST_ARCH!$HOST_ARCH$ac_delim
18871 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18872 BUILD_CC!$BUILD_CC$ac_delim
18873 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18874 BUILD_CXX!$BUILD_CXX$ac_delim
18875 CVSBUILD!$CVSBUILD$ac_delim
18876 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18877 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18878 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18879 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18880 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18881 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18882 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18883 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18884 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18885 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18886 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18887 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18888 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18889 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18892 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18894 elif $ac_last_try; then
18895 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18896 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18897 { (exit 1); exit 1; }; }
18899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18903 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18904 if test -n "$ac_eof"; then
18905 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18906 ac_eof=`expr $ac_eof + 1`
18909 cat >>$CONFIG_STATUS <<_ACEOF
18910 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18914 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18915 s/^/s,@/; s/!/@,|#_!!_#|/
18918 s/'"$ac_delim"'$/,g/; t
18920 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18921 ' >>$CONFIG_STATUS <conf$$subs.sed
18922 rm -f conf$$subs.sed
18923 cat >>$CONFIG_STATUS <<_ACEOF
18929 for ac_last_try in false false false false false :; do
18930 cat >conf$$subs.sed <<_ACEOF
18931 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18932 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18934 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18935 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18936 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18937 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18938 enable_searchengine!$enable_searchengine$ac_delim
18939 enable_external_search!$enable_external_search$ac_delim
18940 enable_server_based_search!$enable_server_based_search$ac_delim
18941 searchengine_url!$searchengine_url$ac_delim
18942 extra_search_mappings!$extra_search_mappings$ac_delim
18943 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18944 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18945 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18946 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18947 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18948 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18949 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18950 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18951 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18952 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18953 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18954 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18955 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18956 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18957 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18958 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18959 ENABLE_PIC!$ENABLE_PIC$ac_delim
18960 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18961 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18962 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18963 ALL_TARGETS!$ALL_TARGETS$ac_delim
18964 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18965 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18966 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18967 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18968 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18969 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18970 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18971 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18972 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18973 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18974 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18975 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18976 ifGNUmake!$ifGNUmake$ac_delim
18977 LN_S!$LN_S$ac_delim
18981 DATE!$DATE$ac_delim
18982 FIND!$FIND$ac_delim
18983 GREP!$GREP$ac_delim
18984 MKDIR!$MKDIR$ac_delim
18986 RANLIB!$RANLIB$ac_delim
18991 BINPWD!$BINPWD$ac_delim
18993 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18994 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18995 INSTALL_DATA!$INSTALL_DATA$ac_delim
18996 BZIP2!$BZIP2$ac_delim
18998 DOXYGEN!$DOXYGEN$ac_delim
18999 GROFF!$GROFF$ac_delim
19000 GZIPBIN!$GZIPBIN$ac_delim
19001 PDFROFF!$PDFROFF$ac_delim
19004 OCAMLFIND!$OCAMLFIND$ac_delim
19006 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19007 EGREP!$EGREP$ac_delim
19008 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19009 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19010 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19011 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19012 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19013 NO_COMMENT!$NO_COMMENT$ac_delim
19014 PYTHON!$PYTHON$ac_delim
19015 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19016 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19017 USE_OPROFILE!$USE_OPROFILE$ac_delim
19018 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19019 XML2CONFIG!$XML2CONFIG$ac_delim
19020 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19021 LIBXML2_INC!$LIBXML2_INC$ac_delim
19022 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19023 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19024 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19025 MMAP_FILE!$MMAP_FILE$ac_delim
19026 SHLIBEXT!$SHLIBEXT$ac_delim
19027 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19030 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19032 elif $ac_last_try; then
19033 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19035 { (exit 1); exit 1; }; }
19037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19042 if test -n "$ac_eof"; then
19043 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19044 ac_eof=`expr $ac_eof + 1`
19047 cat >>$CONFIG_STATUS <<_ACEOF
19048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19053 s/^/s,@/; s/!/@,|#_!!_#|/
19056 s/'"$ac_delim"'$/,g/; t
19058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19059 ' >>$CONFIG_STATUS <conf$$subs.sed
19060 rm -f conf$$subs.sed
19061 cat >>$CONFIG_STATUS <<_ACEOF
19067 for ac_last_try in false false false false false :; do
19068 cat >conf$$subs.sed <<_ACEOF
19069 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19070 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19071 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19072 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19073 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19074 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19075 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19076 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19077 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19078 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19079 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19080 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19081 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19082 RPATH!$RPATH$ac_delim
19083 RDYNAMIC!$RDYNAMIC$ac_delim
19084 program_prefix!$program_prefix$ac_delim
19085 LIBOBJS!$LIBOBJS$ac_delim
19086 LTLIBOBJS!$LTLIBOBJS$ac_delim
19089 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19091 elif $ac_last_try; then
19092 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19093 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19094 { (exit 1); exit 1; }; }
19096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19100 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19101 if test -n "$ac_eof"; then
19102 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19103 ac_eof=`expr $ac_eof + 1`
19106 cat >>$CONFIG_STATUS <<_ACEOF
19107 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19111 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19112 s/^/s,@/; s/!/@,|#_!!_#|/
19115 s/'"$ac_delim"'$/,g/; t
19117 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19118 ' >>$CONFIG_STATUS <conf$$subs.sed
19119 rm -f conf$$subs.sed
19120 cat >>$CONFIG_STATUS <<_ACEOF
19127 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19128 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19129 # trailing colons and then remove the whole line if VPATH becomes empty
19130 # (actually we leave an empty line to preserve line numbers).
19131 if test "x$srcdir" = x.; then
19132 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19133 s/:*\$(srcdir):*/:/
19134 s/:*\${srcdir}:*/:/
19136 s/^\([^=]*=[ ]*\):*/\1/
19142 cat >>$CONFIG_STATUS <<\_ACEOF
19143 fi # test -n "$CONFIG_FILES"
19146 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19149 :[FHLC]) ac_mode=$ac_tag; continue;;
19151 case $ac_mode$ac_tag in
19153 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19154 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19155 { (exit 1); exit 1; }; };;
19156 :[FH]-) ac_tag=-:-;;
19157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19174 -) ac_f="$tmp/stdin";;
19175 *) # Look for the file first in the build tree, then in the source tree
19176 # (if the path is not absolute). The absolute path cannot be DOS-style,
19177 # because $ac_f cannot contain `:'.
19181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19183 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19184 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19185 { (exit 1); exit 1; }; };;
19187 ac_file_inputs="$ac_file_inputs $ac_f"
19190 # Let's still pretend it is `configure' which instantiates (i.e., don't
19191 # use $as_me), people would be surprised to read:
19192 # /* config.h. Generated by config.status. */
19193 configure_input="Generated from "`IFS=:
19194 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19195 if test x"$ac_file" != x-; then
19196 configure_input="$ac_file. $configure_input"
19197 { echo "$as_me:$LINENO: creating $ac_file" >&5
19198 echo "$as_me: creating $ac_file" >&6;}
19202 *:-:* | *:-) cat >"$tmp/stdin";;
19207 ac_dir=`$as_dirname -- "$ac_file" ||
19208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$ac_file" : 'X\(//\)[^/]' \| \
19210 X"$ac_file" : 'X\(//\)$' \| \
19211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19217 /^X\(\/\/\)[^/].*/{
19232 -*) as_dir=./$as_dir;;
19234 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19238 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19239 *) as_qdir=$as_dir;;
19241 as_dirs="'$as_qdir' $as_dirs"
19242 as_dir=`$as_dirname -- "$as_dir" ||
19243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244 X"$as_dir" : 'X\(//\)[^/]' \| \
19245 X"$as_dir" : 'X\(//\)$' \| \
19246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19252 /^X\(\/\/\)[^/].*/{
19265 test -d "$as_dir" && break
19267 test -z "$as_dirs" || eval "mkdir $as_dirs"
19268 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19269 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19270 { (exit 1); exit 1; }; }; }
19274 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19277 # A ".." for each directory in $ac_dir_suffix.
19278 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19279 case $ac_top_builddir_sub in
19280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19284 ac_abs_top_builddir=$ac_pwd
19285 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19286 # for backward compatibility:
19287 ac_top_builddir=$ac_top_build_prefix
19290 .) # We are building in place.
19292 ac_top_srcdir=$ac_top_builddir_sub
19293 ac_abs_top_srcdir=$ac_pwd ;;
19294 [\\/]* | ?:[\\/]* ) # Absolute name.
19295 ac_srcdir=$srcdir$ac_dir_suffix;
19296 ac_top_srcdir=$srcdir
19297 ac_abs_top_srcdir=$srcdir ;;
19298 *) # Relative name.
19299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19300 ac_top_srcdir=$ac_top_build_prefix$srcdir
19301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19303 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19318 cat >>$CONFIG_STATUS <<\_ACEOF
19319 # If the template does not know about datarootdir, expand it.
19320 # FIXME: This hack should be removed a few years after 2.60.
19321 ac_datarootdir_hack=; ac_datarootdir_seen=
19323 case `sed -n '/datarootdir/ {
19332 ' $ac_file_inputs` in
19333 *datarootdir*) ac_datarootdir_seen=yes;;
19334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19335 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19336 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19338 cat >>$CONFIG_STATUS <<_ACEOF
19339 ac_datarootdir_hack='
19340 s&@datadir@&$datadir&g
19341 s&@docdir@&$docdir&g
19342 s&@infodir@&$infodir&g
19343 s&@localedir@&$localedir&g
19344 s&@mandir@&$mandir&g
19345 s&\\\${datarootdir}&$datarootdir&g' ;;
19349 # Neutralize VPATH when `$srcdir' = `.'.
19350 # Shell code in configure.ac might set extrasub.
19351 # FIXME: do we really want to maintain this feature?
19352 cat >>$CONFIG_STATUS <<_ACEOF
19356 cat >>$CONFIG_STATUS <<\_ACEOF
19358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19359 s&@configure_input@&$configure_input&;t t
19360 s&@top_builddir@&$ac_top_builddir_sub&;t t
19361 s&@srcdir@&$ac_srcdir&;t t
19362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19363 s&@top_srcdir@&$ac_top_srcdir&;t t
19364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19365 s&@builddir@&$ac_builddir&;t t
19366 s&@abs_builddir@&$ac_abs_builddir&;t t
19367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19368 s&@INSTALL@&$ac_INSTALL&;t t
19369 $ac_datarootdir_hack
19370 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19375 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19376 which seems to be undefined. Please make sure it is defined." >&5
19377 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378 which seems to be undefined. Please make sure it is defined." >&2;}
19382 -) cat "$tmp/out"; rm -f "$tmp/out";;
19383 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19392 # Transform confdefs.h into a sed script `conftest.defines', that
19393 # substitutes the proper values into config.h.in to produce config.h.
19394 rm -f conftest.defines conftest.tail
19395 # First, append a space to every undef/define line, to ease matching.
19396 echo 's/$/ /' >conftest.defines
19397 # Then, protect against being on the right side of a sed subst, or in
19398 # an unquoted here document, in config.status. If some macros were
19399 # called several times there might be several #defines for the same
19400 # symbol, which is useless. But do not sort them, since the last
19401 # AC_DEFINE must be honored.
19402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19403 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19404 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19405 # PARAMS is the parameter list in the macro definition--in most cases, it's
19406 # just an empty string.
19407 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19408 ac_dB='\\)[ (].*,\\1define\\2'
19416 s/^[ ]*#[ ]*define[ ][ ]*//
19421 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19422 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19423 ' >>conftest.defines
19425 # Remove the space that was appended to ease matching.
19426 # Then replace #undef with comments. This is necessary, for
19427 # example, in the case of _POSIX_SOURCE, which is predefined and required
19428 # on some systems where configure will not decide to define it.
19429 # (The regexp can be short, since the line contains either #define or #undef.)
19431 s,^[ #]*u.*,/* & */,' >>conftest.defines
19433 # Break up conftest.defines:
19434 ac_max_sed_lines=50
19436 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19437 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19438 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19440 ac_in='$ac_file_inputs'
19441 ac_out='"$tmp/out1"'
19442 ac_nxt='"$tmp/out2"'
19446 # Write a here document:
19447 cat >>$CONFIG_STATUS <<_ACEOF
19448 # First, check the format of the line:
19449 cat >"\$tmp/defines.sed" <<\\CEOF
19450 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19451 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19455 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19457 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19458 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19459 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19460 grep . conftest.tail >/dev/null || break
19461 rm -f conftest.defines
19462 mv conftest.tail conftest.defines
19464 rm -f conftest.defines conftest.tail
19466 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19467 cat >>$CONFIG_STATUS <<\_ACEOF
19468 if test x"$ac_file" != x-; then
19469 echo "/* $configure_input */" >"$tmp/config.h"
19470 cat "$ac_result" >>"$tmp/config.h"
19471 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19472 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19473 echo "$as_me: $ac_file is unchanged" >&6;}
19476 mv "$tmp/config.h" $ac_file
19479 echo "/* $configure_input */"
19485 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19486 echo "$as_me: executing $ac_file commands" >&6;}
19491 case $ac_file$ac_mode in
19492 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19494 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19496 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19498 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19500 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19502 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19504 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19506 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19508 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19510 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19512 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19514 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19521 { (exit 0); exit 0; }
19523 chmod +x $CONFIG_STATUS
19524 ac_clean_files=$ac_clean_files_save
19527 # configure is writing to config.log, and then calls config.status.
19528 # config.status does its own redirection, appending to config.log.
19529 # Unfortunately, on DOS this fails, as config.log is still kept open
19530 # by configure, so config.status won't be able to write to it; its
19531 # output is simply discarded. So we exec the FD to /dev/null,
19532 # effectively closing config.log, so it can be properly (re)opened and
19533 # appended to by config.status. When coming back to configure, we
19534 # need to make the FD available again.
19535 if test "$no_create" != yes; then
19537 ac_config_status_args=
19538 test "$silent" = yes &&
19539 ac_config_status_args="$ac_config_status_args --quiet"
19541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19544 # would make configure fail if this is the last instruction.
19545 $ac_cs_success || { (exit 1); exit 1; }
19549 # CONFIG_SUBDIRS section.
19551 if test "$no_recursion" != yes; then
19553 # Remove --cache-file and --srcdir arguments so they do not pile up.
19554 ac_sub_configure_args=
19556 eval "set x $ac_configure_args"
19560 if test -n "$ac_prev"; then
19565 -cache-file | --cache-file | --cache-fil | --cache-fi \
19566 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19567 ac_prev=cache_file ;;
19568 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19569 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19572 --config-cache | -C)
19574 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19576 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19578 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19580 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19584 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19586 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19590 # Always prepend --prefix to ensure using the same prefix
19591 # in subdir configurations.
19592 ac_arg="--prefix=$prefix"
19594 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19596 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19599 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19601 # Do not complain, so a configure script can configure whichever
19602 # parts of a large source tree are present.
19603 test -d "$srcdir/$ac_dir" || continue
19605 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19606 echo "$as_me:$LINENO: $ac_msg" >&5
19610 -*) as_dir=./$as_dir;;
19612 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19616 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19617 *) as_qdir=$as_dir;;
19619 as_dirs="'$as_qdir' $as_dirs"
19620 as_dir=`$as_dirname -- "$as_dir" ||
19621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19622 X"$as_dir" : 'X\(//\)[^/]' \| \
19623 X"$as_dir" : 'X\(//\)$' \| \
19624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19630 /^X\(\/\/\)[^/].*/{
19643 test -d "$as_dir" && break
19645 test -z "$as_dirs" || eval "mkdir $as_dirs"
19646 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19648 { (exit 1); exit 1; }; }; }
19652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19654 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19655 # A ".." for each directory in $ac_dir_suffix.
19656 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19657 case $ac_top_builddir_sub in
19658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19662 ac_abs_top_builddir=$ac_pwd
19663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19664 # for backward compatibility:
19665 ac_top_builddir=$ac_top_build_prefix
19668 .) # We are building in place.
19670 ac_top_srcdir=$ac_top_builddir_sub
19671 ac_abs_top_srcdir=$ac_pwd ;;
19672 [\\/]* | ?:[\\/]* ) # Absolute name.
19673 ac_srcdir=$srcdir$ac_dir_suffix;
19674 ac_top_srcdir=$srcdir
19675 ac_abs_top_srcdir=$srcdir ;;
19676 *) # Relative name.
19677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19678 ac_top_srcdir=$ac_top_build_prefix$srcdir
19679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19686 # Check for guested configure; otherwise get Cygnus style configure.
19687 if test -f "$ac_srcdir/configure.gnu"; then
19688 ac_sub_configure=$ac_srcdir/configure.gnu
19689 elif test -f "$ac_srcdir/configure"; then
19690 ac_sub_configure=$ac_srcdir/configure
19691 elif test -f "$ac_srcdir/configure.in"; then
19692 # This should be Cygnus configure.
19693 ac_sub_configure=$ac_aux_dir/configure
19695 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19696 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19700 # The recursion is here.
19701 if test -n "$ac_sub_configure"; then
19702 # Make the cache file name correct relative to the subdirectory.
19703 case $cache_file in
19704 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19705 *) # Relative name.
19706 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19709 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19710 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19711 # The eval makes quoting arguments work.
19712 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19713 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19714 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19715 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19716 { (exit 1); exit 1; }; }