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
709 enable_external_search
710 enable_server_based_search
712 extra_search_mappings
714 llvm_doxygen_generate_qhp
715 llvm_doxygen_qch_filename
716 llvm_doxygen_qhp_namespace
717 llvm_doxygen_qhelpgenerator_path
718 llvm_doxygen_qhp_cust_filter_name
719 llvm_doxygen_qhp_cust_filter_attrs
720 clang_doxygen_generate_qhp
721 clang_doxygen_qch_filename
722 clang_doxygen_qhp_namespace
723 clang_doxygen_qhelpgenerator_path
724 clang_doxygen_qhp_cust_filter_name
725 clang_doxygen_qhp_cust_filter_attrs
736 LLVM_ENUM_ASM_PRINTERS
737 LLVM_ENUM_ASM_PARSERS
738 LLVM_ENUM_DISASSEMBLERS
776 HAVE_LINK_VERSION_SCRIPT
779 NO_MISSING_FIELD_INITIALIZERS
780 COVERED_SWITCH_DEFAULT
781 NO_MAYBE_UNINITIALIZED
810 ENABLE_VISIBILITY_INLINES_HIDDEN
817 ac_precious_vars='build_alias
828 ac_subdirs_all='projects/test-suite
831 projects/llvm-poolalloc
835 # Initialize some variables set by options.
837 ac_init_version=false
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
847 program_transform_name=s,x,x,
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
976 -help | --help | --hel | --he | -h)
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1125 -site=* | --site=* | --sit=*)
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1152 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package| sed 's/-/_/g'`
1158 eval with_$ac_package=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid package name: $ac_package" >&2
1165 { (exit 1); exit 1; }; }
1166 ac_package=`echo $ac_package | sed 's/-/_/g'`
1167 eval with_$ac_package=no ;;
1170 # Obsolete; use --with-x.
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) { echo "$as_me: error: unrecognized option: $ac_option
1188 Try \`$0 --help' for more information." >&2
1189 { (exit 1); exit 1; }; }
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197 { (exit 1); exit 1; }; }
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 { echo "$as_me: error: missing argument to $ac_option" >&2
1215 { (exit 1); exit 1; }; }
1218 # Be sure to have absolute directory names.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230 { (exit 1); exit 1; }; }
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 { echo "$as_me: error: Working directory cannot be determined" >&2
1261 { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 { echo "$as_me: error: pwd does not report name of working directory" >&2
1264 { (exit 1); exit 1; }; }
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$0" ||
1272 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$0" : 'X\(//\)[^/]' \| \
1274 X"$0" : 'X\(//\)$' \| \
1275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304 { (exit 1); exit 1; }; }
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309 { (exit 1); exit 1; }; }
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-polly Use polly if available (default is YES)
1409 --enable-libcpp Use libc++ if available (default is NO)
1410 --enable-compiler-version-checks
1411 Check the version of the host compiler (default is
1413 --enable-cxx1y Use c++1y if available (default is NO)
1414 --enable-split-dwarf Use split-dwarf if available (default is NO)
1415 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1416 --enable-clang-plugin-support
1417 Enable plugin support in clang (default is YES)
1418 --enable-clang-static-analyzer
1419 Enable building of clang Static Analyzer (default is
1421 --enable-optimized Compile with optimizations enabled (default is NO)
1422 --enable-profiling Compile with profiling enabled (default is NO)
1423 --enable-assertions Compile with assertion checks enabled (default is
1425 --enable-werror Compile with -Werror enabled (default is NO)
1426 --enable-expensive-checks
1427 Compile with expensive debug checks enabled (default
1429 --enable-debug-runtime Build runtime libs with debug symbols (default is
1431 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1432 optimization is on and YES if it's off)
1433 --enable-keep-symbols Do not strip installed executables)
1434 --enable-jit Enable Just In Time Compiling (default is YES)
1435 --enable-docs Build documents (default is YES)
1436 --enable-doxygen Build doxygen documentation (default is NO)
1437 --enable-doxygen-search Enable doxygen search support (default is NO)
1438 --enable-doxygen-external-search
1439 Enable doxygen exteranl search (default is NO)
1440 --enable-doxygen-qt-help
1441 Build Qt help files (default is NO)
1442 --enable-threads Use threads if available (default is YES)
1443 --enable-pthreads Use pthreads if available (default is YES)
1444 --enable-zlib Use zlib for compression/decompression if available
1446 --enable-pic Build LLVM with Position Independent Code (default
1448 --enable-shared Build a shared library and link tools against it
1450 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1451 Win32 DLL (default is NO)
1452 --enable-timestamps Enable embedding timestamp information in build
1454 --enable-backtraces Enable embedding backtraces on crash (default is
1456 --enable-crash-overrides
1457 Enable crash handling overrides (default is YES)
1458 --enable-targets Build specific host targets: all or
1459 target1,target2,... Valid targets are: host, x86,
1460 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1461 hexagon, xcore, msp430, nvptx, systemz, r600, and
1463 --enable-experimental-targets
1464 Build experimental host targets: disable or
1465 target1,target2,... (default=disable)
1466 --enable-bindings Build specific language bindings:
1467 all,auto,none,{binding-name} (default=auto)
1468 --enable-terminfo Query the terminfo database if available (default is
1470 --enable-libedit Use libedit if available (default is YES)
1471 --enable-libffi Check for the presence of libffi (default is NO)
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-doxygen-search-engine-url
1477 Specify the external search engine for doxygen
1478 --with-doxygen-search-mappings
1479 Specify the extra search mapping for doxygen
1480 --with-optimize-option Select the compiler options to use for optimized
1482 --with-extra-options Specify additional options to compile LLVM with
1483 --with-extra-ld-options Specify additional options to link LLVM with
1484 --with-ocaml-libdir Specify install location for ocaml bindings (default
1486 --with-clang-srcdir Directory to the out-of-tree Clang source
1487 --with-clang-resource-dir
1488 Relative directory from the Clang binary for
1490 --with-c-include-dirs Colon separated list of directories clang will
1492 --with-gcc-toolchain Directory where gcc is installed.
1493 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1494 --with-binutils-include Specify path to binutils/include/ containing
1495 plugin-api.h file for gold plugin.
1496 --with-bug-report-url Specify the URL where bug reports should be
1497 submitted (default=http://llvm.org/bugs/)
1498 --with-internal-prefix Installation directory for internal files
1499 --with-python path to python
1500 --with-oprofile=<prefix>
1501 Tell OProfile >= 0.9.4 how to symbolize JIT output
1502 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <http://llvm.org/bugs/>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1580 LLVM configure 3.7.0svn
1581 generated by GNU Autoconf 2.60
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1588 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by LLVM $as_me 3.7.0svn, which was
1597 generated by GNU Autoconf 2.60. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next=false
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next=true ;;
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1750 for ac_var in $ac_subst_vars
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1760 if test -n "$ac_subst_files"; then
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1767 for ac_var in $ac_subst_files
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1778 if test -s confdefs.h; then
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1869 # Check that the precious variables saved in the cache have kept the same
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950 LLVM_VERSION_MAJOR=3
1951 LLVM_VERSION_MINOR=7
1952 LLVM_VERSION_PATCH=0
1953 LLVM_VERSION_SUFFIX=svn
1956 cat >>confdefs.h <<_ACEOF
1957 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1961 cat >>confdefs.h <<_ACEOF
1962 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1966 cat >>confdefs.h <<_ACEOF
1967 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1971 cat >>confdefs.h <<_ACEOF
1972 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1981 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1990 for ac_dir in autoconf "$srcdir"/autoconf; do
1991 if test -f "$ac_dir/install-sh"; then
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 elif test -f "$ac_dir/install.sh"; then
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 elif test -f "$ac_dir/shtool"; then
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2008 { (exit 1); exit 1; }; }
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2021 if test ${srcdir} != "." ; then
2022 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2023 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2024 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2025 { (exit 1); exit 1; }; }
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038 for ac_prog in clang gcc
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 if test -n "$CC"; then
2069 { echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6; }
2072 { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2077 test -n "$CC" && break
2080 if test -z "$CC"; then
2082 for ac_prog in clang gcc
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_ac_ct_CC="$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6; }
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2121 test -n "$ac_ct_CC" && break
2124 if test "x$ac_ct_CC" = x; then
2127 case $cross_compiling:$ac_tool_warned in
2129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2130 whose name does not start with the host triplet. If you think this
2131 configuration is useful to you, please write to autoconf@gnu.org." >&5
2132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet. If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2135 ac_tool_warned=yes ;;
2142 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: no acceptable C compiler found in \$PATH
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2148 # Provide some information about the compiler.
2149 echo "$as_me:$LINENO: checking for C compiler version" >&5
2150 ac_compiler=`set X $ac_compile; echo $2`
2151 { (ac_try="$ac_compiler --version >&5"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler --version >&5") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161 { (ac_try="$ac_compiler -v >&5"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_compiler -v >&5") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 { (ac_try="$ac_compiler -V >&5"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_compiler -V >&5") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
2182 cat >conftest.$ac_ext <<_ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 ac_clean_files_save=$ac_clean_files
2198 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2199 # Try to create an executable without -o first, disregard a.out.
2200 # It will help us diagnose broken compilers, and finding out an intuition
2202 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2204 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206 # List of possible output files, starting from the most likely.
2207 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2208 # only as a last resort. b.out is created by i960 compilers.
2209 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2211 # The IRIX 6 linker writes into existing files which may not be
2212 # executable, retaining their permissions. Remove them first so a
2213 # subsequent execution test works.
2215 for ac_file in $ac_files
2218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2224 if { (ac_try="$ac_link_default"
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_link_default") 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2237 # so that the user can short-circuit this test for compilers unknown to
2239 for ac_file in $ac_files
2241 test -f "$ac_file" || continue
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2246 # We found the default executable, but exeext='' is most
2250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2254 # We set ac_cv_exeext here because the later test for it is not
2255 # safe: cross compilers may not add the suffix if given an `-o'
2256 # argument, so we may need to know it at that point already.
2257 # Even if this section looks crufty: it has the advantage of
2264 test "$ac_cv_exeext" = no && ac_cv_exeext=
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2277 ac_exeext=$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_file" >&5
2279 echo "${ECHO_T}$ac_file" >&6; }
2281 # Check that the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2286 # If not cross compiling, check that we can run a simple program.
2287 if test "$cross_compiling" != yes; then
2288 if { ac_try='./$ac_file'
2289 { (case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_try") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 if test "$cross_compiling" = maybe; then
2303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2313 { echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6; }
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check that the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2322 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6; }
2325 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2327 if { (ac_try="$ac_link"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_link") 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2339 # work properly (i.e., refer to `conftest.exe'), while it won't with
2341 for ac_file in conftest.exe conftest conftest.*; do
2342 test -f "$ac_file" || continue
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2358 rm -f conftest$ac_cv_exeext
2359 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2362 rm -f conftest.$ac_ext
2363 EXEEXT=$ac_cv_exeext
2365 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2367 if test "${ac_cv_objext+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 rm -f conftest.o conftest.obj
2386 if { (ac_try="$ac_compile"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 for ac_file in conftest.o conftest.obj conftest.*; do
2397 test -f "$ac_file" || continue;
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2411 See \`config.log' for more details." >&2;}
2412 { (exit 1); exit 1; }; }
2415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2417 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418 echo "${ECHO_T}$ac_cv_objext" >&6; }
2419 OBJEXT=$ac_cv_objext
2421 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2444 rm -f conftest.$ac_objext
2445 if { (ac_try="$ac_compile"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compile") 2>conftest.er1
2453 grep -v '^ *+' conftest.er1 >conftest.err
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_try") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2492 GCC=`test $ac_compiler_gnu = yes && echo yes`
2493 ac_test_CFLAGS=${CFLAGS+set}
2494 ac_save_CFLAGS=$CFLAGS
2495 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_cc_g+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 ac_save_c_werror_flag=$ac_c_werror_flag
2501 ac_c_werror_flag=yes
2504 cat >conftest.$ac_ext <<_ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_try") 2>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_try") 2>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2683 if test "$ac_test_CFLAGS" = set; then
2684 CFLAGS=$ac_save_CFLAGS
2685 elif test $ac_cv_prog_cc_g = yes; then
2686 if test "$GCC" = yes; then
2692 if test "$GCC" = yes; then
2698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2700 if test "${ac_cv_prog_cc_c89+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 ac_cv_prog_cc_c89=no
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2713 #include <sys/types.h>
2714 #include <sys/stat.h>
2715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2716 struct buf { int x; };
2717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718 static char *e (p, i)
2724 static char *f (char * (*g) (char **, int), char **p, ...)
2729 s = g (p, va_arg (v,int));
2734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2735 function prototypes and stuff, but not '\xHH' hex character constants.
2736 These don't provoke an error unfortunately, instead are silently treated
2737 as 'x'. The following induces an error, until -std is added to get
2738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2739 array size at least. It's necessary to write '\x00'==0 to get something
2740 that's true only with -std. */
2741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2744 inside strings and character constants. */
2746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2765 CC="$ac_save_CC $ac_arg"
2766 rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781 { (case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_try") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_try") 2>&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_c89=$ac_arg
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f core conftest.err conftest.$ac_objext
2809 test "x$ac_cv_prog_cc_c89" != "xno" && break
2811 rm -f conftest.$ac_ext
2816 case "x$ac_cv_prog_cc_c89" in
2818 { echo "$as_me:$LINENO: result: none needed" >&5
2819 echo "${ECHO_T}none needed" >&6; } ;;
2821 { echo "$as_me:$LINENO: result: unsupported" >&5
2822 echo "${ECHO_T}unsupported" >&6; } ;;
2824 CC="$CC $ac_cv_prog_cc_c89"
2825 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2826 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 ac_cpp='$CXXCPP $CPPFLAGS'
2838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2841 if test -z "$CXX"; then
2842 if test -n "$CCC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 for ac_prog in clang++ g++
2848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CXX+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$CXX"; then
2856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CXX"; then
2877 { echo "$as_me:$LINENO: result: $CXX" >&5
2878 echo "${ECHO_T}$CXX" >&6; }
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2885 test -n "$CXX" && break
2888 if test -z "$CXX"; then
2890 for ac_prog in clang++ g++
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$ac_ct_CXX"; then
2900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CXX="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2920 if test -n "$ac_ct_CXX"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2922 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2929 test -n "$ac_ct_CXX" && break
2932 if test "x$ac_ct_CXX" = x; then
2935 case $cross_compiling:$ac_tool_warned in
2937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2938 whose name does not start with the host triplet. If you think this
2939 configuration is useful to you, please write to autoconf@gnu.org." >&5
2940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2941 whose name does not start with the host triplet. If you think this
2942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2943 ac_tool_warned=yes ;;
2951 # Provide some information about the compiler.
2952 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2953 ac_compiler=`set X $ac_compile; echo $2`
2954 { (ac_try="$ac_compiler --version >&5"
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compiler --version >&5") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964 { (ac_try="$ac_compiler -v >&5"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compiler -v >&5") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }
2974 { (ac_try="$ac_compiler -V >&5"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compiler -V >&5") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023 { (case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_try") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3054 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3055 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3056 GXX=`test $ac_compiler_gnu = yes && echo yes`
3057 ac_test_CXXFLAGS=${CXXFLAGS+set}
3058 ac_save_CXXFLAGS=$CXXFLAGS
3059 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3060 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cxx_g+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3065 ac_cxx_werror_flag=yes
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 ac_cv_prog_cxx_g=yes
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_try") 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 ac_cv_prog_cxx_g=yes
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3246 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3247 if test "$ac_test_CXXFLAGS" = set; then
3248 CXXFLAGS=$ac_save_CXXFLAGS
3249 elif test $ac_cv_prog_cxx_g = yes; then
3250 if test "$GXX" = yes; then
3256 if test "$GXX" = yes; then
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3274 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3275 # On Suns, sometimes $CPP names a directory.
3276 if test -n "$CPP" && test -d "$CPP"; then
3279 if test -z "$CPP"; then
3280 if test "${ac_cv_prog_CPP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 # include <limits.h>
3304 # include <assert.h>
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330 if test -z "$ac_cpp_err"; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 # Broken: fails on valid input.
3340 rm -f conftest.err conftest.$ac_ext
3342 # OK, works on sane cases. Now check whether nonexistent headers
3343 # can be detected and how.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 #include <ac_nonexistent.h>
3352 if { (ac_try="$ac_cpp conftest.$ac_ext"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374 if test -z "$ac_cpp_err"; then
3375 # Broken: success on invalid input.
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Passes both tests.
3386 rm -f conftest.err conftest.$ac_ext
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3403 { echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6; }
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 if test "$CXX" = "clang++" ; then
3528 { echo "$as_me:$LINENO: checking whether clang works" >&5
3529 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3531 ac_cpp='$CXXCPP $CPPFLAGS'
3532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 #if __has_include (<cxxabi.h>)
3547 #if __has_include (<unwind.h>)
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3574 { (case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_try") 2>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_try") 2>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3594 { echo "$as_me:$LINENO: result: yes" >&5
3595 echo "${ECHO_T}yes" >&6; }
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3602 { echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6; }
3604 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3605 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3606 { (exit 1); exit 1; }; }
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cpp='$CPP $CPPFLAGS'
3613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3620 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3622 ac_cpp='$CXXCPP $CPPFLAGS'
3623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3627 llvm_cv_cxx_compiler=unknown
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3654 { (case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_try") 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 llvm_cv_cxx_compiler=clang
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3698 grep -v '^ *+' conftest.er1 >conftest.err
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3704 { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_try") 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 llvm_cv_cxx_compiler=gcc
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3742 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3746 if test -d ${srcdir}/projects/test-suite ; then
3747 subdirs="$subdirs projects/test-suite"
3751 if test -d ${srcdir}/projects/llvm-test ; then
3752 subdirs="$subdirs projects/llvm-test"
3756 if test -d ${srcdir}/projects/poolalloc ; then
3757 subdirs="$subdirs projects/poolalloc"
3761 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3762 subdirs="$subdirs projects/llvm-poolalloc"
3766 for i in `ls ${srcdir}/projects`
3768 if test -d ${srcdir}/projects/${i} ; then
3770 safecode) subdirs="$subdirs projects/safecode"
3778 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3779 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3785 # Check whether --enable-polly was given.
3786 if test "${enable_polly+set}" = set; then
3787 enableval=$enable_polly;
3792 case "$enableval" in
3797 default) ENABLE_POLLY=1
3799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3800 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3801 { (exit 1); exit 1; }; } ;;
3805 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3808 subdirs="$subdirs tools/polly"
3813 # Make sure we can run config.sub.
3814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3815 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3816 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3817 { (exit 1); exit 1; }; }
3819 { echo "$as_me:$LINENO: checking build system type" >&5
3820 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3821 if test "${ac_cv_build+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 ac_build_alias=$build_alias
3825 test "x$ac_build_alias" = x &&
3826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827 test "x$ac_build_alias" = x &&
3828 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3829 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3830 { (exit 1); exit 1; }; }
3831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3833 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3834 { (exit 1); exit 1; }; }
3837 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3838 echo "${ECHO_T}$ac_cv_build" >&6; }
3839 case $ac_cv_build in
3841 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3842 echo "$as_me: error: invalid value of canonical build" >&2;}
3843 { (exit 1); exit 1; }; };;
3846 ac_save_IFS=$IFS; IFS='-'
3852 # Remember, the first character of IFS is used to create $*,
3853 # except with old shells:
3856 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3859 { echo "$as_me:$LINENO: checking host system type" >&5
3860 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3861 if test "${ac_cv_host+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test "x$host_alias" = x; then
3865 ac_cv_host=$ac_cv_build
3867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3870 { (exit 1); exit 1; }; }
3874 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3875 echo "${ECHO_T}$ac_cv_host" >&6; }
3878 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3879 echo "$as_me: error: invalid value of canonical host" >&2;}
3880 { (exit 1); exit 1; }; };;
3883 ac_save_IFS=$IFS; IFS='-'
3889 # Remember, the first character of IFS is used to create $*,
3890 # except with old shells:
3893 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3896 { echo "$as_me:$LINENO: checking target system type" >&5
3897 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3898 if test "${ac_cv_target+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 if test "x$target_alias" = x; then
3902 ac_cv_target=$ac_cv_host
3904 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3906 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3907 { (exit 1); exit 1; }; }
3911 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3912 echo "${ECHO_T}$ac_cv_target" >&6; }
3913 case $ac_cv_target in
3915 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3916 echo "$as_me: error: invalid value of canonical target" >&2;}
3917 { (exit 1); exit 1; }; };;
3919 target=$ac_cv_target
3920 ac_save_IFS=$IFS; IFS='-'
3926 # Remember, the first character of IFS is used to create $*,
3927 # except with old shells:
3930 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3933 # The aliases save the names the user supplied, while $host etc.
3934 # will get canonicalized.
3935 test -n "$target_alias" &&
3936 test "$program_prefix$program_suffix$program_transform_name" = \
3938 program_prefix=${target_alias}-
3940 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3941 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3942 if test "${llvm_cv_os_type+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 llvm_cv_link_all_option="-Wl,--whole-archive"
3948 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3949 llvm_cv_os_type="AIX"
3950 llvm_cv_platform_type="Unix" ;;
3952 llvm_cv_link_all_option="-Wl,--whole-archive"
3953 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954 llvm_cv_os_type="IRIX"
3955 llvm_cv_platform_type="Unix" ;;
3957 llvm_cv_link_all_option="-Wl,--whole-archive"
3958 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959 llvm_cv_os_type="Cygwin"
3960 llvm_cv_platform_type="Unix" ;;
3962 llvm_cv_link_all_option="-Wl,-all_load"
3963 llvm_cv_no_link_all_option="-Wl,-noall_load"
3964 llvm_cv_os_type="Darwin"
3965 llvm_cv_platform_type="Unix" ;;
3967 llvm_cv_link_all_option="-Wl,-all_load"
3968 llvm_cv_no_link_all_option="-Wl,-noall_load"
3969 llvm_cv_os_type="Minix"
3970 llvm_cv_platform_type="Unix" ;;
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="FreeBSD"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="GNU/kFreeBSD"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="OpenBSD"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="NetBSD"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="DragonFly"
3995 llvm_cv_platform_type="Unix" ;;
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="Bitrig"
4000 llvm_cv_platform_type="Unix" ;;
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="HP-UX"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="Interix"
4010 llvm_cv_platform_type="Unix" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="Linux"
4015 llvm_cv_platform_type="Unix" ;;
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="GNU"
4020 llvm_cv_platform_type="Unix" ;;
4022 llvm_cv_link_all_option="-Wl,-z,allextract"
4023 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4024 llvm_cv_os_type="SunOS"
4025 llvm_cv_platform_type="Unix" ;;
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Win32"
4030 llvm_cv_platform_type="Win32" ;;
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="MingW"
4035 llvm_cv_platform_type="Win32" ;;
4037 llvm_cv_link_all_option="-Wl,--whole-archive"
4038 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039 llvm_cv_os_type="Haiku"
4040 llvm_cv_platform_type="Unix" ;;
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="Freestanding"
4045 llvm_cv_platform_type="Unix" ;;
4047 llvm_cv_link_all_option="-Wl,--whole-archive"
4048 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4049 llvm_cv_os_type="Freestanding"
4050 llvm_cv_platform_type="Unix" ;;
4052 llvm_cv_link_all_option=""
4053 llvm_cv_no_link_all_option=""
4054 llvm_cv_os_type="Unknown"
4055 llvm_cv_platform_type="Unknown" ;;
4058 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4059 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4061 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4062 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4063 if test "${llvm_cv_target_os_type+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 llvm_cv_target_os_type="AIX" ;;
4070 llvm_cv_target_os_type="IRIX" ;;
4072 llvm_cv_target_os_type="Cygwin" ;;
4074 llvm_cv_target_os_type="Darwin" ;;
4076 llvm_cv_target_os_type="Minix" ;;
4078 llvm_cv_target_os_type="FreeBSD" ;;
4080 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4082 llvm_cv_target_os_type="OpenBSD" ;;
4084 llvm_cv_target_os_type="NetBSD" ;;
4086 llvm_cv_target_os_type="DragonFly" ;;
4088 llvm_cv_target_os_type="Bitrig" ;;
4090 llvm_cv_target_os_type="HP-UX" ;;
4092 llvm_cv_target_os_type="Interix" ;;
4094 llvm_cv_target_os_type="Linux" ;;
4096 llvm_cv_target_os_type="GNU" ;;
4098 llvm_cv_target_os_type="SunOS" ;;
4100 llvm_cv_target_os_type="Win32" ;;
4102 llvm_cv_target_os_type="MingW" ;;
4104 llvm_cv_target_os_type="Haiku" ;;
4106 llvm_cv_target_os_type="RTEMS" ;;
4108 llvm_cv_target_os_type="NativeClient" ;;
4110 llvm_cv_target_os_type="Freestanding" ;;
4112 llvm_cv_target_os_type="PS4" ;;
4114 llvm_cv_target_os_type="Unknown" ;;
4117 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4118 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4120 if test "$llvm_cv_os_type" = "Unknown" ; then
4121 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4122 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4123 { (exit 1); exit 1; }; }
4128 HOST_OS=$llvm_cv_os_type
4130 TARGET_OS=$llvm_cv_target_os_type
4133 LINKALL=$llvm_cv_link_all_option
4135 NOLINKALL=$llvm_cv_no_link_all_option
4138 case $llvm_cv_platform_type in
4141 cat >>confdefs.h <<\_ACEOF
4142 #define LLVM_ON_UNIX 1
4152 cat >>confdefs.h <<\_ACEOF
4153 #define LLVM_ON_WIN32 1
4163 { echo "$as_me:$LINENO: checking target architecture" >&5
4164 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4165 if test "${llvm_cv_target_arch+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 i?86-*) llvm_cv_target_arch="x86" ;;
4170 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4171 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4172 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4173 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4174 arm*-*) llvm_cv_target_arch="ARM" ;;
4175 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4176 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4177 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4178 xcore-*) llvm_cv_target_arch="XCore" ;;
4179 msp430-*) llvm_cv_target_arch="MSP430" ;;
4180 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4181 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4182 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4183 *) llvm_cv_target_arch="Unknown" ;;
4186 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4187 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4189 if test "$llvm_cv_target_arch" = "Unknown" ; then
4190 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4191 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4194 case "$llvm_cv_target_arch" in
4195 x86) LLVM_NATIVE_ARCH="X86" ;;
4196 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4197 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4200 ARCH=$llvm_cv_target_arch
4202 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4206 i?86-*) host_arch="x86" ;;
4207 amd64-* | x86_64-*) host_arch="x86_64" ;;
4208 sparc*-*) host_arch="Sparc" ;;
4209 powerpc*-*) host_arch="PowerPC" ;;
4210 arm64*-*) host_arch="AArch64" ;;
4211 arm*-*) host_arch="ARM" ;;
4212 aarch64*-*) host_arch="AArch64" ;;
4213 mips-* | mips64-*) host_arch="Mips" ;;
4214 mipsel-* | mips64el-*) host_arch="Mips" ;;
4215 xcore-*) host_arch="XCore" ;;
4216 msp430-*) host_arch="MSP430" ;;
4217 hexagon-*) host_arch="Hexagon" ;;
4218 s390x-*) host_arch="SystemZ" ;;
4219 *) host_arch="Unknown" ;;
4222 if test "$host_arch" = "Unknown" ; then
4223 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4224 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4227 HOST_ARCH=$host_arch
4230 if test "$cross_compiling" = yes; then
4231 LLVM_CROSS_COMPILING=1
4234 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4235 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4236 if test "${ac_cv_build_exeext+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4240 ac_cv_build_exeext=.exe
4242 ac_build_prefix=${build_alias}-
4244 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4245 set dummy ${ac_build_prefix}gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$BUILD_CC"; then
4252 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 if test -z "$BUILD_CC"; then
4282 # Extract the first word of "gcc", so it can be a program name with args.
4283 set dummy gcc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_BUILD_CC="gcc"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6; }
4314 { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4319 if test -z "$BUILD_CC"; then
4320 # Extract the first word of "cc", so it can be a program name with args.
4321 set dummy cc; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test -n "$BUILD_CC"; then
4328 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4339 ac_prog_rejected=yes
4342 ac_cv_prog_BUILD_CC="cc"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 if test $ac_prog_rejected = yes; then
4351 # We found a bogon in the path, so make sure we never use it.
4352 set dummy $ac_cv_prog_BUILD_CC
4354 if test $# != 0; then
4355 # We chose a different compiler from the bogus one.
4356 # However, it has the same basename, so the bogon will be chosen
4357 # first if we set BUILD_CC to just the basename; use the full file name.
4359 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4364 BUILD_CC=$ac_cv_prog_BUILD_CC
4365 if test -n "$BUILD_CC"; then
4366 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4367 echo "${ECHO_T}$BUILD_CC" >&6; }
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4376 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4377 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4378 { (exit 1); exit 1; }; }
4379 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4381 echo 'int main () { return 0; }' > conftest.$ac_ext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4384 (eval $ac_build_link) 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; then
4388 for file in conftest.*; do
4390 *.c | *.o | *.obj | *.dSYM) ;;
4391 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4395 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4396 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4397 { (exit 1); exit 1; }; }
4400 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4405 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4406 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4407 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4408 ac_build_exeext=$BUILD_EXEEXT
4410 ac_build_prefix=${build_alias}-
4411 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4412 set dummy ${ac_build_prefix}g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 if test -n "$BUILD_CXX"; then
4419 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 if test -z "$BUILD_CXX"; then
4449 # Extract the first word of "g++", so it can be a program name with args.
4450 set dummy g++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$BUILD_CXX"; then
4457 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_BUILD_CXX="g++"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4477 if test -n "$BUILD_CXX"; then
4478 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4479 echo "${ECHO_T}$BUILD_CXX" >&6; }
4481 { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4486 if test -z "$BUILD_CXX"; then
4487 # Extract the first word of "c++", so it can be a program name with args.
4488 set dummy c++; ac_word=$2
4489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 if test -n "$BUILD_CXX"; then
4495 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4506 ac_prog_rejected=yes
4509 ac_cv_prog_BUILD_CXX="c++"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 if test $ac_prog_rejected = yes; then
4518 # We found a bogon in the path, so make sure we never use it.
4519 set dummy $ac_cv_prog_BUILD_CXX
4521 if test $# != 0; then
4522 # We chose a different compiler from the bogus one.
4523 # However, it has the same basename, so the bogon will be chosen
4524 # first if we set BUILD_CXX to just the basename; use the full file name.
4526 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4531 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4532 if test -n "$BUILD_CXX"; then
4533 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4534 echo "${ECHO_T}$BUILD_CXX" >&6; }
4536 { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4544 LLVM_CROSS_COMPILING=0
4548 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4559 # Check whether --enable-libcpp was given.
4560 if test "${enable_libcpp+set}" = set; then
4561 enableval=$enable_libcpp;
4566 case "$enableval" in
4567 yes) ENABLE_LIBCPP=1
4571 default) ENABLE_LIBCPP=0
4573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4574 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4575 { (exit 1); exit 1; }; } ;;
4578 # Check whether --enable-compiler-version-checks was given.
4579 if test "${enable_compiler_version_checks+set}" = set; then
4580 enableval=$enable_compiler_version_checks;
4585 case "$enableval" in
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 case "$llvm_cv_cxx_compiler" in
4597 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4598 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4606 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4607 #error This version of Clang is too old to build LLVM
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4626 { (case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_try") 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_try") 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 { echo "$as_me:$LINENO: result: yes" >&5
4646 echo "${ECHO_T}yes" >&6; }
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 { { echo "$as_me:$LINENO: error:
4654 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4655 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4656 bypass these sanity checks." >&5
4657 echo "$as_me: error:
4658 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4659 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4660 bypass these sanity checks." >&2;}
4661 { (exit 1); exit 1; }; }
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test "$ENABLE_LIBCPP" -eq 0 ; then
4667 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4668 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4669 llvm_cv_old_cxxflags="$CXXFLAGS"
4670 CXXFLAGS="$CXXFLAGS -std=c++0x"
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4679 std::atomic<float> x(0.0f);
4680 int main() { return (float)x; }
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (ac_try="$ac_link"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_link") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4698 { (case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_try") 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest$ac_exeext'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_try") 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6; }
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725 { { echo "$as_me:$LINENO: error:
4726 We detected a missing feature in the standard C++ library that was known to be
4727 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4728 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4729 than 4.7. You will need to update your system and ensure Clang uses the newer
4732 If this error is incorrect or you need to force things to work, you may pass
4733 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4734 echo "$as_me: error:
4735 We detected a missing feature in the standard C++ library that was known to be
4736 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4737 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4738 than 4.7. You will need to update your system and ensure Clang uses the newer
4741 If this error is incorrect or you need to force things to work, you may pass
4742 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4743 { (exit 1); exit 1; }; }
4746 rm -f core conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748 CXXFLAGS="$llvm_cv_old_cxxflags"
4752 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4753 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4761 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4762 #error This version of GCC is too old to build LLVM
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4781 { (case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_try") 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_try") 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 { echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6; }
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4808 { { echo "$as_me:$LINENO: error:
4809 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4810 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4811 bypass these sanity checks." >&5
4812 echo "$as_me: error:
4813 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4814 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4815 bypass these sanity checks." >&2;}
4816 { (exit 1); exit 1; }; }
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; }
4838 # Check whether --enable-cxx1y was given.
4839 if test "${enable_cxx1y+set}" = set; then
4840 enableval=$enable_cxx1y;
4845 case "$enableval" in
4850 default) ENABLE_CXX1Y=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 # Check whether --enable-split-dwarf was given.
4858 if test "${enable_split_dwarf+set}" = set; then
4859 enableval=$enable_split_dwarf;
4864 case "$enableval" in
4865 yes) ENABLE_SPLIT_DWARF=1
4867 no) ENABLE_SPLIT_DWARF=0
4869 default) ENABLE_SPLIT_DWARF=0
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4877 # Check whether --enable-clang-arcmt was given.
4878 if test "${enable_clang_arcmt+set}" = set; then
4879 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4884 case "$enableval" in
4885 yes) ENABLE_CLANG_ARCMT=1
4887 no) ENABLE_CLANG_ARCMT=0
4889 default) ENABLE_CLANG_ARCMT=1
4891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4896 clang_plugin_support="yes"
4897 # Check whether --enable-clang-plugin-support was given.
4898 if test "${enable_clang_plugin_support+set}" = set; then
4899 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4904 case "$enableval" in
4905 yes) CLANG_PLUGIN_SUPPORT=1
4907 no) CLANG_PLUGIN_SUPPORT=0
4909 default) CLANG_PLUGIN_SUPPORT=1
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4916 clang_static_analyzer="yes"
4917 # Check whether --enable-clang-static-analyzer was given.
4918 if test "${enable_clang_static_analyzer+set}" = set; then
4919 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4924 case "$enableval" in
4925 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4928 if test ${clang_arcmt} != "no" ; then
4929 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4930 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4931 { (exit 1); exit 1; }; }
4933 ENABLE_CLANG_STATIC_ANALYZER=0
4936 default) ENABLE_CLANG_STATIC_ANALYZER=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 # Check whether --enable-optimized was given.
4944 if test "${enable_optimized+set}" = set; then
4945 enableval=$enable_optimized;
4950 if test ${enableval} = "no" ; then
4954 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958 # Check whether --enable-profiling was given.
4959 if test "${enable_profiling+set}" = set; then
4960 enableval=$enable_profiling;
4965 if test ${enableval} = "no" ; then
4969 ENABLE_PROFILING=ENABLE_PROFILING=1
4973 # Check whether --enable-assertions was given.
4974 if test "${enable_assertions+set}" = set; then
4975 enableval=$enable_assertions;
4980 if test ${enableval} = "yes" ; then
4984 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4988 # Check whether --enable-werror was given.
4989 if test "${enable_werror+set}" = set; then
4990 enableval=$enable_werror;
4995 case "$enableval" in
4996 yes) ENABLE_WERROR=1
5000 default) ENABLE_WERROR=0
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5007 # Check whether --enable-expensive-checks was given.
5008 if test "${enable_expensive_checks+set}" = set; then
5009 enableval=$enable_expensive_checks;
5014 if test ${enableval} = "yes" ; then
5015 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5017 EXPENSIVE_CHECKS=yes
5020 ENABLE_EXPENSIVE_CHECKS=
5026 # Check whether --enable-debug-runtime was given.
5027 if test "${enable_debug_runtime+set}" = set; then
5028 enableval=$enable_debug_runtime;
5033 if test ${enableval} = "no" ; then
5037 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5041 # Check whether --enable-debug-symbols was given.
5042 if test "${enable_debug_symbols+set}" = set; then
5043 enableval=$enable_debug_symbols;
5048 if test ${enableval} = "no" ; then
5052 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5056 # Check whether --enable-keep-symbols was given.
5057 if test "${enable_keep_symbols+set}" = set; then
5058 enableval=$enable_keep_symbols;
5063 if test ${enableval} = "no" ; then
5067 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5071 # Check whether --enable-jit was given.
5072 if test "${enable_jit+set}" = set; then
5073 enableval=$enable_jit;
5078 if test ${enableval} = "no"
5083 case "$llvm_cv_target_arch" in
5084 x86) TARGET_HAS_JIT=1
5086 Sparc) TARGET_HAS_JIT=0
5088 PowerPC) TARGET_HAS_JIT=1
5090 x86_64) TARGET_HAS_JIT=1
5092 ARM) TARGET_HAS_JIT=1
5094 Mips) TARGET_HAS_JIT=1
5096 XCore) TARGET_HAS_JIT=0
5098 MSP430) TARGET_HAS_JIT=0
5100 Hexagon) TARGET_HAS_JIT=0
5102 NVPTX) TARGET_HAS_JIT=0
5104 SystemZ) TARGET_HAS_JIT=1
5111 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5112 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5115 # Check whether --enable-docs was given.
5116 if test "${enable_docs+set}" = set; then
5117 enableval=$enable_docs;
5122 case "$enableval" in
5127 default) ENABLE_DOCS=1
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5134 # Check whether --enable-doxygen was given.
5135 if test "${enable_doxygen+set}" = set; then
5136 enableval=$enable_doxygen;
5141 case "$enableval" in
5142 yes) ENABLE_DOXYGEN=1
5144 no|default) ENABLE_DOXYGEN=0
5146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5151 # Check whether --enable-doxygen-search was given.
5152 if test "${enable_doxygen_search+set}" = set; then
5153 enableval=$enable_doxygen_search;
5158 ENABLE_DOXYGEN_SEARCH="$enableval"
5160 case "$enableval" in
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5167 # Check whether --enable-doxygen-external-search was given.
5168 if test "${enable_doxygen_external_search+set}" = set; then
5169 enableval=$enable_doxygen_external_search;
5174 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5176 case "$enableval" in
5178 case "$ENABLE_DOXYGEN_SEARCH" in
5179 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5180 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5181 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5192 # Check whether --with-doxygen-search-engine-url was given.
5193 if test "${with_doxygen_search_engine_url+set}" = set; then
5194 withval=$with_doxygen_search_engine_url;
5197 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5200 # Check whether --with-doxygen-search-mappings was given.
5201 if test "${with_doxygen_search_mappings+set}" = set; then
5202 withval=$with_doxygen_search_mappings;
5205 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5207 case "$ENABLE_DOXYGEN_SEARCH" in
5209 if test "$ENABLE_DOXYGEN" = "0" ; then
5210 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5211 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5212 { (exit 1); exit 1; }; }
5215 enable_searchengine=YES
5218 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5220 enable_external_search=YES
5222 enable_server_based_search=YES
5224 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5226 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5231 enable_external_search=NO
5233 enable_server_based_search=NO
5242 enable_searchengine=NO
5245 enable_server_based_search=NO
5247 enable_external_search=NO
5253 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; }
5259 # Check whether --enable-doxygen-qt-help was given.
5260 if test "${enable_doxygen_qt_help+set}" = set; then
5261 enableval=$enable_doxygen_qt_help;
5266 case "$enableval" in
5268 if test "$ENABLE_DOXYGEN" = "0" ; then
5269 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5270 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5271 { (exit 1); exit 1; }; }
5274 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5275 set dummy qhelpgenerator; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 case $QHELPGENERATOR in
5283 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5305 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5306 if test -n "$QHELPGENERATOR"; then
5307 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5308 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5310 { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5316 llvm_doxygen_generate_qhp=YES
5318 llvm_doxygen_qch_filename=org.llvm.qch
5320 llvm_doxygen_qhp_namespace=org.llvm
5322 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5324 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5326 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5329 clang_doxygen_generate_qhp=YES
5331 clang_doxygen_qch_filename=org.llvm.clang.qch
5333 clang_doxygen_qhp_namespace=org.llvm.clang
5335 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5337 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5339 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5344 llvm_doxygen_generate_qhp=NO
5352 clang_doxygen_generate_qhp=NO
5357 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5359 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5364 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5365 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5369 # Check whether --enable-threads was given.
5370 if test "${enable_threads+set}" = set; then
5371 enableval=$enable_threads;
5376 case "$enableval" in
5377 yes) LLVM_ENABLE_THREADS=1
5379 no) LLVM_ENABLE_THREADS=0
5381 default) LLVM_ENABLE_THREADS=1
5383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5384 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5393 # Check whether --enable-pthreads was given.
5394 if test "${enable_pthreads+set}" = set; then
5395 enableval=$enable_pthreads;
5400 case "$enableval" in
5401 yes) ENABLE_PTHREADS=1
5403 no) ENABLE_PTHREADS=0
5405 default) ENABLE_PTHREADS=1
5407 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5408 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5409 { (exit 1); exit 1; }; } ;;
5412 # Check whether --enable-zlib was given.
5413 if test "${enable_zlib+set}" = set; then
5414 enableval=$enable_zlib;
5419 case "$enableval" in
5420 yes) LLVM_ENABLE_ZLIB=1
5422 no) LLVM_ENABLE_ZLIB=0
5424 default) LLVM_ENABLE_ZLIB=1
5426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5436 # Check whether --enable-pic was given.
5437 if test "${enable_pic+set}" = set; then
5438 enableval=$enable_pic;
5443 case "$enableval" in
5448 default) ENABLE_PIC=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define ENABLE_PIC $ENABLE_PIC
5460 # Check whether --enable-shared was given.
5461 if test "${enable_shared+set}" = set; then
5462 enableval=$enable_shared;
5467 case "$enableval" in
5468 yes) ENABLE_SHARED=1
5472 default) ENABLE_SHARED=0
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-embed-stdcxx was given.
5480 if test "${enable_embed_stdcxx+set}" = set; then
5481 enableval=$enable_embed_stdcxx;
5486 case "$enableval" in
5487 yes) ENABLE_EMBED_STDCXX=1
5489 no) ENABLE_EMBED_STDCXX=0
5491 default) ENABLE_EMBED_STDCXX=0
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 # Check whether --enable-timestamps was given.
5499 if test "${enable_timestamps+set}" = set; then
5500 enableval=$enable_timestamps;
5505 case "$enableval" in
5506 yes) ENABLE_TIMESTAMPS=1
5508 no) ENABLE_TIMESTAMPS=0
5510 default) ENABLE_TIMESTAMPS=1
5512 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5513 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5514 { (exit 1); exit 1; }; } ;;
5517 cat >>confdefs.h <<_ACEOF
5518 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5522 # Check whether --enable-backtraces was given.
5523 if test "${enable_backtraces+set}" = set; then
5524 enableval=$enable_backtraces; case "$enableval" in
5525 yes) llvm_cv_enable_backtraces="yes" ;;
5526 no) llvm_cv_enable_backtraces="no" ;;
5527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5532 llvm_cv_enable_backtraces="yes"
5535 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5537 cat >>confdefs.h <<\_ACEOF
5538 #define ENABLE_BACKTRACES 1
5543 # Check whether --enable-crash-overrides was given.
5544 if test "${enable_crash_overrides+set}" = set; then
5545 enableval=$enable_crash_overrides; case "$enableval" in
5546 yes) llvm_cv_enable_crash_overrides="yes" ;;
5547 no) llvm_cv_enable_crash_overrides="no" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5549 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5553 llvm_cv_enable_crash_overrides="yes"
5556 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5558 cat >>confdefs.h <<\_ACEOF
5559 #define ENABLE_CRASH_OVERRIDES 1
5564 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5565 ALL_TARGETS=$ALL_TARGETS
5569 # Check whether --enable-targets was given.
5570 if test "${enable_targets+set}" = set; then
5571 enableval=$enable_targets;
5576 if test "$enableval" = host-only ; then
5579 case "$enableval" in
5580 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5581 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5583 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5584 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5585 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5586 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5587 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5588 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5589 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5590 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5591 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5592 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5593 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5594 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5595 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5596 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5597 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5598 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5599 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5600 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5601 host) case "$llvm_cv_target_arch" in
5602 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5603 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5604 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5605 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5606 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5607 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5608 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5609 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5610 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5611 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5612 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5613 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5614 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5615 echo "$as_me: error: Can not set target to build" >&2;}
5616 { (exit 1); exit 1; }; } ;;
5618 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5619 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5626 # Check whether --enable-experimental-targets was given.
5627 if test "${enable_experimental_targets+set}" = set; then
5628 enableval=$enable_experimental_targets;
5634 if test ${enableval} != "disable"
5636 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5639 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5642 for a_target in $TARGETS_TO_BUILD; do
5643 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5645 cat >>confdefs.h <<_ACEOF
5646 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5649 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5650 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5651 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5652 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5653 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5654 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5656 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5657 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5660 cat >>confdefs.h <<_ACEOF
5661 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5665 cat >>confdefs.h <<_ACEOF
5666 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5670 cat >>confdefs.h <<_ACEOF
5671 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5675 cat >>confdefs.h <<_ACEOF
5676 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5679 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5686 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5696 LLVM_ENUM_TARGETS=""
5697 LLVM_ENUM_ASM_PRINTERS=""
5698 LLVM_ENUM_ASM_PARSERS=""
5699 LLVM_ENUM_DISASSEMBLERS=""
5700 for target_to_build in $TARGETS_TO_BUILD; do
5701 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5702 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5703 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5705 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5706 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5708 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5709 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5718 # Check whether --with-optimize-option was given.
5719 if test "${with_optimize_option+set}" = set; then
5720 withval=$with_optimize_option;
5725 { echo "$as_me:$LINENO: checking optimization flags" >&5
5726 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5729 case "$llvm_cv_os_type" in
5730 FreeBSD) optimize_option=-O2 ;;
5731 MingW) optimize_option=-O2 ;;
5732 *) optimize_option=-O3 ;;
5734 *) optimize_option="$withval" ;;
5736 OPTIMIZE_OPTION=$optimize_option
5738 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5739 echo "${ECHO_T}$optimize_option" >&6; }
5742 # Check whether --with-extra-options was given.
5743 if test "${with_extra_options+set}" = set; then
5744 withval=$with_extra_options;
5750 default) EXTRA_OPTIONS= ;;
5751 *) EXTRA_OPTIONS=$withval ;;
5753 EXTRA_OPTIONS=$EXTRA_OPTIONS
5757 # Check whether --with-extra-ld-options was given.
5758 if test "${with_extra_ld_options+set}" = set; then
5759 withval=$with_extra_ld_options;
5765 default) EXTRA_LD_OPTIONS= ;;
5766 *) EXTRA_LD_OPTIONS=$withval ;;
5768 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5771 # Check whether --enable-bindings was given.
5772 if test "${enable_bindings+set}" = set; then
5773 enableval=$enable_bindings;
5778 BINDINGS_TO_BUILD=""
5779 case "$enableval" in
5780 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5781 all ) BINDINGS_TO_BUILD="ocaml" ;;
5782 none | no) BINDINGS_TO_BUILD="" ;;
5783 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5784 case "$a_binding" in
5785 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5786 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5787 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5788 { (exit 1); exit 1; }; } ;;
5795 # Check whether --with-ocaml-libdir was given.
5796 if test "${with_ocaml_libdir+set}" = set; then
5797 withval=$with_ocaml_libdir;
5803 auto) with_ocaml_libdir="$withval" ;;
5804 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5805 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5806 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5807 { (exit 1); exit 1; }; } ;;
5811 # Check whether --with-clang-srcdir was given.
5812 if test "${with_clang_srcdir+set}" = set; then
5813 withval=$with_clang_srcdir;
5819 -) clang_src_root="" ;;
5820 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5821 *) clang_src_root="$ac_pwd/$withval" ;;
5823 CLANG_SRC_ROOT=$clang_src_root
5827 # Check whether --with-clang-resource-dir was given.
5828 if test "${with_clang_resource_dir+set}" = set; then
5829 withval=$with_clang_resource_dir;
5835 cat >>confdefs.h <<_ACEOF
5836 #define CLANG_RESOURCE_DIR "$withval"
5841 # Check whether --with-c-include-dirs was given.
5842 if test "${with_c_include_dirs+set}" = set; then
5843 withval=$with_c_include_dirs;
5849 cat >>confdefs.h <<_ACEOF
5850 #define C_INCLUDE_DIRS "$withval"
5854 # Clang normally uses the system c++ headers and libraries. With this option,
5855 # clang will use the ones provided by a gcc installation instead. This option should
5856 # be passed the same value that was used with --prefix when configuring gcc.
5858 # Check whether --with-gcc-toolchain was given.
5859 if test "${with_gcc_toolchain+set}" = set; then
5860 withval=$with_gcc_toolchain;
5866 cat >>confdefs.h <<_ACEOF
5867 #define GCC_INSTALL_PREFIX "$withval"
5872 # Check whether --with-default-sysroot was given.
5873 if test "${with_default_sysroot+set}" = set; then
5874 withval=$with_default_sysroot;
5880 cat >>confdefs.h <<_ACEOF
5881 #define DEFAULT_SYSROOT "$withval"
5886 # Check whether --with-binutils-include was given.
5887 if test "${with_binutils_include+set}" = set; then
5888 withval=$with_binutils_include;
5894 default) WITH_BINUTILS_INCDIR=default ;;
5895 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5896 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5897 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5898 { (exit 1); exit 1; }; } ;;
5900 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5901 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5903 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5904 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5905 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5906 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5907 { (exit 1); exit 1; }; };
5912 # Check whether --with-bug-report-url was given.
5913 if test "${with_bug_report_url+set}" = set; then
5914 withval=$with_bug_report_url;
5916 withval="http://llvm.org/bugs/"
5920 cat >>confdefs.h <<_ACEOF
5921 #define BUG_REPORT_URL "$withval"
5925 # Check whether --enable-terminfo was given.
5926 if test "${enable_terminfo+set}" = set; then
5927 enableval=$enable_terminfo; case "$enableval" in
5928 yes) llvm_cv_enable_terminfo="yes" ;;
5929 no) llvm_cv_enable_terminfo="no" ;;
5930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5931 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5932 { (exit 1); exit 1; }; } ;;
5935 llvm_cv_enable_terminfo="yes"
5938 case "$llvm_cv_enable_terminfo" in
5939 yes) ENABLE_TERMINFO=1
5941 no) ENABLE_TERMINFO=0
5945 # Check whether --enable-libedit was given.
5946 if test "${enable_libedit+set}" = set; then
5947 enableval=$enable_libedit; case "$enableval" in
5948 yes) llvm_cv_enable_libedit="yes" ;;
5949 no) llvm_cv_enable_libedit="no" ;;
5950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5951 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5952 { (exit 1); exit 1; }; } ;;
5955 llvm_cv_enable_libedit="yes"
5959 # Check whether --enable-libffi was given.
5960 if test "${enable_libffi+set}" = set; then
5961 enableval=$enable_libffi; case "$enableval" in
5962 yes) llvm_cv_enable_libffi="yes" ;;
5963 no) llvm_cv_enable_libffi="no" ;;
5964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5965 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5966 { (exit 1); exit 1; }; } ;;
5969 llvm_cv_enable_libffi=no
5974 # Check whether --with-internal-prefix was given.
5975 if test "${with_internal_prefix+set}" = set; then
5976 withval=$with_internal_prefix;
5981 INTERNAL_PREFIX=$withval
5985 { echo "$as_me:$LINENO: checking for GNU make" >&5
5986 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5987 if test "${llvm_cv_gnu_make_command+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 llvm_cv_gnu_make_command=''
5991 for a in "$MAKE" make gmake gnumake ; do
5992 if test -z "$a" ; then continue ; fi ;
5993 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5995 llvm_cv_gnu_make_command=$a ;
6000 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6001 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6002 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6006 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6007 echo "${ECHO_T}\"Not found\"" >&6; };
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6014 if test "$LN_S" = "ln -s"; then
6015 { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6018 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 # Extract the first word of "nm", so it can be a program name with args.
6023 set dummy nm; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_NM+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6054 if test -n "$NM"; then
6055 { echo "$as_me:$LINENO: result: $NM" >&5
6056 echo "${ECHO_T}$NM" >&6; }
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6063 # Extract the first word of "cmp", so it can be a program name with args.
6064 set dummy cmp; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_CMP+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6095 if test -n "$CMP"; then
6096 { echo "$as_me:$LINENO: result: $CMP" >&5
6097 echo "${ECHO_T}$CMP" >&6; }
6099 { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6104 # Extract the first word of "cp", so it can be a program name with args.
6105 set dummy cp; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_CP+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6136 if test -n "$CP"; then
6137 { echo "$as_me:$LINENO: result: $CP" >&5
6138 echo "${ECHO_T}$CP" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 # Extract the first word of "date", so it can be a program name with args.
6146 set dummy date; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_DATE+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6176 DATE=$ac_cv_path_DATE
6177 if test -n "$DATE"; then
6178 { echo "$as_me:$LINENO: result: $DATE" >&5
6179 echo "${ECHO_T}$DATE" >&6; }
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6186 # Extract the first word of "find", so it can be a program name with args.
6187 set dummy find; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_FIND+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6217 FIND=$ac_cv_path_FIND
6218 if test -n "$FIND"; then
6219 { echo "$as_me:$LINENO: result: $FIND" >&5
6220 echo "${ECHO_T}$FIND" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6227 # Extract the first word of "grep", so it can be a program name with args.
6228 set dummy grep; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_GREP+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6258 GREP=$ac_cv_path_GREP
6259 if test -n "$GREP"; then
6260 { echo "$as_me:$LINENO: result: $GREP" >&5
6261 echo "${ECHO_T}$GREP" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 # Extract the first word of "mkdir", so it can be a program name with args.
6269 set dummy mkdir; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_MKDIR+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6299 MKDIR=$ac_cv_path_MKDIR
6300 if test -n "$MKDIR"; then
6301 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6302 echo "${ECHO_T}$MKDIR" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 # Extract the first word of "mv", so it can be a program name with args.
6310 set dummy mv; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_MV+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6341 if test -n "$MV"; then
6342 { echo "$as_me:$LINENO: result: $MV" >&5
6343 echo "${ECHO_T}$MV" >&6; }
6345 { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_prog_RANLIB+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 if test -n "$RANLIB"; then
6359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
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_prog_RANLIB="${ac_tool_prefix}ranlib"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 RANLIB=$ac_cv_prog_RANLIB
6379 if test -n "$RANLIB"; then
6380 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6381 echo "${ECHO_T}$RANLIB" >&6; }
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6389 if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392 set dummy ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_RANLIB="ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419 if test -n "$ac_ct_RANLIB"; then
6420 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6427 if test "x$ac_ct_RANLIB" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&5
6435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet. If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438 ac_tool_warned=yes ;;
6440 RANLIB=$ac_ct_RANLIB
6443 RANLIB="$ac_cv_prog_RANLIB"
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_AR+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 if test -n "$AR"; then
6455 ac_cv_prog_AR="$AR" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_AR="${ac_tool_prefix}ar"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 if test -n "$AR"; then
6476 { echo "$as_me:$LINENO: result: $AR" >&5
6477 echo "${ECHO_T}$AR" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6485 if test -z "$ac_cv_prog_AR"; then
6487 # Extract the first word of "ar", so it can be a program name with args.
6488 set dummy ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$ac_ct_AR"; then
6495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_AR="ar"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6517 echo "${ECHO_T}$ac_ct_AR" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6523 if test "x$ac_ct_AR" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&5
6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet. If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534 ac_tool_warned=yes ;;
6542 # Extract the first word of "rm", so it can be a program name with args.
6543 set dummy rm; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_RM+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6574 if test -n "$RM"; then
6575 { echo "$as_me:$LINENO: result: $RM" >&5
6576 echo "${ECHO_T}$RM" >&6; }
6578 { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6583 # Extract the first word of "sed", so it can be a program name with args.
6584 set dummy sed; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_SED+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6615 if test -n "$SED"; then
6616 { echo "$as_me:$LINENO: result: $SED" >&5
6617 echo "${ECHO_T}$SED" >&6; }
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6624 # Extract the first word of "tar", so it can be a program name with args.
6625 set dummy tar; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_TAR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6656 if test -n "$TAR"; then
6657 { echo "$as_me:$LINENO: result: $TAR" >&5
6658 echo "${ECHO_T}$TAR" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6665 # Extract the first word of "pwd", so it can be a program name with args.
6666 set dummy pwd; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_BINPWD+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6696 BINPWD=$ac_cv_path_BINPWD
6697 if test -n "$BINPWD"; then
6698 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6699 echo "${ECHO_T}$BINPWD" >&6; }
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6707 # Extract the first word of "dot", so it can be a program name with args.
6708 set dummy dot; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_DOT+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6739 if test -n "$DOT"; then
6740 { echo "$as_me:$LINENO: result: $DOT" >&5
6741 echo "${ECHO_T}$DOT" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 if test "$DOT" != "echo dot" ; then
6750 cat >>confdefs.h <<\_ACEOF
6754 if test "$llvm_cv_os_type" = "MingW" ; then
6755 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758 cat >>confdefs.h <<_ACEOF
6759 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6764 # Find a good install program. We prefer a C program (faster),
6765 # so one script is as good as another. But avoid the broken or
6766 # incompatible versions:
6767 # SysV /etc/install, /usr/sbin/install
6768 # SunOS /usr/etc/install
6769 # IRIX /sbin/install
6771 # AmigaOS /C/install, which installs bootblocks on floppy discs
6772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6775 # OS/2's system install, which has a completely different semantic
6776 # ./install, which can be erroneously created by make from ./install.sh.
6777 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6778 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6779 if test -z "$INSTALL"; then
6780 if test "${ac_cv_path_install+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 # Account for people who put trailing slashes in PATH elements.
6790 ./ | .// | /cC/* | \
6791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6792 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6795 # OSF1 and SCO ODT 3.0 have their own names for install.
6796 # Don't use installbsd from OSF since it installs stuff as root
6798 for ac_prog in ginstall scoinst install; do
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6801 if test $ac_prog = install &&
6802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6803 # AIX install. It has an incompatible calling convention.
6805 elif test $ac_prog = install &&
6806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6807 # program-specific install script used by HP pwplus--don't use.
6810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6823 if test "${ac_cv_path_install+set}" = set; then
6824 INSTALL=$ac_cv_path_install
6826 # As a last resort, use the slow shell script. Don't cache a
6827 # value for INSTALL within a source directory, because that will
6828 # break other packages using the cache if that directory is
6829 # removed, or if the value is a relative name.
6830 INSTALL=$ac_install_sh
6833 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6834 echo "${ECHO_T}$INSTALL" >&6; }
6836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6837 # It thinks the first close brace ends the variable substitution.
6838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6845 [\\/$]* | ?:[\\/]* ) ;;
6846 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6849 # Extract the first word of "bzip2", so it can be a program name with args.
6850 set dummy bzip2; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_BZIP2+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 BZIP2=$ac_cv_path_BZIP2
6880 if test -n "$BZIP2"; then
6881 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6882 echo "${ECHO_T}$BZIP2" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 # Extract the first word of "cat", so it can be a program name with args.
6890 set dummy cat; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_CAT+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 if test -n "$CAT"; then
6921 { echo "$as_me:$LINENO: result: $CAT" >&5
6922 echo "${ECHO_T}$CAT" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "doxygen", so it can be a program name with args.
6930 set dummy doxygen; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 DOXYGEN=$ac_cv_path_DOXYGEN
6960 if test -n "$DOXYGEN"; then
6961 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6962 echo "${ECHO_T}$DOXYGEN" >&6; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6969 # Extract the first word of "groff", so it can be a program name with args.
6970 set dummy groff; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_GROFF+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 GROFF=$ac_cv_path_GROFF
7000 if test -n "$GROFF"; then
7001 { echo "$as_me:$LINENO: result: $GROFF" >&5
7002 echo "${ECHO_T}$GROFF" >&6; }
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7009 # Extract the first word of "gzip", so it can be a program name with args.
7010 set dummy gzip; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 GZIPBIN=$ac_cv_path_GZIPBIN
7040 if test -n "$GZIPBIN"; then
7041 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7042 echo "${ECHO_T}$GZIPBIN" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7049 # Extract the first word of "pdfroff", so it can be a program name with args.
7050 set dummy pdfroff; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_PDFROFF+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 PDFROFF=$ac_cv_path_PDFROFF
7080 if test -n "$PDFROFF"; then
7081 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7082 echo "${ECHO_T}$PDFROFF" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 # Extract the first word of "zip", so it can be a program name with args.
7090 set dummy zip; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_ZIP+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 if test -n "$ZIP"; then
7121 { echo "$as_me:$LINENO: result: $ZIP" >&5
7122 echo "${ECHO_T}$ZIP" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 # Extract the first word of "go", so it can be a program name with args.
7130 set dummy go; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GO+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 if test -n "$GO"; then
7161 { echo "$as_me:$LINENO: result: $GO" >&5
7162 echo "${ECHO_T}$GO" >&6; }
7164 { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7169 for ac_prog in ocamlfind
7171 # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy $ac_prog; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 OCAMLFIND=$ac_cv_path_OCAMLFIND
7202 if test -n "$OCAMLFIND"; then
7203 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7204 echo "${ECHO_T}$OCAMLFIND" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 test -n "$OCAMLFIND" && break
7214 for ac_prog in gas as
7216 # Extract the first word of "$ac_prog", so it can be a program name with args.
7217 set dummy $ac_prog; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GAS+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 if test -n "$GAS"; then
7248 { echo "$as_me:$LINENO: result: $GAS" >&5
7249 echo "${ECHO_T}$GAS" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 test -n "$GAS" && break
7260 { echo "$as_me:$LINENO: checking for linker version" >&5
7261 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7262 if test "${llvm_cv_link_version+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7269 if (echo "$version_string" | grep -q "ld64"); then
7270 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7272 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7276 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7277 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7279 cat >>confdefs.h <<_ACEOF
7280 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7286 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7287 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7288 if test "${llvm_cv_link_use_r+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298 CFLAGS="$CFLAGS -Wl,-R."
7299 cat >conftest.$ac_ext <<_ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (ac_try="$ac_link"
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 (eval "$ac_link") 2>conftest.er1
7323 grep -v '^ *+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7329 { (case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_try") 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest$ac_exeext'
7339 { (case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_try") 2>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 llvm_cv_link_use_r=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 llvm_cv_link_use_r=no
7356 rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7368 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7369 if test "$llvm_cv_link_use_r" = yes ; then
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_LINK_R 1
7378 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7379 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7380 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cpp='$CPP $CPPFLAGS'
7385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390 CFLAGS="$CFLAGS -rdynamic"
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (ac_try="$ac_link"
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_link") 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7421 { (case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_try") 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_try") 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 llvm_cv_link_use_export_dynamic=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 llvm_cv_link_use_export_dynamic=no
7448 rm -f core conftest.err conftest.$ac_objext \
7449 conftest$ac_exeext conftest.$ac_ext
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7460 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7461 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_LINK_EXPORT_DYNAMIC 1
7470 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7471 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7472 if test "${llvm_cv_link_use_version_script+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_cpp='$CPP $CPPFLAGS'
7477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483 # The following code is from the autoconf manual,
7484 # "11.13: Limitations of Usual Tools".
7485 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7486 # Use mktemp if possible; otherwise fall back on mkdir,
7487 # with $RANDOM to make collisions less likely.
7491 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7493 test -n "$tmp" && test -d "$tmp"
7495 tmp=$TMPDIR/foo$$-$RANDOM
7496 (umask 077 && mkdir "$tmp")
7499 echo "{" > "$tmp/export.map"
7500 echo " global: main;" >> "$tmp/export.map"
7501 echo " local: *;" >> "$tmp/export.map"
7502 echo "};" >> "$tmp/export.map"
7504 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_try") 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 llvm_cv_link_use_version_script=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 llvm_cv_link_use_version_script=no
7562 rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 rm "$tmp/export.map"
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7576 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7577 if test "$llvm_cv_link_use_version_script" = yes ; then
7578 HAVE_LINK_VERSION_SCRIPT=1
7584 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7585 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GREP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 # Extract the first word of "grep ggrep" to use in msg output
7590 if test -z "$GREP"; then
7591 set dummy grep ggrep; ac_prog_name=$2
7592 if test "${ac_cv_path_GREP+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_path_GREP_found=false
7596 # Loop through the user's path and test for each of PROGNAME-LIST
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7601 test -z "$as_dir" && as_dir=.
7602 for ac_prog in grep ggrep; do
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7605 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7606 # Check for GNU ac_path_GREP and select it if it is found.
7607 # Check for GNU $ac_path_GREP
7608 case `"$ac_path_GREP" --version 2>&1` in
7610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7616 cat "conftest.in" "conftest.in" >"conftest.tmp"
7617 mv "conftest.tmp" "conftest.in"
7618 cp "conftest.in" "conftest.nl"
7619 echo 'GREP' >> "conftest.nl"
7620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7622 ac_count=`expr $ac_count + 1`
7623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7624 # Best one so far, save it but keep looking for a better one
7625 ac_cv_path_GREP="$ac_path_GREP"
7626 ac_path_GREP_max=$ac_count
7628 # 10*(2^10) chars as input seems more than enough
7629 test $ac_count -gt 10 && break
7631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7635 $ac_path_GREP_found && break 3
7645 GREP="$ac_cv_path_GREP"
7646 if test -z "$GREP"; then
7647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7649 { (exit 1); exit 1; }; }
7653 ac_cv_path_GREP=$GREP
7658 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7659 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7660 GREP="$ac_cv_path_GREP"
7663 { echo "$as_me:$LINENO: checking for egrep" >&5
7664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_EGREP+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7669 then ac_cv_path_EGREP="$GREP -E"
7671 # Extract the first word of "egrep" to use in msg output
7672 if test -z "$EGREP"; then
7673 set dummy egrep; ac_prog_name=$2
7674 if test "${ac_cv_path_EGREP+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_path_EGREP_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7683 test -z "$as_dir" && as_dir=.
7684 for ac_prog in egrep; do
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7687 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7688 # Check for GNU ac_path_EGREP and select it if it is found.
7689 # Check for GNU $ac_path_EGREP
7690 case `"$ac_path_EGREP" --version 2>&1` in
7692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7698 cat "conftest.in" "conftest.in" >"conftest.tmp"
7699 mv "conftest.tmp" "conftest.in"
7700 cp "conftest.in" "conftest.nl"
7701 echo 'EGREP' >> "conftest.nl"
7702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7704 ac_count=`expr $ac_count + 1`
7705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7706 # Best one so far, save it but keep looking for a better one
7707 ac_cv_path_EGREP="$ac_path_EGREP"
7708 ac_path_EGREP_max=$ac_count
7710 # 10*(2^10) chars as input seems more than enough
7711 test $ac_count -gt 10 && break
7713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7717 $ac_path_EGREP_found && break 3
7727 EGREP="$ac_cv_path_EGREP"
7728 if test -z "$EGREP"; then
7729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7731 { (exit 1); exit 1; }; }
7735 ac_cv_path_EGREP=$EGREP
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7743 EGREP="$ac_cv_path_EGREP"
7746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7748 if test "${ac_cv_header_stdc+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7770 rm -f conftest.$ac_objext
7771 if { (ac_try="$ac_compile"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_cv_header_stdc=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_cv_header_stdc=no
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 if test $ac_cv_header_stdc = yes; then
7815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826 $EGREP "memchr" >/dev/null 2>&1; then
7829 ac_cv_header_stdc=no
7835 if test $ac_cv_header_stdc = yes; then
7836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "free" >/dev/null 2>&1; then
7850 ac_cv_header_stdc=no
7856 if test $ac_cv_header_stdc = yes; then
7857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7858 if test "$cross_compiling" = yes; then
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7869 #if ((' ' & 0x0FF) == 0x020)
7870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7873 # define ISLOWER(c) \
7874 (('a' <= (c) && (c) <= 'i') \
7875 || ('j' <= (c) && (c) <= 'r') \
7876 || ('s' <= (c) && (c) <= 'z'))
7877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7885 for (i = 0; i < 256; i++)
7886 if (XOR (islower (i), ISLOWER (i))
7887 || toupper (i) != TOUPPER (i))
7892 rm -f conftest$ac_exeext
7893 if { (ac_try="$ac_link"
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_link") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7914 echo "$as_me: program exited with status $ac_status" >&5
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_header_stdc=no
7921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7929 if test $ac_cv_header_stdc = yes; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define STDC_HEADERS 1
7937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7948 inttypes.h stdint.h unistd.h
7950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7964 #include <$ac_header>
7966 rm -f conftest.$ac_objext
7967 if { (ac_try="$ac_compile"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_try") 2>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 eval "$as_ac_Header=yes"
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 eval "$as_ac_Header=no"
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 ac_res=`eval echo '${'$as_ac_Header'}'`
8011 { echo "$as_me:$LINENO: result: $ac_res" >&5
8012 echo "${ECHO_T}$ac_res" >&6; }
8013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8014 cat >>confdefs.h <<_ACEOF
8015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 for ac_header in errno.h
8026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 ac_res=`eval echo '${'$as_ac_Header'}'`
8034 { echo "$as_me:$LINENO: result: $ac_res" >&5
8035 echo "${ECHO_T}$ac_res" >&6; }
8037 # Is the header compilable?
8038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 $ac_includes_default
8047 #include <$ac_header>
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_header_compiler=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_header_compiler=no
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093 echo "${ECHO_T}$ac_header_compiler" >&6; }
8095 # Is the header present?
8096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <$ac_header>
8106 if { (ac_try="$ac_cpp conftest.$ac_ext"
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } >/dev/null; then
8119 if test -s conftest.err; then
8120 ac_cpp_err=$ac_c_preproc_warn_flag
8121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8128 if test -z "$ac_cpp_err"; then
8129 ac_header_preproc=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_header_preproc=no
8137 rm -f conftest.err conftest.$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8139 echo "${ECHO_T}$ac_header_preproc" >&6; }
8141 # So? What about this header?
8142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8148 ac_header_preproc=yes
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8164 ## ------------------------------------ ##
8165 ## Report this to http://llvm.org/bugs/ ##
8166 ## ------------------------------------ ##
8168 ) | sed "s/^/$as_me: WARNING: /" >&2
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 eval "$as_ac_Header=\$ac_header_preproc"
8178 ac_res=`eval echo '${'$as_ac_Header'}'`
8179 { echo "$as_me:$LINENO: result: $ac_res" >&5
8180 echo "${ECHO_T}$ac_res" >&6; }
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8193 case "$llvm_cv_os_type" in
8194 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8195 Darwin) llvm_shlib_ext=.dylib ;;
8196 *) llvm_shlib_ext=.so ;;
8200 cat >>confdefs.h <<_ACEOF
8201 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8205 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8206 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8219 if test "$GCC" != "yes" && test "$ICC" != "yes"
8221 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8222 echo "$as_me: error: gcc|icc required but not found" >&2;}
8223 { (exit 1); exit 1; }; }
8226 if test "$GXX" != "yes" && test "$IXX" != "yes"
8228 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8229 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8230 { (exit 1); exit 1; }; }
8233 if test "$GCC" = "yes"
8235 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8243 #if !defined(__GNUC__) || __GNUC__ < 3
8244 #error Unsupported GCC version
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8289 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8290 { (exit 1); exit 1; }; }
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 if test -z "$llvm_cv_gnu_make_command"
8298 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8299 echo "$as_me: error: GNU Make required but not found" >&2;}
8300 { (exit 1); exit 1; }; }
8303 { echo "$as_me:$LINENO: result: ok" >&5
8304 echo "${ECHO_T}ok" >&6; }
8306 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8307 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8308 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8310 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8312 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8316 NO_MAYBE_UNINITIALIZED=
8317 if test "$GXX" = "yes"
8319 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8321 if test -z "$NO_MAYBE_UNINITIALIZED"
8323 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8329 llvm_cv_old_cxxflags="$CXXFLAGS"
8330 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8331 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8340 int main() { return 0; }
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8379 no_comment=-Wno-comment
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 NO_COMMENT=$no_comment
8391 CXXFLAGS="$llvm_cv_old_cxxflags"
8393 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8394 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8397 # Check whether --with-python was given.
8398 if test "${with_python+set}" = set; then
8399 withval=$with_python; PYTHON="$withval"
8403 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8404 { echo "$as_me:$LINENO: checking for python" >&5
8405 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8406 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8407 echo "${ECHO_T}user defined: $with_python" >&6; }
8409 if test -n "$PYTHON" ; then
8410 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8411 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8414 # Extract the first word of "python python2 python27", so it can be a program name with args.
8415 set dummy python python2 python27; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_PYTHON+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8442 echo "${ECHO_T}not found" >&6; }
8443 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8444 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8445 { (exit 1); exit 1; }; }"
8449 PYTHON=$ac_cv_path_PYTHON
8450 if test -n "$PYTHON"; then
8451 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8452 echo "${ECHO_T}$PYTHON" >&6; }
8454 { echo "$as_me:$LINENO: result: no" >&5
8455 echo "${ECHO_T}no" >&6; }
8461 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8462 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8463 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8464 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8465 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8466 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8467 if test "$ac_python_version_major" -gt "2" || \
8468 (test "$ac_python_version_major" -eq "2" && \
8469 test "$ac_python_version_minor" -ge "7") ; then
8470 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8471 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8473 { echo "$as_me:$LINENO: result: not found" >&5
8474 echo "${ECHO_T}not found" >&6; }
8475 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8476 See \`config.log' for more details." >&5
8477 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8478 See \`config.log' for more details." >&2;}
8479 { (exit 1); exit 1; }; }
8484 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8485 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_m_sin+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_check_lib_save_LIBS=$LIBS
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 LIBS=$ac_check_lib_save_LIBS
8559 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8560 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8561 if test $ac_cv_lib_m_sin = yes; then
8562 cat >>confdefs.h <<_ACEOF
8570 if test "$llvm_cv_os_type" = "MingW" ; then
8572 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8573 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8574 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_check_lib_save_LIBS=$LIBS
8578 LIBS="-limagehlp $LIBS"
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_link") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_try") 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_lib_imagehlp_main=yes
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_cv_lib_imagehlp_main=no
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8642 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8643 if test $ac_cv_lib_imagehlp_main = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define HAVE_LIBIMAGEHLP 1
8648 LIBS="-limagehlp $LIBS"
8653 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8654 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8655 if test "${ac_cv_lib_psapi_main+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lpsapi $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_psapi_main=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_lib_psapi_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_psapi_main" >&5
8723 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8724 if test $ac_cv_lib_psapi_main = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_LIBPSAPI 1
8729 LIBS="-lpsapi $LIBS"
8734 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8735 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8736 if test "${ac_cv_lib_shell32_main+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lshell32 $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_shell32_main=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_cv_lib_shell32_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_shell32_main" >&5
8804 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8805 if test $ac_cv_lib_shell32_main = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807 #define HAVE_LIBSHELL32 1
8810 LIBS="-lshell32 $LIBS"
8816 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8817 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8818 if test "${ac_cv_search_dlopen+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_func_search_save_LIBS=$LIBS
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
8844 for ac_lib in '' dl; do
8845 if test -z "$ac_lib"; then
8846 ac_res="none required"
8849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_search_dlopen=$ac_res
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8893 rm -f core conftest.err conftest.$ac_objext \
8895 if test "${ac_cv_search_dlopen+set}" = set; then
8899 if test "${ac_cv_search_dlopen+set}" = set; then
8902 ac_cv_search_dlopen=no
8905 LIBS=$ac_func_search_save_LIBS
8907 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8908 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8909 ac_res=$ac_cv_search_dlopen
8910 if test "$ac_res" != no; then
8911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_DLOPEN 1
8922 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8923 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8927 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8928 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8929 if test "${ac_cv_search_clock_gettime+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_func_search_save_LIBS=$LIBS
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8940 /* Override any GCC internal prototype to avoid an error.
8941 Use char because int might match the return type of a GCC
8942 builtin and then its argument prototype would still apply. */
8946 char clock_gettime ();
8950 return clock_gettime ();
8955 for ac_lib in '' rt; do
8956 if test -z "$ac_lib"; then
8957 ac_res="none required"
8960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_link") 2>conftest.er1
8971 grep -v '^ *+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8977 { (case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_try") 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_try") 2>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_clock_gettime=$ac_res
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -f core conftest.err conftest.$ac_objext \
9006 if test "${ac_cv_search_clock_gettime+set}" = set; then
9010 if test "${ac_cv_search_clock_gettime+set}" = set; then
9013 ac_cv_search_clock_gettime=no
9016 LIBS=$ac_func_search_save_LIBS
9018 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9019 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9020 ac_res=$ac_cv_search_clock_gettime
9021 if test "$ac_res" != no; then
9022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9027 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9028 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9029 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9030 if test "${ac_cv_search_setupterm+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 ac_func_search_save_LIBS=$LIBS
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9051 return setupterm ();
9056 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9057 if test -z "$ac_lib"; then
9058 ac_res="none required"
9061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_search_setupterm=$ac_res
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9105 rm -f core conftest.err conftest.$ac_objext \
9107 if test "${ac_cv_search_setupterm+set}" = set; then
9111 if test "${ac_cv_search_setupterm+set}" = set; then
9114 ac_cv_search_setupterm=no
9117 LIBS=$ac_func_search_save_LIBS
9119 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9120 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9121 ac_res=$ac_cv_search_setupterm
9122 if test "$ac_res" != no; then
9123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_TERMINFO 1
9137 if test "$llvm_cv_enable_libedit" = "yes" ; then
9138 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9139 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9140 if test "${ac_cv_search_el_init+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_func_search_save_LIBS=$LIBS
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9166 for ac_lib in '' edit; do
9167 if test -z "$ac_lib"; then
9168 ac_res="none required"
9171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_try") 2>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_search_el_init=$ac_res
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9215 rm -f core conftest.err conftest.$ac_objext \
9217 if test "${ac_cv_search_el_init+set}" = set; then
9221 if test "${ac_cv_search_el_init+set}" = set; then
9224 ac_cv_search_el_init=no
9227 LIBS=$ac_func_search_save_LIBS
9229 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9230 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9231 ac_res=$ac_cv_search_el_init
9232 if test "$ac_res" != no; then
9233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_LIBEDIT 1
9243 if test "$llvm_cv_enable_libffi" = "yes" ; then
9244 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9245 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9246 if test "${ac_cv_search_ffi_call+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 ac_func_search_save_LIBS=$LIBS
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9272 for ac_lib in '' ffi; do
9273 if test -z "$ac_lib"; then
9274 ac_res="none required"
9277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9294 { (case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_try") 2>&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_try") 2>&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_search_ffi_call=$ac_res
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9321 rm -f core conftest.err conftest.$ac_objext \
9323 if test "${ac_cv_search_ffi_call+set}" = set; then
9327 if test "${ac_cv_search_ffi_call+set}" = set; then
9330 ac_cv_search_ffi_call=no
9333 LIBS=$ac_func_search_save_LIBS
9335 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9336 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9337 ac_res=$ac_cv_search_ffi_call
9338 if test "$ac_res" != no; then
9339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_FFI_CALL 1
9346 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9347 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9348 { (exit 1); exit 1; }; }
9353 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9354 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9355 if test "${ac_cv_search_mallinfo+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 ac_func_search_save_LIBS=$LIBS
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9381 for ac_lib in '' malloc; do
9382 if test -z "$ac_lib"; then
9383 ac_res="none required"
9386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_try") 2>&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_cv_search_mallinfo=$ac_res
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9430 rm -f core conftest.err conftest.$ac_objext \
9432 if test "${ac_cv_search_mallinfo+set}" = set; then
9436 if test "${ac_cv_search_mallinfo+set}" = set; then
9439 ac_cv_search_mallinfo=no
9442 LIBS=$ac_func_search_save_LIBS
9444 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9445 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9446 ac_res=$ac_cv_search_mallinfo
9447 if test "$ac_res" != no; then
9448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_MALLINFO 1
9457 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9459 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9460 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-lpthread $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9479 char pthread_mutex_init ();
9483 return pthread_mutex_init ();
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_lib_pthread_pthread_mutex_init=yes
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_cv_lib_pthread_pthread_mutex_init=no
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9535 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9536 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_LIBPTHREAD 1
9541 LIBS="-lpthread $LIBS"
9545 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9546 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9547 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 ac_func_search_save_LIBS=$LIBS
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9564 char pthread_mutex_lock ();
9568 return pthread_mutex_lock ();
9573 for ac_lib in '' pthread; do
9574 if test -z "$ac_lib"; then
9575 ac_res="none required"
9578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9580 rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (ac_try="$ac_link"
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_link") 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9595 { (case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_try") 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_search_pthread_mutex_lock=$ac_res
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9622 rm -f core conftest.err conftest.$ac_objext \
9624 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9628 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9631 ac_cv_search_pthread_mutex_lock=no
9634 LIBS=$ac_func_search_save_LIBS
9636 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9637 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9638 ac_res=$ac_cv_search_pthread_mutex_lock
9639 if test "$ac_res" != no; then
9640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9642 cat >>confdefs.h <<\_ACEOF
9643 #define HAVE_PTHREAD_MUTEX_LOCK 1
9648 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9649 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9650 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_func_search_save_LIBS=$LIBS
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9667 char pthread_rwlock_init ();
9671 return pthread_rwlock_init ();
9676 for ac_lib in '' pthread; do
9677 if test -z "$ac_lib"; then
9678 ac_res="none required"
9681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_search_pthread_rwlock_init=$ac_res
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9725 rm -f core conftest.err conftest.$ac_objext \
9727 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9731 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9734 ac_cv_search_pthread_rwlock_init=no
9737 LIBS=$ac_func_search_save_LIBS
9739 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9740 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9741 ac_res=$ac_cv_search_pthread_rwlock_init
9742 if test "$ac_res" != no; then
9743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_PTHREAD_RWLOCK_INIT 1
9751 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9752 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9753 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 ac_func_search_save_LIBS=$LIBS
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9770 char pthread_getspecific ();
9774 return pthread_getspecific ();
9779 for ac_lib in '' pthread; do
9780 if test -z "$ac_lib"; then
9781 ac_res="none required"
9784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_search_pthread_getspecific=$ac_res
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9828 rm -f core conftest.err conftest.$ac_objext \
9830 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9834 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9837 ac_cv_search_pthread_getspecific=no
9840 LIBS=$ac_func_search_save_LIBS
9842 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9843 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9844 ac_res=$ac_cv_search_pthread_getspecific
9845 if test "$ac_res" != no; then
9846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_PTHREAD_GETSPECIFIC 1
9856 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9858 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9859 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9860 if test "${ac_cv_lib_z_compress2+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 ac_check_lib_save_LIBS=$LIBS
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9872 /* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9882 return compress2 ();
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_lib_z_compress2=yes
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_cv_lib_z_compress2=no
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9934 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9935 if test $ac_cv_lib_z_compress2 = yes; then
9936 cat >>confdefs.h <<_ACEOF
9947 # Check whether --with-oprofile was given.
9948 if test "${with_oprofile+set}" = set; then
9949 withval=$with_oprofile;
9953 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9957 *) llvm_cv_oppath="${withval}/lib/oprofile"
9958 CPPFLAGS="-I${withval}/include";;
9960 case $llvm_cv_os_type in
9962 if test -n "$llvm_cv_oppath" ; then
9963 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9964 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9965 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9966 if test "${ac_cv_search_bfd_init+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 ac_func_search_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9992 for ac_lib in '' bfd; do
9993 if test -z "$ac_lib"; then
9994 ac_res="none required"
9997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_search_bfd_init=$ac_res
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10041 rm -f core conftest.err conftest.$ac_objext \
10043 if test "${ac_cv_search_bfd_init+set}" = set; then
10047 if test "${ac_cv_search_bfd_init+set}" = set; then
10050 ac_cv_search_bfd_init=no
10052 rm conftest.$ac_ext
10053 LIBS=$ac_func_search_save_LIBS
10055 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10056 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10057 ac_res=$ac_cv_search_bfd_init
10058 if test "$ac_res" != no; then
10059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10063 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10064 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10065 if test "${ac_cv_search_op_open_agent+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 ac_func_search_save_LIBS=$LIBS
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10076 /* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10082 char op_open_agent ();
10086 return op_open_agent ();
10091 for ac_lib in '' opagent; do
10092 if test -z "$ac_lib"; then
10093 ac_res="none required"
10096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_search_op_open_agent=$ac_res
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10140 rm -f core conftest.err conftest.$ac_objext \
10142 if test "${ac_cv_search_op_open_agent+set}" = set; then
10146 if test "${ac_cv_search_op_open_agent+set}" = set; then
10149 ac_cv_search_op_open_agent=no
10151 rm conftest.$ac_ext
10152 LIBS=$ac_func_search_save_LIBS
10154 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10155 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10156 ac_res=$ac_cv_search_op_open_agent
10157 if test "$ac_res" != no; then
10158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10162 echo "Error! You need to have libopagent around."
10167 if test "${ac_cv_header_opagent_h+set}" = set; then
10168 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10169 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10170 if test "${ac_cv_header_opagent_h+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10174 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10176 # Is the header compilable?
10177 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10178 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 $ac_includes_default
10186 #include <opagent.h>
10188 rm -f conftest.$ac_objext
10189 if { (ac_try="$ac_compile"
10190 case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_compile") 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest.$ac_objext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_compiler=no
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232 echo "${ECHO_T}$ac_header_compiler" >&6; }
10234 # Is the header present?
10235 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10236 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <opagent.h>
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null; then
10258 if test -s conftest.err; then
10259 ac_cpp_err=$ac_c_preproc_warn_flag
10260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10267 if test -z "$ac_cpp_err"; then
10268 ac_header_preproc=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 ac_header_preproc=no
10276 rm -f conftest.err conftest.$ac_ext
10277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10278 echo "${ECHO_T}$ac_header_preproc" >&6; }
10280 # So? What about this header?
10281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10283 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10284 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10286 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10287 ac_header_preproc=yes
10290 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10291 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10293 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10295 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10297 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10301 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10303 ## ------------------------------------ ##
10304 ## Report this to http://llvm.org/bugs/ ##
10305 ## ------------------------------------ ##
10307 ) | sed "s/^/$as_me: WARNING: /" >&2
10310 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10311 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10312 if test "${ac_cv_header_opagent_h+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 ac_cv_header_opagent_h=$ac_header_preproc
10317 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10318 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10321 if test $ac_cv_header_opagent_h = yes; then
10325 echo "Error! You need to have opagent.h around."
10333 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10334 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10335 { (exit 1); exit 1; }; } ;;
10346 cat >>confdefs.h <<_ACEOF
10347 #define LLVM_USE_OPROFILE $USE_OPROFILE
10352 # Check whether --with-intel-jitevents was given.
10353 if test "${with_intel_jitevents+set}" = set; then
10354 withval=$with_intel_jitevents;
10356 yes) USE_INTEL_JITEVENTS=1
10358 no) USE_INTEL_JITEVENTS=0
10360 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10361 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10362 { (exit 1); exit 1; }; };;
10365 case $llvm_cv_os_type in
10366 Linux|Win32|Cygwin|MingW) ;;
10367 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10368 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10369 { (exit 1); exit 1; }; };;
10372 case "$llvm_cv_target_arch" in
10374 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10375 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10376 { (exit 1); exit 1; }; };;
10381 USE_INTEL_JITEVENTS=0
10387 cat >>confdefs.h <<_ACEOF
10388 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10392 for ac_prog in xml2-config
10394 # Extract the first word of "$ac_prog", so it can be a program name with args.
10395 set dummy $ac_prog; ac_word=$2
10396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10398 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 if test -n "$XML2CONFIG"; then
10402 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_prog_XML2CONFIG="$ac_prog"
10412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10422 if test -n "$XML2CONFIG"; then
10423 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10424 echo "${ECHO_T}$XML2CONFIG" >&6; }
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10431 test -n "$XML2CONFIG" && break
10435 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10436 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10437 if test "x$XML2CONFIG" = "x"; then
10438 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10439 echo "${ECHO_T}xml2-config not found" >&6; }
10441 LIBXML2_INC=`$XML2CONFIG --cflags`
10442 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10443 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10444 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10445 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10446 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lxml2 $LIBS"
10451 cat >conftest.$ac_ext <<_ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10464 char xmlReadFile ();
10468 return xmlReadFile ();
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10488 { (case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_try") 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_try") 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_lib_xml2_xmlReadFile=yes
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_cv_lib_xml2_xmlReadFile=no
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10519 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10520 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10521 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10523 cat >>confdefs.h <<\_ACEOF
10524 #define CLANG_HAVE_LIBXML 1
10527 LIBXML2_LIBS="-lxml2"
10540 ac_header_dirent=no
10541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10542 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10543 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <sys/types.h>
10566 rm -f conftest.$ac_objext
10567 if { (ac_try="$ac_compile"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest.$ac_objext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 eval "$as_ac_Header=yes"
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 eval "$as_ac_Header=no"
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 ac_res=`eval echo '${'$as_ac_Header'}'`
10611 { echo "$as_me:$LINENO: result: $ac_res" >&5
10612 echo "${ECHO_T}$ac_res" >&6; }
10613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10614 cat >>confdefs.h <<_ACEOF
10615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10618 ac_header_dirent=$ac_hdr; break
10622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10623 if test $ac_header_dirent = dirent.h; then
10624 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10626 if test "${ac_cv_search_opendir+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 ac_func_search_save_LIBS=$LIBS
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10652 for ac_lib in '' dir; do
10653 if test -z "$ac_lib"; then
10654 ac_res="none required"
10657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_search_opendir=$ac_res
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10701 rm -f core conftest.err conftest.$ac_objext \
10703 if test "${ac_cv_search_opendir+set}" = set; then
10707 if test "${ac_cv_search_opendir+set}" = set; then
10710 ac_cv_search_opendir=no
10712 rm conftest.$ac_ext
10713 LIBS=$ac_func_search_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10717 ac_res=$ac_cv_search_opendir
10718 if test "$ac_res" != no; then
10719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10724 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10726 if test "${ac_cv_search_opendir+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_func_search_save_LIBS=$LIBS
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10752 for ac_lib in '' x; do
10753 if test -z "$ac_lib"; then
10754 ac_res="none required"
10757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_link") 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_try") 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_search_opendir=$ac_res
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10801 rm -f core conftest.err conftest.$ac_objext \
10803 if test "${ac_cv_search_opendir+set}" = set; then
10807 if test "${ac_cv_search_opendir+set}" = set; then
10810 ac_cv_search_opendir=no
10812 rm conftest.$ac_ext
10813 LIBS=$ac_func_search_save_LIBS
10815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10817 ac_res=$ac_cv_search_opendir
10818 if test "$ac_res" != no; then
10819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10825 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10826 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10827 if test "${ac_cv_header_mmap_anon+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_cpp='$CPP $CPPFLAGS'
10832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <sys/mman.h>
10843 #include <unistd.h>
10848 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_header_mmap_anon=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_header_mmap_anon=no
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10904 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10905 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10906 if test "$ac_cv_header_mmap_anon" = yes; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_MMAP_ANONYMOUS 1
10914 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10915 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10916 if test "${ac_cv_header_stat_broken+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <sys/types.h>
10926 #include <sys/stat.h>
10928 #if defined S_ISBLK && defined S_IFDIR
10929 # if S_ISBLK (S_IFDIR)
10934 #if defined S_ISBLK && defined S_IFCHR
10935 # if S_ISBLK (S_IFCHR)
10940 #if defined S_ISLNK && defined S_IFREG
10941 # if S_ISLNK (S_IFREG)
10946 #if defined S_ISSOCK && defined S_IFREG
10947 # if S_ISSOCK (S_IFREG)
10953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10954 $EGREP "You lose" >/dev/null 2>&1; then
10955 ac_cv_header_stat_broken=yes
10957 ac_cv_header_stat_broken=no
10962 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10963 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10964 if test $ac_cv_header_stat_broken = yes; then
10966 cat >>confdefs.h <<\_ACEOF
10967 #define STAT_MACROS_BROKEN 1
10972 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10973 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10974 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <sys/types.h>
10984 #include <sys/wait.h>
10985 #ifndef WEXITSTATUS
10986 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10989 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10997 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_cv_header_sys_wait_h=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_cv_header_sys_wait_h=no
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11047 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11048 if test $ac_cv_header_sys_wait_h = yes; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_SYS_WAIT_H 1
11056 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11057 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11058 if test "${ac_cv_header_time+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <sys/types.h>
11068 #include <sys/time.h>
11074 if ((struct tm *) 0)
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_cv_header_time=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_cv_header_time=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11125 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11126 if test $ac_cv_header_time = yes; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define TIME_WITH_SYS_TIME 1
11136 ac_cpp='$CXXCPP $CPPFLAGS'
11137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11142 for ac_header in cxxabi.h
11144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 cat >conftest.$ac_ext <<_ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156 #include <stddef.h>
11159 #include <$ac_header>
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_cxx_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 eval "$as_ac_Header=yes"
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 eval "$as_ac_Header=no"
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 ac_res=`eval echo '${'$as_ac_Header'}'`
11206 { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218 ac_cpp='$CPP $CPPFLAGS'
11219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11229 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11242 # Is the header compilable?
11243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11252 #include <$ac_header>
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_header_compiler=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <$ac_header>
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333 if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ## ------------------------------------ ##
11370 ## Report this to http://llvm.org/bugs/ ##
11371 ## ------------------------------------ ##
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 eval "$as_ac_Header=\$ac_header_preproc"
11383 ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 ac_res=`eval echo '${'$as_ac_Header'}'`
11413 { echo "$as_me:$LINENO: result: $ac_res" >&5
11414 echo "${ECHO_T}$ac_res" >&6; }
11416 # Is the header compilable?
11417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 #include <$ac_header>
11428 rm -f conftest.$ac_objext
11429 if { (ac_try="$ac_compile"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_compile") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest.$ac_objext'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_header_compiler=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_compiler=no
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 echo "${ECHO_T}$ac_header_compiler" >&6; }
11474 # Is the header present?
11475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 #include <$ac_header>
11485 if { (ac_try="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } >/dev/null; then
11498 if test -s conftest.err; then
11499 ac_cpp_err=$ac_c_preproc_warn_flag
11500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11507 if test -z "$ac_cpp_err"; then
11508 ac_header_preproc=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_preproc=no
11516 rm -f conftest.err conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6; }
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543 ## ------------------------------------ ##
11544 ## Report this to http://llvm.org/bugs/ ##
11545 ## ------------------------------------ ##
11547 ) | sed "s/^/$as_me: WARNING: /" >&2
11550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 eval "$as_ac_Header=\$ac_header_preproc"
11557 ac_res=`eval echo '${'$as_ac_Header'}'`
11558 { echo "$as_me:$LINENO: result: $ac_res" >&5
11559 echo "${ECHO_T}$ac_res" >&6; }
11562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572 for ac_header in utime.h
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11585 # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 $ac_includes_default
11595 #include <$ac_header>
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_header_compiler=no
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <$ac_header>
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676 if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 ac_header_preproc=no
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11689 # So? What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11712 ## ------------------------------------ ##
11713 ## Report this to http://llvm.org/bugs/ ##
11714 ## ------------------------------------ ##
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 eval "$as_ac_Header=\$ac_header_preproc"
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11849 if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_header_preproc=no
11858 rm -f conftest.err conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6; }
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11885 ## ------------------------------------ ##
11886 ## Report this to http://llvm.org/bugs/ ##
11887 ## ------------------------------------ ##
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 eval "$as_ac_Header=\$ac_header_preproc"
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11916 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 ac_res=`eval echo '${'$as_ac_Header'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11929 # Is the header compilable?
11930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11932 cat >conftest.$ac_ext <<_ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 $ac_includes_default
11939 #include <$ac_header>
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest.$ac_objext'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_header_compiler=yes
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_header_compiler=no
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985 echo "${ECHO_T}$ac_header_compiler" >&6; }
11987 # Is the header present?
11988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11990 cat >conftest.$ac_ext <<_ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 #include <$ac_header>
11998 if { (ac_try="$ac_cpp conftest.$ac_ext"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } >/dev/null; then
12011 if test -s conftest.err; then
12012 ac_cpp_err=$ac_c_preproc_warn_flag
12013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 if test -z "$ac_cpp_err"; then
12021 ac_header_preproc=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_header_preproc=no
12029 rm -f conftest.err conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12031 echo "${ECHO_T}$ac_header_preproc" >&6; }
12033 # So? What about this header?
12034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12040 ac_header_preproc=yes
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056 ## ------------------------------------ ##
12057 ## Report this to http://llvm.org/bugs/ ##
12058 ## ------------------------------------ ##
12060 ) | sed "s/^/$as_me: WARNING: /" >&2
12063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 eval "$as_ac_Header=\$ac_header_preproc"
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12076 cat >>confdefs.h <<_ACEOF
12077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085 for ac_header in valgrind/valgrind.h
12087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 ac_res=`eval echo '${'$as_ac_Header'}'`
12095 { echo "$as_me:$LINENO: result: $ac_res" >&5
12096 echo "${ECHO_T}$ac_res" >&6; }
12098 # Is the header compilable?
12099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12108 #include <$ac_header>
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_header_compiler=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_header_compiler=no
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6; }
12156 # Is the header present?
12157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <$ac_header>
12167 if { (ac_try="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_header_preproc=no
12198 rm -f conftest.err conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12200 echo "${ECHO_T}$ac_header_preproc" >&6; }
12202 # So? What about this header?
12203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12209 ac_header_preproc=yes
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12225 ## ------------------------------------ ##
12226 ## Report this to http://llvm.org/bugs/ ##
12227 ## ------------------------------------ ##
12229 ) | sed "s/^/$as_me: WARNING: /" >&2
12232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 eval "$as_ac_Header=\$ac_header_preproc"
12239 ac_res=`eval echo '${'$as_ac_Header'}'`
12240 { echo "$as_me:$LINENO: result: $ac_res" >&5
12241 echo "${ECHO_T}$ac_res" >&6; }
12244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12254 for ac_header in fenv.h
12256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12267 # Is the header compilable?
12268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12277 #include <$ac_header>
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_header_compiler=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_header_compiler=no
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323 echo "${ECHO_T}$ac_header_compiler" >&6; }
12325 # Is the header present?
12326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #include <$ac_header>
12336 if { (ac_try="$ac_cpp conftest.$ac_ext"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12344 grep -v '^ *+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12358 if test -z "$ac_cpp_err"; then
12359 ac_header_preproc=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_header_preproc=no
12367 rm -f conftest.err conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12369 echo "${ECHO_T}$ac_header_preproc" >&6; }
12371 # So? What about this header?
12372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12378 ac_header_preproc=yes
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12394 ## ------------------------------------ ##
12395 ## Report this to http://llvm.org/bugs/ ##
12396 ## ------------------------------------ ##
12398 ) | sed "s/^/$as_me: WARNING: /" >&2
12401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 eval "$as_ac_Header=\$ac_header_preproc"
12408 ac_res=`eval echo '${'$as_ac_Header'}'`
12409 { echo "$as_me:$LINENO: result: $ac_res" >&5
12410 echo "${ECHO_T}$ac_res" >&6; }
12413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12414 cat >>confdefs.h <<_ACEOF
12415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12422 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12423 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12424 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 cat >conftest.$ac_ext <<_ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12438 #ifndef FE_ALL_EXCEPT
12439 char *p = (char *) FE_ALL_EXCEPT;
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_cv_have_decl_FE_ALL_EXCEPT=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12492 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12493 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_DECL_FE_ALL_EXCEPT 1
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_DECL_FE_ALL_EXCEPT 0
12507 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12508 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12509 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12524 char *p = (char *) FE_INEXACT;
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_have_decl_FE_INEXACT=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_have_decl_FE_INEXACT=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12577 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12578 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_DECL_FE_INEXACT 1
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_DECL_FE_INEXACT 0
12594 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12596 for ac_header in pthread.h
12598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 ac_res=`eval echo '${'$as_ac_Header'}'`
12606 { echo "$as_me:$LINENO: result: $ac_res" >&5
12607 echo "${ECHO_T}$ac_res" >&6; }
12609 # Is the header compilable?
12610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12612 cat >conftest.$ac_ext <<_ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 #include <$ac_header>
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_header_compiler=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_compiler=no
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12665 echo "${ECHO_T}$ac_header_compiler" >&6; }
12667 # Is the header present?
12668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 #include <$ac_header>
12678 if { (ac_try="$ac_cpp conftest.$ac_ext"
12679 case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } >/dev/null; then
12691 if test -s conftest.err; then
12692 ac_cpp_err=$ac_c_preproc_warn_flag
12693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12700 if test -z "$ac_cpp_err"; then
12701 ac_header_preproc=yes
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_header_preproc=no
12709 rm -f conftest.err conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711 echo "${ECHO_T}$ac_header_preproc" >&6; }
12713 # So? What about this header?
12714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12720 ac_header_preproc=yes
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12736 ## ------------------------------------ ##
12737 ## Report this to http://llvm.org/bugs/ ##
12738 ## ------------------------------------ ##
12740 ) | sed "s/^/$as_me: WARNING: /" >&2
12743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 eval "$as_ac_Header=\$ac_header_preproc"
12750 ac_res=`eval echo '${'$as_ac_Header'}'`
12751 { echo "$as_me:$LINENO: result: $ac_res" >&5
12752 echo "${ECHO_T}$ac_res" >&6; }
12755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12756 cat >>confdefs.h <<_ACEOF
12757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12774 for ac_header in zlib.h
12776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_res=`eval echo '${'$as_ac_Header'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12787 # Is the header compilable?
12788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12797 #include <$ac_header>
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_try") 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_header_compiler=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_header_compiler=no
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6; }
12845 # Is the header present?
12846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include <$ac_header>
12856 if { (ac_try="$ac_cpp conftest.$ac_ext"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12864 grep -v '^ *+' conftest.er1 >conftest.err
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12878 if test -z "$ac_cpp_err"; then
12879 ac_header_preproc=yes
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_header_preproc=no
12887 rm -f conftest.err conftest.$ac_ext
12888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889 echo "${ECHO_T}$ac_header_preproc" >&6; }
12891 # So? What about this header?
12892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12898 ac_header_preproc=yes
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12914 ## ------------------------------------ ##
12915 ## Report this to http://llvm.org/bugs/ ##
12916 ## ------------------------------------ ##
12918 ) | sed "s/^/$as_me: WARNING: /" >&2
12921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 eval "$as_ac_Header=\$ac_header_preproc"
12928 ac_res=`eval echo '${'$as_ac_Header'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12951 if test "$llvm_cv_enable_libffi" = "yes" ; then
12954 for ac_header in ffi.h ffi/ffi.h
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 ac_res=`eval echo '${'$as_ac_Header'}'`
12964 { echo "$as_me:$LINENO: result: $ac_res" >&5
12965 echo "${ECHO_T}$ac_res" >&6; }
12967 # Is the header compilable?
12968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 #include <$ac_header>
12979 rm -f conftest.$ac_objext
12980 if { (ac_try="$ac_compile"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_compile") 2>conftest.er1
12988 grep -v '^ *+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_try") 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_header_compiler=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ac_header_compiler=no
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023 echo "${ECHO_T}$ac_header_compiler" >&6; }
13025 # Is the header present?
13026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 #include <$ac_header>
13036 if { (ac_try="$ac_cpp conftest.$ac_ext"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } >/dev/null; then
13049 if test -s conftest.err; then
13050 ac_cpp_err=$ac_c_preproc_warn_flag
13051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13058 if test -z "$ac_cpp_err"; then
13059 ac_header_preproc=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_header_preproc=no
13067 rm -f conftest.err conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13069 echo "${ECHO_T}$ac_header_preproc" >&6; }
13071 # So? What about this header?
13072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13078 ac_header_preproc=yes
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13094 ## ------------------------------------ ##
13095 ## Report this to http://llvm.org/bugs/ ##
13096 ## ------------------------------------ ##
13098 ) | sed "s/^/$as_me: WARNING: /" >&2
13101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 eval "$as_ac_Header=\$ac_header_preproc"
13108 ac_res=`eval echo '${'$as_ac_Header'}'`
13109 { echo "$as_me:$LINENO: result: $ac_res" >&5
13110 echo "${ECHO_T}$ac_res" >&6; }
13113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13114 cat >>confdefs.h <<_ACEOF
13115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13125 for ac_header in CrashReporterClient.h
13127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 ac_res=`eval echo '${'$as_ac_Header'}'`
13135 { echo "$as_me:$LINENO: result: $ac_res" >&5
13136 echo "${ECHO_T}$ac_res" >&6; }
13138 # Is the header compilable?
13139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 $ac_includes_default
13148 #include <$ac_header>
13150 rm -f conftest.$ac_objext
13151 if { (ac_try="$ac_compile"
13152 case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_compile") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_header_compiler=no
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13194 echo "${ECHO_T}$ac_header_compiler" >&6; }
13196 # Is the header present?
13197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <$ac_header>
13207 if { (ac_try="$ac_cpp conftest.$ac_ext"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } >/dev/null; then
13220 if test -s conftest.err; then
13221 ac_cpp_err=$ac_c_preproc_warn_flag
13222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13229 if test -z "$ac_cpp_err"; then
13230 ac_header_preproc=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_header_preproc=no
13238 rm -f conftest.err conftest.$ac_ext
13239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240 echo "${ECHO_T}$ac_header_preproc" >&6; }
13242 # So? What about this header?
13243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13249 ac_header_preproc=yes
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13265 ## ------------------------------------ ##
13266 ## Report this to http://llvm.org/bugs/ ##
13267 ## ------------------------------------ ##
13269 ) | sed "s/^/$as_me: WARNING: /" >&2
13272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 eval "$as_ac_Header=\$ac_header_preproc"
13279 ac_res=`eval echo '${'$as_ac_Header'}'`
13280 { echo "$as_me:$LINENO: result: $ac_res" >&5
13281 echo "${ECHO_T}$ac_res" >&6; }
13284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13285 cat >>confdefs.h <<_ACEOF
13286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13294 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13295 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13296 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13304 extern const char *__crashreporter_info__;
13306 __crashreporter_info__ = "test";
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13347 { echo "$as_me:$LINENO: result: yes" >&5
13348 echo "${ECHO_T}yes" >&6; }
13350 cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_CRASHREPORTER_INFO 1
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13360 { echo "$as_me:$LINENO: result: no" >&5
13361 echo "${ECHO_T}no" >&6; }
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_CRASHREPORTER_INFO 0
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13375 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13376 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13377 if test "${ac_cv_huge_val_sanity+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_cpp='$CXXCPP $CPPFLAGS'
13383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13387 ac_save_CXXFLAGS=$CXXFLAGS
13388 CXXFLAGS="$CXXFLAGS -pedantic"
13389 if test "$cross_compiling" = yes; then
13390 ac_cv_huge_val_sanity=yes
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13402 double x = HUGE_VAL; return x != x;
13407 rm -f conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && { ac_try='./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
13427 ac_cv_huge_val_sanity=yes
13429 echo "$as_me: program exited with status $ac_status" >&5
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ( exit $ac_status )
13434 ac_cv_huge_val_sanity=no
13436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13440 CXXFLAGS=$ac_save_CXXFLAGS
13442 ac_cpp='$CPP $CPPFLAGS'
13443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13449 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13450 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13451 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13454 { echo "$as_me:$LINENO: checking for pid_t" >&5
13455 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13456 if test "${ac_cv_type_pid_t+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 typedef pid_t ac__type_new_;
13470 if ((ac__type_new_ *) 0)
13472 if (sizeof (ac__type_new_))
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 ac_cv_type_pid_t=yes
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_cv_type_pid_t=no
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13523 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13524 if test $ac_cv_type_pid_t = yes; then
13528 cat >>confdefs.h <<_ACEOF
13534 { echo "$as_me:$LINENO: checking for size_t" >&5
13535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13536 if test "${ac_cv_type_size_t+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 $ac_includes_default
13546 typedef size_t ac__type_new_;
13550 if ((ac__type_new_ *) 0)
13552 if (sizeof (ac__type_new_))
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_size_t=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_type_size_t=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13603 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13604 if test $ac_cv_type_size_t = yes; then
13608 cat >>confdefs.h <<_ACEOF
13609 #define size_t unsigned int
13615 cat >>confdefs.h <<_ACEOF
13616 #define RETSIGTYPE void
13619 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13621 if test "${ac_cv_struct_tm+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 #include <sys/types.h>
13636 struct tm *tp; tp->tm_sec;
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_compile") 2>conftest.er1
13650 grep -v '^ *+' conftest.er1 >conftest.err
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_cv_struct_tm=time.h
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680 ac_cv_struct_tm=sys/time.h
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13686 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13687 if test $ac_cv_struct_tm = sys/time.h; then
13689 cat >>confdefs.h <<\_ACEOF
13690 #define TM_IN_SYS_TIME 1
13695 { echo "$as_me:$LINENO: checking for int64_t" >&5
13696 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13697 if test "${ac_cv_type_int64_t+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 $ac_includes_default
13707 typedef int64_t ac__type_new_;
13711 if ((ac__type_new_ *) 0)
13713 if (sizeof (ac__type_new_))
13719 rm -f conftest.$ac_objext
13720 if { (ac_try="$ac_compile"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compile") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1 >conftest.err
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest.$ac_objext'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_type_int64_t=yes
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_cv_type_int64_t=no
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13764 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13765 if test $ac_cv_type_int64_t = yes; then
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_INT64_T 1
13773 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13774 echo "$as_me: error: Type int64_t required but not found" >&2;}
13775 { (exit 1); exit 1; }; }
13778 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13779 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_uint64_t+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 typedef uint64_t ac__type_new_;
13794 if ((ac__type_new_ *) 0)
13796 if (sizeof (ac__type_new_))
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_type_uint64_t=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_type_uint64_t=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13848 if test $ac_cv_type_uint64_t = yes; then
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_UINT64_T 1
13856 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13857 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13858 if test "${ac_cv_type_u_int64_t+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13868 typedef u_int64_t ac__type_new_;
13872 if ((ac__type_new_ *) 0)
13874 if (sizeof (ac__type_new_))
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_type_u_int64_t=yes
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_cv_type_u_int64_t=no
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13925 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13926 if test $ac_cv_type_u_int64_t = yes; then
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_U_INT64_T 1
13934 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13935 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13936 { (exit 1); exit 1; }; }
13945 for ac_func in backtrace getcwd
13947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13961 #define $ac_func innocuous_$ac_func
13963 /* System header to define __stub macros and hopefully few prototypes,
13964 which can conflict with char $ac_func (); below.
13965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13966 <limits.h> exists even on freestanding compilers. */
13969 # include <limits.h>
13971 # include <assert.h>
13976 /* Override any GCC internal prototype to avoid an error.
13977 Use char because int might match the return type of a GCC
13978 builtin and then its argument prototype would still apply. */
13983 /* The GNU C library defines this for functions which it implements
13984 to always fail with ENOSYS. Some functions are actually named
13985 something starting with __ and the normal name is an alias. */
13986 #if defined __stub_$ac_func || defined __stub___$ac_func
13993 return $ac_func ();
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 eval "$as_ac_var=yes"
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 eval "$as_ac_var=no"
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14043 ac_res=`eval echo '${'$as_ac_var'}'`
14044 { echo "$as_me:$LINENO: result: $ac_res" >&5
14045 echo "${ECHO_T}$ac_res" >&6; }
14046 if test `eval echo '${'$as_ac_var'}'` = yes; then
14047 cat >>confdefs.h <<_ACEOF
14048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14059 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14075 #define $ac_func innocuous_$ac_func
14077 /* System header to define __stub macros and hopefully few prototypes,
14078 which can conflict with char $ac_func (); below.
14079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080 <limits.h> exists even on freestanding compilers. */
14083 # include <limits.h>
14085 # include <assert.h>
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14097 /* The GNU C library defines this for functions which it implements
14098 to always fail with ENOSYS. Some functions are actually named
14099 something starting with __ and the normal name is an alias. */
14100 #if defined __stub_$ac_func || defined __stub___$ac_func
14107 return $ac_func ();
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127 { (case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_try") 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 eval "$as_ac_var=yes"
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 eval "$as_ac_var=no"
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14157 ac_res=`eval echo '${'$as_ac_var'}'`
14158 { echo "$as_me:$LINENO: result: $ac_res" >&5
14159 echo "${ECHO_T}$ac_res" >&6; }
14160 if test `eval echo '${'$as_ac_var'}'` = yes; then
14161 cat >>confdefs.h <<_ACEOF
14162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14171 for ac_func in isatty mkdtemp mkstemp
14173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 cat >conftest.$ac_ext <<_ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14187 #define $ac_func innocuous_$ac_func
14189 /* System header to define __stub macros and hopefully few prototypes,
14190 which can conflict with char $ac_func (); below.
14191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14192 <limits.h> exists even on freestanding compilers. */
14195 # include <limits.h>
14197 # include <assert.h>
14202 /* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
14209 /* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212 #if defined __stub_$ac_func || defined __stub___$ac_func
14219 return $ac_func ();
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (ac_try="$ac_link"
14226 case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_link") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1 >conftest.err
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest$ac_exeext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 eval "$as_ac_var=yes"
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 eval "$as_ac_var=no"
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14269 ac_res=`eval echo '${'$as_ac_var'}'`
14270 { echo "$as_me:$LINENO: result: $ac_res" >&5
14271 echo "${ECHO_T}$ac_res" >&6; }
14272 if test `eval echo '${'$as_ac_var'}'` = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14286 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14302 #define $ac_func innocuous_$ac_func
14304 /* System header to define __stub macros and hopefully few prototypes,
14305 which can conflict with char $ac_func (); below.
14306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307 <limits.h> exists even on freestanding compilers. */
14310 # include <limits.h>
14312 # include <assert.h>
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14324 /* The GNU C library defines this for functions which it implements
14325 to always fail with ENOSYS. Some functions are actually named
14326 something starting with __ and the normal name is an alias. */
14327 #if defined __stub_$ac_func || defined __stub___$ac_func
14334 return $ac_func ();
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_try") 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 eval "$as_ac_var=yes"
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 eval "$as_ac_var=no"
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14384 ac_res=`eval echo '${'$as_ac_var'}'`
14385 { echo "$as_me:$LINENO: result: $ac_res" >&5
14386 echo "${ECHO_T}$ac_res" >&6; }
14387 if test `eval echo '${'$as_ac_var'}'` = yes; then
14388 cat >>confdefs.h <<_ACEOF
14389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14398 for ac_func in strerror strerror_r setenv
14400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14414 #define $ac_func innocuous_$ac_func
14416 /* System header to define __stub macros and hopefully few prototypes,
14417 which can conflict with char $ac_func (); below.
14418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14419 <limits.h> exists even on freestanding compilers. */
14422 # include <limits.h>
14424 # include <assert.h>
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14436 /* The GNU C library defines this for functions which it implements
14437 to always fail with ENOSYS. Some functions are actually named
14438 something starting with __ and the normal name is an alias. */
14439 #if defined __stub_$ac_func || defined __stub___$ac_func
14446 return $ac_func ();
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_link") 2>conftest.er1
14460 grep -v '^ *+' conftest.er1 >conftest.err
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14466 { (case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_try") 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest$ac_exeext'
14476 { (case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_try") 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 eval "$as_ac_var=yes"
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 eval "$as_ac_var=no"
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14496 ac_res=`eval echo '${'$as_ac_var'}'`
14497 { echo "$as_me:$LINENO: result: $ac_res" >&5
14498 echo "${ECHO_T}$ac_res" >&6; }
14499 if test `eval echo '${'$as_ac_var'}'` = yes; then
14500 cat >>confdefs.h <<_ACEOF
14501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14527 #define $ac_func innocuous_$ac_func
14529 /* System header to define __stub macros and hopefully few prototypes,
14530 which can conflict with char $ac_func (); below.
14531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532 <limits.h> exists even on freestanding compilers. */
14535 # include <limits.h>
14537 # include <assert.h>
14542 /* Override any GCC internal prototype to avoid an error.
14543 Use char because int might match the return type of a GCC
14544 builtin and then its argument prototype would still apply. */
14549 /* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552 #if defined __stub_$ac_func || defined __stub___$ac_func
14559 return $ac_func ();
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14579 { (case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_try") 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_try") 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 eval "$as_ac_var=yes"
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 eval "$as_ac_var=no"
14606 rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14609 ac_res=`eval echo '${'$as_ac_var'}'`
14610 { echo "$as_me:$LINENO: result: $ac_res" >&5
14611 echo "${ECHO_T}$ac_res" >&6; }
14612 if test `eval echo '${'$as_ac_var'}'` = yes; then
14613 cat >>confdefs.h <<_ACEOF
14614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14641 #define $ac_func innocuous_$ac_func
14643 /* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char $ac_func (); below.
14645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646 <limits.h> exists even on freestanding compilers. */
14649 # include <limits.h>
14651 # include <assert.h>
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14663 /* The GNU C library defines this for functions which it implements
14664 to always fail with ENOSYS. Some functions are actually named
14665 something starting with __ and the normal name is an alias. */
14666 #if defined __stub_$ac_func || defined __stub___$ac_func
14673 return $ac_func ();
14678 rm -f conftest.$ac_objext conftest$ac_exeext
14679 if { (ac_try="$ac_link"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14687 grep -v '^ *+' conftest.er1 >conftest.err
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 eval "$as_ac_var=yes"
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 eval "$as_ac_var=no"
14720 rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14723 ac_res=`eval echo '${'$as_ac_var'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726 if test `eval echo '${'$as_ac_var'}'` = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14736 for ac_func in futimes futimens
14738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 cat >conftest.$ac_ext <<_ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14752 #define $ac_func innocuous_$ac_func
14754 /* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func (); below.
14756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14757 <limits.h> exists even on freestanding compilers. */
14760 # include <limits.h>
14762 # include <assert.h>
14767 /* Override any GCC internal prototype to avoid an error.
14768 Use char because int might match the return type of a GCC
14769 builtin and then its argument prototype would still apply. */
14774 /* The GNU C library defines this for functions which it implements
14775 to always fail with ENOSYS. Some functions are actually named
14776 something starting with __ and the normal name is an alias. */
14777 #if defined __stub_$ac_func || defined __stub___$ac_func
14784 return $ac_func ();
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 eval "$as_ac_var=no"
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14834 ac_res=`eval echo '${'$as_ac_var'}'`
14835 { echo "$as_me:$LINENO: result: $ac_res" >&5
14836 echo "${ECHO_T}$ac_res" >&6; }
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14845 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14846 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14847 if test "${llvm_cv_c_printf_a+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14856 if test "$cross_compiling" = yes; then
14857 llvmac_cv_c_printf_a=no
14859 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14868 #include <stdlib.h>
14874 volatile double A, B;
14878 sprintf(Buffer, "%a", A);
14882 if (A != 0x1.999999999999ap-4)
14889 rm -f conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 llvm_cv_c_printf_a=yes
14911 echo "$as_me: program exited with status $ac_status" >&5
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ( exit $ac_status )
14916 llvmac_cv_c_printf_a=no
14918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14923 ac_cpp='$CPP $CPPFLAGS'
14924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14929 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14930 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14931 if test "$llvm_cv_c_printf_a" = "yes"; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_PRINTF_A 1
14941 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14942 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14943 if test "${ac_cv_func_rand48+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_cpp='$CXXCPP $CPPFLAGS'
14949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <stdlib.h>
14963 srand48(0);lrand48();drand48();
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_func_rand48=yes
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_cv_func_rand48=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15020 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15022 if test "$ac_cv_func_rand48" = "yes" ; then
15024 cat >>confdefs.h <<\_ACEOF
15025 #define HAVE_RAND48 1
15031 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15032 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15033 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15047 char *p = (char *) arc4random;
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15064 grep -v '^ *+' conftest.er1 >conftest.err
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_have_decl_arc4random=yes
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 ac_cv_have_decl_arc4random=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15100 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15101 if test $ac_cv_have_decl_arc4random = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_DECL_ARC4RANDOM 1
15109 cat >>confdefs.h <<_ACEOF
15110 #define HAVE_DECL_ARC4RANDOM 0
15118 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15119 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15120 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15134 char *p = (char *) strerror_s;
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 ac_cv_have_decl_strerror_s=yes
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ac_cv_have_decl_strerror_s=no
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15187 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15188 if test $ac_cv_have_decl_strerror_s = yes; then
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_STRERROR_S 1
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_DECL_STRERROR_S 0
15205 if test "$llvm_cv_os_type" = "MingW" ; then
15206 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15207 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15208 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 ac_check_lib_save_LIBS=$LIBS
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15220 /* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (ac_try="$ac_link"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_link") 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_lib_gcc__alloca=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_lib_gcc__alloca=no
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15281 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15282 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15283 if test $ac_cv_lib_gcc__alloca = yes; then
15285 cat >>confdefs.h <<\_ACEOF
15286 #define HAVE__ALLOCA 1
15291 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15292 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15293 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 ac_check_lib_save_LIBS=$LIBS
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15305 /* Override any GCC internal prototype to avoid an error.
15306 Use char because int might match the return type of a GCC
15307 builtin and then its argument prototype would still apply. */
15315 return __alloca ();
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (ac_try="$ac_link"
15322 case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_link") 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15335 { (case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_try") 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest$ac_exeext'
15345 { (case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_try") 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 ac_cv_lib_gcc___alloca=yes
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_cv_lib_gcc___alloca=no
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 LIBS=$ac_check_lib_save_LIBS
15366 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15367 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15368 if test $ac_cv_lib_gcc___alloca = yes; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE___ALLOCA 1
15376 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15377 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 ac_check_lib_save_LIBS=$LIBS
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15400 return __chkstk ();
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15420 { (case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_try") 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest$ac_exeext'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_lib_gcc___chkstk=yes
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 ac_cv_lib_gcc___chkstk=no
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15452 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15453 if test $ac_cv_lib_gcc___chkstk = yes; then
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE___CHKSTK 1
15461 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15462 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15463 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_check_lib_save_LIBS=$LIBS
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15475 /* Override any GCC internal prototype to avoid an error.
15476 Use char because int might match the return type of a GCC
15477 builtin and then its argument prototype would still apply. */
15481 char __chkstk_ms ();
15485 return __chkstk_ms ();
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505 { (case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_try") 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_lib_gcc___chkstk_ms=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_gcc___chkstk_ms=no
15532 rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15537 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15538 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE___CHKSTK_MS 1
15546 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15547 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15548 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_check_lib_save_LIBS=$LIBS
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 /* Override any GCC internal prototype to avoid an error.
15561 Use char because int might match the return type of a GCC
15562 builtin and then its argument prototype would still apply. */
15570 return ___chkstk ();
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (ac_try="$ac_link"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_link") 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15590 { (case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_try") 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; } &&
15599 { ac_try='test -s conftest$ac_exeext'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_lib_gcc____chkstk=yes
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ac_cv_lib_gcc____chkstk=no
15617 rm -f core conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15621 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15622 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15623 if test $ac_cv_lib_gcc____chkstk = yes; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE____CHKSTK 1
15631 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15632 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_check_lib_save_LIBS=$LIBS
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15651 char ___chkstk_ms ();
15655 return ___chkstk_ms ();
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675 { (case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_try") 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_lib_gcc____chkstk_ms=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_cv_lib_gcc____chkstk_ms=no
15702 rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15707 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15708 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE____CHKSTK_MS 1
15717 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15718 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15719 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 ac_check_lib_save_LIBS=$LIBS
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15731 /* Override any GCC internal prototype to avoid an error.
15732 Use char because int might match the return type of a GCC
15733 builtin and then its argument prototype would still apply. */
15741 return __ashldi3 ();
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_link") 2>conftest.er1
15755 grep -v '^ *+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15761 { (case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_try") 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_lib_gcc___ashldi3=yes
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_lib_gcc___ashldi3=no
15788 rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15792 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15793 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15794 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15796 cat >>confdefs.h <<\_ACEOF
15797 #define HAVE___ASHLDI3 1
15802 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15803 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15804 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 ac_check_lib_save_LIBS=$LIBS
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15816 /* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15826 return __ashrdi3 ();
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (ac_try="$ac_link"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_link") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest$ac_exeext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_cv_lib_gcc___ashrdi3=yes
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_cv_lib_gcc___ashrdi3=no
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15877 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15878 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15879 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE___ASHRDI3 1
15887 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15888 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15889 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 ac_check_lib_save_LIBS=$LIBS
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15911 return __divdi3 ();
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_link") 2>conftest.er1
15925 grep -v '^ *+' conftest.er1 >conftest.err
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest$ac_exeext'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_lib_gcc___divdi3=yes
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_cv_lib_gcc___divdi3=no
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15963 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15964 if test $ac_cv_lib_gcc___divdi3 = yes; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE___DIVDI3 1
15972 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15973 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15974 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 ac_check_lib_save_LIBS=$LIBS
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15986 /* Override any GCC internal prototype to avoid an error.
15987 Use char because int might match the return type of a GCC
15988 builtin and then its argument prototype would still apply. */
15996 return __fixdfdi ();
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (ac_try="$ac_link"
16003 case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_link") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_lib_gcc___fixdfdi=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_cv_lib_gcc___fixdfdi=no
16043 rm -f core conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
16045 LIBS=$ac_check_lib_save_LIBS
16047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16048 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16049 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE___FIXDFDI 1
16057 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16058 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16059 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 ac_check_lib_save_LIBS=$LIBS
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16071 /* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16081 return __fixsfdi ();
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_lib_gcc___fixsfdi=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_lib_gcc___fixsfdi=no
16128 rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16133 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16134 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE___FIXSFDI 1
16142 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16143 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16144 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_check_lib_save_LIBS=$LIBS
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16156 /* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16162 char __floatdidf ();
16166 return __floatdidf ();
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_lib_gcc___floatdidf=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_cv_lib_gcc___floatdidf=no
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215 LIBS=$ac_check_lib_save_LIBS
16217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16218 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16219 if test $ac_cv_lib_gcc___floatdidf = yes; then
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE___FLOATDIDF 1
16227 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16228 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16229 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 ac_check_lib_save_LIBS=$LIBS
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16241 /* Override any GCC internal prototype to avoid an error.
16242 Use char because int might match the return type of a GCC
16243 builtin and then its argument prototype would still apply. */
16251 return __lshrdi3 ();
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (ac_try="$ac_link"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_link") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest$ac_exeext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_lib_gcc___lshrdi3=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_lib_gcc___lshrdi3=no
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16303 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16304 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE___LSHRDI3 1
16312 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16313 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16314 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 ac_check_lib_save_LIBS=$LIBS
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16326 /* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16336 return __moddi3 ();
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (ac_try="$ac_link"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_link") 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_cv_lib_gcc___moddi3=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_cv_lib_gcc___moddi3=no
16383 rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385 LIBS=$ac_check_lib_save_LIBS
16387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16388 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16389 if test $ac_cv_lib_gcc___moddi3 = yes; then
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE___MODDI3 1
16397 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16398 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16399 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 ac_check_lib_save_LIBS=$LIBS
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16421 return __udivdi3 ();
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_lib_gcc___udivdi3=yes
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_cv_lib_gcc___udivdi3=no
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16473 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16474 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE___UDIVDI3 1
16482 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16483 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS=$LIBS
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16506 return __umoddi3 ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_gcc___umoddi3=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_lib_gcc___umoddi3=no
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16558 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16559 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE___UMODDI3 1
16568 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16569 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16570 if test "${ac_cv_lib_gcc___main+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 ac_check_lib_save_LIBS=$LIBS
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest$ac_exeext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_lib_gcc___main=yes
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 ac_cv_lib_gcc___main=no
16639 rm -f core conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16641 LIBS=$ac_check_lib_save_LIBS
16643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16644 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16645 if test $ac_cv_lib_gcc___main = yes; then
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE___MAIN 1
16653 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16654 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16655 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 ac_check_lib_save_LIBS=$LIBS
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16667 /* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16677 return __cmpdi2 ();
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_lib_gcc___cmpdi2=yes
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_cv_lib_gcc___cmpdi2=no
16724 rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16726 LIBS=$ac_check_lib_save_LIBS
16728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16729 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16730 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE___CMPDI2 1
16740 if test "$llvm_cv_os_type" = "MingW" ; then
16741 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16742 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 #include <windows.h>
16752 #include <imagehlp.h>
16753 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16754 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16793 { echo "$as_me:$LINENO: result: yes" >&5
16794 echo "${ECHO_T}yes" >&6; }
16795 llvm_cv_win32_elmcb_pcstr="PCSTR"
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16802 { echo "$as_me:$LINENO: result: no" >&5
16803 echo "${ECHO_T}no" >&6; }
16804 llvm_cv_win32_elmcb_pcstr="PSTR"
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 cat >>confdefs.h <<_ACEOF
16811 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16816 if test "$llvm_cv_platform_type" = "Unix" ; then
16819 for ac_header in stdlib.h unistd.h
16821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 ac_res=`eval echo '${'$as_ac_Header'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16832 # Is the header compilable?
16833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 $ac_includes_default
16842 #include <$ac_header>
16844 rm -f conftest.$ac_objext
16845 if { (ac_try="$ac_compile"
16846 case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_compile") 2>conftest.er1
16853 grep -v '^ *+' conftest.er1 >conftest.err
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_header_compiler=yes
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_header_compiler=no
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16888 echo "${ECHO_T}$ac_header_compiler" >&6; }
16890 # Is the header present?
16891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16893 cat >conftest.$ac_ext <<_ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 #include <$ac_header>
16901 if { (ac_try="$ac_cpp conftest.$ac_ext"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } >/dev/null; then
16914 if test -s conftest.err; then
16915 ac_cpp_err=$ac_c_preproc_warn_flag
16916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16923 if test -z "$ac_cpp_err"; then
16924 ac_header_preproc=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_header_preproc=no
16932 rm -f conftest.err conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16934 echo "${ECHO_T}$ac_header_preproc" >&6; }
16936 # So? What about this header?
16937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16943 ac_header_preproc=yes
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16959 ## ------------------------------------ ##
16960 ## Report this to http://llvm.org/bugs/ ##
16961 ## ------------------------------------ ##
16963 ) | sed "s/^/$as_me: WARNING: /" >&2
16966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 eval "$as_ac_Header=\$ac_header_preproc"
16973 ac_res=`eval echo '${'$as_ac_Header'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16988 for ac_func in getpagesize
16990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17004 #define $ac_func innocuous_$ac_func
17006 /* System header to define __stub macros and hopefully few prototypes,
17007 which can conflict with char $ac_func (); below.
17008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009 <limits.h> exists even on freestanding compilers. */
17012 # include <limits.h>
17014 # include <assert.h>
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17026 /* The GNU C library defines this for functions which it implements
17027 to always fail with ENOSYS. Some functions are actually named
17028 something starting with __ and the normal name is an alias. */
17029 #if defined __stub_$ac_func || defined __stub___$ac_func
17036 return $ac_func ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_try") 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 eval "$as_ac_var=yes"
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 eval "$as_ac_var=no"
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17086 ac_res=`eval echo '${'$as_ac_var'}'`
17087 { echo "$as_me:$LINENO: result: $ac_res" >&5
17088 echo "${ECHO_T}$ac_res" >&6; }
17089 if test `eval echo '${'$as_ac_var'}'` = yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17097 { echo "$as_me:$LINENO: checking for working mmap" >&5
17098 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17099 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 if test "$cross_compiling" = yes; then
17103 ac_cv_func_mmap_fixed_mapped=no
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 $ac_includes_default
17112 /* malloc might have been renamed as rpl_malloc. */
17115 /* Thanks to Mike Haertel and Jim Avera for this test.
17116 Here is a matrix of mmap possibilities:
17117 mmap private not fixed
17118 mmap private fixed at somewhere currently unmapped
17119 mmap private fixed at somewhere already mapped
17120 mmap shared not fixed
17121 mmap shared fixed at somewhere currently unmapped
17122 mmap shared fixed at somewhere already mapped
17123 For private mappings, we should verify that changes cannot be read()
17124 back from the file, nor mmap's back from the file at a different
17125 address. (There have been systems where private was not correctly
17126 implemented like the infamous i386 svr4.0, and systems where the
17127 VM page cache was not coherent with the file system buffer cache
17128 like early versions of FreeBSD and possibly contemporary NetBSD.)
17129 For shared mappings, we should conversely verify that changes get
17130 propagated back to all the places they're supposed to be.
17132 Grep wants private fixed already mapped.
17133 The main things grep needs to know about mmap are:
17134 * does it exist and is it safe to write into the mmap'd area
17135 * how to use it (BSD variants) */
17138 #include <sys/mman.h>
17140 #if !STDC_HEADERS && !HAVE_STDLIB_H
17144 /* This mess was copied from the GNU getpagesize.h. */
17145 #if !HAVE_GETPAGESIZE
17146 /* Assume that all systems that can run configure have sys/param.h. */
17147 # if !HAVE_SYS_PARAM_H
17148 # define HAVE_SYS_PARAM_H 1
17151 # ifdef _SC_PAGESIZE
17152 # define getpagesize() sysconf(_SC_PAGESIZE)
17153 # else /* no _SC_PAGESIZE */
17154 # if HAVE_SYS_PARAM_H
17155 # include <sys/param.h>
17156 # ifdef EXEC_PAGESIZE
17157 # define getpagesize() EXEC_PAGESIZE
17158 # else /* no EXEC_PAGESIZE */
17160 # define getpagesize() NBPG * CLSIZE
17163 # endif /* no CLSIZE */
17164 # else /* no NBPG */
17166 # define getpagesize() NBPC
17167 # else /* no NBPC */
17169 # define getpagesize() PAGESIZE
17170 # endif /* PAGESIZE */
17171 # endif /* no NBPC */
17172 # endif /* no NBPG */
17173 # endif /* no EXEC_PAGESIZE */
17174 # else /* no HAVE_SYS_PARAM_H */
17175 # define getpagesize() 8192 /* punt totally */
17176 # endif /* no HAVE_SYS_PARAM_H */
17177 # endif /* no _SC_PAGESIZE */
17179 #endif /* no HAVE_GETPAGESIZE */
17184 char *data, *data2, *data3;
17188 pagesize = getpagesize ();
17190 /* First, make a file with some known garbage in it. */
17191 data = (char *) malloc (pagesize);
17194 for (i = 0; i < pagesize; ++i)
17195 *(data + i) = rand ();
17197 fd = creat ("conftest.mmap", 0600);
17200 if (write (fd, data, pagesize) != pagesize)
17204 /* Next, try to mmap the file at a fixed address which already has
17205 something else allocated at it. If we can, also make sure that
17206 we see the same garbage. */
17207 fd = open ("conftest.mmap", O_RDWR);
17210 data2 = (char *) malloc (2 * pagesize);
17213 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17217 for (i = 0; i < pagesize; ++i)
17218 if (*(data + i) != *(data2 + i))
17221 /* Finally, make sure that changes to the mapped area do not
17222 percolate back to the file as seen by read(). (This is a bug on
17223 some variants of i386 svr4.0.) */
17224 for (i = 0; i < pagesize; ++i)
17225 *(data2 + i) = *(data2 + i) + 1;
17226 data3 = (char *) malloc (pagesize);
17229 if (read (fd, data3, pagesize) != pagesize)
17231 for (i = 0; i < pagesize; ++i)
17232 if (*(data + i) != *(data3 + i))
17238 rm -f conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_func_mmap_fixed_mapped=yes
17260 echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 ( exit $ac_status )
17265 ac_cv_func_mmap_fixed_mapped=no
17267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17272 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17273 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_MMAP 1
17281 rm -f conftest.mmap
17283 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17284 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17285 if test "${ac_cv_func_mmap_file+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ac_cpp='$CPP $CPPFLAGS'
17290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17294 if test "$cross_compiling" = yes; then
17295 ac_cv_func_mmap_file=no
17297 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17305 #include <sys/types.h>
17306 #include <sys/mman.h>
17314 fd = creat ("foo",0777);
17315 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17317 return (fd != (int) MAP_FAILED);
17322 rm -f conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17333 { (case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_try") 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_cv_func_mmap_file=yes
17344 echo "$as_me: program exited with status $ac_status" >&5
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ( exit $ac_status )
17349 ac_cv_func_mmap_file=no
17351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17356 ac_cpp='$CPP $CPPFLAGS'
17357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17363 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17364 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17365 if test "$ac_cv_func_mmap_file" = yes; then
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_MMAP_FILE
17375 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17376 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17377 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 if test "$llvm_cv_os_type" = "Interix" ; then
17381 ac_cv_need_dev_zero_for_mmap=yes
17383 ac_cv_need_dev_zero_for_mmap=no
17387 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17388 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17389 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define NEED_DEV_ZERO_FOR_MMAP 1
17397 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17399 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17400 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17402 if test "$ac_cv_func_mmap_file" = "no"
17404 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17405 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17409 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17410 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17426 volatile unsigned long val = 1;
17427 __sync_synchronize();
17428 __sync_val_compare_and_swap(&val, 1, 0);
17429 __sync_add_and_fetch(&val, 1);
17430 __sync_sub_and_fetch(&val, 1);
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17471 { echo "$as_me:$LINENO: result: yes" >&5
17472 echo "${ECHO_T}yes" >&6; }
17474 cat >>confdefs.h <<\_ACEOF
17475 #define LLVM_HAS_ATOMICS 1
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17484 { echo "$as_me:$LINENO: result: no" >&5
17485 echo "${ECHO_T}no" >&6; }
17487 cat >>confdefs.h <<\_ACEOF
17488 #define LLVM_HAS_ATOMICS 0
17491 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17492 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17506 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17507 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17508 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17509 if test "${llvm_cv_linux_mixed+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17518 cat >conftest.$ac_ext <<_ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17525 error: Not x86-64 even if uname says so!
17536 rm -f conftest.$ac_objext
17537 if { (ac_try="$ac_compile"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_compile") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest.$ac_objext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 llvm_cv_linux_mixed=no
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 llvm_cv_linux_mixed=yes
17578 rm -f core conftest.err conftest.$ac_objext 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 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17588 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17590 if test "$llvm_cv_linux_mixed" = "yes"; then
17591 llvm_cv_target_arch="x86"
17597 for ac_func in __dso_handle
17599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17613 #define $ac_func innocuous_$ac_func
17615 /* System header to define __stub macros and hopefully few prototypes,
17616 which can conflict with char $ac_func (); below.
17617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17618 <limits.h> exists even on freestanding compilers. */
17621 # include <limits.h>
17623 # include <assert.h>
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17635 /* The GNU C library defines this for functions which it implements
17636 to always fail with ENOSYS. Some functions are actually named
17637 something starting with __ and the normal name is an alias. */
17638 #if defined __stub_$ac_func || defined __stub___$ac_func
17645 return $ac_func ();
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (ac_try="$ac_link"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_link") 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest$ac_exeext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 eval "$as_ac_var=yes"
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 eval "$as_ac_var=no"
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17695 ac_res=`eval echo '${'$as_ac_var'}'`
17696 { echo "$as_me:$LINENO: result: $ac_res" >&5
17697 echo "${ECHO_T}$ac_res" >&6; }
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17707 SHLIBEXT=$llvm_shlib_ext
17710 if test "${prefix}" = "NONE" ; then
17711 prefix="/usr/local"
17713 eval LLVM_PREFIX="${prefix}";
17714 eval LLVM_BINDIR="${prefix}/bin";
17715 eval LLVM_DATADIR="${prefix}/share/llvm";
17716 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17717 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17718 eval LLVM_INCLUDEDIR="${prefix}/include";
17719 eval LLVM_INFODIR="${prefix}/info";
17720 eval LLVM_MANDIR="${prefix}/man";
17721 LLVM_CONFIGTIME=`date`
17732 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17733 LLVM_CONFIGTIME="(timestamp not enabled)"
17737 cat >>confdefs.h <<_ACEOF
17738 #define LLVM_PREFIX "$LLVM_PREFIX"
17742 cat >>confdefs.h <<_ACEOF
17743 #define LLVM_BINDIR "$LLVM_BINDIR"
17747 cat >>confdefs.h <<_ACEOF
17748 #define LLVM_DATADIR "$LLVM_DATADIR"
17752 cat >>confdefs.h <<_ACEOF
17753 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17757 cat >>confdefs.h <<_ACEOF
17758 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17762 cat >>confdefs.h <<_ACEOF
17763 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17767 cat >>confdefs.h <<_ACEOF
17768 #define LLVM_INFODIR "$LLVM_INFODIR"
17772 cat >>confdefs.h <<_ACEOF
17773 #define LLVM_MANDIR "$LLVM_MANDIR"
17777 cat >>confdefs.h <<_ACEOF
17778 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17782 cat >>confdefs.h <<_ACEOF
17783 #define LLVM_HOST_TRIPLE "$host"
17787 cat >>confdefs.h <<_ACEOF
17788 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17792 if test "$BINDINGS_TO_BUILD" = auto ; then
17793 BINDINGS_TO_BUILD=""
17794 if test "x$OCAMLFIND" != x ; then
17795 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17797 if test "x$GO" != x ; then
17798 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17799 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17803 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17806 binding_prereqs_failed=0
17807 for a_binding in $BINDINGS_TO_BUILD ; do
17808 case "$a_binding" in
17810 if test "x$OCAMLFIND" = x ; then
17811 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17812 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17813 binding_prereqs_failed=1
17816 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17823 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17824 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17825 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17826 binding_prereqs_failed=1
17829 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17833 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17834 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17838 if test "x$with_ocaml_libdir" != xauto ; then
17839 OCAML_LIBDIR=$with_ocaml_libdir
17842 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17843 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17845 # ocaml stdlib is beneath our prefix; use stdlib
17846 OCAML_LIBDIR=$ocaml_stdlib
17849 # ocaml stdlib is outside our prefix; use libdir/ocaml
17850 OCAML_LIBDIR=${prefix}/lib/ocaml
17856 if test "x$GO" = x ; then
17857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17858 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17859 binding_prereqs_failed=1
17861 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17864 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17865 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17866 binding_prereqs_failed=1
17872 if test "$binding_prereqs_failed" = 1 ; then
17873 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17874 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17875 { (exit 1); exit 1; }; }
17878 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17879 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17880 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 ac_cpp='$CXXCPP $CPPFLAGS'
17885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17889 oldcxxflags="$CXXFLAGS"
17890 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_compile") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17921 { (case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_try") 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 llvm_cv_cxx_visibility_inlines_hidden=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 llvm_cv_cxx_visibility_inlines_hidden=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 CXXFLAGS="$oldcxxflags"
17951 ac_cpp='$CPP $CPPFLAGS'
17952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17959 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17960 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17961 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17964 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17969 if test "$llvm_cv_link_use_r" = "yes" ; then
17976 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17977 RDYNAMIC="-rdynamic"
17984 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17991 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17993 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17995 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17997 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17999 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18002 ac_config_files="$ac_config_files Makefile.config"
18005 ac_config_files="$ac_config_files llvm.spec"
18008 ac_config_files="$ac_config_files docs/doxygen.cfg"
18011 if test "${clang_src_root}" = ""; then
18012 clang_src_root="$srcdir/tools/clang"
18014 if test -f ${clang_src_root}/README.txt; then
18016 cat >>confdefs.h <<_ACEOF
18017 #define CLANG_LIBDIR_SUFFIX ""
18021 configh="include/clang/Config/config.h"
18022 doxy="docs/doxygen.cfg"
18023 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18025 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18029 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18032 test "x$program_prefix" = "xNONE" && program_prefix=""
18036 ac_config_commands="$ac_config_commands setup"
18038 ac_config_commands="$ac_config_commands Makefile"
18041 ac_config_commands="$ac_config_commands Makefile.common"
18044 ac_config_commands="$ac_config_commands examples/Makefile"
18047 ac_config_commands="$ac_config_commands lib/Makefile"
18050 ac_config_commands="$ac_config_commands test/Makefile"
18053 ac_config_commands="$ac_config_commands test/Makefile.tests"
18056 ac_config_commands="$ac_config_commands unittests/Makefile"
18059 ac_config_commands="$ac_config_commands tools/Makefile"
18062 ac_config_commands="$ac_config_commands utils/Makefile"
18065 ac_config_commands="$ac_config_commands projects/Makefile"
18068 ac_config_commands="$ac_config_commands bindings/Makefile"
18071 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18075 cat >confcache <<\_ACEOF
18076 # This file is a shell script that caches the results of configure
18077 # tests run on this system so they can be shared between configure
18078 # scripts and configure runs, see configure's option --config-cache.
18079 # It is not useful on other systems. If it contains results you don't
18080 # want to keep, you may remove or edit it.
18082 # config.status only pays attention to the cache file if you give it
18083 # the --recheck option to rerun configure.
18085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18087 # following values.
18091 # The following way of writing the cache mishandles newlines in values,
18092 # but we know of no workaround that is simple, portable, and efficient.
18093 # So, we kill variables containing newlines.
18094 # Ultrix sh set writes to stderr and can't be redirected directly,
18095 # and sets the high bit in the cache file unless we assign to the vars.
18097 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18098 eval ac_val=\$$ac_var
18102 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18103 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18106 _ | IFS | as_nl) ;; #(
18107 *) $as_unset $ac_var ;;
18113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18114 *${as_nl}ac_space=\ *)
18115 # `set' does not quote correctly, so add quotes (double-quote
18116 # substitution turns \\\\ into \\, and sed turns \\ into \).
18119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18122 # `set' quotes correctly as required by POSIX, so do not add quotes.
18123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18137 if test -w "$cache_file"; then
18138 test "x$cache_file" != "x/dev/null" &&
18139 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18140 echo "$as_me: updating cache $cache_file" >&6;}
18141 cat confcache >$cache_file
18143 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18144 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18150 # Let make expand exec_prefix.
18151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18153 DEFS=-DHAVE_CONFIG_H
18157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18158 # 1. Remove the extension, and $U if already installed.
18159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18160 ac_i=`echo "$ac_i" | sed "$ac_script"`
18161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18162 # will be set to the directory where LIBOBJS objects are built.
18163 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18164 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18166 LIBOBJS=$ac_libobjs
18168 LTLIBOBJS=$ac_ltlibobjs
18172 : ${CONFIG_STATUS=./config.status}
18173 ac_clean_files_save=$ac_clean_files
18174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18177 cat >$CONFIG_STATUS <<_ACEOF
18179 # Generated by $as_me.
18180 # Run this file to recreate the current configuration.
18181 # Compiler output produced by configure, useful for debugging
18182 # configure, is in config.log if it exists.
18185 ac_cs_recheck=false
18187 SHELL=\${CONFIG_SHELL-$SHELL}
18190 cat >>$CONFIG_STATUS <<\_ACEOF
18191 ## --------------------- ##
18192 ## M4sh Initialization. ##
18193 ## --------------------- ##
18195 # Be Bourne compatible
18196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18200 # is contrary to our usage. Disable this feature.
18201 alias -g '${1+"$@"}'='"$@"'
18202 setopt NO_GLOB_SUBST
18204 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18206 BIN_SH=xpg4; export BIN_SH # for Tru64
18207 DUALCASE=1; export DUALCASE # for MKS sh
18211 # Avoid depending upon Character Ranges.
18212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18215 as_cr_digits='0123456789'
18216 as_cr_alnum=$as_cr_Letters$as_cr_digits
18218 # The user is always right.
18219 if test "${PATH_SEPARATOR+set}" != set; then
18220 echo "#! /bin/sh" >conf$$.sh
18221 echo "exit 0" >>conf$$.sh
18223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18231 # Support unset when possible.
18232 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18240 # We need space, tab and new line, in precisely that order. Quoting is
18241 # there to prevent editors from complaining about space-tab.
18242 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18243 # splitting by setting IFS to empty value.)
18248 # Find who we are. Look in the path if we contain no directory separator.
18250 *[\\/]* ) as_myself=$0 ;;
18251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18255 test -z "$as_dir" && as_dir=.
18256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18262 # We did not find ourselves, most probably we were run as `sh COMMAND'
18263 # in which case we are not to be found in the path.
18264 if test "x$as_myself" = x; then
18267 if test ! -f "$as_myself"; then
18268 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18269 { (exit 1); exit 1; }
18272 # Work around bugs in pre-3.0 UWIN ksh.
18273 for as_var in ENV MAIL MAILPATH
18274 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18284 LC_TELEPHONE LC_TIME
18286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18287 eval $as_var=C; export $as_var
18289 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18293 # Required to use basename.
18294 if expr a : '\(a\)' >/dev/null 2>&1 &&
18295 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18301 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18302 as_basename=basename
18308 # Name of the executable.
18309 as_me=`$as_basename -- "$0" ||
18310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18311 X"$0" : 'X\(//\)$' \| \
18312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18314 sed '/^.*\/\([^/][^/]*\)\/*$/{
18333 as_lineno_1=$LINENO
18334 as_lineno_2=$LINENO
18335 test "x$as_lineno_1" != "x$as_lineno_2" &&
18336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18339 # uniformly replaced by the line number. The first 'sed' inserts a
18340 # line-number line after each line using $LINENO; the second 'sed'
18341 # does the real work. The second script uses 'N' to pair each
18342 # line-number line with the line containing $LINENO, and appends
18343 # trailing '-' during substitution so that $LINENO is not a special
18344 # case at line end.
18345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18346 # scripts with optimization help from Paolo Bonzini. Blame Lee
18347 # E. McMahon (1931-1989) for sed's syntax. :-)
18359 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18362 ' >$as_me.lineno &&
18363 chmod +x "$as_me.lineno" ||
18364 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18365 { (exit 1); exit 1; }; }
18367 # Don't try to exec as it changes $[0], causing all sort of problems
18368 # (the dirname of $[0] is not the place where we might find the
18369 # original and so on. Autoconf is especially sensitive to this).
18370 . "./$as_me.lineno"
18371 # Exit status is that of the last command.
18376 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18382 ECHO_C= ECHO_N= ECHO_T=
18383 case `echo -n x` in
18385 case `echo 'x\c'` in
18386 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18393 if expr a : '\(a\)' >/dev/null 2>&1 &&
18394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18400 rm -f conf$$ conf$$.exe conf$$.file
18401 if test -d conf$$.dir; then
18402 rm -f conf$$.dir/conf$$.file
18408 if ln -s conf$$.file conf$$ 2>/dev/null; then
18410 # ... but there are two gotchas:
18411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18413 # In both cases, we have to default to `cp -p'.
18414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18416 elif ln conf$$.file conf$$ 2>/dev/null; then
18421 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18422 rmdir conf$$.dir 2>/dev/null
18424 if mkdir -p . 2>/dev/null; then
18427 test -d ./-p && rmdir ./-p
18431 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18432 # systems may use methods other than mode bits to determine executability.
18433 cat >conf$$.file <<_ASEOF
18437 chmod +x conf$$.file
18438 if test -x conf$$.file >/dev/null 2>&1; then
18439 as_executable_p="test -x"
18445 # Sed expression to map a string onto a valid CPP name.
18446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18448 # Sed expression to map a string onto a valid variable name.
18449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18454 # Save the log message, to keep $[0] and so on meaningful, and to
18455 # report actual input values of CONFIG_FILES etc. instead of their
18456 # values after options handling.
18458 This file was extended by LLVM $as_me 3.7.0svn, which was
18459 generated by GNU Autoconf 2.60. Invocation command line was
18461 CONFIG_FILES = $CONFIG_FILES
18462 CONFIG_HEADERS = $CONFIG_HEADERS
18463 CONFIG_LINKS = $CONFIG_LINKS
18464 CONFIG_COMMANDS = $CONFIG_COMMANDS
18467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18472 cat >>$CONFIG_STATUS <<_ACEOF
18473 # Files that config.status was made for.
18474 config_files="$ac_config_files"
18475 config_headers="$ac_config_headers"
18476 config_commands="$ac_config_commands"
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18482 \`$as_me' instantiates files from templates according to the
18483 current configuration.
18485 Usage: $0 [OPTIONS] [FILE]...
18487 -h, --help print this help, then exit
18488 -V, --version print version number, then exit
18489 -q, --quiet do not print progress messages
18490 -d, --debug don't remove temporary files
18491 --recheck update $as_me by reconfiguring in the same conditions
18492 --file=FILE[:TEMPLATE]
18493 instantiate the configuration file FILE
18494 --header=FILE[:TEMPLATE]
18495 instantiate the configuration header FILE
18497 Configuration files:
18500 Configuration headers:
18503 Configuration commands:
18506 Report bugs to <bug-autoconf@gnu.org>."
18509 cat >>$CONFIG_STATUS <<_ACEOF
18511 LLVM config.status 3.7.0svn
18512 configured by $0, generated by GNU Autoconf 2.60,
18513 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18515 Copyright (C) 2006 Free Software Foundation, Inc.
18516 This config.status script is free software; the Free Software Foundation
18517 gives unlimited permission to copy, distribute and modify it."
18524 cat >>$CONFIG_STATUS <<\_ACEOF
18525 # If no file are specified by the user, then we need to provide default
18526 # value. By we need to know if files were specified by the user.
18532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18544 # Handling of the options.
18545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18548 echo "$ac_cs_version"; exit ;;
18549 --debug | --debu | --deb | --de | --d | -d )
18551 --file | --fil | --fi | --f )
18553 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18554 ac_need_defaults=false;;
18555 --header | --heade | --head | --hea )
18557 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18558 ac_need_defaults=false;;
18560 # Conflict between --help and --header
18561 { echo "$as_me: error: ambiguous option: $1
18562 Try \`$0 --help' for more information." >&2
18563 { (exit 1); exit 1; }; };;
18564 --help | --hel | -h )
18565 echo "$ac_cs_usage"; exit ;;
18566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18570 # This is an error.
18571 -*) { echo "$as_me: error: unrecognized option: $1
18572 Try \`$0 --help' for more information." >&2
18573 { (exit 1); exit 1; }; } ;;
18575 *) ac_config_targets="$ac_config_targets $1"
18576 ac_need_defaults=false ;;
18582 ac_configure_extra_args=
18584 if $ac_cs_silent; then
18586 ac_configure_extra_args="$ac_configure_extra_args --silent"
18590 cat >>$CONFIG_STATUS <<_ACEOF
18591 if \$ac_cs_recheck; then
18592 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18593 CONFIG_SHELL=$SHELL
18594 export CONFIG_SHELL
18595 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18599 cat >>$CONFIG_STATUS <<\_ACEOF
18603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18604 ## Running $as_me. ##
18610 cat >>$CONFIG_STATUS <<_ACEOF
18614 llvm_src="${srcdir}"
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18620 # Handling of arguments.
18621 for ac_config_target in $ac_config_targets
18623 case $ac_config_target in
18624 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18625 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18626 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18627 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18628 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18629 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18630 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18631 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18632 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18633 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18634 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18635 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18636 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18637 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18638 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18639 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18640 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18641 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18642 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18643 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18644 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18645 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18646 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18647 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18648 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18649 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18651 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18653 { (exit 1); exit 1; }; };;
18658 # If the user did not use the arguments to specify the items to instantiate,
18659 # then the envvar interface is used. Set only those that are not.
18660 # We use the long form for the default assignment because of an extremely
18661 # bizarre bug on SunOS 4.1.3.
18662 if $ac_need_defaults; then
18663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18668 # Have a temporary directory for convenience. Make it in the build tree
18669 # simply because there is no reason against having it here, and in addition,
18670 # creating and moving files from /tmp can sometimes cause problems.
18671 # Hook for its removal unless debugging.
18672 # Note that there is a small window in which the directory will not be cleaned:
18673 # after its creation but before its name has been assigned to `$tmp'.
18677 trap 'exit_status=$?
18678 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18680 trap '{ (exit 1); exit 1; }' 1 2 13 15
18682 # Create a (secure) tmp directory for tmp files.
18685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18686 test -n "$tmp" && test -d "$tmp"
18689 tmp=./conf$$-$RANDOM
18690 (umask 077 && mkdir "$tmp")
18693 echo "$me: cannot create a temporary directory in ." >&2
18694 { (exit 1); exit 1; }
18698 # Set up the sed scripts for CONFIG_FILES section.
18701 # No need to generate the scripts if there are no CONFIG_FILES.
18702 # This happens for instance when ./config.status config.h
18703 if test -n "$CONFIG_FILES"; then
18710 for ac_last_try in false false false false false :; do
18711 cat >conf$$subs.sed <<_ACEOF
18712 SHELL!$SHELL$ac_delim
18713 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18714 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18715 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18716 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18717 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18718 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18719 exec_prefix!$exec_prefix$ac_delim
18720 prefix!$prefix$ac_delim
18721 program_transform_name!$program_transform_name$ac_delim
18722 bindir!$bindir$ac_delim
18723 sbindir!$sbindir$ac_delim
18724 libexecdir!$libexecdir$ac_delim
18725 datarootdir!$datarootdir$ac_delim
18726 datadir!$datadir$ac_delim
18727 sysconfdir!$sysconfdir$ac_delim
18728 sharedstatedir!$sharedstatedir$ac_delim
18729 localstatedir!$localstatedir$ac_delim
18730 includedir!$includedir$ac_delim
18731 oldincludedir!$oldincludedir$ac_delim
18732 docdir!$docdir$ac_delim
18733 infodir!$infodir$ac_delim
18734 htmldir!$htmldir$ac_delim
18735 dvidir!$dvidir$ac_delim
18736 pdfdir!$pdfdir$ac_delim
18737 psdir!$psdir$ac_delim
18738 libdir!$libdir$ac_delim
18739 localedir!$localedir$ac_delim
18740 mandir!$mandir$ac_delim
18741 DEFS!$DEFS$ac_delim
18742 ECHO_C!$ECHO_C$ac_delim
18743 ECHO_N!$ECHO_N$ac_delim
18744 ECHO_T!$ECHO_T$ac_delim
18745 LIBS!$LIBS$ac_delim
18746 build_alias!$build_alias$ac_delim
18747 host_alias!$host_alias$ac_delim
18748 target_alias!$target_alias$ac_delim
18749 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18750 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18751 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18752 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18753 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18755 CFLAGS!$CFLAGS$ac_delim
18756 LDFLAGS!$LDFLAGS$ac_delim
18757 CPPFLAGS!$CPPFLAGS$ac_delim
18758 ac_ct_CC!$ac_ct_CC$ac_delim
18759 EXEEXT!$EXEEXT$ac_delim
18760 OBJEXT!$OBJEXT$ac_delim
18762 CXXFLAGS!$CXXFLAGS$ac_delim
18763 ac_ct_CXX!$ac_ct_CXX$ac_delim
18765 subdirs!$subdirs$ac_delim
18766 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18767 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18768 build!$build$ac_delim
18769 build_cpu!$build_cpu$ac_delim
18770 build_vendor!$build_vendor$ac_delim
18771 build_os!$build_os$ac_delim
18772 host!$host$ac_delim
18773 host_cpu!$host_cpu$ac_delim
18774 host_vendor!$host_vendor$ac_delim
18775 host_os!$host_os$ac_delim
18776 target!$target$ac_delim
18777 target_cpu!$target_cpu$ac_delim
18778 target_vendor!$target_vendor$ac_delim
18779 target_os!$target_os$ac_delim
18781 HOST_OS!$HOST_OS$ac_delim
18782 TARGET_OS!$TARGET_OS$ac_delim
18783 LINKALL!$LINKALL$ac_delim
18784 NOLINKALL!$NOLINKALL$ac_delim
18785 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18786 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18787 ARCH!$ARCH$ac_delim
18788 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18789 HOST_ARCH!$HOST_ARCH$ac_delim
18790 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18791 BUILD_CC!$BUILD_CC$ac_delim
18792 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18793 BUILD_CXX!$BUILD_CXX$ac_delim
18794 CVSBUILD!$CVSBUILD$ac_delim
18795 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18796 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18797 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18798 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18799 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18800 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18801 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18802 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18803 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18804 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18805 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18806 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18807 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18808 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18811 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18813 elif $ac_last_try; then
18814 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18815 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18816 { (exit 1); exit 1; }; }
18818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18822 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18823 if test -n "$ac_eof"; then
18824 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18825 ac_eof=`expr $ac_eof + 1`
18828 cat >>$CONFIG_STATUS <<_ACEOF
18829 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18833 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18834 s/^/s,@/; s/!/@,|#_!!_#|/
18837 s/'"$ac_delim"'$/,g/; t
18839 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18840 ' >>$CONFIG_STATUS <conf$$subs.sed
18841 rm -f conf$$subs.sed
18842 cat >>$CONFIG_STATUS <<_ACEOF
18848 for ac_last_try in false false false false false :; do
18849 cat >conf$$subs.sed <<_ACEOF
18850 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18852 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18853 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18854 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18855 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18856 enable_searchengine!$enable_searchengine$ac_delim
18857 enable_external_search!$enable_external_search$ac_delim
18858 enable_server_based_search!$enable_server_based_search$ac_delim
18859 searchengine_url!$searchengine_url$ac_delim
18860 extra_search_mappings!$extra_search_mappings$ac_delim
18861 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18862 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18863 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18864 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18865 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18866 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18867 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18868 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18869 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18870 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18871 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18872 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18873 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18874 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18875 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18876 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18877 ENABLE_PIC!$ENABLE_PIC$ac_delim
18878 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18879 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18880 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18881 ALL_TARGETS!$ALL_TARGETS$ac_delim
18882 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18883 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18884 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18885 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18886 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18887 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18888 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18889 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18890 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18891 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18892 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18893 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18894 ifGNUmake!$ifGNUmake$ac_delim
18895 LN_S!$LN_S$ac_delim
18899 DATE!$DATE$ac_delim
18900 FIND!$FIND$ac_delim
18901 GREP!$GREP$ac_delim
18902 MKDIR!$MKDIR$ac_delim
18904 RANLIB!$RANLIB$ac_delim
18909 BINPWD!$BINPWD$ac_delim
18911 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18912 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18913 INSTALL_DATA!$INSTALL_DATA$ac_delim
18914 BZIP2!$BZIP2$ac_delim
18916 DOXYGEN!$DOXYGEN$ac_delim
18917 GROFF!$GROFF$ac_delim
18918 GZIPBIN!$GZIPBIN$ac_delim
18919 PDFROFF!$PDFROFF$ac_delim
18922 OCAMLFIND!$OCAMLFIND$ac_delim
18924 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18925 EGREP!$EGREP$ac_delim
18926 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18927 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18928 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18929 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18930 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18931 NO_COMMENT!$NO_COMMENT$ac_delim
18932 PYTHON!$PYTHON$ac_delim
18933 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18934 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18935 USE_OPROFILE!$USE_OPROFILE$ac_delim
18936 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18937 XML2CONFIG!$XML2CONFIG$ac_delim
18938 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18939 LIBXML2_INC!$LIBXML2_INC$ac_delim
18940 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18941 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18942 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18943 MMAP_FILE!$MMAP_FILE$ac_delim
18944 SHLIBEXT!$SHLIBEXT$ac_delim
18945 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18946 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18951 elif $ac_last_try; then
18952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18954 { (exit 1); exit 1; }; }
18956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18961 if test -n "$ac_eof"; then
18962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18963 ac_eof=`expr $ac_eof + 1`
18966 cat >>$CONFIG_STATUS <<_ACEOF
18967 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18972 s/^/s,@/; s/!/@,|#_!!_#|/
18975 s/'"$ac_delim"'$/,g/; t
18977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18978 ' >>$CONFIG_STATUS <conf$$subs.sed
18979 rm -f conf$$subs.sed
18980 cat >>$CONFIG_STATUS <<_ACEOF
18986 for ac_last_try in false false false false false :; do
18987 cat >conf$$subs.sed <<_ACEOF
18988 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18989 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18990 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18991 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18992 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18993 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18994 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18995 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18996 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18997 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18998 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18999 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19000 RPATH!$RPATH$ac_delim
19001 RDYNAMIC!$RDYNAMIC$ac_delim
19002 program_prefix!$program_prefix$ac_delim
19003 LIBOBJS!$LIBOBJS$ac_delim
19004 LTLIBOBJS!$LTLIBOBJS$ac_delim
19007 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
19009 elif $ac_last_try; then
19010 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19011 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19012 { (exit 1); exit 1; }; }
19014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19018 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19019 if test -n "$ac_eof"; then
19020 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19021 ac_eof=`expr $ac_eof + 1`
19024 cat >>$CONFIG_STATUS <<_ACEOF
19025 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19029 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19030 s/^/s,@/; s/!/@,|#_!!_#|/
19033 s/'"$ac_delim"'$/,g/; t
19035 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19036 ' >>$CONFIG_STATUS <conf$$subs.sed
19037 rm -f conf$$subs.sed
19038 cat >>$CONFIG_STATUS <<_ACEOF
19045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19047 # trailing colons and then remove the whole line if VPATH becomes empty
19048 # (actually we leave an empty line to preserve line numbers).
19049 if test "x$srcdir" = x.; then
19050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19051 s/:*\$(srcdir):*/:/
19052 s/:*\${srcdir}:*/:/
19054 s/^\([^=]*=[ ]*\):*/\1/
19060 cat >>$CONFIG_STATUS <<\_ACEOF
19061 fi # test -n "$CONFIG_FILES"
19064 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19067 :[FHLC]) ac_mode=$ac_tag; continue;;
19069 case $ac_mode$ac_tag in
19071 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19072 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19073 { (exit 1); exit 1; }; };;
19074 :[FH]-) ac_tag=-:-;;
19075 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19092 -) ac_f="$tmp/stdin";;
19093 *) # Look for the file first in the build tree, then in the source tree
19094 # (if the path is not absolute). The absolute path cannot be DOS-style,
19095 # because $ac_f cannot contain `:'.
19099 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19101 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19102 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19103 { (exit 1); exit 1; }; };;
19105 ac_file_inputs="$ac_file_inputs $ac_f"
19108 # Let's still pretend it is `configure' which instantiates (i.e., don't
19109 # use $as_me), people would be surprised to read:
19110 # /* config.h. Generated by config.status. */
19111 configure_input="Generated from "`IFS=:
19112 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19113 if test x"$ac_file" != x-; then
19114 configure_input="$ac_file. $configure_input"
19115 { echo "$as_me:$LINENO: creating $ac_file" >&5
19116 echo "$as_me: creating $ac_file" >&6;}
19120 *:-:* | *:-) cat >"$tmp/stdin";;
19125 ac_dir=`$as_dirname -- "$ac_file" ||
19126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19127 X"$ac_file" : 'X\(//\)[^/]' \| \
19128 X"$ac_file" : 'X\(//\)$' \| \
19129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19135 /^X\(\/\/\)[^/].*/{
19150 -*) as_dir=./$as_dir;;
19152 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19156 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19157 *) as_qdir=$as_dir;;
19159 as_dirs="'$as_qdir' $as_dirs"
19160 as_dir=`$as_dirname -- "$as_dir" ||
19161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162 X"$as_dir" : 'X\(//\)[^/]' \| \
19163 X"$as_dir" : 'X\(//\)$' \| \
19164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19170 /^X\(\/\/\)[^/].*/{
19183 test -d "$as_dir" && break
19185 test -z "$as_dirs" || eval "mkdir $as_dirs"
19186 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19187 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19188 { (exit 1); exit 1; }; }; }
19192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19195 # A ".." for each directory in $ac_dir_suffix.
19196 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19197 case $ac_top_builddir_sub in
19198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19202 ac_abs_top_builddir=$ac_pwd
19203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19204 # for backward compatibility:
19205 ac_top_builddir=$ac_top_build_prefix
19208 .) # We are building in place.
19210 ac_top_srcdir=$ac_top_builddir_sub
19211 ac_abs_top_srcdir=$ac_pwd ;;
19212 [\\/]* | ?:[\\/]* ) # Absolute name.
19213 ac_srcdir=$srcdir$ac_dir_suffix;
19214 ac_top_srcdir=$srcdir
19215 ac_abs_top_srcdir=$srcdir ;;
19216 *) # Relative name.
19217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19218 ac_top_srcdir=$ac_top_build_prefix$srcdir
19219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19236 cat >>$CONFIG_STATUS <<\_ACEOF
19237 # If the template does not know about datarootdir, expand it.
19238 # FIXME: This hack should be removed a few years after 2.60.
19239 ac_datarootdir_hack=; ac_datarootdir_seen=
19241 case `sed -n '/datarootdir/ {
19250 ' $ac_file_inputs` in
19251 *datarootdir*) ac_datarootdir_seen=yes;;
19252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19253 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19254 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19256 cat >>$CONFIG_STATUS <<_ACEOF
19257 ac_datarootdir_hack='
19258 s&@datadir@&$datadir&g
19259 s&@docdir@&$docdir&g
19260 s&@infodir@&$infodir&g
19261 s&@localedir@&$localedir&g
19262 s&@mandir@&$mandir&g
19263 s&\\\${datarootdir}&$datarootdir&g' ;;
19267 # Neutralize VPATH when `$srcdir' = `.'.
19268 # Shell code in configure.ac might set extrasub.
19269 # FIXME: do we really want to maintain this feature?
19270 cat >>$CONFIG_STATUS <<_ACEOF
19274 cat >>$CONFIG_STATUS <<\_ACEOF
19276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19277 s&@configure_input@&$configure_input&;t t
19278 s&@top_builddir@&$ac_top_builddir_sub&;t t
19279 s&@srcdir@&$ac_srcdir&;t t
19280 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19281 s&@top_srcdir@&$ac_top_srcdir&;t t
19282 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19283 s&@builddir@&$ac_builddir&;t t
19284 s&@abs_builddir@&$ac_abs_builddir&;t t
19285 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19286 s&@INSTALL@&$ac_INSTALL&;t t
19287 $ac_datarootdir_hack
19288 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19293 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19294 which seems to be undefined. Please make sure it is defined." >&5
19295 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19296 which seems to be undefined. Please make sure it is defined." >&2;}
19300 -) cat "$tmp/out"; rm -f "$tmp/out";;
19301 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19310 # Transform confdefs.h into a sed script `conftest.defines', that
19311 # substitutes the proper values into config.h.in to produce config.h.
19312 rm -f conftest.defines conftest.tail
19313 # First, append a space to every undef/define line, to ease matching.
19314 echo 's/$/ /' >conftest.defines
19315 # Then, protect against being on the right side of a sed subst, or in
19316 # an unquoted here document, in config.status. If some macros were
19317 # called several times there might be several #defines for the same
19318 # symbol, which is useless. But do not sort them, since the last
19319 # AC_DEFINE must be honored.
19320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19321 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19322 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19323 # PARAMS is the parameter list in the macro definition--in most cases, it's
19324 # just an empty string.
19325 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19326 ac_dB='\\)[ (].*,\\1define\\2'
19334 s/^[ ]*#[ ]*define[ ][ ]*//
19339 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19340 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19341 ' >>conftest.defines
19343 # Remove the space that was appended to ease matching.
19344 # Then replace #undef with comments. This is necessary, for
19345 # example, in the case of _POSIX_SOURCE, which is predefined and required
19346 # on some systems where configure will not decide to define it.
19347 # (The regexp can be short, since the line contains either #define or #undef.)
19349 s,^[ #]*u.*,/* & */,' >>conftest.defines
19351 # Break up conftest.defines:
19352 ac_max_sed_lines=50
19354 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19355 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19356 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19358 ac_in='$ac_file_inputs'
19359 ac_out='"$tmp/out1"'
19360 ac_nxt='"$tmp/out2"'
19364 # Write a here document:
19365 cat >>$CONFIG_STATUS <<_ACEOF
19366 # First, check the format of the line:
19367 cat >"\$tmp/defines.sed" <<\\CEOF
19368 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19369 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19373 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19375 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19376 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19377 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19378 grep . conftest.tail >/dev/null || break
19379 rm -f conftest.defines
19380 mv conftest.tail conftest.defines
19382 rm -f conftest.defines conftest.tail
19384 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19385 cat >>$CONFIG_STATUS <<\_ACEOF
19386 if test x"$ac_file" != x-; then
19387 echo "/* $configure_input */" >"$tmp/config.h"
19388 cat "$ac_result" >>"$tmp/config.h"
19389 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19390 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19391 echo "$as_me: $ac_file is unchanged" >&6;}
19394 mv "$tmp/config.h" $ac_file
19397 echo "/* $configure_input */"
19403 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19404 echo "$as_me: executing $ac_file commands" >&6;}
19409 case $ac_file$ac_mode in
19410 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19412 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19414 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19416 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19418 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19420 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19422 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19424 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19426 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19428 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19430 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19432 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19433 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19439 { (exit 0); exit 0; }
19441 chmod +x $CONFIG_STATUS
19442 ac_clean_files=$ac_clean_files_save
19445 # configure is writing to config.log, and then calls config.status.
19446 # config.status does its own redirection, appending to config.log.
19447 # Unfortunately, on DOS this fails, as config.log is still kept open
19448 # by configure, so config.status won't be able to write to it; its
19449 # output is simply discarded. So we exec the FD to /dev/null,
19450 # effectively closing config.log, so it can be properly (re)opened and
19451 # appended to by config.status. When coming back to configure, we
19452 # need to make the FD available again.
19453 if test "$no_create" != yes; then
19455 ac_config_status_args=
19456 test "$silent" = yes &&
19457 ac_config_status_args="$ac_config_status_args --quiet"
19459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19462 # would make configure fail if this is the last instruction.
19463 $ac_cs_success || { (exit 1); exit 1; }
19467 # CONFIG_SUBDIRS section.
19469 if test "$no_recursion" != yes; then
19471 # Remove --cache-file and --srcdir arguments so they do not pile up.
19472 ac_sub_configure_args=
19474 eval "set x $ac_configure_args"
19478 if test -n "$ac_prev"; then
19483 -cache-file | --cache-file | --cache-fil | --cache-fi \
19484 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19485 ac_prev=cache_file ;;
19486 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19487 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19490 --config-cache | -C)
19492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19502 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19504 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19508 # Always prepend --prefix to ensure using the same prefix
19509 # in subdir configurations.
19510 ac_arg="--prefix=$prefix"
19512 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19514 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19519 # Do not complain, so a configure script can configure whichever
19520 # parts of a large source tree are present.
19521 test -d "$srcdir/$ac_dir" || continue
19523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19524 echo "$as_me:$LINENO: $ac_msg" >&5
19528 -*) as_dir=./$as_dir;;
19530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19534 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19535 *) as_qdir=$as_dir;;
19537 as_dirs="'$as_qdir' $as_dirs"
19538 as_dir=`$as_dirname -- "$as_dir" ||
19539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19540 X"$as_dir" : 'X\(//\)[^/]' \| \
19541 X"$as_dir" : 'X\(//\)$' \| \
19542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19548 /^X\(\/\/\)[^/].*/{
19561 test -d "$as_dir" && break
19563 test -z "$as_dirs" || eval "mkdir $as_dirs"
19564 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19565 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19566 { (exit 1); exit 1; }; }; }
19570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19573 # A ".." for each directory in $ac_dir_suffix.
19574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19575 case $ac_top_builddir_sub in
19576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19580 ac_abs_top_builddir=$ac_pwd
19581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19582 # for backward compatibility:
19583 ac_top_builddir=$ac_top_build_prefix
19586 .) # We are building in place.
19588 ac_top_srcdir=$ac_top_builddir_sub
19589 ac_abs_top_srcdir=$ac_pwd ;;
19590 [\\/]* | ?:[\\/]* ) # Absolute name.
19591 ac_srcdir=$srcdir$ac_dir_suffix;
19592 ac_top_srcdir=$srcdir
19593 ac_abs_top_srcdir=$srcdir ;;
19594 *) # Relative name.
19595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19596 ac_top_srcdir=$ac_top_build_prefix$srcdir
19597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19604 # Check for guested configure; otherwise get Cygnus style configure.
19605 if test -f "$ac_srcdir/configure.gnu"; then
19606 ac_sub_configure=$ac_srcdir/configure.gnu
19607 elif test -f "$ac_srcdir/configure"; then
19608 ac_sub_configure=$ac_srcdir/configure
19609 elif test -f "$ac_srcdir/configure.in"; then
19610 # This should be Cygnus configure.
19611 ac_sub_configure=$ac_aux_dir/configure
19613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19618 # The recursion is here.
19619 if test -n "$ac_sub_configure"; then
19620 # Make the cache file name correct relative to the subdirectory.
19621 case $cache_file in
19622 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19623 *) # Relative name.
19624 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19627 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19628 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19629 # The eval makes quoting arguments work.
19630 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19631 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19634 { (exit 1); exit 1; }; }